Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PNlib_PNlib.Examples.ExtTest.TDSdiscrete.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.TDSdiscrete,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="P1.t|P2.t|T1.active|T1.fire|T1.putFireTime|time",fileNamePrefix="PNlib_PNlib.Examples.ExtTest.TDSdiscrete") translateModel(PNlib.Examples.ExtTest.TDSdiscrete,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="P1.t|P2.t|T1.active|T1.fire|T1.putFireTime|time",fileNamePrefix="PNlib_PNlib.Examples.ExtTest.TDSdiscrete") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00612/0.00612, allocations: 170.8 kB / 15.11 MB, free: 5.984 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.525/1.525, allocations: 205.4 MB / 221.3 MB, free: 13.84 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.000836/0.0008358, allocations: 94.86 kB / 269.6 MB, free: 13.37 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 2.2.0-master/package.mo): time 0.06394/0.06394, allocations: 16.89 MB / 334.7 MB, free: 6.008 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003088/0.0003088, allocations: 8.875 kB / 396.9 MB, free: 46.32 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1029/0.1032, allocations: 51.69 MB / 448.6 MB, free: 392 kB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3314/0.4347, allocations: 83.32 MB / 0.5195 GB, free: 80.18 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002434/0.435, allocations: 70.36 kB / 0.5195 GB, free: 80.18 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06853/0.5035, allocations: 26.77 MB / 0.5457 GB, free: 64.13 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.394e-06/0.5035, allocations: 0 / 0.5457 GB, free: 64.13 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.624e-05/0.5036, allocations: 20 kB / 0.5457 GB, free: 64.11 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: 306 * Number of variables: 306 Notification: Performance of Generate backend data structure: time 0.003423/0.507, allocations: 2.102 MB / 0.5477 GB, free: 61.82 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.173e-05/0.5071, allocations: 8.031 kB / 0.5478 GB, free: 61.81 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008585/0.508, allocations: 226.5 kB / 0.548 GB, free: 61.59 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001248/0.5092, allocations: 0.7092 MB / 0.5487 GB, free: 60.84 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001289/0.5094, allocations: 161.4 kB / 0.5488 GB, free: 60.67 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002086/0.5096, allocations: 144 kB / 0.549 GB, free: 60.53 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003203/0.5128, allocations: 2.399 MB / 0.5513 GB, free: 57.97 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.322e-05/0.5128, allocations: 3.938 kB / 0.5513 GB, free: 57.96 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001722/0.513, allocations: 75.97 kB / 0.5514 GB, free: 57.89 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001146/0.5131, allocations: 73.94 kB / 0.5514 GB, free: 57.82 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002304/0.5154, allocations: 1.596 MB / 0.553 GB, free: 56.22 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005382/0.5208, allocations: 5.352 MB / 0.5582 GB, free: 50.7 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002385/0.5233, allocations: 2.659 MB / 0.5608 GB, free: 48.01 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000105/0.5234, allocations: 89.53 kB / 0.5609 GB, free: 47.91 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001992/0.5254, allocations: 1.656 MB / 0.5625 GB, free: 46.19 MB / 362.7 MB Notification: Performance of pre-optimization done (n=147): time 2.585e-06/0.5254, allocations: 4 kB / 0.5625 GB, free: 46.18 MB / 362.7 MB Notification: Performance of matching and sorting (n=147): time 0.005415/0.5308, allocations: 4.87 MB / 0.5673 GB, free: 41.02 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003658/0.5312, allocations: 1.112 MB / 0.5684 GB, free: 39.7 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006941/0.5319, allocations: 0.6066 MB / 0.569 GB, free: 39.09 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001954/0.5321, allocations: 105.7 kB / 0.5691 GB, free: 38.98 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002665/0.5324, allocations: 428.4 kB / 0.5695 GB, free: 38.55 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002708/0.5327, allocations: 352 kB / 0.5698 GB, free: 38.2 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.424e-05/0.5328, allocations: 40 kB / 0.5698 GB, free: 38.16 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001646/0.533, allocations: 431.2 kB / 0.5703 GB, free: 37.73 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001038/0.534, allocations: 0.7498 MB / 0.571 GB, free: 36.98 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001274/0.5353, allocations: 1.436 MB / 0.5724 GB, free: 35.23 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001312/0.5366, allocations: 1.523 MB / 0.5739 GB, free: 33.58 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.615e-05/0.5366, allocations: 4 kB / 0.5739 GB, free: 33.57 MB / 362.7 MB Notification: Performance of matching and sorting (n=286) (initialization): time 0.00367/0.5403, allocations: 3.311 MB / 0.5771 GB, free: 30.12 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002522/0.5406, allocations: 0.6927 MB / 0.5778 GB, free: 29.29 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.433e-05/0.5406, allocations: 24.12 kB / 0.5778 GB, free: 29.27 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.221e-05/0.5407, allocations: 36 kB / 0.5779 GB, free: 29.23 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005863/0.5413, allocations: 227.4 kB / 0.5781 GB, free: 29.01 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.156e-05/0.5413, allocations: 43.86 kB / 0.5781 GB, free: 28.96 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009437/0.5423, allocations: 210.5 kB / 0.5783 GB, free: 28.76 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001561/0.5424, allocations: 112 kB / 0.5784 GB, free: 28.65 MB / 362.7 MB Warning: Assuming fixed start value for the following 47 variables: P1.enableOut.valid:DISCRETE(fixed = true protected = true ) "valid solution" type: Boolean P1.enableOut.benefitLimit:DISCRETE(fixed = true protected = true ) "best valid benefit" type: Real P1.enableOut.benefitMax:DISCRETE(fixed = true protected = true ) "theoretical benefit" type: Real P1.enableOut.posTE:DISCRETE(fixed = true protected = true ) "possible enabled transition" type: Integer P1.enableOut.k:DISCRETE(fixed = true protected = true ) "iteration index" type: Integer P1.enableOut.endWhile:DISCRETE(fixed = true protected = true ) type: Boolean P1.enableOut.sumEnablingProbTAout:DISCRETE(fixed = true protected = true ) "sum of the enabling probabilities of the active output transitions" type: Real P1.enableOut.nTAout:DISCRETE(fixed = true protected = true ) "number of active output transitions" type: Integer P1.enableOut.nremTAout:DISCRETE(fixed = true protected = true ) "number of remaining active output transitions" type: Integer P1.enableOut.Index:DISCRETE(fixed = true protected = true ) "priority Index" type: Integer P2.enableIn.valid:DISCRETE(fixed = true protected = true ) "valid solution" type: Boolean P2.enableIn.benefitLimit:DISCRETE(fixed = true protected = true ) "best valid benefit" type: Real P2.enableIn.benefitMax:DISCRETE(fixed = true protected = true ) "theoretical benefit" type: Real P2.enableIn.posTE:DISCRETE(fixed = true protected = true ) "possible enabled transition" type: Integer P2.enableIn.k:DISCRETE(fixed = true protected = true ) "iteration index" type: Integer P2.enableIn.endWhile:DISCRETE(fixed = true protected = true ) type: Boolean P2.enableIn.sumEnablingProbTAin:DISCRETE(fixed = true protected = true ) "sum of the enabling probabilities of the active input transitions" type: Real P2.enableIn.nTAin:DISCRETE(fixed = true protected = true ) "number ofactive input transitions" type: Integer P2.enableIn.nremTAin:DISCRETE(fixed = true protected = true ) "number of remaining active input transitions" type: Integer P2.enableIn.Index:DISCRETE(fixed = true protected = true ) "priority Index" type: Integer P1.firingSumIn.firingSum:DISCRETE(fixed = true protected = true ) "firing sum" type: Integer P1.firingSumOut.firingSum:DISCRETE(fixed = true protected = true ) "firing sum" type: Integer P2.firingSumIn.firingSum:DISCRETE(fixed = true protected = true ) "firing sum" type: Integer P2.firingSumOut.firingSum:DISCRETE(fixed = true protected = true ) "firing sum" type: Integer T1.ani:DISCRETE(fixed = true protected = true ) "for transition animation" type: Boolean T1.fireTime:DISCRETE(fixed = true protected = true ) "for transition animation" type: Real P2.enableOut.nremTAout:DISCRETE(fixed = true protected = true ) "number of remaining active output transitions" type: Integer P2.enableOut.nTAout:DISCRETE(fixed = true protected = true ) "number of active output transitions" type: Integer P2.enableOut.k:DISCRETE(fixed = true protected = true ) "iteration index" type: Integer P2.enableOut.posTE:DISCRETE(fixed = true protected = true ) "possible enabled transition" type: Integer P2.enableOut.sumEnablingProbTAout:DISCRETE(fixed = true protected = true ) "sum of the enabling probabilities of the active output transitions" type: Real P2.enableOut.endWhile:DISCRETE(fixed = true protected = true ) type: Boolean P2.enableOut.Index:DISCRETE(fixed = true protected = true ) "priority Index" type: Integer P2.enableOut.benefitMax:DISCRETE(fixed = true protected = true ) "theoretical benefit" type: Real P2.enableOut.valid:DISCRETE(fixed = true protected = true ) "valid solution" type: Boolean P2.enableOut.benefitLimit:DISCRETE(fixed = true protected = true ) "best valid benefit" type: Real P1.enableIn.nremTAin:DISCRETE(fixed = true protected = true ) "number of remaining active input transitions" type: Integer P1.enableIn.nTAin:DISCRETE(fixed = true protected = true ) "number ofactive input transitions" type: Integer P1.enableIn.k:DISCRETE(fixed = true protected = true ) "iteration index" type: Integer P1.enableIn.posTE:DISCRETE(fixed = true protected = true ) "possible enabled transition" type: Integer P1.enableIn.sumEnablingProbTAin:DISCRETE(fixed = true protected = true ) "sum of the enabling probabilities of the active input transitions" type: Real P1.enableIn.endWhile:DISCRETE(fixed = true protected = true ) type: Boolean P1.enableIn.Index:DISCRETE(fixed = true protected = true ) "priority Index" type: Integer P1.enableIn.benefitMax:DISCRETE(fixed = true protected = true ) "theoretical benefit" type: Real P1.enableIn.valid:DISCRETE(fixed = true protected = true ) "valid solution" type: Boolean P1.enableIn.benefitLimit:DISCRETE(fixed = true protected = true ) "best valid benefit" type: Real T1.fire:DISCRETE(fixed = true ) "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 () * Number of clocked 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.001659/0.5441, allocations: 1.382 MB / 0.5798 GB, free: 27.14 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002744/0.5444, allocations: 138.9 kB / 0.5799 GB, free: 27.01 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003693/0.5481, allocations: 2.888 MB / 0.5827 GB, free: 24.04 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.829e-06/0.5481, allocations: 8 kB / 0.5827 GB, free: 24.03 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.224e-06/0.5482, allocations: 0 / 0.5827 GB, free: 24.03 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.578e-06/0.5482, allocations: 7.984 kB / 0.5827 GB, free: 24.02 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005703/0.5539, allocations: 4.65 MB / 0.5873 GB, free: 19.23 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.16e-06/0.5539, allocations: 0 / 0.5873 GB, free: 19.23 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001755/0.5541, allocations: 43.92 kB / 0.5873 GB, free: 19.19 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.456e-06/0.5541, allocations: 4 kB / 0.5873 GB, free: 19.19 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00018/0.5543, allocations: 87.92 kB / 0.5874 GB, free: 19.1 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.324e-06/0.5543, allocations: 11.95 kB / 0.5874 GB, free: 19.09 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.5543, allocations: 0 / 0.5874 GB, free: 19.09 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004323/0.5587, allocations: 3.614 MB / 0.5909 GB, free: 15.34 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002033/0.5589, allocations: 171.7 kB / 0.5911 GB, free: 15.15 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003813/0.5593, allocations: 159.9 kB / 0.5913 GB, free: 14.99 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007367/0.56, allocations: 123.9 kB / 0.5914 GB, free: 14.87 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005653/0.5606, allocations: 412.1 kB / 0.5918 GB, free: 14.47 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002003/0.5608, allocations: 103.9 kB / 0.5919 GB, free: 14.37 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.000393/0.5612, allocations: 382.8 kB / 0.5922 GB, free: 13.99 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5612, allocations: 0 / 0.5922 GB, free: 13.99 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002007/0.5632, allocations: 0.6322 MB / 0.5929 GB, free: 13.36 MB / 362.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) * Number of clocked states: 0 () * 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.001082/0.5643, allocations: 0.6255 MB / 0.5935 GB, free: 12.73 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.004534/0.5689, allocations: 3.99 MB / 0.5974 GB, free: 8.477 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.517e-06/0.5689, allocations: 0 / 0.5974 GB, free: 8.477 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004086/0.573, allocations: 5.84 MB / 0.6031 GB, free: 2.426 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008298/0.5738, allocations: 146.1 kB / 0.6032 GB, free: 2.285 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004729/0.5786, allocations: 2.993 MB / 0.6061 GB, free: 15.26 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009341/0.5795, allocations: 1.153 MB / 0.6073 GB, free: 14.07 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0007311/0.5803, allocations: 264 kB / 0.6075 GB, free: 13.81 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001917/0.5805, allocations: 71.42 kB / 0.6076 GB, free: 13.74 MB / 378.7 MB Notification: Performance of SimCode: time 4.91e-07/0.5805, allocations: 0 / 0.6076 GB, free: 13.74 MB / 378.7 MB Notification: Performance of Templates: time 0.03707/0.6176, allocations: 21.91 MB / 0.629 GB, free: 7.641 MB / 394.7 MB make -j1 -f PNlib_PNlib.Examples.ExtTest.TDSdiscrete.makefile (rm -f PNlib_PNlib.Examples.ExtTest.TDSdiscrete.pipe ; mkfifo PNlib_PNlib.Examples.ExtTest.TDSdiscrete.pipe ; head -c 1048576 < PNlib_PNlib.Examples.ExtTest.TDSdiscrete.pipe >> ../files/PNlib_PNlib.Examples.ExtTest.TDSdiscrete.sim & ./PNlib_PNlib.Examples.ExtTest.TDSdiscrete -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PNlib_PNlib.Examples.ExtTest.TDSdiscrete.pipe 2>&1) diffSimulationResults("PNlib_PNlib.Examples.ExtTest.TDSdiscrete_res.mat","/mnt/ReferenceFiles/PNlib/ReferenceFiles/PNlib.Examples.ExtTest.TDSdiscrete.mat","../files/PNlib_PNlib.Examples.ExtTest.TDSdiscrete.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches