Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PNlib_PNlib.Examples.ExtTest.TFDStest.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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 Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(PNlib.Examples.ExtTest.TFDStest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="P1.t|P2.t|T1.activeIn|T1.activeOut|T1.fire|T1.fireIn|T1.fireOut|T1.putDuration|time",fileNamePrefix="PNlib_PNlib.Examples.ExtTest.TFDStest") translateModel(PNlib.Examples.ExtTest.TFDStest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="P1.t|P2.t|T1.activeIn|T1.activeOut|T1.fire|T1.fireIn|T1.fireOut|T1.putDuration|time",fileNamePrefix="PNlib_PNlib.Examples.ExtTest.TFDStest") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001022/0.001022, allocations: 99.86 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001017/0.001017, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.247/1.247, allocations: 223.2 MB / 239.9 MB, free: 5.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 2.2.0-master/package.mo): time 0.1784/0.1784, allocations: 16.71 MB / 307.7 MB, free: 15.69 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003114/0.0003116, allocations: 11.94 kB / 372.7 MB, free: 3.512 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2615/0.2619, allocations: 54.46 MB / 427.2 MB, free: 38.18 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.ExtTest.TFDStest): time 0.002051/0.264, allocations: 2.219 MB / 429.4 MB, free: 37.93 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005315/0.2693, allocations: 4.186 MB / 433.6 MB, free: 36.05 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004236/0.2698, allocations: 9.906 kB / 433.6 MB, free: 36.05 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003508/0.2701, allocations: 141.4 kB / 433.7 MB, free: 35.95 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000496/0.2706, allocations: 199.4 kB / 433.9 MB, free: 35.86 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002444/0.2731, allocations: 1.124 MB / 435 MB, free: 35.4 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001397/0.2745, allocations: 1.238 MB / 436.3 MB, free: 34.9 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003283/0.2748, allocations: 243.1 kB / 436.5 MB, free: 34.8 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008531/0.2757, allocations: 0.7388 MB / 437.2 MB, free: 34.54 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005717/0.2763, allocations: 0.5261 MB / 437.8 MB, free: 34.33 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001514/0.2764, allocations: 62.56 kB / 437.8 MB, free: 34.33 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009742/0.2774, allocations: 0.6305 MB / 438.5 MB, free: 34.16 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001976/0.2776, allocations: 214.6 kB / 438.7 MB, free: 34.07 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002851/0.2779, allocations: 306.3 kB / 439 MB, free: 33.92 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001092/0.279, allocations: 1.467 MB / 440.4 MB, free: 33.59 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.615e-06/0.279, allocations: 0 / 440.4 MB, free: 33.59 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.279, allocations: 0 / 440.4 MB, free: 33.59 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.476e-05/0.2791, allocations: 2.75 kB / 440.4 MB, free: 33.59 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 314 * Number of variables: 314 Notification: Performance of Generate backend data structure: time 0.001805/0.2809, allocations: 2.005 MB / 442.4 MB, free: 31.92 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.343e-05/0.2809, allocations: 7.438 kB / 442.4 MB, free: 31.92 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000498/0.2814, allocations: 177.8 kB / 442.6 MB, free: 31.86 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008217/0.2822, allocations: 0.6462 MB / 443.3 MB, free: 31.42 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001217/0.2824, allocations: 158.5 kB / 443.4 MB, free: 31.32 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001685/0.2825, allocations: 143.5 kB / 443.6 MB, free: 31.29 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002821/0.2854, allocations: 2.426 MB / 446 MB, free: 30.2 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.382e-05/0.2854, allocations: 7.25 kB / 446 MB, free: 30.19 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001406/0.2856, allocations: 66.02 kB / 446.1 MB, free: 30.16 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001413/0.2857, allocations: 98.38 kB / 446.2 MB, free: 30.15 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002116/0.2878, allocations: 1.635 MB / 447.8 MB, free: 29.58 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00543/0.2933, allocations: 5.675 MB / 453.5 MB, free: 25.54 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002336/0.2956, allocations: 2.768 MB / 456.2 MB, free: 23.86 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.453e-05/0.2958, allocations: 86.45 kB / 456.3 MB, free: 23.77 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001916/0.2977, allocations: 1.715 MB / 458 MB, free: 23.01 MB / 350.1 MB Notification: Performance of pre-optimization done (n=157): time 2.675e-06/0.2977, allocations: 4 kB / 458 MB, free: 23.01 MB / 350.1 MB Notification: Performance of matching and sorting (n=157): time 0.006439/0.3041, allocations: 5.724 MB / 463.8 MB, free: 19.95 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004216/0.3046, allocations: 1.149 MB / 464.9 MB, free: 18.74 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008422/0.3054, allocations: 0.6695 MB / 465.6 MB, free: 18.41 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001839/0.3056, allocations: 113.2 kB / 465.7 MB, free: 18.34 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002744/0.3059, allocations: 413 kB / 466.1 MB, free: 18.02 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003051/0.3062, allocations: 395.1 kB / 466.5 MB, free: 17.73 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.528e-05/0.3063, allocations: 48.5 kB / 466.5 MB, free: 17.7 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001475/0.3065, allocations: 427.6 kB / 466.9 MB, free: 17.34 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001259/0.3078, allocations: 0.763 MB / 467.7 MB, free: 17.09 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001603/0.3094, allocations: 1.457 MB / 469.2 MB, free: 15.96 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001573/0.311, allocations: 1.562 MB / 470.7 MB, free: 14.83 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.812e-05/0.311, allocations: 9.906 kB / 470.7 MB, free: 14.83 MB / 350.1 MB Notification: Performance of matching and sorting (n=294) (initialization): time 0.004614/0.3156, allocations: 3.438 MB / 474.2 MB, free: 13.06 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003169/0.3159, allocations: 0.7178 MB / 474.9 MB, free: 12.3 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.16e-05/0.316, allocations: 21.5 kB / 474.9 MB, free: 12.3 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.536e-05/0.3161, allocations: 34.31 kB / 474.9 MB, free: 12.3 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006494/0.3167, allocations: 228.8 kB / 475.2 MB, free: 12.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.386e-05/0.3168, allocations: 49.72 kB / 475.2 MB, free: 12.24 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009973/0.3178, allocations: 242.6 kB / 475.5 MB, free: 12.11 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001764/0.318, allocations: 105.9 kB / 475.6 MB, free: 12.09 MB / 350.1 MB Warning: Assuming fixed start value for the following 49 variables: 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.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 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.firingSumIn.firingSum:DISCRETE(fixed = true protected = true ) "firing sum" type: Integer P2.firingSumOut.firingSum:DISCRETE(fixed = true protected = true ) "firing sum" 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 T1.fireOut:DISCRETE(fixed = true ) "Does the transition Output fire?" type: Boolean P2.enableOut.benefitLimit:DISCRETE(fixed = true protected = true ) "best valid benefit" type: Real P2.enableOut.valid:DISCRETE(fixed = true protected = true ) "valid solution" type: Boolean P2.enableOut.benefitMax:DISCRETE(fixed = true protected = true ) "theoretical benefit" type: Real P2.enableOut.Index:DISCRETE(fixed = true protected = true ) "priority Index" type: Integer P2.enableOut.endWhile:DISCRETE(fixed = true protected = true ) type: Boolean P2.enableOut.sumEnablingProbTAout:DISCRETE(fixed = true protected = true ) "sum of the enabling probabilities of the active output transitions" type: Real P2.enableOut.posTE:DISCRETE(fixed = true protected = true ) "possible enabled transition" type: Integer P2.enableOut.k:DISCRETE(fixed = true protected = true ) "iteration index" type: Integer P2.enableOut.nTAout:DISCRETE(fixed = true protected = true ) "number of active output transitions" type: Integer P2.enableOut.nremTAout:DISCRETE(fixed = true protected = true ) "number of remaining active output transitions" type: Integer P1.enableIn.benefitLimit:DISCRETE(fixed = true protected = true ) "best valid benefit" type: Real P1.enableIn.valid:DISCRETE(fixed = true protected = true ) "valid solution" type: Boolean P1.enableIn.benefitMax:DISCRETE(fixed = true protected = true ) "theoretical benefit" type: Real P1.enableIn.Index:DISCRETE(fixed = true protected = true ) "priority Index" type: Integer P1.enableIn.endWhile:DISCRETE(fixed = true protected = true ) type: Boolean P1.enableIn.sumEnablingProbTAin:DISCRETE(fixed = true protected = true ) "sum of the enabling probabilities of the active input transitions" type: Real P1.enableIn.posTE:DISCRETE(fixed = true protected = true ) "possible enabled transition" type: Integer P1.enableIn.k:DISCRETE(fixed = true protected = true ) "iteration index" type: Integer P1.enableIn.nTAin:DISCRETE(fixed = true protected = true ) "number ofactive input transitions" type: Integer P1.enableIn.nremTAin:DISCRETE(fixed = true protected = true ) "number of remaining active input transitions" type: Integer T1.firingTimeOut:DISCRETE(fixed = true protected = true ) "next putative firing time" type: Real T1.firingTimeIn:DISCRETE(fixed = true protected = true ) "next putative firing time" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 93 * Number of states: 0 () * Number of discrete variables: 260 ($PRE.T1.putDuration,T1.putDuration,$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.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.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,$whenCondition11,$whenCondition10,P2.tokeninout,$PRE.P2.firingSumIn.firingSum,$PRE.P2.firingSumOut.firingSum,$whenCondition14,$whenCondition13,P1.tokeninout,$PRE.P1.firingSumIn.firingSum,$PRE.P1.firingSumOut.firingSum,$whenCondition5,$PRE.T1.fireOut,$PRE.P1.tokeninout,T1.tokenChange.vec[1],T1.tokenChange.anytrue,T1.tokenChange.numtrue,P2.firingSumOut.firingSum,P1.firingSumIn.firingSum,$PRE.P2.enableOut.benefitLimit,P2.enableOut.benefitLimit,$PRE.P2.enableOut.valid,P2.enableOut.valid,$PRE.P2.enableOut.benefitMax,P2.enableOut.benefitMax,$PRE.P2.enableOut.Index,P2.enableOut.Index,$PRE.P2.enableOut.endWhile,P2.enableOut.endWhile,$PRE.P2.enableOut.sumEnablingProbTAout,P2.enableOut.sumEnablingProbTAout,$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.posTE,P2.enableOut.posTE,$PRE.P2.enableOut.k,P2.enableOut.k,$PRE.P2.enableOut.nTAout,P2.enableOut.nTAout,$PRE.P2.enableOut.nremTAout,P2.enableOut.nremTAout,$whenCondition2,P2.activeConOut.anychange,P2.delayPassedOut.anytrue,P2.delayPassedOut.numtrue,$PRE.P2.enableOut.arcWeightSum,P2.enableOut.arcWeightSum,$PRE.P1.enableIn.benefitLimit,P1.enableIn.benefitLimit,$PRE.P1.enableIn.valid,P1.enableIn.valid,$PRE.P1.enableIn.benefitMax,P1.enableIn.benefitMax,$PRE.P1.enableIn.Index,P1.enableIn.Index,$PRE.P1.enableIn.endWhile,P1.enableIn.endWhile,$PRE.P1.enableIn.sumEnablingProbTAin,P1.enableIn.sumEnablingProbTAin,$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.posTE,P1.enableIn.posTE,$PRE.P1.enableIn.k,P1.enableIn.k,$PRE.P1.enableIn.nTAin,P1.enableIn.nTAin,$PRE.P1.enableIn.nremTAin,P1.enableIn.nremTAin,$whenCondition1,P1.delayPassedIn.anytrue,P1.delayPassedIn.numtrue,$PRE.P1.enableIn.arcWeightSum,P1.enableIn.arcWeightSum,T1.firingCon,T1.outPlaces[1].disTransition,T1.outPlaces[1].enabledByInPlaces,P2.inTransition[1].disPlace,T1.inPlaces[1].disTransition,P1.outTransition[1].normalArc,P1.outTransition[1].testValueint,P1.outTransition[1].arcType,P1.outTransition[1].disPlace,P2.reStart,P1.reStart,P2.enableIn.disTransition[1],$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition3,$whenCondition4,$PRE.P1.t,P1.t,$PRE.P1.activeOut[1],P1.activeOut[1],P1.activeConOut.vec[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.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,T1.activeIn,T1.activeOut,T1.fireOut,$PRE.T1.fire,T1.fire,$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.activationIn.disPlaceIn[1],T1.activationIn.arcType[1],T1.activationIn.testValueInt[1],T1.activationIn.normalArc[1],P1.enableOut.disTransition[1],T1.activationOut.disPlaceOut[1],P2.enableIn.arcWeight[1],P1.enableOut.arcWeight[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 (261): * Single equations (assignments): 237 * Array equations: 1 * Algorithm blocks: 23 * 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.00186/0.3198, allocations: 1.424 MB / 477 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004733/0.3203, allocations: 145.6 kB / 477.1 MB, free: 10.99 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005739/0.3261, allocations: 3.773 MB / 480.9 MB, free: 9.312 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.818e-05/0.3261, allocations: 12.59 kB / 480.9 MB, free: 9.309 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.126e-05/0.3262, allocations: 1 kB / 480.9 MB, free: 9.309 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.199e-05/0.3262, allocations: 8.656 kB / 480.9 MB, free: 9.305 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008888/0.3351, allocations: 5.572 MB / 486.5 MB, free: 6.785 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.704e-05/0.3352, allocations: 1.656 kB / 486.5 MB, free: 6.785 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002571/0.3354, allocations: 51.97 kB / 486.5 MB, free: 6.773 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.175e-05/0.3355, allocations: 3.312 kB / 486.5 MB, free: 6.773 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002936/0.3358, allocations: 85.95 kB / 486.6 MB, free: 6.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.771e-05/0.3358, allocations: 12.95 kB / 486.6 MB, free: 6.742 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.3358, allocations: 0 / 486.6 MB, free: 6.742 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006264/0.3421, allocations: 4.483 MB / 491.1 MB, free: 2.844 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002792/0.3424, allocations: 183.6 kB / 491.3 MB, free: 2.645 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004673/0.3429, allocations: 155.9 kB / 491.5 MB, free: 2.492 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000843/0.3437, allocations: 131.9 kB / 491.6 MB, free: 2.363 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006252/0.3443, allocations: 432 kB / 492 MB, free: 1.941 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001852/0.3445, allocations: 95.89 kB / 492.1 MB, free: 1.848 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004225/0.345, allocations: 390.8 kB / 492.5 MB, free: 1.465 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.345, allocations: 0 / 492.5 MB, free: 1.465 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0021/0.3471, allocations: 0.6049 MB / 493.1 MB, free: 0.8594 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 144 ($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,T1.activeIn,T1.activeOut,$whenCondition14,$whenCondition13,$whenCondition15,$whenCondition11,$whenCondition10,$whenCondition12,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition5,P1.t,P1.tokeninout,P1.activeOut[1],P1.activeConOut.vec[1],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.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.putDuration,T1.fireOut,T1.fire,T1.state128[1],T1.state128[2],T1.state128[3],T1.state128[4],T1.r128,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.tokenChange.vec[1],T1.tokenChange.anytrue,T1.tokenChange.numtrue) * Number of discrete states: 111 (P1.firingSumOut.firingSum,P1.firingSumIn.firingSum,P2.firingSumOut.firingSum,P2.firingSumIn.firingSum,P1.tokeninout,T1.fire,P2.t,P1.t,P1.activeOut[1],T1.putDuration,T1.state128[4],T1.state128[3],T1.state128[2],T1.state128[1],T1.r128,$whenCondition5,T1.fireOut,T1.tokenChange.numtrue,T1.tokenChange.anytrue,T1.activationOut.active,T1.durationPassedOut,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.delayPassedOut.numtrue,P1.delayPassedOut.anytrue,P1.activeConOut.anychange,i,P1.activeConOut.vec[i],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,$whenCondition3,P1.enableOut.arcWeightSum,P1.enableOut.TEout[1],P2.enableOut.benefitLimit,P2.enableOut.valid,P2.enableOut.benefitMax,P2.enableOut.Index,P2.enableOut.endWhile,P2.enableOut.sumEnablingProbTAout,P2.enableOut.state128[4],P2.enableOut.state128[3],P2.enableOut.state128[2],P2.enableOut.state128[1],P2.enableOut.randNum,P2.enableOut.posTE,P2.enableOut.k,P2.enableOut.nTAout,P2.enableOut.nremTAout,$whenCondition2,P2.enableOut.arcWeightSum,P2.delayPassedOut.numtrue,P2.delayPassedOut.anytrue,P2.activeConOut.anychange,P1.enableIn.benefitLimit,P1.enableIn.valid,P1.enableIn.benefitMax,P1.enableIn.Index,P1.enableIn.endWhile,P1.enableIn.sumEnablingProbTAin,P1.enableIn.state128[4],P1.enableIn.state128[3],P1.enableIn.state128[2],P1.enableIn.state128[1],P1.enableIn.randNum,P1.enableIn.posTE,P1.enableIn.k,P1.enableIn.nTAin,P1.enableIn.nremTAin,$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 (74): * Single equations (assignments): 48 * Array equations: 1 * Algorithm blocks: 18 * 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.001218/0.3483, allocations: 0.5892 MB / 493.7 MB, free: 280 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.005482/0.3538, allocations: 4.083 MB / 497.8 MB, free: 11.91 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.006e-05/0.3539, allocations: 4 kB / 497.8 MB, free: 11.9 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006173/0.36, allocations: 6.016 MB / 0.492 GB, free: 5.672 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001169/0.3612, allocations: 148.7 kB / 0.4921 GB, free: 5.527 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006047/0.3673, allocations: 3.186 MB / 0.4952 GB, free: 2.305 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008325/0.3682, allocations: 1.17 MB / 0.4964 GB, free: 1.105 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0007471/0.369, allocations: 256.7 kB / 0.4966 GB, free: 0.8516 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002425/0.3692, allocations: 79.41 kB / 0.4967 GB, free: 0.7734 MB / 366.1 MB Notification: Performance of SimCode: time 8.01e-07/0.3692, allocations: 0 / 0.4967 GB, free: 0.7734 MB / 366.1 MB Notification: Performance of Templates: time 0.03709/0.4063, allocations: 22.28 MB / 0.5184 GB, free: 10.39 MB / 398.1 MB make -j1 -f PNlib_PNlib.Examples.ExtTest.TFDStest.makefile (rm -f PNlib_PNlib.Examples.ExtTest.TFDStest.pipe ; mkfifo PNlib_PNlib.Examples.ExtTest.TFDStest.pipe ; head -c 1048576 < PNlib_PNlib.Examples.ExtTest.TFDStest.pipe >> ../files/PNlib_PNlib.Examples.ExtTest.TFDStest.sim & ./PNlib_PNlib.Examples.ExtTest.TFDStest -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PNlib_PNlib.Examples.ExtTest.TFDStest.pipe 2>&1) diffSimulationResults("PNlib_PNlib.Examples.ExtTest.TFDStest_res.mat","/mnt/ReferenceFiles/PNlib/ReferenceFiles/PNlib.Examples.ExtTest.TFDStest.mat","../files/PNlib_PNlib.Examples.ExtTest.TFDStest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches