Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PNlib_PNlib.Examples.DisTest.TFDoutCap.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.DisTest.TFDoutCap,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="P1.t|P2.t|T1.activeIn|T1.activeOut|T1.fire|T1.fireIn|T1.fireOut|T2.active|T2.fire|T3.active|T3.fire|time",fileNamePrefix="PNlib_PNlib.Examples.DisTest.TFDoutCap") translateModel(PNlib.Examples.DisTest.TFDoutCap,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="P1.t|P2.t|T1.activeIn|T1.activeOut|T1.fire|T1.fireIn|T1.fireOut|T2.active|T2.fire|T3.active|T3.fire|time",fileNamePrefix="PNlib_PNlib.Examples.DisTest.TFDoutCap") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002085/0.002085, allocations: 181 kB / 7.454 MB, free: 2.508 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9625/0.9625, allocations: 205.2 MB / 213.1 MB, free: 13.86 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.0008351/0.0008351, allocations: 107.9 kB / 261.1 MB, free: 13.55 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 2.2.0-master/package.mo): time 0.06325/0.06325, allocations: 16.72 MB / 325.7 MB, free: 12.76 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 5.831e-06/5.861e-06, allocations: 4 kB / 383.5 MB, free: 71.25 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06371/0.06373, allocations: 51.68 MB / 435.1 MB, free: 19.57 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1928/0.2565, allocations: 80.65 MB / 0.5037 GB, free: 9.723 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001609/0.2567, allocations: 68.5 kB / 0.5038 GB, free: 9.723 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.06363/0.3204, allocations: 28.99 MB / 0.5321 GB, free: 8.312 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.465e-05/0.3204, allocations: 32 kB / 0.5321 GB, free: 8.281 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 506 * Number of variables: 506 Notification: Performance of Generate backend data structure: time 0.003016/0.3235, allocations: 2.557 MB / 0.5346 GB, free: 5.797 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.089e-05/0.3235, allocations: 8.031 kB / 0.5346 GB, free: 5.789 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000785/0.3243, allocations: 285.6 kB / 0.5349 GB, free: 5.508 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00176/0.3261, allocations: 1.057 MB / 0.5359 GB, free: 4.688 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002066/0.3263, allocations: 228.2 kB / 0.5361 GB, free: 4.445 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003548/0.3266, allocations: 179.6 kB / 0.5363 GB, free: 4.273 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003836/0.3305, allocations: 2.854 MB / 0.5391 GB, free: 2.402 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005047/0.3355, allocations: 3.93 MB / 0.5429 GB, free: 15.4 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.18e-05/0.3356, allocations: 7.938 kB / 0.5429 GB, free: 15.39 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002661/0.3359, allocations: 54.75 kB / 0.543 GB, free: 15.35 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001806/0.336, allocations: 151.5 kB / 0.5431 GB, free: 15.21 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009687/0.3457, allocations: 8.573 MB / 0.5515 GB, free: 7.48 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004163/0.3499, allocations: 4.625 MB / 0.556 GB, free: 2.84 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00384/0.3538, allocations: 4.415 MB / 0.5603 GB, free: 14.42 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001219/0.3539, allocations: 89.89 kB / 0.5604 GB, free: 14.31 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003284/0.3572, allocations: 2.623 MB / 0.563 GB, free: 11.62 MB / 378.7 MB Notification: Performance of pre-optimization done (n=202): time 2.725e-06/0.3572, allocations: 0 / 0.563 GB, free: 11.62 MB / 378.7 MB Notification: Performance of matching and sorting (n=202): time 0.005837/0.3631, allocations: 3.703 MB / 0.5666 GB, free: 7.91 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0007402/0.3638, allocations: 1.368 MB / 0.5679 GB, free: 6.305 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000778/0.3646, allocations: 0.7554 MB / 0.5687 GB, free: 5.543 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001793/0.3648, allocations: 97.67 kB / 0.5688 GB, free: 5.441 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003941/0.3652, allocations: 0.6272 MB / 0.5694 GB, free: 4.82 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004079/0.3656, allocations: 485.9 kB / 0.5698 GB, free: 4.352 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001051/0.3657, allocations: 15.98 kB / 0.5699 GB, free: 4.336 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002229/0.3659, allocations: 461.5 kB / 0.5703 GB, free: 3.875 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001515/0.3675, allocations: 1.095 MB / 0.5714 GB, free: 2.777 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002208/0.3697, allocations: 2.105 MB / 0.5734 GB, free: 216 kB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00163/0.3713, allocations: 1.17 MB / 0.5746 GB, free: 15.04 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.387e-05/0.3713, allocations: 8 kB / 0.5746 GB, free: 15.03 MB / 394.7 MB Notification: Performance of matching and sorting (n=411) (initialization): time 0.004352/0.3757, allocations: 3.094 MB / 0.5776 GB, free: 11.93 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.315e-05/0.3757, allocations: 8 kB / 0.5776 GB, free: 11.92 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.008e-05/0.3758, allocations: 32.84 kB / 0.5776 GB, free: 11.89 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.678e-05/0.3758, allocations: 55.98 kB / 0.5777 GB, free: 11.83 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009663/0.3768, allocations: 359.2 kB / 0.578 GB, free: 11.48 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.537e-05/0.3768, allocations: 67.72 kB / 0.5781 GB, free: 11.41 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001145/0.378, allocations: 261.8 kB / 0.5783 GB, free: 11.16 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002254/0.3782, allocations: 152 kB / 0.5785 GB, free: 11.01 MB / 394.7 MB Warning: Assuming fixed start value for the following 54 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 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 P2.enableOut.benefitMax:DISCRETE(fixed = false protected = true ) "theoretical benefit" type: Real P2.enableOut.posTE:DISCRETE(fixed = false protected = true ) "possible enabled transition" type: Integer P2.enableOut.k:DISCRETE(fixed = false protected = true ) "iteration index" type: Integer P2.enableOut.endWhile:DISCRETE(fixed = false protected = true ) type: Boolean P2.enableOut.sumEnablingProbTAout:DISCRETE(fixed = false protected = true ) "sum of the enabling probabilities of the active output transitions" type: Real P2.enableOut.nTAout:DISCRETE(fixed = false protected = true ) "number of active output transitions" type: Integer P2.enableOut.nremTAout:DISCRETE(fixed = false protected = true ) "number of remaining active output transitions" type: Integer P2.enableOut.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 T3.ani:DISCRETE(fixed = false protected = true ) "for transition animation" type: Boolean T3.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 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.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 T3.firingTime:DISCRETE(fixed = false protected = true ) "next putative firing time" type: Real T2.firingTime:DISCRETE(fixed = false protected = true ) "next putative firing time" type: Real T1.firingTimeOut:DISCRETE(fixed = false protected = true ) "next putative firing time" type: Real T1.firingTimeIn: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: 142 * Number of states: 0 () * Number of discrete variables: 331 ($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.P2.enableOut.valid,P2.enableOut.valid,$PRE.P2.enableOut.benefitLimit,P2.enableOut.benefitLimit,$PRE.P2.enableOut.benefitMax,P2.enableOut.benefitMax,$PRE.P2.enableOut.posTE,P2.enableOut.posTE,$PRE.P2.enableOut.k,P2.enableOut.k,$PRE.P2.enableOut.endWhile,P2.enableOut.endWhile,$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.cumEnablingProb[1],P2.enableOut.cumEnablingProb[1],$PRE.P2.enableOut.sumEnablingProbTAout,P2.enableOut.sumEnablingProbTAout,$PRE.P2.enableOut.nTAout,P2.enableOut.nTAout,$PRE.P2.enableOut.nremTAout,P2.enableOut.nremTAout,$PRE.P2.enableOut.remTAout[1],P2.enableOut.remTAout[1],$PRE.P2.enableOut.Index,P2.enableOut.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,$whenCondition20,$PRE.P1.reStart,$whenCondition17,$PRE.P2.reStart,$PRE.T3.fireTime,T3.fireTime,$PRE.T3.ani,T3.ani,$whenCondition6,$PRE.T3.eventIndex,T3.eventIndex,$PRE.T2.fireTime,T2.fireTime,$PRE.T2.ani,T2.ani,$whenCondition5,$PRE.T2.eventIndex,T2.eventIndex,$PRE.T1.fireTime,T1.fireTime,$PRE.T1.ani,T1.ani,$whenCondition16,$whenCondition15,P2.tokeninout,$PRE.P2.firingSumIn.firingSum,$PRE.P2.firingSumOut.firingSum,$PRE.P2.tokeninout,P2.outTransition[1].tokenInOut,$whenCondition19,$whenCondition18,P1.tokeninout,$PRE.P1.firingSumIn.firingSum,$PRE.P1.firingSumOut.firingSum,$PRE.P1.tokeninout,P1.outTransition[1].tokenInOut,P2.outTransition[1].testValueint,P2.outTransition[1].normalArc,T3.inPlaces[1].disTransition,P2.outTransition[1].disPlace,P2.outTransition[1].arcType,T1.outPlaces[1].enabledByInPlaces,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,T2.enabledByInPlaces,T2.outPlaces[1].disTransition,P1.inTransition[1].disPlace,T3.firingCon,T2.firingCon,T1.firingCon,P2.enableIn.enablingPrio[1],P2.enableOut.enablingPrio[1],P2.reStart,P1.enableIn.enablingPrio[1],P1.enableOut.enablingPrio[1],P1.reStart,P2.enableIn.disTransition[1],P1.enableIn.disTransition[1],$whenCondition14,$whenCondition13,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$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.activeOut[1],P2.activeConOut.anychange,P2.delayPassedOut.vec[1],P2.delayPassedOut.anytrue,P2.delayPassedOut.numtrue,P2.delayPassedIn.vec[1],P2.delayPassedIn.anytrue,P2.delayPassedIn.numtrue,P2.firingSumIn.fire[1],P2.firingSumIn.arcWeight[1],P2.firingSumIn.firingSum,P2.firingSumOut.fire[1],P2.firingSumOut.arcWeight[1],P2.firingSumOut.firingSum,P2.enableOut.TAout[1],P2.enableOut.TEout_[1],$PRE.P2.enableOut.TEout[1],P2.enableOut.TEout[1],$PRE.P2.enableOut.arcWeightSum,P2.enableOut.arcWeightSum,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.firingTimeIn,T1.firingTimeIn,$PRE.T1.firingTimeOut,T1.firingTimeOut,$PRE.T1.durationPassedIn,T1.durationPassedIn,$PRE.T1.durationPassedOut,T1.durationPassedOut,T1.prefire,T1.activationIn.tIntIn[1],T1.activationIn.arcWeightIntIn[1],T1.activationIn.minTokensInt[1],T1.activationIn.active,T1.activationOut.tIntOut[1],T1.activationOut.arcWeightIntOut[1],T1.activationOut.maxTokensInt[1],T1.activationOut.active,T1.activeIn,T1.activeOut,$PRE.T1.fire,T1.fire,$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.T3.firingTime,T3.firingTime,$PRE.T3.eventPassed,T3.eventPassed,T3.activation.tIntIn[1],T3.activation.arcWeightIntIn[1],T3.activation.minTokensInt[1],T3.activation.active,T3.active,T2.activation.disPlaceOut[1],T1.activationIn.arcType[1],T1.activationIn.disPlaceIn[1],P1.enableOut.disTransition[1],T1.activationIn.normalArc[1],T1.activationIn.testValueInt[1],T1.activationOut.disPlaceOut[1],T3.activation.arcType[1],T3.activation.disPlaceIn[1],P2.enableOut.disTransition[1],T3.activation.normalArc[1],T3.activation.testValueInt[1],P2.enableOut.arcWeight[1],P1.enableIn.arcWeight[1],P2.enableIn.arcWeight[1],P1.enableOut.arcWeight[1],P2.activeConOut.vec[1],P1.activeConOut.vec[1],P2.outTransition[1].fed,P2.inTransition[1].emptied,P1.outTransition[1].fed,P1.inTransition[1].emptied,T3.enabledByOutPlaces) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (374): * Single equations (assignments): 348 * Array equations: 2 * 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.001426/0.3797, allocations: 1.408 MB / 0.5799 GB, free: 9.484 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003195/0.38, allocations: 198.4 kB / 0.58 GB, free: 9.289 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005918/0.3859, allocations: 3.967 MB / 0.5839 GB, free: 5.312 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.129e-05/0.386, allocations: 16 kB / 0.5839 GB, free: 5.297 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.129e-06/0.386, allocations: 3.938 kB / 0.5839 GB, free: 5.293 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.144e-05/0.386, allocations: 7.969 kB / 0.5839 GB, free: 5.285 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00968/0.3957, allocations: 6.576 MB / 0.5904 GB, free: 14.7 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.446e-06/0.3957, allocations: 0 / 0.5904 GB, free: 14.7 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002904/0.396, allocations: 83.83 kB / 0.5905 GB, free: 14.62 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.965e-06/0.396, allocations: 4 kB / 0.5905 GB, free: 14.61 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002594/0.3963, allocations: 111.4 kB / 0.5906 GB, free: 14.51 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.559e-06/0.3963, allocations: 4 kB / 0.5906 GB, free: 14.5 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.3963, allocations: 4 kB / 0.5906 GB, free: 14.5 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006081/0.4024, allocations: 4.191 MB / 0.5947 GB, free: 10.29 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001369/0.4025, allocations: 195.4 kB / 0.5948 GB, free: 10.07 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005317/0.4031, allocations: 175.9 kB / 0.595 GB, free: 9.902 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001232/0.4043, allocations: 219.8 kB / 0.5952 GB, free: 9.688 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001143/0.4055, allocations: 0.8161 MB / 0.596 GB, free: 8.875 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003071/0.4058, allocations: 155.9 kB / 0.5962 GB, free: 8.723 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0004028/0.4062, allocations: 411.1 kB / 0.5966 GB, free: 8.324 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00202/0.4082, allocations: 0.7488 MB / 0.5973 GB, free: 7.578 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 178 (P1.activeOut[1],T1.activeIn,T2.active,P2.activeOut[1],T3.active,T1.activeOut,$whenCondition19,$whenCondition18,$whenCondition20,$whenCondition16,$whenCondition15,$whenCondition17,$whenCondition14,$whenCondition13,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition1,$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,P1.outTransition[1].tokenInOut,P2.t,P2.tokeninout,P2.activeConOut.anychange,P2.delayPassedOut.vec[1],P2.delayPassedOut.anytrue,P2.delayPassedOut.numtrue,P2.delayPassedIn.vec[1],P2.delayPassedIn.anytrue,P2.delayPassedIn.numtrue,P2.firingSumIn.fire[1],P2.firingSumIn.arcWeight[1],P2.firingSumIn.firingSum,P2.firingSumOut.fire[1],P2.firingSumOut.arcWeight[1],P2.firingSumOut.firingSum,P2.enableOut.TAout[1],P2.enableOut.TEout_[1],P2.enableOut.state128[1],P2.enableOut.state128[2],P2.enableOut.state128[3],P2.enableOut.state128[4],P2.enableOut.TEout[1],P2.enableOut.remTAout[1],P2.enableOut.cumEnablingProb[1],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,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,P2.outTransition[1].tokenInOut,T1.firingTimeIn,T1.firingTimeOut,T1.fireTime,T1.durationPassedIn,T1.durationPassedOut,T1.ani,T1.prefire,T1.activationIn.tIntIn[1],T1.activationIn.arcWeightIntIn[1],T1.activationIn.minTokensInt[1],T1.activationIn.active,T1.activationOut.tIntOut[1],T1.activationOut.arcWeightIntOut[1],T1.activationOut.maxTokensInt[1],T1.activationOut.active,T1.fire,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,T3.firingTime,T3.fireTime,T3.eventPassed,T3.ani,T3.eventIndex,T3.activation.tIntIn[1],T3.activation.arcWeightIntIn[1],T3.activation.minTokensInt[1],T3.activation.active) * Number of discrete states: 115 (P1.firingSumOut.firingSum,P1.firingSumIn.firingSum,P2.firingSumOut.firingSum,P2.firingSumIn.firingSum,T3.eventIndex,$whenCondition6,T2.eventIndex,$whenCondition5,T1.fire,P2.t,P2.tokeninout,T1.activationOut.active,T1.durationPassedOut,T3.activation.active,T3.eventPassed,P2.delayPassedOut.numtrue,P2.delayPassedOut.anytrue,P2.activeConOut.anychange,P2.enableOut.TEout_[1],P2.enableOut.valid,P2.enableOut.benefitLimit,P2.enableOut.benefitMax,P2.enableOut.posTE,P2.enableOut.k,P2.enableOut.endWhile,P2.enableOut.state128[4],P2.enableOut.state128[3],P2.enableOut.state128[2],P2.enableOut.state128[1],P2.enableOut.randNum,P2.enableOut.cumEnablingProb[1],P2.enableOut.sumEnablingProbTAout,P2.enableOut.nTAout,P2.enableOut.nremTAout,P2.enableOut.remTAout[1],P2.enableOut.Index,$whenCondition3,P2.enableOut.arcWeightSum,P2.enableOut.TEout[1],P1.t,P1.tokeninout,T2.activation.active,T2.eventPassed,T1.activationIn.active,T1.durationPassedIn,P2.delayPassedIn.numtrue,P2.delayPassedIn.anytrue,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],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,$whenCondition2,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,$whenCondition1,P1.enableOut.arcWeightSum,P1.enableOut.TEout[1]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (111): * Single equations (assignments): 76 * Array equations: 2 * Algorithm blocks: 20 * Record equations: 0 * When equations: 13 * 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.001116/0.4093, allocations: 0.6536 MB / 0.5979 GB, free: 6.941 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00541/0.4148, allocations: 4.634 MB / 0.6025 GB, free: 2.164 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.4148, allocations: 6.5 kB / 0.6025 GB, free: 2.16 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0065/0.4213, allocations: 8.551 MB / 0.6108 GB, free: 9.488 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005795/0.4219, allocations: 135 kB / 0.6109 GB, free: 9.359 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006032/0.4279, allocations: 3.932 MB / 0.6148 GB, free: 5.387 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001173/0.4291, allocations: 1.578 MB / 0.6163 GB, free: 3.773 MB / 426.7 MB Notification: Performance of SimCode: time 2.91e-07/0.4291, allocations: 3.938 kB / 0.6163 GB, free: 3.77 MB / 426.7 MB Notification: Performance of Templates: time 0.04365/0.4728, allocations: 34.12 MB / 0.6496 GB, free: 1.262 MB / 458.7 MB make -j1 -f PNlib_PNlib.Examples.DisTest.TFDoutCap.makefile (rm -f PNlib_PNlib.Examples.DisTest.TFDoutCap.pipe ; mkfifo PNlib_PNlib.Examples.DisTest.TFDoutCap.pipe ; head -c 1048576 < PNlib_PNlib.Examples.DisTest.TFDoutCap.pipe >> ../files/PNlib_PNlib.Examples.DisTest.TFDoutCap.sim & ./PNlib_PNlib.Examples.DisTest.TFDoutCap -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PNlib_PNlib.Examples.DisTest.TFDoutCap.pipe 2>&1) diffSimulationResults("PNlib_PNlib.Examples.DisTest.TFDoutCap_res.mat","/mnt/ReferenceFiles/PNlib/ReferenceFiles/PNlib.Examples.DisTest.TFDoutCap.mat","../files/PNlib_PNlib.Examples.DisTest.TFDoutCap.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches