|
| 1 | +Parsing essai.ka... |
| 2 | +done |
| 3 | ++ simulation parameters |
| 4 | ++ Sanity checks |
| 5 | +CONVERT DELTA -1 -> 1 |
| 6 | +CONVERT DELTA 1 -> -1 |
| 7 | +CREATED COUNTERS A |
| 8 | + CREATED SITES x -> -3 |
| 9 | + CREATED SITES x__inverted -> 3 |
| 10 | + CREATED COUNTERS A |
| 11 | + CREATED SITES x -> -3 |
| 12 | + CREATED SITES x__inverted -> 3 |
| 13 | + + Compiling... |
| 14 | ++ Building initial simulation conditions... |
| 15 | + -variable declarations |
| 16 | +_____(1) |
| 17 | +A(x{=-2H}) |
| 18 | +_____(1) |
| 19 | +A(x{=-1H}) |
| 20 | +_____(1) |
| 21 | +A(x{=0H}) |
| 22 | +_____(1) |
| 23 | +A(x{=1H}) |
| 24 | +_____(1) |
| 25 | +A(x{=2H}) |
| 26 | +_____(1) |
| 27 | +A(x{>=-2H}) |
| 28 | +_____(1) |
| 29 | +A(x{>=-1H}) |
| 30 | +_____(1) |
| 31 | +A(x{>=0H}) |
| 32 | +_____(1) |
| 33 | +A(x{>=1H}) |
| 34 | +_____(1) |
| 35 | +A(x{>=2H}) |
| 36 | +_____(1) |
| 37 | +A(x__inverted{>=2H}) |
| 38 | +_____(1) |
| 39 | +A(x__inverted{>=1H}) |
| 40 | +_____(1) |
| 41 | +A(x__inverted{>=0H}) |
| 42 | +_____(1) |
| 43 | +A(x__inverted{>=-1H}) |
| 44 | +_____(1) |
| 45 | +A(x__inverted{>=-2H}) |
| 46 | + -rules |
| 47 | +_____(1) |
| 48 | +A(x{=1} x__inverted{=2})+ |
| 49 | +_____(1) |
| 50 | +A(x{>=-3H/+=1} x__inverted{>=-1H/+=1}) |
| 51 | +_____(1) |
| 52 | +A(x{>=-1H/+=2} x__inverted{>=-2H/+=1}) |
| 53 | +_____(1) |
| 54 | +A(x[#] x__inverted{>=0H})- |
| 55 | +_____(1) |
| 56 | +A(x{>=-3H} x__inverted{>=-1H}) |
| 57 | +_____(1) |
| 58 | +A(x{>=-1H}) |
| 59 | + -interventions |
| 60 | +_____(1) |
| 61 | +A(x__inverted{>=4H}) |
| 62 | +_____(1) |
| 63 | +A(x{>=3H}) |
| 64 | + -observables |
| 65 | + -update_domain construction |
| 66 | + 27 (sub)observables 23 navigation steps |
| 67 | + -initial conditions |
| 68 | +_____(1) |
| 69 | +A(x{=1} x__inverted{=2})+ |
| 70 | ++ Self seeding... |
| 71 | +File './data.csv' already exists do you want to erase (y/N)? |
| 72 | ++ Building initial state (8 agents) |
| 73 | +Done |
| 74 | ++ Command line to rerun is: 'KaSim' 'essai.ka' '--compile' -seed 1017993374 |
| 75 | +Environment: |
| 76 | + |
| 77 | + %agent: A(x{=-3/+=2} x__inverted{-=-2/=3/+=3}) |
| 78 | + |
| 79 | + %var:/*0*/ '=-2' |A(x{=-2})| |
| 80 | + %var:/*1*/ '=-1' |A(x{=-1})| |
| 81 | + %var:/*2*/ '=0' |A(x{=0})| |
| 82 | + %var:/*3*/ '=1' |A(x{=1})| |
| 83 | + %var:/*4*/ '=2' |A(x{=2})| |
| 84 | + %var:/*5*/ '>=-2' |A(x{>=-2})| |
| 85 | + %var:/*6*/ '>=-1' |A(x{>=-1})| |
| 86 | + %var:/*7*/ '>=0' |A(x{>=0})| |
| 87 | + %var:/*8*/ '>=1' |A(x{>=1})| |
| 88 | + %var:/*9*/ '>=2' |A(x{>=2})| |
| 89 | + %var:/*10*/ '<=-2' |A(x__inverted{>=2})| |
| 90 | + %var:/*11*/ '<=-1' |A(x__inverted{>=1})| |
| 91 | + %var:/*12*/ '<=0' |A(x__inverted{>=0})| |
| 92 | + %var:/*13*/ '<=1' |A(x__inverted{>=-1})| |
| 93 | + %var:/*14*/ '<=2' |A(x__inverted{>=-2})| |
| 94 | + %plot: [T] |
| 95 | + %plot: '=-2' |
| 96 | + %plot: '=-1' |
| 97 | + %plot: '=0' |
| 98 | + %plot: '=1' |
| 99 | + %plot: '=2' |
| 100 | + %plot: '>=-2' |
| 101 | + %plot: '>=-1' |
| 102 | + %plot: '>=0' |
| 103 | + %plot: '>=1' |
| 104 | + %plot: '>=2' |
| 105 | + %plot: '<=-2' |
| 106 | + %plot: '<=-1' |
| 107 | + %plot: '<=0' |
| 108 | + %plot: '<=1' |
| 109 | + %plot: '<=2' |
| 110 | + |
| 111 | + A(x{=1} x__inverted{=2})+ @ 100 |
| 112 | + A(x{>=-3H/+=1} x__inverted{>=-1H/+=1}) @ 2 |
| 113 | + A(x{>=-1H/+=2} x__inverted{>=-2H/+=1}) @ 1 |
| 114 | + A(x[#] x__inverted{>=0H})- @ 0.1 |
| 115 | + A(x{>=-3H} x__inverted{>=-1H}) @ 2 |
| 116 | + A(x{>=-1H}) @ 1 |
| 117 | + |
| 118 | + /*0*/%mod: (|A(x__inverted{>=4})| = 1) do $PRINTF ""; $PRINTF "Counter x__inverted of agent A reached maximum"; $STOP "counter_perturbation.ka"; repeat [false] |
| 119 | + /*1*/%mod: (|A(x{>=3})| = 1) do $PRINTF ""; $PRINTF "Counter x of agent A reached maximum"; $STOP "counter_perturbation.ka"; repeat [false] |
| 120 | + Rules: |
| 121 | + 0: (ast: 1) -- |
| 122 | + ++ A/*ν 0*/, __counter_agent/*ν 1*/, |
| 123 | + __counter_agent/*ν 1*/.a = A/*ν 0*/.x, |
| 124 | + __counter_agent/*ν 1*/.b = ⊥, __counter_agent/*ν 2*/, |
| 125 | + __counter_agent/*ν 2*/.a = A/*ν 0*/.x__inverted, |
| 126 | + __counter_agent/*ν 3*/, |
| 127 | + __counter_agent/*ν 3*/.a = __counter_agent/*ν 2*/.b, |
| 128 | + __counter_agent/*ν 4*/, |
| 129 | + __counter_agent/*ν 4*/.a = __counter_agent/*ν 3*/.b, |
| 130 | + __counter_agent/*ν 5*/, |
| 131 | + __counter_agent/*ν 5*/.a = __counter_agent/*ν 4*/.b, |
| 132 | + __counter_agent/*ν 6*/, |
| 133 | + __counter_agent/*ν 6*/.a = __counter_agent/*ν 5*/.b, |
| 134 | + __counter_agent/*ν 7*/, |
| 135 | + __counter_agent/*ν 7*/.a = __counter_agent/*ν 6*/.b, |
| 136 | + __counter_agent/*ν 7*/.b = ⊥ |
| 137 | + @100 |
| 138 | + 1: (ast: 2) 0: /*cc16*/ A/*1*/(x{>=-3} x__inverted{>=-1}) |
| 139 | + -- __counter_agent/*4*//*0*/.a = A/*1*//*0*/.x, |
| 140 | + __counter_agent/*3*//*0*/.a = __counter_agent/*2*//*0*/.b, |
| 141 | + __counter_agent/*2*//*0*/.a = A/*1*//*0*/.x__inverted, |
| 142 | + __counter_agent/*2*//*0*/ |
| 143 | + ++ A/*1*//*0*/.x__inverted = A/*1*//*0*/.x, __counter_agent/*ν 0*/, |
| 144 | + __counter_agent/*ν 0*/.a = __counter_agent/*3*//*0*/.a, |
| 145 | + __counter_agent/*ν 0*/.b = __counter_agent/*4*//*0*/.a |
| 146 | + @2 |
| 147 | + 2: (ast: 3) 0: /*cc17*/ A/*1*/(x{>=-1} x__inverted{>=-2}) |
| 148 | + -- __counter_agent/*4*//*0*/.a = __counter_agent/*3*//*0*/.b, |
| 149 | + __counter_agent/*3*//*0*/.a = A/*1*//*0*/.x, |
| 150 | + __counter_agent/*3*//*0*/, |
| 151 | + __counter_agent/*2*//*0*/.a = A/*1*//*0*/.x__inverted |
| 152 | + ++ __counter_agent/*4*//*0*/.a = A/*1*//*0*/.x, |
| 153 | + __counter_agent/*ν 0*/, |
| 154 | + __counter_agent/*ν 0*/.a = A/*1*//*0*/.x__inverted, |
| 155 | + __counter_agent/*ν 0*/.b = __counter_agent/*2*//*0*/.a |
| 156 | + @1 |
| 157 | + 3: (ast: 4) 0: /*cc13*/ A/*1*/(x__inverted{>=0}) |
| 158 | + -- __counter_agent/*4*//*0*/.b = ???, __counter_agent/*4*//*0*/, |
| 159 | + __counter_agent/*3*//*0*/, |
| 160 | + __counter_agent/*2*//*0*/.a = A/*1*//*0*/.x__inverted, |
| 161 | + __counter_agent/*2*//*0*/, A/*1*//*0*/.x = ???, A/*1*//*0*/ |
| 162 | + ++ @0.1 |
| 163 | + 4: (ast: 5) 0: /*cc16*/ A/*1*/(x{>=-3} x__inverted{>=-1}) -- ++ @2 |
| 164 | + 5: (ast: 6) 0: /*cc7*/ A/*1*/(x{>=-1}) -- ++ @1 |
| 165 | +Polymers: |
| 166 | + |
| 167 | +Domain: |
| 168 | + /*cc0*/ -> () |
| 169 | + /*cc1*/ A/*1*/(x{=-2}) [algebraic variable [0]] -> () |
| 170 | + /*cc2*/ A/*1*/(x{=-1}) [algebraic variable [1]] -> () |
| 171 | + /*cc3*/ A/*1*/(x{=0}) [algebraic variable [2]] -> () |
| 172 | + /*cc4*/ A/*1*/(x{=1}) [algebraic variable [3]] -> () |
| 173 | + /*cc5*/ A/*1*/(x{=2}) [algebraic variable [4]] -> () |
| 174 | + /*cc6*/ A/*1*/(x{>=-2}) [algebraic variable [5]] |
| 175 | + -> (-3(b[a.!__counter_agent-4])->() 7 -3(b[.])->() 1) |
| 176 | + /*cc7*/ A/*1*/(x{>=-1}) [algebraic variable [6] rate_of_rule [5]] |
| 177 | + -> (-4(b[a.!__counter_agent-5])->() 8 -4(b[.])->() 2) |
| 178 | + /*cc8*/ A/*1*/(x{>=0}) [algebraic variable [7]] |
| 179 | + -> (-5(b[a.!__counter_agent-6])->() 9 -5(b[.])->() 3) |
| 180 | + /*cc9*/ A/*1*/(x{>=1}) [algebraic variable [8]] |
| 181 | + -> (-6(b[a.!__counter_agent-7])->() 10 -6(b[.])->() 4) |
| 182 | + /*cc10*/ A/*1*/(x{>=2}) [algebraic variable [9]] |
| 183 | + -> (-7(b[a.!__counter_agent-8])->() 19 -7(b[.])->() 5) |
| 184 | + /*cc11*/ A/*1*/(x__inverted{>=2}) [algebraic variable [10]] |
| 185 | + -> (-6(b[a.!__counter_agent-7])->-7(b[a.!__counter_agent-8])->() 18) |
| 186 | + /*cc12*/ A/*1*/(x__inverted{>=1}) [algebraic variable [11]] |
| 187 | + -> (-5(b[a.!__counter_agent-6])->() 11) |
| 188 | + /*cc13*/ A/*1*/(x__inverted{>=0}) |
| 189 | + [algebraic variable [12] rate_of_rule [3]] |
| 190 | + -> (-4(b[a.!__counter_agent-5])->() 12) |
| 191 | + /*cc14*/ A/*1*/(x__inverted{>=-1}) [algebraic variable [13]] |
| 192 | + -> (-3(b[a.!__counter_agent-4])->() 13 |
| 193 | + -1(x[a.!__counter_agent-4])->() 16) |
| 194 | + /*cc15*/ A/*1*/(x__inverted{>=-2}) [algebraic variable [14]] |
| 195 | + -> (-2(b[a.!__counter_agent-3])->() 14 |
| 196 | + -1(x[a.!__counter_agent-3])->() 27) |
| 197 | + /*cc16*/ A/*1*/(x{>=-3} x__inverted{>=-1}) |
| 198 | + [rate_of_rule [1] rate_of_rule [4]] -> () |
| 199 | + /*cc17*/ A/*1*/(x{>=-1} x__inverted{>=-2}) [rate_of_rule [2]] -> () |
| 200 | + /*cc18*/ A/*1*/(x__inverted{>=4}) [intervention [0]] -> () |
| 201 | + /*cc19*/ A/*1*/(x{>=3}) [intervention [1]] -> () |
| 202 | + /*cc20*/ -> () |
| 203 | + /*cc21*/ -> () |
| 204 | + /*cc22*/ -> () |
| 205 | + /*cc23*/ A/*1*/(x{>=-3}) |
| 206 | + -> (-1(x__inverted[a.!__counter_agent-3])->(2->3, 3->2) 27 |
| 207 | + -2(b[a.!__counter_agent-3])->() 6) |
| 208 | + /*cc24*/ -> () |
| 209 | + /*cc25*/ A/*1*/(x[.]) -> () |
| 210 | + /*cc26*/ A/*1*/(x__inverted[.]) -> () |
| 211 | + /*cc27*/ A/*1*/(x{>=-3} x__inverted{>=-2}) |
| 212 | + -> (-3(b[a.!__counter_agent-4])->-4(b[a.!__counter_agent-5])->() 17 |
| 213 | + -2(b[a.!__counter_agent-4])->(3->4, 4->3) 16) |
| 214 | +Intial graph; |
| 215 | + %init: 1 A(x{=0}) |
| 216 | + |
0 commit comments