Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PNlib_PNlib.Examples.DisTest.TFDtest.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.DisTest.TFDtest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="P1.t|P2.t|T1.activeIn|T1.activeOut|T1.fire|T1.fireIn|T1.fireOut|time",fileNamePrefix="PNlib_PNlib.Examples.DisTest.TFDtest") translateModel(PNlib.Examples.DisTest.TFDtest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="P1.t|P2.t|T1.activeIn|T1.activeOut|T1.fire|T1.fireIn|T1.fireOut|time",fileNamePrefix="PNlib_PNlib.Examples.DisTest.TFDtest") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002039/0.002039, allocations: 109.6 kB / 16.41 MB, free: 6.496 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.002504/0.002504, allocations: 187 kB / 17.34 MB, free: 5.758 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.518/2.518, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 3.0.0-master/package.mo): time 0.1173/0.1173, allocations: 16.74 MB / 307.9 MB, free: 14.23 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001491/0.001491, allocations: 60.14 kB / 427 MB, free: 10.48 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1175/0.119, allocations: 53.48 MB / 480.5 MB, free: 4.953 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.DisTest.TFDtest): time 0.004316/0.1233, allocations: 2.485 MB / 483 MB, free: 2.461 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006565/0.1299, allocations: 2.51 MB / 485.5 MB, free: 15.94 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00114/0.1311, allocations: 15.88 kB / 485.5 MB, free: 15.93 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008994/0.1321, allocations: 182.5 kB / 485.7 MB, free: 15.75 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009457/0.1331, allocations: 190.4 kB / 485.9 MB, free: 15.56 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003137/0.1362, allocations: 1.27 MB / 487.1 MB, free: 14.29 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003812/0.1401, allocations: 2.633 MB / 489.8 MB, free: 11.65 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006185/0.1407, allocations: 287.9 kB / 490 MB, free: 11.35 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00181/0.1425, allocations: 0.9663 MB / 491 MB, free: 10.38 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001259/0.1438, allocations: 0.6105 MB / 491.6 MB, free: 9.77 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005421/0.1444, allocations: 156 kB / 491.8 MB, free: 9.617 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001759/0.1461, allocations: 0.8271 MB / 492.6 MB, free: 8.789 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004538/0.1466, allocations: 267 kB / 492.9 MB, free: 8.527 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001285/0.1479, allocations: 0.6885 MB / 493.6 MB, free: 7.836 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003924/0.1519, allocations: 2.041 MB / 495.6 MB, free: 5.789 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.915e-06/0.1519, allocations: 0 / 495.6 MB, free: 5.789 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.685e-06/0.1519, allocations: 3.938 kB / 495.6 MB, free: 5.785 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.872e-05/0.152, allocations: 0 / 495.6 MB, free: 5.785 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 305 * Number of variables: 305 Notification: Performance of Generate backend data structure: time 0.004919/0.1569, allocations: 2.117 MB / 497.7 MB, free: 3.484 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.675e-05/0.157, allocations: 11.89 kB / 497.7 MB, free: 3.473 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008192/0.1578, allocations: 163.5 kB / 497.9 MB, free: 3.312 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001301/0.1591, allocations: 0.6156 MB / 498.5 MB, free: 2.66 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002082/0.1593, allocations: 161.3 kB / 498.7 MB, free: 2.488 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003128/0.1597, allocations: 140 kB / 498.8 MB, free: 2.352 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004614/0.1643, allocations: 2.339 MB / 0.4894 GB, free: 15.88 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.196e-05/0.1643, allocations: 3.938 kB / 0.4894 GB, free: 15.88 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002307/0.1646, allocations: 67.97 kB / 0.4895 GB, free: 15.81 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002107/0.1648, allocations: 93.92 kB / 0.4895 GB, free: 15.72 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00313/0.1679, allocations: 1.581 MB / 0.4911 GB, free: 14.14 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01018/0.1781, allocations: 5.523 MB / 0.4965 GB, free: 8.441 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003976/0.1822, allocations: 2.706 MB / 0.4991 GB, free: 5.699 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003649/0.1858, allocations: 2.516 MB / 0.5016 GB, free: 3.172 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000175/0.1861, allocations: 97.64 kB / 0.5017 GB, free: 3.059 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003168/0.1892, allocations: 1.607 MB / 0.5032 GB, free: 1.402 MB / 382.1 MB Notification: Performance of pre-optimization done (n=147): time 5.289e-06/0.1893, allocations: 0 / 0.5032 GB, free: 1.402 MB / 382.1 MB Notification: Performance of matching and sorting (n=147): time 0.3812/0.5705, allocations: 4.606 MB / 0.5077 GB, free: 35.01 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0007406/0.5713, allocations: 1.049 MB / 0.5088 GB, free: 33.93 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001637/0.573, allocations: 0.613 MB / 0.5094 GB, free: 33.65 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004104/0.5734, allocations: 102.3 kB / 0.5095 GB, free: 33.59 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005709/0.574, allocations: 397.7 kB / 0.5098 GB, free: 33.3 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007448/0.5748, allocations: 370.4 kB / 0.5102 GB, free: 33.05 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001341/0.5762, allocations: 410.7 kB / 0.5106 GB, free: 32.89 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001284/0.5763, allocations: 334.2 kB / 0.5109 GB, free: 32.57 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00232/0.5787, allocations: 0.7157 MB / 0.5116 GB, free: 32.34 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002946/0.5816, allocations: 1.408 MB / 0.513 GB, free: 31.25 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008967/0.5906, allocations: 4.508 MB / 0.5174 GB, free: 27.78 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.845e-05/0.5908, allocations: 6.922 kB / 0.5174 GB, free: 27.78 MB / 382.1 MB Notification: Performance of matching and sorting (n=279) (initialization): time 0.009157/0.6, allocations: 3.208 MB / 0.5205 GB, free: 26.16 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004534/0.6005, allocations: 0.6307 MB / 0.5211 GB, free: 25.5 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.28e-05/0.6006, allocations: 23.69 kB / 0.5212 GB, free: 25.5 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001253/0.6007, allocations: 31.67 kB / 0.5212 GB, free: 25.5 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001351/0.6021, allocations: 220 kB / 0.5214 GB, free: 25.46 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001002/0.6022, allocations: 44.42 kB / 0.5214 GB, free: 25.45 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001985/0.6042, allocations: 238.3 kB / 0.5217 GB, free: 25.31 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004826/0.6048, allocations: 105.8 kB / 0.5218 GB, free: 25.29 MB / 382.1 MB Warning: Assuming fixed start value for the following 48 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.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 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: 243 ($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.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,$whenCondition14,$PRE.P2.reStart,$whenCondition11,$PRE.P1.tokeninout,P1.outTransition[1].tokenInOut,$PRE.T1.ani,$PRE.T1.fireTime,T1.ani,T1.fireTime,$PRE.P2.firingSumOut.firingSum,$PRE.P2.firingSumIn.firingSum,P2.tokeninout,$whenCondition9,$whenCondition10,$PRE.P1.firingSumOut.firingSum,$PRE.P1.firingSumIn.firingSum,P1.tokeninout,$whenCondition12,$whenCondition13,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,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,$whenCondition2,$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,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],$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,P1.enableIn.arcWeightSum,$PRE.P1.enableIn.arcWeightSum,P1.delayPassedIn.numtrue,P1.delayPassedIn.anytrue,$whenCondition1,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],$PRE.T1.firingTimeOut,$PRE.T1.firingTimeIn,$PRE.P2.enableIn.arcWeightSum,$PRE.P2.enableIn.TEin[1],$PRE.P1.enableOut.arcWeightSum,$PRE.P1.enableOut.TEout[1],P1.enableOut.arcWeight[1],P2.enableIn.arcWeight[1],T1.activationOut.disPlaceOut[1],P1.enableOut.disTransition[1],T1.activationIn.normalArc[1],T1.activationIn.testValueInt[1],T1.activationIn.arcType[1],T1.activationIn.disPlaceIn[1],T1.activationOut.active,T1.activationOut.maxTokensInt[1],T1.activationOut.arcWeightIntOut[1],T1.activationOut.tIntOut[1],T1.activationIn.active,T1.activationIn.minTokensInt[1],T1.activationIn.arcWeightIntIn[1],T1.activationIn.tIntIn[1],T1.prefire,T1.durationPassedOut,$PRE.T1.durationPassedOut,T1.durationPassedIn,$PRE.T1.durationPassedIn,T1.firingTimeOut,T1.firingTimeIn,T1.fire,$PRE.T1.fire,T1.activeOut,T1.activeIn,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.t,$PRE.P2.t,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.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,$whenCondition4,$whenCondition3,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,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 (251): * Single equations (assignments): 230 * Array equations: 1 * Algorithm blocks: 20 * 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.003131/0.6079, allocations: 1.332 MB / 0.5231 GB, free: 24.36 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000792/0.6087, allocations: 143.3 kB / 0.5232 GB, free: 24.3 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009893/0.6186, allocations: 3.503 MB / 0.5266 GB, free: 22.77 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.939e-05/0.6187, allocations: 9.516 kB / 0.5266 GB, free: 22.77 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.831e-05/0.6188, allocations: 2.547 kB / 0.5266 GB, free: 22.77 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.025e-05/0.6188, allocations: 4.547 kB / 0.5266 GB, free: 22.77 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0144/0.6332, allocations: 5.249 MB / 0.5318 GB, free: 20.42 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.427e-05/0.6333, allocations: 0 / 0.5318 GB, free: 20.42 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003618/0.6337, allocations: 52.38 kB / 0.5318 GB, free: 20.41 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.41e-05/0.6337, allocations: 3.688 kB / 0.5318 GB, free: 20.41 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00034/0.6341, allocations: 76.42 kB / 0.5319 GB, free: 20.39 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.129e-05/0.6341, allocations: 3.938 kB / 0.5319 GB, free: 20.39 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.818e-06/0.6341, allocations: 0 / 0.5319 GB, free: 20.39 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01019/0.6443, allocations: 4.2 MB / 0.536 GB, free: 16.55 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003317/0.6447, allocations: 171.8 kB / 0.5362 GB, free: 16.36 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000738/0.6455, allocations: 147.7 kB / 0.5363 GB, free: 16.22 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001613/0.6471, allocations: 119.9 kB / 0.5364 GB, free: 16.11 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001054/0.6482, allocations: 409.8 kB / 0.5368 GB, free: 15.71 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003846/0.6486, allocations: 91.31 kB / 0.5369 GB, free: 15.62 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006887/0.6493, allocations: 358.8 kB / 0.5372 GB, free: 15.27 MB / 382.1 MB Notification: Performance of sort global known variables: time 5.71e-07/0.6494, allocations: 0 / 0.5372 GB, free: 15.27 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0032/0.6526, allocations: 0.5878 MB / 0.5378 GB, free: 14.7 MB / 382.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: 134 ($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,$whenCondition13,$whenCondition12,$whenCondition14,$whenCondition10,$whenCondition9,$whenCondition11,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition3,$whenCondition4,P1.t,P1.outTransition[1].tokenInOut,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.fire,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) * Number of discrete states: 101 (P1.firingSumOut.firingSum,P1.firingSumIn.firingSum,P2.firingSumOut.firingSum,P2.firingSumIn.firingSum,P1.tokeninout,T1.fire,P2.t,P1.t,P1.activeOut[1],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 (71): * Single equations (assignments): 47 * Array equations: 1 * Algorithm blocks: 16 * 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.002018/0.6546, allocations: 0.5589 MB / 0.5384 GB, free: 14.18 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.007051/0.6617, allocations: 3.757 MB / 0.542 GB, free: 10.18 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.726e-06/0.6618, allocations: 0 / 0.542 GB, free: 10.18 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.007056/0.6688, allocations: 5.765 MB / 0.5477 GB, free: 4.219 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002231/0.6711, allocations: 202.1 kB / 0.5479 GB, free: 4.035 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008286/0.6795, allocations: 2.831 MB / 0.5506 GB, free: 1.172 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008406/0.6804, allocations: 1.103 MB / 0.5517 GB, free: 44 kB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000508/0.6809, allocations: 79.47 kB / 0.5518 GB, free: 15.96 MB / 398.1 MB Notification: Performance of SimCode: time 1.703e-06/0.6809, allocations: 0 / 0.5518 GB, free: 15.96 MB / 398.1 MB Notification: Performance of Templates: time 0.05856/0.7395, allocations: 20.8 MB / 0.5721 GB, free: 11.11 MB / 414.1 MB make -j1 -f PNlib_PNlib.Examples.DisTest.TFDtest.makefile make -j1 -f PNlib_PNlib.Examples.DisTest.TFDtest.makefile clang++ -std=c++17 -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.DisTest.TFDtestCalcHelperMain.o OMCppPNlib_PNlib.Examples.DisTest.TFDtestCalcHelperMain.cpp In file included from OMCppPNlib_PNlib.Examples.DisTest.TFDtestCalcHelperMain.cpp:29: ./OMCppPNlib_PNlib.Examples.DisTest.TFDtestInitialize.cpp:710: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.DisTest.TFDtestInitialize.cpp:745: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.DisTest.TFDtestCalcHelperMain.cpp:29: ./OMCppPNlib_PNlib.Examples.DisTest.TFDtestInitialize.cpp:745: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.DisTest.TFDtestCalcHelperMain.cpp:33: ./OMCppPNlib_PNlib.Examples.DisTest.TFDtest.cpp:174: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.DisTest.TFDtestCalcHelperMain.o] Error 1