Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PNlib_PNlib.Examples.ExtTest.TDSTest.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 2.2.0-master/package.mo", uses=false) Using package PNlib with version 2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 2.2.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PNlib.Examples.ExtTest.TDSTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="P1.t|P2.t|T1.active|T1.fire|T1.putFireTime|Time",fileNamePrefix="PNlib_PNlib.Examples.ExtTest.TDSTest") translateModel(PNlib.Examples.ExtTest.TDSTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="P1.t|P2.t|T1.active|T1.fire|T1.putFireTime|Time",fileNamePrefix="PNlib_PNlib.Examples.ExtTest.TDSTest") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009283/0.0009285, allocations: 175.2 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.271/1.271, allocations: 205.2 MB / 218.5 MB, free: 9.148 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007579/0.0007579, allocations: 86.61 kB / 266.6 MB, free: 9.258 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 2.2.0-master/package.mo): time 0.06616/0.06616, allocations: 16.71 MB / 331.4 MB, free: 8.34 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 2.717e-05/2.719e-05, allocations: 4 kB / 390.9 MB, free: 65.28 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09628/0.09633, allocations: 51.7 MB / 442.6 MB, free: 13.59 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2969/0.3933, allocations: 83.2 MB / 0.5135 GB, free: 6.797 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001776/0.3935, allocations: 82.2 kB / 0.5136 GB, free: 6.754 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06515/0.4587, allocations: 26.6 MB / 0.5395 GB, free: 220 kB / 346.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.4587, allocations: 0 / 0.5395 GB, free: 220 kB / 346.7 MB Notification: Performance of Transformations before backend: time 4.238e-05/0.4587, allocations: 20 kB / 0.5396 GB, free: 200 kB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 306 * Number of variables: 306 Notification: Performance of Generate backend data structure: time 0.002713/0.4615, allocations: 2.044 MB / 0.5416 GB, free: 14.15 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.528e-05/0.4615, allocations: 8.031 kB / 0.5416 GB, free: 14.14 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000748/0.4623, allocations: 226 kB / 0.5418 GB, free: 13.93 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00121/0.4635, allocations: 0.7078 MB / 0.5425 GB, free: 13.33 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001411/0.4636, allocations: 148.8 kB / 0.5426 GB, free: 13.2 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002191/0.4639, allocations: 145.7 kB / 0.5428 GB, free: 13.08 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003097/0.467, allocations: 2.336 MB / 0.545 GB, free: 11.24 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.191e-05/0.467, allocations: 7.938 kB / 0.545 GB, free: 11.23 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001718/0.4672, allocations: 74.58 kB / 0.5451 GB, free: 11.18 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001158/0.4673, allocations: 71.33 kB / 0.5452 GB, free: 11.12 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002102/0.4694, allocations: 1.534 MB / 0.5467 GB, free: 10.11 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005169/0.4746, allocations: 5.318 MB / 0.5519 GB, free: 5.438 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002362/0.477, allocations: 2.597 MB / 0.5544 GB, free: 4.34 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002503/0.4795, allocations: 2.451 MB / 0.5568 GB, free: 1.969 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001328/0.4796, allocations: 85.55 kB / 0.5569 GB, free: 1.867 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002044/0.4817, allocations: 1.617 MB / 0.5585 GB, free: 184 kB / 362.7 MB Notification: Performance of pre-optimization done (n=147): time 2.434e-06/0.4817, allocations: 0 / 0.5585 GB, free: 184 kB / 362.7 MB Notification: Performance of matching and sorting (n=147): time 0.003955/0.4857, allocations: 2.917 MB / 0.5613 GB, free: 13.15 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0005175/0.4862, allocations: 1.096 MB / 0.5624 GB, free: 11.84 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007291/0.4869, allocations: 0.6092 MB / 0.563 GB, free: 11.23 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000153/0.4871, allocations: 105.7 kB / 0.5631 GB, free: 11.12 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002862/0.4874, allocations: 416.6 kB / 0.5635 GB, free: 10.71 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002829/0.4877, allocations: 363.9 kB / 0.5638 GB, free: 10.35 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.037e-05/0.4878, allocations: 44.03 kB / 0.5639 GB, free: 10.3 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001752/0.488, allocations: 427.2 kB / 0.5643 GB, free: 9.879 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001008/0.489, allocations: 0.7148 MB / 0.565 GB, free: 9.16 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001379/0.4904, allocations: 1.397 MB / 0.5663 GB, free: 7.453 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001413/0.4918, allocations: 1.48 MB / 0.5678 GB, free: 5.84 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.341e-05/0.4918, allocations: 8 kB / 0.5678 GB, free: 5.832 MB / 378.7 MB Notification: Performance of matching and sorting (n=286) (initialization): time 0.003814/0.4956, allocations: 3.226 MB / 0.5709 GB, free: 2.461 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003382/0.496, allocations: 0.6927 MB / 0.5716 GB, free: 1.633 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.52e-05/0.496, allocations: 20 kB / 0.5716 GB, free: 1.613 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.128e-05/0.4961, allocations: 40.03 kB / 0.5717 GB, free: 1.574 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006314/0.4967, allocations: 219.5 kB / 0.5719 GB, free: 1.359 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.453e-05/0.4968, allocations: 51.78 kB / 0.5719 GB, free: 1.309 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000781/0.4975, allocations: 206.7 kB / 0.5721 GB, free: 1.105 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001627/0.4977, allocations: 112 kB / 0.5722 GB, free: 0.9961 MB / 378.7 MB Warning: Assuming fixed start value for the following 47 variables: P1.enableOut.valid:DISCRETE(fixed = false protected = true ) "valid solution" type: Boolean P1.enableOut.benefitLimit:DISCRETE(fixed = false protected = true ) "best valid benefit" type: Real P1.enableOut.benefitMax:DISCRETE(fixed = false protected = true ) "theoretical benefit" type: Real P1.enableOut.posTE:DISCRETE(fixed = false protected = true ) "possible enabled transition" type: Integer P1.enableOut.k:DISCRETE(fixed = false protected = true ) "iteration index" type: Integer P1.enableOut.endWhile:DISCRETE(fixed = false protected = true ) type: Boolean P1.enableOut.sumEnablingProbTAout:DISCRETE(fixed = false protected = true ) "sum of the enabling probabilities of the active output transitions" type: Real P1.enableOut.nTAout:DISCRETE(fixed = false protected = true ) "number of active output transitions" type: Integer P1.enableOut.nremTAout:DISCRETE(fixed = false protected = true ) "number of remaining active output transitions" type: Integer P1.enableOut.Index:DISCRETE(fixed = false protected = true ) "priority Index" type: Integer P2.enableIn.valid:DISCRETE(fixed = false protected = true ) "valid solution" type: Boolean P2.enableIn.benefitLimit:DISCRETE(fixed = false protected = true ) "best valid benefit" type: Real P2.enableIn.benefitMax:DISCRETE(fixed = false protected = true ) "theoretical benefit" type: Real P2.enableIn.posTE:DISCRETE(fixed = false protected = true ) "possible enabled transition" type: Integer P2.enableIn.k:DISCRETE(fixed = false protected = true ) "iteration index" type: Integer P2.enableIn.endWhile:DISCRETE(fixed = false protected = true ) type: Boolean P2.enableIn.sumEnablingProbTAin:DISCRETE(fixed = false protected = true ) "sum of the enabling probabilities of the active input transitions" type: Real P2.enableIn.nTAin:DISCRETE(fixed = false protected = true ) "number ofactive input transitions" type: Integer P2.enableIn.nremTAin:DISCRETE(fixed = false protected = true ) "number of remaining active input transitions" type: Integer P2.enableIn.Index:DISCRETE(fixed = false protected = true ) "priority Index" type: Integer P1.firingSumIn.firingSum:DISCRETE(fixed = false protected = true ) "firing sum" type: Integer P1.firingSumOut.firingSum:DISCRETE(fixed = false protected = true ) "firing sum" type: Integer P2.firingSumIn.firingSum:DISCRETE(fixed = false protected = true ) "firing sum" type: Integer P2.firingSumOut.firingSum:DISCRETE(fixed = false protected = true ) "firing sum" type: Integer T1.ani:DISCRETE(fixed = false protected = true ) "for transition animation" type: Boolean T1.fireTime:DISCRETE(fixed = false protected = true ) "for transition animation" type: Real P2.enableOut.nremTAout:DISCRETE(fixed = false protected = true ) "number of remaining active output transitions" type: Integer P2.enableOut.nTAout:DISCRETE(fixed = false protected = true ) "number of active output transitions" type: Integer P2.enableOut.k:DISCRETE(fixed = false protected = true ) "iteration index" type: Integer P2.enableOut.posTE:DISCRETE(fixed = false protected = true ) "possible enabled transition" type: Integer P2.enableOut.sumEnablingProbTAout:DISCRETE(fixed = false protected = true ) "sum of the enabling probabilities of the active output transitions" type: Real P2.enableOut.endWhile:DISCRETE(fixed = false protected = true ) type: Boolean P2.enableOut.Index:DISCRETE(fixed = false protected = true ) "priority Index" type: Integer P2.enableOut.benefitMax:DISCRETE(fixed = false protected = true ) "theoretical benefit" type: Real P2.enableOut.valid:DISCRETE(fixed = false protected = true ) "valid solution" type: Boolean P2.enableOut.benefitLimit:DISCRETE(fixed = false protected = true ) "best valid benefit" type: Real P1.enableIn.nremTAin:DISCRETE(fixed = false protected = true ) "number of remaining active input transitions" type: Integer P1.enableIn.nTAin:DISCRETE(fixed = false protected = true ) "number ofactive input transitions" type: Integer P1.enableIn.k:DISCRETE(fixed = false protected = true ) "iteration index" type: Integer P1.enableIn.posTE:DISCRETE(fixed = false protected = true ) "possible enabled transition" type: Integer P1.enableIn.sumEnablingProbTAin:DISCRETE(fixed = false protected = true ) "sum of the enabling probabilities of the active input transitions" type: Real P1.enableIn.endWhile:DISCRETE(fixed = false protected = true ) type: Boolean P1.enableIn.Index:DISCRETE(fixed = false protected = true ) "priority Index" type: Integer P1.enableIn.benefitMax:DISCRETE(fixed = false protected = true ) "theoretical benefit" type: Real P1.enableIn.valid:DISCRETE(fixed = false protected = true ) "valid solution" type: Boolean P1.enableIn.benefitLimit:DISCRETE(fixed = false protected = true ) "best valid benefit" type: Real T1.fire:DISCRETE(fixed = false ) "Does the transition fire?" type: Boolean Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 94 * Number of states: 0 () * Number of discrete variables: 250 ($PRE.P1.enableOut.valid,P1.enableOut.valid,$PRE.P1.enableOut.benefitLimit,P1.enableOut.benefitLimit,$PRE.P1.enableOut.benefitMax,P1.enableOut.benefitMax,$PRE.P1.enableOut.posTE,P1.enableOut.posTE,$PRE.P1.enableOut.k,P1.enableOut.k,$PRE.P1.enableOut.endWhile,P1.enableOut.endWhile,$PRE.P1.enableOut.state128[1],P1.enableOut.state128[1],$PRE.P1.enableOut.state128[2],P1.enableOut.state128[2],$PRE.P1.enableOut.state128[3],P1.enableOut.state128[3],$PRE.P1.enableOut.state128[4],P1.enableOut.state128[4],$PRE.P1.enableOut.randNum,P1.enableOut.randNum,$PRE.P1.enableOut.cumEnablingProb[1],P1.enableOut.cumEnablingProb[1],$PRE.P1.enableOut.sumEnablingProbTAout,P1.enableOut.sumEnablingProbTAout,$PRE.P1.enableOut.nTAout,P1.enableOut.nTAout,$PRE.P1.enableOut.nremTAout,P1.enableOut.nremTAout,$PRE.P1.enableOut.remTAout[1],P1.enableOut.remTAout[1],$PRE.P1.enableOut.Index,P1.enableOut.Index,$PRE.P2.enableIn.valid,P2.enableIn.valid,$PRE.P2.enableIn.benefitLimit,P2.enableIn.benefitLimit,$PRE.P2.enableIn.benefitMax,P2.enableIn.benefitMax,$PRE.P2.enableIn.posTE,P2.enableIn.posTE,$PRE.P2.enableIn.k,P2.enableIn.k,$PRE.P2.enableIn.endWhile,P2.enableIn.endWhile,$PRE.P2.enableIn.state128[1],P2.enableIn.state128[1],$PRE.P2.enableIn.state128[2],P2.enableIn.state128[2],$PRE.P2.enableIn.state128[3],P2.enableIn.state128[3],$PRE.P2.enableIn.state128[4],P2.enableIn.state128[4],$PRE.P2.enableIn.randNum,P2.enableIn.randNum,$PRE.P2.enableIn.cumEnablingProb[1],P2.enableIn.cumEnablingProb[1],$PRE.P2.enableIn.sumEnablingProbTAin,P2.enableIn.sumEnablingProbTAin,$PRE.P2.enableIn.nTAin,P2.enableIn.nTAin,$PRE.P2.enableIn.nremTAin,P2.enableIn.nremTAin,$PRE.P2.enableIn.remTAin[1],P2.enableIn.remTAin[1],$PRE.P2.enableIn.Index,P2.enableIn.Index,$whenCondition8,$PRE.P2.reStart,$whenCondition5,$PRE.P1.reStart,P1.firingSumIn.firingSum,$whenCondition4,$whenCondition3,P1.tokeninout,$PRE.P1.firingSumIn.firingSum,$PRE.P1.firingSumOut.firingSum,P2.firingSumOut.firingSum,$whenCondition7,$whenCondition6,P2.tokeninout,$PRE.P2.firingSumIn.firingSum,$PRE.P2.firingSumOut.firingSum,$PRE.P1.tokeninout,T1.tokenChange.vec[1],T1.tokenChange.anytrue,T1.tokenChange.numtrue,$PRE.T1.fireTime,T1.fireTime,$PRE.T1.ani,T1.ani,$PRE.P2.enableOut.nremTAout,P2.enableOut.nremTAout,$PRE.P2.enableOut.nTAout,P2.enableOut.nTAout,$PRE.P2.enableOut.k,P2.enableOut.k,$PRE.P2.enableOut.posTE,P2.enableOut.posTE,$PRE.P2.enableOut.state128[1],P2.enableOut.state128[1],$PRE.P2.enableOut.state128[2],P2.enableOut.state128[2],$PRE.P2.enableOut.state128[3],P2.enableOut.state128[3],$PRE.P2.enableOut.state128[4],P2.enableOut.state128[4],$PRE.P2.enableOut.randNum,P2.enableOut.randNum,$PRE.P2.enableOut.sumEnablingProbTAout,P2.enableOut.sumEnablingProbTAout,$PRE.P2.enableOut.endWhile,P2.enableOut.endWhile,$PRE.P2.enableOut.Index,P2.enableOut.Index,$PRE.P2.enableOut.benefitMax,P2.enableOut.benefitMax,$PRE.P2.enableOut.valid,P2.enableOut.valid,$PRE.P2.enableOut.benefitLimit,P2.enableOut.benefitLimit,$whenCondition2,P2.activeConOut.anychange,P2.delayPassedOut.anytrue,P2.delayPassedOut.numtrue,$PRE.P2.enableOut.arcWeightSum,P2.enableOut.arcWeightSum,$PRE.P1.enableIn.nremTAin,P1.enableIn.nremTAin,$PRE.P1.enableIn.nTAin,P1.enableIn.nTAin,$PRE.P1.enableIn.k,P1.enableIn.k,$PRE.P1.enableIn.posTE,P1.enableIn.posTE,$PRE.P1.enableIn.state128[1],P1.enableIn.state128[1],$PRE.P1.enableIn.state128[2],P1.enableIn.state128[2],$PRE.P1.enableIn.state128[3],P1.enableIn.state128[3],$PRE.P1.enableIn.state128[4],P1.enableIn.state128[4],$PRE.P1.enableIn.randNum,P1.enableIn.randNum,$PRE.P1.enableIn.sumEnablingProbTAin,P1.enableIn.sumEnablingProbTAin,$PRE.P1.enableIn.endWhile,P1.enableIn.endWhile,$PRE.P1.enableIn.Index,P1.enableIn.Index,$PRE.P1.enableIn.benefitMax,P1.enableIn.benefitMax,$PRE.P1.enableIn.valid,P1.enableIn.valid,$PRE.P1.enableIn.benefitLimit,P1.enableIn.benefitLimit,$whenCondition1,P1.delayPassedIn.anytrue,P1.delayPassedIn.numtrue,$PRE.P1.enableIn.arcWeightSum,P1.enableIn.arcWeightSum,T1.outPlaces[1].disTransition,P2.inTransition[1].disPlace,P1.outTransition[1].testValueint,P1.outTransition[1].normalArc,T1.inPlaces[1].disTransition,P1.outTransition[1].disPlace,P1.outTransition[1].arcType,T1.firingCon,P2.enableIn.enablingPrio[1],P2.reStart,P1.enableOut.enablingPrio[1],P1.reStart,P2.enableIn.disTransition[1],$whenCondition9,$whenCondition10,$whenCondition11,$whenCondition12,$whenCondition13,$PRE.P1.t,P1.t,P1.activeOut[1],P1.activeConOut.anychange,P1.delayPassedOut.vec[1],P1.delayPassedOut.anytrue,P1.delayPassedOut.numtrue,P1.firingSumOut.fire[1],P1.firingSumOut.arcWeight[1],P1.firingSumOut.firingSum,P1.enableOut.TAout[1],P1.enableOut.TEout_[1],$PRE.P1.enableOut.TEout[1],P1.enableOut.TEout[1],$PRE.P1.enableOut.arcWeightSum,P1.enableOut.arcWeightSum,$PRE.P2.t,P2.t,P2.enabledByInPlaces[1],P2.delayPassedIn.vec[1],P2.delayPassedIn.anytrue,P2.delayPassedIn.numtrue,P2.firingSumIn.fire[1],P2.firingSumIn.arcWeight[1],P2.firingSumIn.firingSum,P2.enableIn.TAein[1],P2.enableIn.active[1],P2.enableIn.TEin_[1],$PRE.P2.enableIn.TEin[1],P2.enableIn.TEin[1],$PRE.P2.enableIn.arcWeightSum,P2.enableIn.arcWeightSum,$PRE.T1.putFireTime,T1.putFireTime,$PRE.T1.putDelay,T1.putDelay,$PRE.T1.state128[1],T1.state128[1],$PRE.T1.state128[2],T1.state128[2],$PRE.T1.state128[3],T1.state128[3],$PRE.T1.state128[4],T1.state128[4],$PRE.T1.r128,T1.r128,$PRE.T1.delayPassed,T1.delayPassed,T1.activation.tIntIn[1],T1.activation.tIntOut[1],T1.activation.arcWeightIntIn[1],T1.activation.arcWeightIntOut[1],T1.activation.minTokensInt[1],T1.activation.maxTokensInt[1],T1.activation.active,T1.active,$PRE.T1.fire,T1.fire,T1.activation.arcType[1],T1.activation.disPlaceIn[1],P1.enableOut.disTransition[1],T1.activation.normalArc[1],T1.activation.testValueInt[1],T1.activation.disPlaceOut[1],P2.enableIn.arcWeight[1],P1.enableOut.arcWeight[1],P1.activeConOut.vec[1],P2.inTransition[1].emptied,P1.outTransition[1].fed) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (252): * Single equations (assignments): 230 * Array equations: 0 * Algorithm blocks: 22 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001252/0.499, allocations: 1.164 MB / 0.5734 GB, free: 15.71 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002469/0.4992, allocations: 146.9 kB / 0.5735 GB, free: 15.57 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003842/0.5031, allocations: 2.81 MB / 0.5763 GB, free: 12.68 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.115e-06/0.5031, allocations: 8 kB / 0.5763 GB, free: 12.68 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.5031, allocations: 0 / 0.5763 GB, free: 12.68 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.097e-06/0.5031, allocations: 7.984 kB / 0.5763 GB, free: 12.67 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006038/0.5092, allocations: 4.553 MB / 0.5807 GB, free: 7.98 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.66e-06/0.5092, allocations: 7.922 kB / 0.5807 GB, free: 7.973 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001882/0.5094, allocations: 47.92 kB / 0.5808 GB, free: 7.926 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.813e-06/0.5094, allocations: 0 / 0.5808 GB, free: 7.926 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001775/0.5096, allocations: 91.92 kB / 0.5809 GB, free: 7.836 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.662e-06/0.5096, allocations: 7.938 kB / 0.5809 GB, free: 7.828 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.963e-06/0.5096, allocations: 0 / 0.5809 GB, free: 7.828 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004521/0.5142, allocations: 3.521 MB / 0.5843 GB, free: 4.168 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001654/0.5143, allocations: 167.8 kB / 0.5845 GB, free: 3.984 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000375/0.5147, allocations: 159.9 kB / 0.5846 GB, free: 3.828 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007413/0.5155, allocations: 127.9 kB / 0.5847 GB, free: 3.703 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006405/0.5161, allocations: 412.1 kB / 0.5851 GB, free: 3.301 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000208/0.5163, allocations: 95.94 kB / 0.5852 GB, free: 3.207 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0004794/0.5168, allocations: 381.5 kB / 0.5856 GB, free: 2.832 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.262e-06/0.5168, allocations: 0 / 0.5856 GB, free: 2.832 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001842/0.5187, allocations: 0.6204 MB / 0.5862 GB, free: 2.211 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 136 ($whenCondition1,P1.delayPassedIn.anytrue,P1.delayPassedIn.numtrue,P1.enableIn.state128[1],P1.enableIn.state128[2],P1.enableIn.state128[3],P1.enableIn.state128[4],P1.enableIn.arcWeightSum,P1.enableIn.nremTAin,P1.enableIn.nTAin,P1.enableIn.k,P1.enableIn.posTE,P1.enableIn.randNum,P1.enableIn.sumEnablingProbTAin,P1.enableIn.endWhile,P1.enableIn.Index,P1.enableIn.benefitMax,P1.enableIn.valid,P1.enableIn.benefitLimit,$whenCondition2,P2.activeConOut.anychange,P2.delayPassedOut.anytrue,P2.delayPassedOut.numtrue,P2.enableOut.state128[1],P2.enableOut.state128[2],P2.enableOut.state128[3],P2.enableOut.state128[4],P2.enableOut.arcWeightSum,P2.enableOut.nremTAout,P2.enableOut.nTAout,P2.enableOut.k,P2.enableOut.posTE,P2.enableOut.randNum,P2.enableOut.sumEnablingProbTAout,P2.enableOut.endWhile,P2.enableOut.Index,P2.enableOut.benefitMax,P2.enableOut.valid,P2.enableOut.benefitLimit,P1.activeOut[1],$whenCondition9,$whenCondition7,$whenCondition6,$whenCondition8,$whenCondition4,$whenCondition3,$whenCondition5,$whenCondition10,$whenCondition11,$whenCondition12,$whenCondition13,P1.t,P1.tokeninout,P1.activeConOut.anychange,P1.delayPassedOut.vec[1],P1.delayPassedOut.anytrue,P1.delayPassedOut.numtrue,P1.firingSumIn.firingSum,P1.firingSumOut.fire[1],P1.firingSumOut.arcWeight[1],P1.firingSumOut.firingSum,P1.enableOut.TAout[1],P1.enableOut.TEout_[1],P1.enableOut.state128[1],P1.enableOut.state128[2],P1.enableOut.state128[3],P1.enableOut.state128[4],P1.enableOut.TEout[1],P1.enableOut.remTAout[1],P1.enableOut.cumEnablingProb[1],P1.enableOut.arcWeightSum,P1.enableOut.nremTAout,P1.enableOut.nTAout,P1.enableOut.k,P1.enableOut.posTE,P1.enableOut.randNum,P1.enableOut.sumEnablingProbTAout,P1.enableOut.endWhile,P1.enableOut.Index,P1.enableOut.benefitMax,P1.enableOut.valid,P1.enableOut.benefitLimit,P2.t,P2.tokeninout,P2.enabledByInPlaces[1],P2.delayPassedIn.vec[1],P2.delayPassedIn.anytrue,P2.delayPassedIn.numtrue,P2.firingSumIn.fire[1],P2.firingSumIn.arcWeight[1],P2.firingSumIn.firingSum,P2.firingSumOut.firingSum,P2.enableIn.TAein[1],P2.enableIn.active[1],P2.enableIn.TEin_[1],P2.enableIn.state128[1],P2.enableIn.state128[2],P2.enableIn.state128[3],P2.enableIn.state128[4],P2.enableIn.TEin[1],P2.enableIn.remTAin[1],P2.enableIn.cumEnablingProb[1],P2.enableIn.arcWeightSum,P2.enableIn.nremTAin,P2.enableIn.nTAin,P2.enableIn.k,P2.enableIn.posTE,P2.enableIn.randNum,P2.enableIn.sumEnablingProbTAin,P2.enableIn.endWhile,P2.enableIn.Index,P2.enableIn.benefitMax,P2.enableIn.valid,P2.enableIn.benefitLimit,T1.putFireTime,T1.putDelay,T1.state128[1],T1.state128[2],T1.state128[3],T1.state128[4],T1.r128,T1.fireTime,T1.delayPassed,T1.ani,T1.activation.tIntIn[1],T1.activation.tIntOut[1],T1.activation.arcWeightIntIn[1],T1.activation.arcWeightIntOut[1],T1.activation.minTokensInt[1],T1.activation.maxTokensInt[1],T1.activation.active,T1.tokenChange.vec[1],T1.tokenChange.anytrue,T1.tokenChange.numtrue,T1.active,T1.fire) * Number of discrete states: 107 (P2.firingSumOut.firingSum,P2.firingSumIn.firingSum,P1.firingSumOut.firingSum,P1.firingSumIn.firingSum,P1.activeConOut.anychange,P1.tokeninout,P1.t,P2.t,T1.activation.active,T1.tokenChange.numtrue,T1.tokenChange.anytrue,T1.delayPassed,T1.putFireTime,$whenCondition11,T1.putDelay,T1.state128[4],T1.state128[3],T1.state128[2],T1.state128[1],T1.r128,$whenCondition10,T1.fire,P1.delayPassedOut.numtrue,P1.delayPassedOut.anytrue,P2.delayPassedIn.numtrue,P2.delayPassedIn.anytrue,P1.enableOut.TEout_[1],P1.enableOut.valid,P1.enableOut.benefitLimit,P1.enableOut.benefitMax,P1.enableOut.posTE,P1.enableOut.k,P1.enableOut.endWhile,P1.enableOut.state128[4],P1.enableOut.state128[3],P1.enableOut.state128[2],P1.enableOut.state128[1],P1.enableOut.randNum,P1.enableOut.cumEnablingProb[1],P1.enableOut.sumEnablingProbTAout,P1.enableOut.nTAout,P1.enableOut.nremTAout,P1.enableOut.remTAout[1],P1.enableOut.Index,$whenCondition13,P1.enableOut.arcWeightSum,P1.enableOut.TEout[1],P2.enableIn.TEin_[1],P2.enableIn.valid,P2.enableIn.benefitLimit,P2.enableIn.benefitMax,P2.enableIn.posTE,P2.enableIn.k,P2.enableIn.endWhile,P2.enableIn.state128[4],P2.enableIn.state128[3],P2.enableIn.state128[2],P2.enableIn.state128[1],P2.enableIn.randNum,P2.enableIn.cumEnablingProb[1],P2.enableIn.sumEnablingProbTAin,P2.enableIn.nTAin,P2.enableIn.nremTAin,P2.enableIn.remTAin[1],P2.enableIn.Index,$whenCondition12,P2.enableIn.arcWeightSum,P2.enableIn.TEin[1],P2.enableOut.nremTAout,P2.enableOut.nTAout,P2.enableOut.k,P2.enableOut.posTE,P2.enableOut.randNum,P2.enableOut.state128[4],P2.enableOut.state128[3],P2.enableOut.state128[2],P2.enableOut.state128[1],P2.enableOut.sumEnablingProbTAout,P2.enableOut.endWhile,P2.enableOut.Index,P2.enableOut.benefitMax,P2.enableOut.valid,P2.enableOut.benefitLimit,$whenCondition2,P2.enableOut.arcWeightSum,P2.delayPassedOut.numtrue,P2.delayPassedOut.anytrue,P2.activeConOut.anychange,P1.enableIn.nremTAin,P1.enableIn.nTAin,P1.enableIn.k,P1.enableIn.posTE,P1.enableIn.randNum,P1.enableIn.state128[4],P1.enableIn.state128[3],P1.enableIn.state128[2],P1.enableIn.state128[1],P1.enableIn.sumEnablingProbTAin,P1.enableIn.endWhile,P1.enableIn.Index,P1.enableIn.benefitMax,P1.enableIn.valid,P1.enableIn.benefitLimit,$whenCondition1,P1.enableIn.arcWeightSum,P1.delayPassedIn.numtrue,P1.delayPassedIn.anytrue) * Top-level inputs: 0 Notification: Strong component statistics for simulation (62): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 17 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001329/0.52, allocations: 0.6044 MB / 0.5868 GB, free: 1.598 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.004313/0.5243, allocations: 3.925 MB / 0.5906 GB, free: 13.41 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.5244, allocations: 0 / 0.5906 GB, free: 13.41 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004368/0.5287, allocations: 5.79 MB / 0.5963 GB, free: 7.41 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007438/0.5295, allocations: 157.3 kB / 0.5964 GB, free: 7.258 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004003/0.5335, allocations: 2.371 MB / 0.5987 GB, free: 4.852 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007094/0.5342, allocations: 1.153 MB / 0.5999 GB, free: 3.672 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0006488/0.5349, allocations: 260.4 kB / 0.6001 GB, free: 3.414 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001645/0.5351, allocations: 71.42 kB / 0.6002 GB, free: 3.344 MB / 410.7 MB Notification: Performance of SimCode: time 5.42e-07/0.5351, allocations: 3.938 kB / 0.6002 GB, free: 3.34 MB / 410.7 MB Notification: Performance of Templates: time 0.03382/0.5689, allocations: 21.47 MB / 0.6212 GB, free: 13.67 MB / 442.7 MB make -j1 -f PNlib_PNlib.Examples.ExtTest.TDSTest.makefile (rm -f PNlib_PNlib.Examples.ExtTest.TDSTest.pipe ; mkfifo PNlib_PNlib.Examples.ExtTest.TDSTest.pipe ; head -c 1048576 < PNlib_PNlib.Examples.ExtTest.TDSTest.pipe >> ../files/PNlib_PNlib.Examples.ExtTest.TDSTest.sim & ./PNlib_PNlib.Examples.ExtTest.TDSTest -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PNlib_PNlib.Examples.ExtTest.TDSTest.pipe 2>&1) diffSimulationResults("PNlib_PNlib.Examples.ExtTest.TDSTest_res.mat","/mnt/ReferenceFiles/PNlib/ReferenceFiles/PNlib.Examples.ExtTest.TDSTest.mat","../files/PNlib_PNlib.Examples.ExtTest.TDSTest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches