Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PNlib_PNlib.Examples.ExtTest.TESTest.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.TESTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="P1.t|P2.t|T1.active|T1.fire|T1.putFireTime|T2.active|T2.fire|time",fileNamePrefix="PNlib_PNlib.Examples.ExtTest.TESTest") translateModel(PNlib.Examples.ExtTest.TESTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="P1.t|P2.t|T1.active|T1.fire|T1.putFireTime|T2.active|T2.fire|time",fileNamePrefix="PNlib_PNlib.Examples.ExtTest.TESTest") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009967/0.0009968, allocations: 174.8 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.286/1.286, allocations: 205.2 MB / 218.5 MB, free: 9.223 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.0007737/0.0007737, allocations: 92.78 kB / 266.6 MB, free: 9.285 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 2.2.0-master/package.mo): time 0.06751/0.06751, allocations: 16.72 MB / 331.4 MB, free: 8.371 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 2.422e-05/2.424e-05, allocations: 4 kB / 390.9 MB, free: 65.28 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07089/0.07093, allocations: 51.69 MB / 442.6 MB, free: 13.59 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2877/0.3587, allocations: 83.71 MB / 0.514 GB, free: 6.344 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001584/0.3589, allocations: 69.53 kB / 0.5141 GB, free: 6.309 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07412/0.433, allocations: 29.93 MB / 0.5433 GB, free: 12.92 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.192e-06/0.433, allocations: 0 / 0.5433 GB, free: 12.92 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.958e-05/0.4331, allocations: 20 kB / 0.5433 GB, free: 12.9 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 403 * Number of variables: 403 Notification: Performance of Generate backend data structure: time 0.003237/0.4363, allocations: 2.345 MB / 0.5456 GB, free: 10.57 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.482e-05/0.4364, allocations: 8.031 kB / 0.5456 GB, free: 10.57 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009186/0.4373, allocations: 261.4 kB / 0.5459 GB, free: 10.31 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001613/0.4389, allocations: 0.8977 MB / 0.5467 GB, free: 9.582 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002006/0.4392, allocations: 218.5 kB / 0.5469 GB, free: 9.383 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003142/0.4395, allocations: 188 kB / 0.5471 GB, free: 9.23 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00459/0.4441, allocations: 3.16 MB / 0.5502 GB, free: 6.801 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.848e-05/0.4441, allocations: 11.92 kB / 0.5502 GB, free: 6.789 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002287/0.4444, allocations: 90.22 kB / 0.5503 GB, free: 6.734 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001678/0.4445, allocations: 111 kB / 0.5504 GB, free: 6.637 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003158/0.4477, allocations: 2.131 MB / 0.5525 GB, free: 5.23 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0083/0.456, allocations: 7.145 MB / 0.5595 GB, free: 15.14 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003665/0.4597, allocations: 3.571 MB / 0.5629 GB, free: 11.59 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003432/0.4632, allocations: 3.395 MB / 0.5663 GB, free: 8.184 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001337/0.4633, allocations: 89.66 kB / 0.5664 GB, free: 8.078 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00294/0.4663, allocations: 2.116 MB / 0.5684 GB, free: 5.895 MB / 378.7 MB Notification: Performance of pre-optimization done (n=176): time 3.056e-06/0.4663, allocations: 0 / 0.5684 GB, free: 5.895 MB / 378.7 MB Notification: Performance of matching and sorting (n=176): time 0.005469/0.4718, allocations: 3.853 MB / 0.5722 GB, free: 1.922 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0006794/0.4725, allocations: 1.252 MB / 0.5734 GB, free: 448 kB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009759/0.4735, allocations: 0.7444 MB / 0.5741 GB, free: 15.68 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001896/0.4737, allocations: 117.7 kB / 0.5742 GB, free: 15.56 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003935/0.4741, allocations: 0.5273 MB / 0.5748 GB, free: 15.02 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003688/0.4744, allocations: 438.9 kB / 0.5752 GB, free: 14.59 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001071/0.4745, allocations: 52 kB / 0.5752 GB, free: 14.54 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002409/0.4748, allocations: 456.4 kB / 0.5757 GB, free: 14.09 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001272/0.4761, allocations: 0.8754 MB / 0.5765 GB, free: 13.21 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001816/0.4779, allocations: 1.717 MB / 0.5782 GB, free: 11.1 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001798/0.4797, allocations: 1.729 MB / 0.5799 GB, free: 9.219 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.701e-05/0.4797, allocations: 8 kB / 0.5799 GB, free: 9.211 MB / 394.7 MB Notification: Performance of matching and sorting (n=347) (initialization): time 0.004923/0.4847, allocations: 3.839 MB / 0.5836 GB, free: 5.219 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004302/0.4851, allocations: 0.7595 MB / 0.5844 GB, free: 4.312 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.127e-05/0.4852, allocations: 24 kB / 0.5844 GB, free: 4.289 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.535e-05/0.4852, allocations: 55.89 kB / 0.5845 GB, free: 4.234 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008291/0.4861, allocations: 291.2 kB / 0.5847 GB, free: 3.949 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.836e-05/0.4861, allocations: 59.78 kB / 0.5848 GB, free: 3.891 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001071/0.4872, allocations: 250.2 kB / 0.585 GB, free: 3.645 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002086/0.4874, allocations: 140 kB / 0.5852 GB, free: 3.508 MB / 394.7 MB Warning: Assuming fixed start value for the following 50 variables: 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.enableIn.valid:DISCRETE(fixed = false protected = true ) "valid solution" type: Boolean P1.enableIn.benefitLimit:DISCRETE(fixed = false protected = true ) "best valid benefit" type: Real P1.enableIn.benefitMax:DISCRETE(fixed = false protected = true ) "theoretical benefit" type: Real P1.enableIn.posTE:DISCRETE(fixed = false protected = true ) "possible enabled transition" type: Integer P1.enableIn.k:DISCRETE(fixed = false protected = true ) "iteration index" type: Integer P1.enableIn.endWhile:DISCRETE(fixed = false protected = true ) type: Boolean P1.enableIn.sumEnablingProbTAin:DISCRETE(fixed = false protected = true ) "sum of the enabling probabilities of the active input transitions" type: Real P1.enableIn.nTAin:DISCRETE(fixed = false protected = true ) "number ofactive input transitions" type: Integer P1.enableIn.nremTAin:DISCRETE(fixed = false protected = true ) "number of remaining active input transitions" type: Integer P1.enableIn.Index:DISCRETE(fixed = false protected = true ) "priority Index" type: Integer 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 T1.ani:DISCRETE(fixed = false protected = true ) "for transition animation" type: Boolean T1.fireTime:DISCRETE(fixed = false protected = true ) "for transition animation" type: Real T2.ani:DISCRETE(fixed = false protected = true ) "for transition animation" type: Boolean T2.fireTime:DISCRETE(fixed = false protected = true ) "for transition animation" type: Real P2.firingSumIn.firingSum:DISCRETE(fixed = false protected = true ) "firing sum" type: Integer P2.firingSumOut.firingSum:DISCRETE(fixed = false protected = true ) "firing sum" 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.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 T1.TimeOver:DISCRETE(fixed = false ) type: Boolean T2.firingTime:DISCRETE(fixed = false protected = true ) "next putative firing time" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 116 * Number of states: 0 () * Number of discrete variables: 288 ($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,$PRE.P1.enableIn.valid,P1.enableIn.valid,$PRE.P1.enableIn.benefitLimit,P1.enableIn.benefitLimit,$PRE.P1.enableIn.benefitMax,P1.enableIn.benefitMax,$PRE.P1.enableIn.posTE,P1.enableIn.posTE,$PRE.P1.enableIn.k,P1.enableIn.k,$PRE.P1.enableIn.endWhile,P1.enableIn.endWhile,$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.cumEnablingProb[1],P1.enableIn.cumEnablingProb[1],$PRE.P1.enableIn.sumEnablingProbTAin,P1.enableIn.sumEnablingProbTAin,$PRE.P1.enableIn.nTAin,P1.enableIn.nTAin,$PRE.P1.enableIn.nremTAin,P1.enableIn.nremTAin,$PRE.P1.enableIn.remTAin[1],P1.enableIn.remTAin[1],$PRE.P1.enableIn.Index,P1.enableIn.Index,$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,$whenCondition15,$PRE.P1.reStart,$whenCondition12,$PRE.P2.reStart,$PRE.T1.fireTime,T1.fireTime,$PRE.T1.ani,T1.ani,$PRE.T2.fireTime,T2.fireTime,$PRE.T2.ani,T2.ani,$whenCondition5,$PRE.T2.eventIndex,T2.eventIndex,$whenCondition11,$whenCondition10,P2.tokeninout,$PRE.P2.firingSumIn.firingSum,$PRE.P2.firingSumOut.firingSum,P2.firingSumOut.firingSum,$whenCondition14,$whenCondition13,P1.tokeninout,$PRE.P1.firingSumIn.firingSum,$PRE.P1.firingSumOut.firingSum,$PRE.P1.tokeninout,T1.tokenChange.vec[1],T1.tokenChange.anytrue,T1.tokenChange.numtrue,$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,$whenCondition1,P2.activeConOut.anychange,P2.delayPassedOut.anytrue,P2.delayPassedOut.numtrue,$PRE.P2.enableOut.arcWeightSum,P2.enableOut.arcWeightSum,T2.enabledByInPlaces,T2.outPlaces[1].disTransition,P1.inTransition[1].disPlace,P1.outTransition[1].testValueint,P1.outTransition[1].normalArc,T1.inPlaces[1].disTransition,P1.outTransition[1].disPlace,P1.outTransition[1].arcType,T1.outPlaces[1].disTransition,P2.inTransition[1].disPlace,T1.firingCon,T2.firingCon,P2.enableIn.enablingPrio[1],P2.reStart,P1.enableIn.enablingPrio[1],P1.enableOut.enablingPrio[1],P1.reStart,P1.enableIn.disTransition[1],P2.enableIn.disTransition[1],$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition6,$PRE.P1.t,P1.t,P1.activeOut[1],P1.activeConOut.anychange,P1.delayPassedOut.vec[1],P1.delayPassedOut.anytrue,P1.delayPassedOut.numtrue,P1.delayPassedIn.vec[1],P1.delayPassedIn.anytrue,P1.delayPassedIn.numtrue,P1.firingSumIn.fire[1],P1.firingSumIn.arcWeight[1],P1.firingSumIn.firingSum,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,P1.enableIn.TAein[1],P1.enableIn.active[1],P1.enableIn.TEin_[1],$PRE.P1.enableIn.TEin[1],P1.enableIn.TEin[1],$PRE.P1.enableIn.arcWeightSum,P1.enableIn.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.T2.firingTime,T2.firingTime,$PRE.T2.eventPassed,T2.eventPassed,T2.activation.tIntOut[1],T2.activation.arcWeightIntOut[1],T2.activation.maxTokensInt[1],T2.activation.active,T2.active,$PRE.T1.putFireTime,T1.putFireTime,$PRE.T1.putEvent,T1.putEvent,$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.eventPassed,T1.eventPassed,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,$PRE.T1.TimeOver,T1.TimeOver,T1.active,T1.activation.disPlaceOut[1],T1.activation.arcType[1],T1.activation.disPlaceIn[1],P1.enableOut.disTransition[1],T1.activation.normalArc[1],T1.activation.testValueInt[1],T2.activation.disPlaceOut[1],P2.enableIn.arcWeight[1],P1.enableOut.arcWeight[1],P1.enableIn.arcWeight[1],P1.activeConOut.vec[1],P1.inTransition[1].emptied,P1.outTransition[1].fed,P2.inTransition[1].emptied) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (307): * Single equations (assignments): 282 * Array equations: 1 * Algorithm blocks: 24 * 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.001595/0.489, allocations: 1.346 MB / 0.5865 GB, free: 2.039 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00034/0.4894, allocations: 170.6 kB / 0.5866 GB, free: 1.871 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005841/0.4952, allocations: 4.024 MB / 0.5906 GB, free: 13.73 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.268e-05/0.4953, allocations: 15.95 kB / 0.5906 GB, free: 13.71 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.001e-06/0.4953, allocations: 0 / 0.5906 GB, free: 13.71 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.137e-06/0.4953, allocations: 3.984 kB / 0.5906 GB, free: 13.71 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008676/0.504, allocations: 6.247 MB / 0.5967 GB, free: 7.301 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.871e-06/0.504, allocations: 0 / 0.5967 GB, free: 7.301 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002475/0.5043, allocations: 71.86 kB / 0.5968 GB, free: 7.23 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.498e-06/0.5043, allocations: 4 kB / 0.5968 GB, free: 7.227 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002272/0.5045, allocations: 103.9 kB / 0.5969 GB, free: 7.125 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.107e-06/0.5045, allocations: 4 kB / 0.5969 GB, free: 7.121 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/0.5045, allocations: 0 / 0.5969 GB, free: 7.121 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006142/0.5107, allocations: 4.527 MB / 0.6013 GB, free: 2.465 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002275/0.5109, allocations: 191.4 kB / 0.6015 GB, free: 2.258 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004626/0.5114, allocations: 175.9 kB / 0.6016 GB, free: 2.086 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000938/0.5123, allocations: 163.9 kB / 0.6018 GB, free: 1.926 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007572/0.5131, allocations: 476.3 kB / 0.6022 GB, free: 1.457 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000279/0.5134, allocations: 135.9 kB / 0.6024 GB, free: 1.324 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0005765/0.514, allocations: 455.1 kB / 0.6028 GB, free: 0.8789 MB / 410.7 MB Notification: Performance of sort global known variables: time 5.61e-07/0.514, allocations: 0 / 0.6028 GB, free: 0.8789 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002213/0.5162, allocations: 0.7337 MB / 0.6035 GB, free: 148 kB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 157 ($whenCondition1,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,T2.active,P1.activeOut[1],$whenCondition14,$whenCondition13,$whenCondition15,$whenCondition11,$whenCondition10,$whenCondition12,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6,P1.t,P1.tokeninout,P1.activeConOut.anychange,P1.delayPassedOut.vec[1],P1.delayPassedOut.anytrue,P1.delayPassedOut.numtrue,P1.delayPassedIn.vec[1],P1.delayPassedIn.anytrue,P1.delayPassedIn.numtrue,P1.firingSumIn.fire[1],P1.firingSumIn.arcWeight[1],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,P1.enableIn.TAein[1],P1.enableIn.active[1],P1.enableIn.TEin_[1],P1.enableIn.state128[1],P1.enableIn.state128[2],P1.enableIn.state128[3],P1.enableIn.state128[4],P1.enableIn.TEin[1],P1.enableIn.remTAin[1],P1.enableIn.cumEnablingProb[1],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,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,T2.firingTime,T2.fireTime,T2.eventPassed,T2.ani,T2.eventIndex,T2.activation.tIntOut[1],T2.activation.arcWeightIntOut[1],T2.activation.maxTokensInt[1],T2.activation.active,T1.putFireTime,T1.putEvent,T1.state128[1],T1.state128[2],T1.state128[3],T1.state128[4],T1.r128,T1.fireTime,T1.eventPassed,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.TimeOver,T1.active) * Number of discrete states: 114 (P1.firingSumOut.firingSum,P1.firingSumIn.firingSum,P2.firingSumOut.firingSum,P2.firingSumIn.firingSum,T1.putFireTime,T1.putEvent,T1.state128[4],T1.state128[3],T1.state128[2],T1.state128[1],T1.r128,$whenCondition6,T1.TimeOver,T2.eventIndex,$whenCondition5,P2.t,P1.t,P1.tokeninout,T1.tokenChange.numtrue,T1.tokenChange.anytrue,T1.activation.active,T1.eventPassed,P2.delayPassedIn.numtrue,P2.delayPassedIn.anytrue,T2.activation.active,T2.eventPassed,P1.delayPassedIn.numtrue,P1.delayPassedIn.anytrue,P1.enableIn.TEin_[1],P1.enableIn.valid,P1.enableIn.benefitLimit,P1.enableIn.benefitMax,P1.enableIn.posTE,P1.enableIn.k,P1.enableIn.endWhile,P1.enableIn.state128[4],P1.enableIn.state128[3],P1.enableIn.state128[2],P1.enableIn.state128[1],P1.enableIn.randNum,P1.enableIn.cumEnablingProb[1],P1.enableIn.sumEnablingProbTAin,P1.enableIn.nTAin,P1.enableIn.nremTAin,P1.enableIn.remTAin[1],P1.enableIn.Index,$whenCondition3,P1.enableIn.arcWeightSum,P1.enableIn.TEin[1],P1.delayPassedOut.numtrue,P1.delayPassedOut.anytrue,P1.activeConOut.anychange,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,$whenCondition2,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,$whenCondition4,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,$whenCondition1,P2.enableOut.arcWeightSum,P2.delayPassedOut.numtrue,P2.delayPassedOut.anytrue,P2.activeConOut.anychange) * Top-level inputs: 0 Notification: Strong component statistics for simulation (82): * Single equations (assignments): 55 * Array equations: 1 * Algorithm blocks: 19 * Record equations: 0 * When equations: 7 * 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.001236/0.5175, allocations: 0.6641 MB / 0.6042 GB, free: 15.47 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.005551/0.523, allocations: 4.732 MB / 0.6088 GB, free: 10.45 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.281e-06/0.5231, allocations: 4 kB / 0.6088 GB, free: 10.45 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006233/0.5293, allocations: 7.38 MB / 0.616 GB, free: 2.836 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008603/0.5302, allocations: 175.1 kB / 0.6162 GB, free: 2.668 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005151/0.5353, allocations: 3.129 MB / 0.6192 GB, free: 15.5 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008454/0.5362, allocations: 1.302 MB / 0.6205 GB, free: 14.16 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0008621/0.5371, allocations: 353.8 kB / 0.6208 GB, free: 13.82 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001687/0.5373, allocations: 87.42 kB / 0.6209 GB, free: 13.73 MB / 442.7 MB Notification: Performance of SimCode: time 6.91e-07/0.5373, allocations: 3.938 kB / 0.6209 GB, free: 13.73 MB / 442.7 MB Notification: Performance of Templates: time 0.04231/0.5796, allocations: 26.72 MB / 0.647 GB, free: 2.715 MB / 458.7 MB make -j1 -f PNlib_PNlib.Examples.ExtTest.TESTest.makefile (rm -f PNlib_PNlib.Examples.ExtTest.TESTest.pipe ; mkfifo PNlib_PNlib.Examples.ExtTest.TESTest.pipe ; head -c 1048576 < PNlib_PNlib.Examples.ExtTest.TESTest.pipe >> ../files/PNlib_PNlib.Examples.ExtTest.TESTest.sim & ./PNlib_PNlib.Examples.ExtTest.TESTest -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PNlib_PNlib.Examples.ExtTest.TESTest.pipe 2>&1) diffSimulationResults("PNlib_PNlib.Examples.ExtTest.TESTest_res.mat","/mnt/ReferenceFiles/PNlib/ReferenceFiles/PNlib.Examples.ExtTest.TESTest.mat","../files/PNlib_PNlib.Examples.ExtTest.TESTest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches