Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PNlib_PNlib.Examples.ExtTest.TESTest.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/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 3.0.0-master/package.mo", uses=false) Using package PNlib with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 3.0.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.TESTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="P1.t|P2.t|T1.active|T1.fire|T1.putFireTime|T2.active|T2.fire|time",fileNamePrefix="PNlib_PNlib.Examples.ExtTest.TESTest") translateModel(PNlib.Examples.ExtTest.TESTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="P1.t|P2.t|T1.active|T1.fire|T1.putFireTime|T2.active|T2.fire|time",fileNamePrefix="PNlib_PNlib.Examples.ExtTest.TESTest") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001551/0.001551, allocations: 92.31 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002259/0.002259, allocations: 182.4 kB / 16.92 MB, free: 6.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.429/1.429, allocations: 223.3 MB / 241 MB, free: 5.285 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 3.0.0-master/package.mo): time 0.1834/0.1834, allocations: 16.74 MB / 308.8 MB, free: 15.55 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003104/0.0003105, allocations: 12 kB / 374.1 MB, free: 3.059 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2705/0.2709, allocations: 54.47 MB / 428.5 MB, free: 38.23 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.ExtTest.TESTest): time 0.002983/0.2739, allocations: 2.689 MB / 431.2 MB, free: 37.77 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007421/0.2813, allocations: 5.062 MB / 436.3 MB, free: 35.66 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008693/0.2822, allocations: 9.844 kB / 436.3 MB, free: 35.66 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006086/0.2829, allocations: 185.8 kB / 436.5 MB, free: 35.54 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004991/0.2834, allocations: 180.9 kB / 436.7 MB, free: 35.41 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003155/0.2865, allocations: 1.425 MB / 438.1 MB, free: 34.64 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002229/0.2888, allocations: 2.366 MB / 440.5 MB, free: 33.69 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004442/0.2892, allocations: 359.8 kB / 440.8 MB, free: 33.54 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001079/0.2903, allocations: 0.8696 MB / 441.7 MB, free: 33.22 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007492/0.2911, allocations: 0.6963 MB / 442.4 MB, free: 32.89 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001763/0.2913, allocations: 82.28 kB / 442.5 MB, free: 32.89 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001162/0.2924, allocations: 0.7881 MB / 443.2 MB, free: 32.66 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002502/0.2927, allocations: 312.5 kB / 443.5 MB, free: 32.52 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006652/0.2934, allocations: 0.8072 MB / 444.4 MB, free: 32.05 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001457/0.2948, allocations: 1.822 MB / 446.2 MB, free: 31.64 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.2949, allocations: 3.312 kB / 446.2 MB, free: 31.64 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.2949, allocations: 0 / 446.2 MB, free: 31.64 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.541e-05/0.2949, allocations: 0 / 446.2 MB, free: 31.64 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: 403 * Number of variables: 403 Notification: Performance of Generate backend data structure: time 0.002426/0.2973, allocations: 2.218 MB / 448.4 MB, free: 29.86 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.948e-05/0.2974, allocations: 8.969 kB / 448.4 MB, free: 29.86 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006628/0.298, allocations: 225.4 kB / 448.6 MB, free: 29.77 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001016/0.2991, allocations: 0.7926 MB / 449.4 MB, free: 29.24 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000174/0.2992, allocations: 217.2 kB / 449.6 MB, free: 29.1 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002587/0.2995, allocations: 195.6 kB / 449.8 MB, free: 29.05 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004141/0.3037, allocations: 3.219 MB / 453 MB, free: 27.66 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.116e-05/0.3037, allocations: 7.25 kB / 453 MB, free: 27.65 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001972/0.3039, allocations: 90.23 kB / 453.1 MB, free: 27.61 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002173/0.3041, allocations: 153.9 kB / 453.3 MB, free: 27.59 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003155/0.3073, allocations: 2.219 MB / 455.5 MB, free: 26.82 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007856/0.3152, allocations: 7.212 MB / 462.7 MB, free: 21.82 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004593/0.3198, allocations: 3.729 MB / 466.4 MB, free: 19.56 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003737/0.3236, allocations: 3.544 MB / 470 MB, free: 17.39 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001048/0.3237, allocations: 92.83 kB / 470.1 MB, free: 17.29 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003349/0.3271, allocations: 2.173 MB / 472.3 MB, free: 16.36 MB / 350.1 MB Notification: Performance of pre-optimization done (n=180): time 3.566e-06/0.3271, allocations: 0 / 472.3 MB, free: 16.36 MB / 350.1 MB Notification: Performance of matching and sorting (n=180): time 0.01004/0.3371, allocations: 6.387 MB / 478.6 MB, free: 13.78 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0006293/0.3378, allocations: 1.333 MB / 480 MB, free: 12.39 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001222/0.339, allocations: 0.8184 MB / 480.8 MB, free: 12.01 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002156/0.3393, allocations: 125.5 kB / 480.9 MB, free: 11.93 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003906/0.3397, allocations: 0.5172 MB / 481.4 MB, free: 11.52 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003784/0.34, allocations: 455.1 kB / 481.9 MB, free: 11.19 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004003/0.3405, allocations: 316.7 kB / 482.2 MB, free: 11.07 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.882e-05/0.3406, allocations: 351.9 kB / 482.5 MB, free: 10.74 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001507/0.3421, allocations: 0.9233 MB / 483.5 MB, free: 10.45 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001917/0.344, allocations: 1.767 MB / 485.2 MB, free: 9.102 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005661/0.3497, allocations: 5.75 MB / 491 MB, free: 4.145 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.052e-05/0.3497, allocations: 8 kB / 491 MB, free: 4.137 MB / 350.1 MB Notification: Performance of matching and sorting (n=342) (initialization): time 0.004607/0.3543, allocations: 3.992 MB / 495 MB, free: 15.99 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005946/0.355, allocations: 0.7585 MB / 495.7 MB, free: 15.09 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.636e-05/0.355, allocations: 24.88 kB / 495.8 MB, free: 15.06 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.682e-05/0.3551, allocations: 40 kB / 495.8 MB, free: 15.02 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008395/0.3559, allocations: 279.3 kB / 496.1 MB, free: 14.75 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.083e-05/0.356, allocations: 55.78 kB / 496.1 MB, free: 14.7 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001242/0.3572, allocations: 305.4 kB / 496.4 MB, free: 14.39 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002008/0.3575, allocations: 131.9 kB / 496.5 MB, free: 14.27 MB / 366.1 MB Warning: Assuming fixed start value for the following 50 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.enableIn.valid:DISCRETE(fixed = true protected = true ) "valid solution" type: Boolean P1.enableIn.benefitLimit:DISCRETE(fixed = true protected = true ) "best valid benefit" type: Real P1.enableIn.benefitMax:DISCRETE(fixed = true protected = true ) "theoretical benefit" 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.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.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 P1.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 T2.ani:DISCRETE(fixed = true protected = true ) "for transition animation" type: Boolean T2.fireTime:DISCRETE(fixed = true protected = true ) "for transition animation" type: Real P2.firingSumOut.firingSum:DISCRETE(fixed = true protected = true ) "firing sum" type: Integer P2.firingSumIn.firingSum:DISCRETE(fixed = true protected = true ) "firing sum" type: Integer P1.firingSumOut.firingSum:DISCRETE(fixed = true protected = true ) "firing sum" type: Integer P1.firingSumIn.firingSum:DISCRETE(fixed = true protected = true ) "firing sum" type: Integer 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 T1.TimeOver:DISCRETE(fixed = true ) type: Boolean T2.firingTime: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: 109 * Number of states: 0 () * Number of discrete variables: 286 ($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,P2.enableIn.randNum,$PRE.P2.enableIn.randNum,P2.enableIn.state128[4],$PRE.P2.enableIn.state128[4],P2.enableIn.state128[3],$PRE.P2.enableIn.state128[3],P2.enableIn.state128[2],$PRE.P2.enableIn.state128[2],P2.enableIn.state128[1],$PRE.P2.enableIn.state128[1],P2.enableIn.cumEnablingProb[1],$PRE.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,P2.enableIn.remTAin[1],$PRE.P2.enableIn.remTAin[1],$PRE.P2.enableIn.Index,P2.enableIn.Index,$PRE.P1.enableIn.valid,P1.enableIn.valid,$PRE.P1.enableIn.benefitLimit,P1.enableIn.benefitLimit,$PRE.P1.enableIn.benefitMax,P1.enableIn.benefitMax,$PRE.P1.enableIn.posTE,P1.enableIn.posTE,$PRE.P1.enableIn.k,P1.enableIn.k,$PRE.P1.enableIn.endWhile,P1.enableIn.endWhile,P1.enableIn.randNum,$PRE.P1.enableIn.randNum,P1.enableIn.state128[4],$PRE.P1.enableIn.state128[4],P1.enableIn.state128[3],$PRE.P1.enableIn.state128[3],P1.enableIn.state128[2],$PRE.P1.enableIn.state128[2],P1.enableIn.state128[1],$PRE.P1.enableIn.state128[1],P1.enableIn.cumEnablingProb[1],$PRE.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,P1.enableIn.remTAin[1],$PRE.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,P1.enableOut.randNum,$PRE.P1.enableOut.randNum,P1.enableOut.state128[4],$PRE.P1.enableOut.state128[4],P1.enableOut.state128[3],$PRE.P1.enableOut.state128[3],P1.enableOut.state128[2],$PRE.P1.enableOut.state128[2],P1.enableOut.state128[1],$PRE.P1.enableOut.state128[1],P1.enableOut.cumEnablingProb[1],$PRE.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,P1.enableOut.remTAout[1],$PRE.P1.enableOut.remTAout[1],$PRE.P1.enableOut.Index,P1.enableOut.Index,$PRE.P1.reStart,$whenCondition15,$PRE.P2.reStart,$whenCondition12,$PRE.T1.ani,$PRE.T1.fireTime,T1.ani,T1.fireTime,$PRE.T2.ani,$PRE.T2.fireTime,T2.ani,T2.fireTime,$PRE.P2.firingSumOut.firingSum,$PRE.P2.firingSumIn.firingSum,P2.tokeninout,$whenCondition10,$whenCondition11,$PRE.P1.firingSumOut.firingSum,$PRE.P1.firingSumIn.firingSum,P1.tokeninout,$whenCondition13,$whenCondition14,T1.tokenChange.numtrue,T1.tokenChange.anytrue,T1.tokenChange.vec[1],$PRE.P1.tokeninout,T2.eventIndex,$PRE.T2.eventIndex,$whenCondition5,P2.firingSumOut.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,P2.enableOut.randNum,$PRE.P2.enableOut.randNum,P2.enableOut.state128[4],$PRE.P2.enableOut.state128[4],P2.enableOut.state128[3],$PRE.P2.enableOut.state128[3],P2.enableOut.state128[2],$PRE.P2.enableOut.state128[2],P2.enableOut.state128[1],$PRE.P2.enableOut.state128[1],$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,P2.enableOut.arcWeightSum,$PRE.P2.enableOut.arcWeightSum,P2.delayPassedOut.numtrue,P2.delayPassedOut.anytrue,P2.activeConOut.anychange,$whenCondition1,T1.firingCon,T1.outPlaces[1].disTransition,P2.inTransition[1].disPlace,T1.inPlaces[1].disTransition,P1.outTransition[1].normalArc,P1.outTransition[1].testValueint,P1.outTransition[1].arcType,P1.outTransition[1].disPlace,T2.firingCon,T2.outPlaces[1].disTransition,P1.inTransition[1].disPlace,P2.reStart,P1.reStart,P2.enableIn.disTransition[1],P1.enableIn.disTransition[1],$PRE.T1.r128,$PRE.T1.state128[4],$PRE.T1.state128[3],$PRE.T1.state128[2],$PRE.T1.state128[1],$PRE.T1.TimeOver,$PRE.T1.putEvent,$PRE.T1.putFireTime,$PRE.T2.firingTime,$PRE.P2.enableIn.arcWeightSum,$PRE.P2.enableIn.TEin[1],$PRE.P1.enableIn.arcWeightSum,$PRE.P1.enableIn.TEin[1],$PRE.P1.enableOut.arcWeightSum,$PRE.P1.enableOut.TEout[1],T2.enabledByInPlaces,P1.enableIn.arcWeight[1],P1.enableOut.arcWeight[1],P2.enableIn.arcWeight[1],T1.activation.disPlaceOut[1],P1.enableOut.disTransition[1],T1.activation.normalArc[1],T1.activation.testValueInt[1],T1.activation.arcType[1],T1.activation.disPlaceIn[1],T2.activation.disPlaceOut[1],T1.activation.active,T1.activation.maxTokensInt[1],T1.activation.minTokensInt[1],T1.activation.arcWeightIntOut[1],T1.activation.arcWeightIntIn[1],T1.activation.tIntOut[1],T1.activation.tIntIn[1],T1.eventPassed,$PRE.T1.eventPassed,T1.r128,T1.state128[4],T1.state128[3],T1.state128[2],T1.state128[1],T1.active,T1.TimeOver,T1.putEvent,T1.putFireTime,T2.activation.active,T2.activation.maxTokensInt[1],T2.activation.arcWeightIntOut[1],T2.activation.tIntOut[1],T2.eventPassed,$PRE.T2.eventPassed,T2.firingTime,T2.active,P2.enableIn.arcWeightSum,P2.enableIn.TEin[1],P2.enableIn.TEin_[1],P2.enableIn.active[1],P2.enableIn.TAein[1],P2.firingSumIn.firingSum,P2.firingSumIn.arcWeight[1],P2.firingSumIn.fire[1],P2.delayPassedIn.numtrue,P2.delayPassedIn.anytrue,P2.delayPassedIn.vec[1],P2.enabledByInPlaces[1],P2.t,$PRE.P2.t,P1.enableIn.arcWeightSum,P1.enableIn.TEin[1],P1.enableIn.TEin_[1],P1.enableIn.active[1],P1.enableIn.TAein[1],P1.enableOut.arcWeightSum,P1.enableOut.TEout[1],P1.enableOut.TEout_[1],P1.enableOut.TAout[1],P1.firingSumOut.firingSum,P1.firingSumOut.arcWeight[1],P1.firingSumOut.fire[1],P1.firingSumIn.firingSum,P1.firingSumIn.arcWeight[1],P1.firingSumIn.fire[1],P1.delayPassedIn.numtrue,P1.delayPassedIn.anytrue,P1.delayPassedIn.vec[1],P1.delayPassedOut.numtrue,P1.delayPassedOut.anytrue,P1.delayPassedOut.vec[1],P1.activeConOut.anychange,P1.activeConOut.vec[1],P1.activeOut[1],$PRE.P1.activeOut[1],P1.t,$PRE.P1.t,$whenCondition6,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition7,$whenCondition8,$whenCondition9,P2.inTransition[1].emptied,P1.outTransition[1].fed,P1.inTransition[1].emptied) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (302): * Single equations (assignments): 276 * Array equations: 2 * Algorithm blocks: 24 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002471/0.3599, allocations: 1.621 MB / 498.2 MB, free: 12.52 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003503/0.3603, allocations: 170.7 kB / 498.3 MB, free: 12.35 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00769/0.368, allocations: 5.227 MB / 0.4918 GB, free: 7.008 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.234e-05/0.3681, allocations: 15.98 kB / 0.4918 GB, free: 6.992 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.935e-06/0.3681, allocations: 0 / 0.4918 GB, free: 6.992 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.177e-05/0.3681, allocations: 3.984 kB / 0.4918 GB, free: 6.988 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01109/0.3792, allocations: 7.425 MB / 0.499 GB, free: 15.41 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.247e-06/0.3792, allocations: 8 kB / 0.499 GB, free: 15.4 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002558/0.3795, allocations: 59.91 kB / 0.4991 GB, free: 15.34 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.938e-06/0.3795, allocations: 4 kB / 0.4991 GB, free: 15.34 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002123/0.3797, allocations: 99.94 kB / 0.4992 GB, free: 15.24 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.408e-06/0.3798, allocations: 7.938 kB / 0.4992 GB, free: 15.23 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.3798, allocations: 0 / 0.4992 GB, free: 15.23 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008303/0.3881, allocations: 5.698 MB / 0.5048 GB, free: 9.398 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002977/0.3884, allocations: 203.3 kB / 0.505 GB, free: 9.18 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004744/0.3889, allocations: 175.9 kB / 0.5051 GB, free: 9.008 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001421/0.3903, allocations: 163.8 kB / 0.5053 GB, free: 8.848 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001117/0.3915, allocations: 472.5 kB / 0.5057 GB, free: 8.387 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002678/0.3917, allocations: 111.9 kB / 0.5058 GB, free: 8.277 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000595/0.3923, allocations: 471 kB / 0.5063 GB, free: 7.82 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3924, allocations: 0 / 0.5063 GB, free: 7.82 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002399/0.3948, allocations: 0.7101 MB / 0.507 GB, free: 7.109 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 158 ($whenCondition1,P2.activeConOut.anychange,P2.delayPassedOut.anytrue,P2.delayPassedOut.numtrue,P2.enableOut.state128[1],P2.enableOut.state128[2],P2.enableOut.state128[3],P2.enableOut.state128[4],P2.enableOut.arcWeightSum,P2.enableOut.nremTAout,P2.enableOut.nTAout,P2.enableOut.k,P2.enableOut.posTE,P2.enableOut.randNum,P2.enableOut.sumEnablingProbTAout,P2.enableOut.endWhile,P2.enableOut.Index,P2.enableOut.benefitMax,P2.enableOut.valid,P2.enableOut.benefitLimit,T2.active,$whenCondition14,$whenCondition13,$whenCondition15,$whenCondition11,$whenCondition10,$whenCondition12,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6,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.delayPassedIn.vec[1],P1.delayPassedIn.anytrue,P1.delayPassedIn.numtrue,P1.firingSumIn.fire[1],P1.firingSumIn.arcWeight[1],P1.firingSumIn.firingSum,P1.firingSumOut.fire[1],P1.firingSumOut.arcWeight[1],P1.firingSumOut.firingSum,P1.enableOut.TAout[1],P1.enableOut.TEout_[1],P1.enableOut.state128[1],P1.enableOut.state128[2],P1.enableOut.state128[3],P1.enableOut.state128[4],P1.enableOut.TEout[1],P1.enableOut.remTAout[1],P1.enableOut.cumEnablingProb[1],P1.enableOut.arcWeightSum,P1.enableOut.nremTAout,P1.enableOut.nTAout,P1.enableOut.k,P1.enableOut.posTE,P1.enableOut.randNum,P1.enableOut.sumEnablingProbTAout,P1.enableOut.endWhile,P1.enableOut.Index,P1.enableOut.benefitMax,P1.enableOut.valid,P1.enableOut.benefitLimit,P1.enableIn.TAein[1],P1.enableIn.active[1],P1.enableIn.TEin_[1],P1.enableIn.state128[1],P1.enableIn.state128[2],P1.enableIn.state128[3],P1.enableIn.state128[4],P1.enableIn.TEin[1],P1.enableIn.remTAin[1],P1.enableIn.cumEnablingProb[1],P1.enableIn.arcWeightSum,P1.enableIn.nremTAin,P1.enableIn.nTAin,P1.enableIn.k,P1.enableIn.posTE,P1.enableIn.randNum,P1.enableIn.sumEnablingProbTAin,P1.enableIn.endWhile,P1.enableIn.Index,P1.enableIn.benefitMax,P1.enableIn.valid,P1.enableIn.benefitLimit,P2.t,P2.tokeninout,P2.enabledByInPlaces[1],P2.delayPassedIn.vec[1],P2.delayPassedIn.anytrue,P2.delayPassedIn.numtrue,P2.firingSumIn.fire[1],P2.firingSumIn.arcWeight[1],P2.firingSumIn.firingSum,P2.firingSumOut.firingSum,P2.enableIn.TAein[1],P2.enableIn.active[1],P2.enableIn.TEin_[1],P2.enableIn.state128[1],P2.enableIn.state128[2],P2.enableIn.state128[3],P2.enableIn.state128[4],P2.enableIn.TEin[1],P2.enableIn.remTAin[1],P2.enableIn.cumEnablingProb[1],P2.enableIn.arcWeightSum,P2.enableIn.nremTAin,P2.enableIn.nTAin,P2.enableIn.k,P2.enableIn.posTE,P2.enableIn.randNum,P2.enableIn.sumEnablingProbTAin,P2.enableIn.endWhile,P2.enableIn.Index,P2.enableIn.benefitMax,P2.enableIn.valid,P2.enableIn.benefitLimit,T2.firingTime,T2.fireTime,T2.eventPassed,T2.ani,T2.eventIndex,T2.activation.tIntOut[1],T2.activation.arcWeightIntOut[1],T2.activation.maxTokensInt[1],T2.activation.active,T1.putFireTime,T1.putEvent,T1.TimeOver,T1.active,T1.state128[1],T1.state128[2],T1.state128[3],T1.state128[4],T1.r128,T1.fireTime,T1.eventPassed,T1.ani,T1.activation.tIntIn[1],T1.activation.tIntOut[1],T1.activation.arcWeightIntIn[1],T1.activation.arcWeightIntOut[1],T1.activation.minTokensInt[1],T1.activation.maxTokensInt[1],T1.activation.active,T1.tokenChange.vec[1],T1.tokenChange.anytrue,T1.tokenChange.numtrue) * Number of discrete states: 117 (P1.firingSumOut.firingSum,P1.firingSumIn.firingSum,P2.firingSumOut.firingSum,P2.firingSumIn.firingSum,P1.tokeninout,P2.t,P1.t,P1.activeOut[1],T1.putFireTime,T1.putEvent,T1.state128[4],T1.state128[3],T1.state128[2],T1.state128[1],T1.r128,$whenCondition6,T1.TimeOver,T1.tokenChange.numtrue,T1.tokenChange.anytrue,T1.activation.active,T1.eventPassed,T2.eventIndex,$whenCondition5,T2.activation.active,T2.eventPassed,P2.delayPassedIn.numtrue,P2.delayPassedIn.anytrue,P1.delayPassedIn.numtrue,P1.delayPassedIn.anytrue,P1.enableIn.TEin_[1],P1.enableIn.valid,P1.enableIn.benefitLimit,P1.enableIn.benefitMax,P1.enableIn.posTE,P1.enableIn.k,P1.enableIn.endWhile,P1.enableIn.state128[4],P1.enableIn.state128[3],P1.enableIn.state128[2],P1.enableIn.state128[1],P1.enableIn.randNum,P1.enableIn.cumEnablingProb[1],P1.enableIn.sumEnablingProbTAin,P1.enableIn.nTAin,P1.enableIn.nremTAin,P1.enableIn.remTAin[1],P1.enableIn.Index,$whenCondition3,P1.enableIn.arcWeightSum,P1.enableIn.TEin[1],P1.delayPassedOut.numtrue,P1.delayPassedOut.anytrue,P1.activeConOut.anychange,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,$whenCondition2,P1.enableOut.arcWeightSum,P1.enableOut.TEout[1],P2.enableIn.TEin_[1],P2.enableIn.valid,P2.enableIn.benefitLimit,P2.enableIn.benefitMax,P2.enableIn.posTE,P2.enableIn.k,P2.enableIn.endWhile,P2.enableIn.state128[4],P2.enableIn.state128[3],P2.enableIn.state128[2],P2.enableIn.state128[1],P2.enableIn.randNum,P2.enableIn.cumEnablingProb[1],P2.enableIn.sumEnablingProbTAin,P2.enableIn.nTAin,P2.enableIn.nremTAin,P2.enableIn.remTAin[1],P2.enableIn.Index,$whenCondition4,P2.enableIn.arcWeightSum,P2.enableIn.TEin[1],P2.enableOut.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,$whenCondition1,P2.enableOut.arcWeightSum,P2.delayPassedOut.numtrue,P2.delayPassedOut.anytrue,P2.activeConOut.anychange) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (86): * Single equations (assignments): 58 * Array equations: 2 * Algorithm blocks: 19 * Record equations: 0 * When equations: 7 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001315/0.3961, allocations: 0.621 MB / 0.5076 GB, free: 6.484 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006679/0.4028, allocations: 4.826 MB / 0.5123 GB, free: 1.367 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.653e-06/0.4028, allocations: 0 / 0.5123 GB, free: 1.367 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.007916/0.4108, allocations: 7.545 MB / 0.5197 GB, free: 9.59 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00132/0.4121, allocations: 241.9 kB / 0.5199 GB, free: 9.355 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006788/0.4189, allocations: 4.295 MB / 0.5241 GB, free: 5.016 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008586/0.4198, allocations: 1.263 MB / 0.5253 GB, free: 3.723 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003453/0.4202, allocations: 103.4 kB / 0.5254 GB, free: 3.621 MB / 398.1 MB Notification: Performance of SimCode: time 5.51e-07/0.4202, allocations: 0 / 0.5254 GB, free: 3.621 MB / 398.1 MB Notification: Performance of Templates: time 0.03959/0.4598, allocations: 26.34 MB / 0.5512 GB, free: 9.195 MB / 430.1 MB make -j1 -f PNlib_PNlib.Examples.ExtTest.TESTest.makefile make -j1 -f PNlib_PNlib.Examples.ExtTest.TESTest.makefile clang++ -std=c++14 -fopenmp=libomp -Winvalid-pch -O2 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DUSE_THREAD -DSUNDIALS_MAJOR_VERSION=5 -DSUNDIALS_MINOR_VERSION=4 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. -I"." -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/sundials" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppPNlib_PNlib.Examples.ExtTest.TESTestCalcHelperMain.o OMCppPNlib_PNlib.Examples.ExtTest.TESTestCalcHelperMain.cpp In file included from OMCppPNlib_PNlib.Examples.ExtTest.TESTestCalcHelperMain.cpp:29: ./OMCppPNlib_PNlib.Examples.ExtTest.TESTestInitialize.cpp:810:62: error: invalid argument type 'StatArrayDim1' to unary expression _P1_P_activeConOut_P_vec_.assign((_P1_P_activeOut__pre && (!_functions->_OMC_LIT1))); ^~~~~~~~~~~~~~~~~~~~~~ ./OMCppPNlib_PNlib.Examples.ExtTest.TESTestInitialize.cpp:845:113: error: no matching function for call to object of type 'WrapArray' _P1_P_activeConOut_P_anychange_ = (_P1_P_activeConOut_P_anychange_ || ((!_P1_P_activeConOut_P_vec_(i_) && _discrete_events->pre(_P1_P_activeConOut_P_vec_)(i_)) || (_P1_P_activeConOut_P_vec_(i_) && !_discrete_events->pre(_P1_P_activeConOut_P_vec_)(i_)))); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/Core/Math/Array.h:704:14: note: candidate function not viable: no known conversion from 'int' to 'const vector' (aka 'const vector') for 1st argument virtual T& operator()(const vector& idx) ^ /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/Core/Math/Array.h:695:20: note: candidate function not viable: no known conversion from 'int' to 'const vector' (aka 'const vector') for 1st argument virtual const T& operator()(const vector& idx) const ^ In file included from OMCppPNlib_PNlib.Examples.ExtTest.TESTestCalcHelperMain.cpp:29: ./OMCppPNlib_PNlib.Examples.ExtTest.TESTestInitialize.cpp:845:205: error: no matching function for call to object of type 'WrapArray' _P1_P_activeConOut_P_anychange_ = (_P1_P_activeConOut_P_anychange_ || ((!_P1_P_activeConOut_P_vec_(i_) && _discrete_events->pre(_P1_P_activeConOut_P_vec_)(i_)) || (_P1_P_activeConOut_P_vec_(i_) && !_discrete_events->pre(_P1_P_activeConOut_P_vec_)(i_)))); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/Core/Math/Array.h:704:14: note: candidate function not viable: no known conversion from 'int' to 'const vector' (aka 'const vector') for 1st argument virtual T& operator()(const vector& idx) ^ /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/Core/Math/Array.h:695:20: note: candidate function not viable: no known conversion from 'int' to 'const vector' (aka 'const vector') for 1st argument virtual const T& operator()(const vector& idx) const ^ In file included from OMCppPNlib_PNlib.Examples.ExtTest.TESTestCalcHelperMain.cpp:33: ./OMCppPNlib_PNlib.Examples.ExtTest.TESTest.cpp:230:81: error: invalid argument type 'StatArrayDim1' to unary expression _P1_P_activeConOut_P_vec_.assign((_discrete_events->pre(_P1_P_activeOut_) && (!_functions->_OMC_LIT1))); ^~~~~~~~~~~~~~~~~~~~~~ 4 errors generated. make: *** [: OMCppPNlib_PNlib.Examples.ExtTest.TESTestCalcHelperMain.o] Error 1