Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PNlib_PNlib.Examples.DisTest.PDtoTT.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001194/0.001194, allocations: 104.4 kB / 19.7 MB, free: 2.125 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00127/0.00127, allocations: 214.6 kB / 22.99 MB, free: 4.945 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.367/1.367, allocations: 230.6 MB / 256.8 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib master/package.mo): time 0.07925/0.07925, allocations: 16.96 MB / 330.1 MB, free: 2.188 MB / 254.1 MB " [Timeout remaining time 180] Using package PNlib with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(PNlib.Examples.DisTest.PDtoTT,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="P1.t|T1.active|T1.fire|time",fileNamePrefix="PNlib_PNlib.Examples.DisTest.PDtoTT") translateModel(PNlib.Examples.DisTest.PDtoTT,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="P1.t|T1.active|T1.fire|time",fileNamePrefix="PNlib_PNlib.Examples.DisTest.PDtoTT") [Timeout 660] "Notification: PNlib requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002071/0.002071, allocations: 63.91 kB / 460.9 MB, free: 1.66 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1142/0.1163, allocations: 57.63 MB / 0.5064 GB, free: 7.938 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.DisTest.PDtoTT): time 0.003342/0.1197, allocations: 1.725 MB / 0.5081 GB, free: 6.211 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003659/0.1233, allocations: 1.894 MB / 0.51 GB, free: 4.312 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002097/0.1235, allocations: 7.938 kB / 0.51 GB, free: 4.305 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003593/0.1239, allocations: 111.1 kB / 0.5101 GB, free: 4.195 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003685/0.1243, allocations: 143 kB / 0.5102 GB, free: 4.055 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002006/0.1263, allocations: 0.955 MB / 0.5111 GB, free: 3.098 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001482/0.1277, allocations: 1.35 MB / 0.5125 GB, free: 1.746 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001979/0.1279, allocations: 61.16 kB / 0.5125 GB, free: 1.684 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000587/0.1285, allocations: 0.5455 MB / 0.513 GB, free: 1.137 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005554/0.1291, allocations: 370.2 kB / 0.5134 GB, free: 0.7734 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001351/0.1292, allocations: 88 kB / 0.5135 GB, free: 0.6875 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009816/0.1302, allocations: 0.6007 MB / 0.5141 GB, free: 88 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.2073/0.3375, allocations: 149.3 kB / 0.5142 GB, free: 11.26 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000563/0.3381, allocations: 331.6 kB / 0.5145 GB, free: 11.26 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001503/0.3396, allocations: 1.192 MB / 0.5157 GB, free: 11.14 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.3396, allocations: 0.8438 kB / 0.5157 GB, free: 11.14 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.3396, allocations: 0 / 0.5157 GB, free: 11.14 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.277e-06/0.3396, allocations: 1.375 kB / 0.5157 GB, free: 11.14 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 163 * Number of variables: 163 Notification: Performance of Generate backend data structure: time 0.001356/0.3409, allocations: 1.211 MB / 0.5169 GB, free: 10.34 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.34e-05/0.341, allocations: 9.844 kB / 0.5169 GB, free: 10.34 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002793/0.3412, allocations: 95.69 kB / 0.517 GB, free: 10.31 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005279/0.3418, allocations: 379.5 kB / 0.5173 GB, free: 10.13 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.247e-05/0.3419, allocations: 115 kB / 0.5174 GB, free: 10.06 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000109/0.342, allocations: 78.22 kB / 0.5175 GB, free: 10.06 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001709/0.3437, allocations: 1.784 MB / 0.5193 GB, free: 9.441 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.775e-05/0.3437, allocations: 2.25 kB / 0.5193 GB, free: 9.441 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.619e-05/0.3438, allocations: 38.02 kB / 0.5193 GB, free: 9.441 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.975e-05/0.3439, allocations: 56.39 kB / 0.5194 GB, free: 9.441 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001487/0.3454, allocations: 1.227 MB / 0.5206 GB, free: 9.188 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003031/0.3484, allocations: 2.889 MB / 0.5234 GB, free: 7.449 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001192/0.3496, allocations: 0.9958 MB / 0.5243 GB, free: 7.059 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001027/0.3506, allocations: 0.9072 MB / 0.5252 GB, free: 6.531 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.744e-05/0.3507, allocations: 10.36 kB / 0.5252 GB, free: 6.531 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001484/0.3521, allocations: 1.267 MB / 0.5265 GB, free: 5.789 MB / 382.1 MB Notification: Performance of pre-optimization done (n=73): time 2.074e-06/0.3521, allocations: 1.281 kB / 0.5265 GB, free: 5.789 MB / 382.1 MB Notification: Performance of matching and sorting (n=73): time 0.003851/0.356, allocations: 3.328 MB / 0.5297 GB, free: 4.07 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002032/0.3562, allocations: 0.564 MB / 0.5303 GB, free: 3.492 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003714/0.3566, allocations: 380.5 kB / 0.5306 GB, free: 3.281 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.08e-05/0.3566, allocations: 64.2 kB / 0.5307 GB, free: 3.234 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001417/0.3568, allocations: 278.7 kB / 0.531 GB, free: 3.016 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000128/0.3569, allocations: 201.8 kB / 0.5312 GB, free: 2.875 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002753/0.3572, allocations: 229.8 kB / 0.5314 GB, free: 2.781 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.136e-05/0.3573, allocations: 367.6 kB / 0.5317 GB, free: 2.445 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007237/0.358, allocations: 0.7428 MB / 0.5325 GB, free: 1.961 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008485/0.3588, allocations: 1.212 MB / 0.5336 GB, free: 0.9023 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002759/0.3616, allocations: 2.519 MB / 0.5361 GB, free: 15.07 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.3e-05/0.3616, allocations: 7.766 kB / 0.5361 GB, free: 15.07 MB / 398.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002799/0.3644, allocations: 2.145 MB / 0.5382 GB, free: 13.89 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002762/0.3647, allocations: 330.9 kB / 0.5385 GB, free: 13.56 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.255e-05/0.3647, allocations: 13.53 kB / 0.5385 GB, free: 13.56 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.972e-05/0.3648, allocations: 17.61 kB / 0.5386 GB, free: 13.56 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003918/0.3651, allocations: 120.7 kB / 0.5387 GB, free: 13.55 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.187e-05/0.3652, allocations: 26.66 kB / 0.5387 GB, free: 13.55 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000542/0.3657, allocations: 127 kB / 0.5388 GB, free: 13.48 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001076/0.3658, allocations: 53.12 kB / 0.5389 GB, free: 13.47 MB / 398.1 MB Warning: Assuming fixed start value for the following 25 variables: P1.enableOut.valid:DISCRETE(fixed = true protected = true ) \"valid solution\" type: Boolean P1.enableOut.benefitLimit:DISCRETE(fixed = true protected = true ) \"best valid benefit\" type: Real P1.enableOut.benefitMax:DISCRETE(fixed = true protected = true ) \"theoretical benefit\" type: Real P1.enableOut.posTE:DISCRETE(fixed = true protected = true ) \"possible enabled transition\" type: Integer P1.enableOut.k:DISCRETE(fixed = true protected = true ) \"iteration index\" type: Integer P1.enableOut.endWhile:DISCRETE(fixed = true protected = true ) type: Boolean P1.enableOut.sumEnablingProbTAout:DISCRETE(fixed = true protected = true ) \"sum of the enabling probabilities of the active output transitions\" type: Real P1.enableOut.nTAout:DISCRETE(fixed = true protected = true ) \"number of active output transitions\" type: Integer P1.enableOut.nremTAout:DISCRETE(fixed = true protected = true ) \"number of remaining active output transitions\" type: Integer P1.enableOut.Index:DISCRETE(fixed = true protected = true ) \"priority Index\" type: Integer T1.ani:DISCRETE(fixed = true protected = true ) \"for transition animation\" type: Boolean T1.fireTime:DISCRETE(fixed = true protected = true ) \"for transition animation\" type: Real P1.firingSumOut.firingSum:DISCRETE(fixed = true protected = true ) \"firing sum\" type: Integer P1.firingSumIn.firingSum:DISCRETE(fixed = true protected = true ) \"firing sum\" 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.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: 50 * Number of states: 0 () * Number of discrete variables: 125 ($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,$whenCondition7,$PRE.P1.tokeninout,P1.outTransition[1].tokenInOut,$PRE.T1.ani,$PRE.T1.fireTime,T1.ani,T1.fireTime,$PRE.P1.firingSumOut.firingSum,$PRE.P1.firingSumIn.firingSum,P1.tokeninout,$whenCondition5,$whenCondition6,P1.firingSumIn.firingSum,$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.inPlaces[1].disTransition,P1.outTransition[1].normalArc,P1.outTransition[1].testValueint,P1.outTransition[1].arcType,P1.outTransition[1].disPlace,P1.reStart,$PRE.T1.firingTime,$PRE.P1.enableOut.arcWeightSum,$PRE.P1.enableOut.TEout[1],P1.enableOut.arcWeight[1],P1.enableOut.disTransition[1],T1.activation.normalArc[1],T1.activation.testValueInt[1],T1.activation.arcType[1],T1.activation.disPlaceIn[1],T1.activation.active,T1.activation.minTokensInt[1],T1.activation.arcWeightIntIn[1],T1.activation.tIntIn[1],T1.firingTime,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,$whenCondition2,$whenCondition3,$whenCondition4,T1.enabledByOutPlaces,P1.outTransition[1].fed) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (130): * Single equations (assignments): 119 * Array equations: 1 * Algorithm blocks: 10 * 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.001115/0.3669, allocations: 0.7533 MB / 0.5396 GB, free: 12.95 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001674/0.3671, allocations: 75.97 kB / 0.5397 GB, free: 12.92 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00348/0.3706, allocations: 2.32 MB / 0.5419 GB, free: 11.79 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.772e-05/0.3706, allocations: 8.453 kB / 0.5419 GB, free: 11.79 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/0.3706, allocations: 0 / 0.5419 GB, free: 11.79 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.903e-06/0.3706, allocations: 3.016 kB / 0.5419 GB, free: 11.79 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003818/0.3744, allocations: 2.845 MB / 0.5447 GB, free: 10.34 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.977e-06/0.3744, allocations: 1.156 kB / 0.5447 GB, free: 10.34 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001035/0.3745, allocations: 24.31 kB / 0.5448 GB, free: 10.34 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.688e-06/0.3745, allocations: 2.062 kB / 0.5448 GB, free: 10.34 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.245e-05/0.3746, allocations: 43.31 kB / 0.5448 GB, free: 10.34 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.056e-06/0.3746, allocations: 1.125 kB / 0.5448 GB, free: 10.34 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.003e-06/0.3746, allocations: 1.891 kB / 0.5448 GB, free: 10.34 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003633/0.3783, allocations: 2.789 MB / 0.5475 GB, free: 8.859 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.845e-05/0.3783, allocations: 50.16 kB / 0.5476 GB, free: 8.824 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002053/0.3786, allocations: 74.44 kB / 0.5476 GB, free: 8.801 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004482/0.379, allocations: 76.52 kB / 0.5477 GB, free: 8.789 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005117/0.3795, allocations: 328 kB / 0.548 GB, free: 8.699 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.997e-05/0.3796, allocations: 46.89 kB / 0.5481 GB, free: 8.691 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002072/0.3798, allocations: 212.5 kB / 0.5483 GB, free: 8.578 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3798, allocations: 0 / 0.5483 GB, free: 8.578 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001126/0.3809, allocations: 340.2 kB / 0.5486 GB, free: 8.52 MB / 398.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: 66 ($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,$whenCondition6,$whenCondition5,$whenCondition7,$whenCondition4,$whenCondition3,$whenCondition2,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,T1.firingTime,T1.fireTime,T1.ani,T1.activation.tIntIn[1],T1.activation.arcWeightIntIn[1],T1.activation.minTokensInt[1],T1.activation.active) * Number of discrete states: 51 (P1.firingSumOut.firingSum,P1.firingSumIn.firingSum,P1.tokeninout,P1.t,P1.activeOut[1],T1.activation.active,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],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 (35): * Single equations (assignments): 22 * Array equations: 1 * Algorithm blocks: 8 * Record equations: 0 * When equations: 4 * 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.0007276/0.3817, allocations: 397.1 kB / 0.549 GB, free: 8.363 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003089/0.3848, allocations: 2.592 MB / 0.5515 GB, free: 6.617 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.366e-06/0.3848, allocations: 1.25 kB / 0.5515 GB, free: 6.617 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001871/0.3866, allocations: 1.569 MB / 0.553 GB, free: 5.508 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005102/0.3871, allocations: 83.72 kB / 0.5531 GB, free: 5.488 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003076/0.3902, allocations: 1.911 MB / 0.555 GB, free: 4.25 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003494/0.3906, allocations: 311 kB / 0.5553 GB, free: 4.051 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001335/0.3907, allocations: 50.27 kB / 0.5553 GB, free: 4.035 MB / 398.1 MB Notification: Performance of SimCode: time 1.152e-06/0.3907, allocations: 3.938 kB / 0.5553 GB, free: 4.031 MB / 398.1 MB Notification: Performance of Templates: time 0.01699/0.4077, allocations: 12.06 MB / 0.5671 GB, free: 9.984 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f PNlib_PNlib.Examples.DisTest.PDtoTT.makefile [Timeout 660] make -j1 -f PNlib_PNlib.Examples.DisTest.PDtoTT.makefile clang++ -std=c++17 -fopenmp=libomp -Winvalid-pch -O2 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DOMC_BUILD -DUSE_THREAD -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.PDtoTTCalcHelperMain.o OMCppPNlib_PNlib.Examples.DisTest.PDtoTTCalcHelperMain.cpp In file included from OMCppPNlib_PNlib.Examples.DisTest.PDtoTTCalcHelperMain.cpp:29: ./OMCppPNlib_PNlib.Examples.DisTest.PDtoTTInitialize.cpp:651: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.PDtoTTInitialize.cpp:686: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.PDtoTTCalcHelperMain.cpp:29: ./OMCppPNlib_PNlib.Examples.DisTest.PDtoTTInitialize.cpp:686: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.PDtoTTCalcHelperMain.cpp:33: ./OMCppPNlib_PNlib.Examples.DisTest.PDtoTT.cpp:160: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.PDtoTTCalcHelperMain.o] Error 1 [Calling os._exit(0), Time elapsed: 4.121890532318503] Failed to read output from testmodel.py, exit status != 0: 0.4165472788736224 0.43067949699999997 0.08807414100000001 Calling exit ...