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.001242/0.001242, allocations: 110.2 kB / 19.69 MB, free: 2.254 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.00136/0.00136, allocations: 213.2 kB / 23.01 MB, free: 4.566 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.394/1.394, allocations: 230.6 MB / 256.8 MB, free: 8.008 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.07974/0.07974, allocations: 16.94 MB / 330.1 MB, free: 2.309 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.002086/0.002086, allocations: 67.89 kB / 461 MB, free: 1.816 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.117/0.1191, allocations: 57.63 MB / 0.5065 GB, free: 8.098 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.DisTest.PDtoTT): time 0.003396/0.1225, allocations: 1.881 MB / 0.5083 GB, free: 6.207 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003917/0.1264, allocations: 1.976 MB / 0.5103 GB, free: 4.227 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003423/0.1267, allocations: 7.938 kB / 0.5103 GB, free: 4.219 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000424/0.1271, allocations: 115 kB / 0.5104 GB, free: 4.105 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004978/0.1276, allocations: 139.1 kB / 0.5105 GB, free: 3.969 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002201/0.1298, allocations: 0.9668 MB / 0.5115 GB, free: 3 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001895/0.1317, allocations: 1.357 MB / 0.5128 GB, free: 1.641 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002219/0.132, allocations: 69.14 kB / 0.5129 GB, free: 1.57 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008457/0.1328, allocations: 0.5532 MB / 0.5134 GB, free: 1.016 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007442/0.1335, allocations: 386.2 kB / 0.5138 GB, free: 0.6367 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001924/0.1337, allocations: 88 kB / 0.5138 GB, free: 0.5508 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2276/0.3613, allocations: 0.65 MB / 0.5145 GB, free: 11.24 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003403/0.3616, allocations: 147.3 kB / 0.5146 GB, free: 11.24 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006418/0.3623, allocations: 393.3 kB / 0.515 GB, free: 11.18 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001616/0.3639, allocations: 1.196 MB / 0.5162 GB, free: 11.06 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.3639, allocations: 1.688 kB / 0.5162 GB, free: 11.06 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.814e-06/0.3639, allocations: 1.125 kB / 0.5162 GB, free: 11.06 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.979e-06/0.3639, allocations: 1.062 kB / 0.5162 GB, free: 11.06 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.001559/0.3655, allocations: 1.216 MB / 0.5174 GB, free: 10.27 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.704e-05/0.3655, allocations: 9.188 kB / 0.5174 GB, free: 10.27 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00031/0.3658, allocations: 98 kB / 0.5175 GB, free: 10.23 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005348/0.3664, allocations: 381.2 kB / 0.5178 GB, free: 10.05 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.557e-05/0.3664, allocations: 112.5 kB / 0.5179 GB, free: 9.988 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001045/0.3666, allocations: 79.77 kB / 0.518 GB, free: 9.984 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001709/0.3683, allocations: 1.313 MB / 0.5193 GB, free: 9.77 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.134e-05/0.3683, allocations: 5.562 kB / 0.5193 GB, free: 9.77 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.96e-05/0.3684, allocations: 39.62 kB / 0.5193 GB, free: 9.77 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.643e-05/0.3685, allocations: 53.59 kB / 0.5194 GB, free: 9.77 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001502/0.37, allocations: 0.8837 MB / 0.5202 GB, free: 9.766 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00384/0.3738, allocations: 3.193 MB / 0.5234 GB, free: 7.984 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001129/0.3749, allocations: 0.6505 MB / 0.524 GB, free: 7.938 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008467/0.3758, allocations: 0.5616 MB / 0.5245 GB, free: 7.75 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.214e-05/0.3758, allocations: 6.219 kB / 0.5246 GB, free: 7.75 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001336/0.3772, allocations: 0.897 MB / 0.5254 GB, free: 7.359 MB / 382.1 MB Notification: Performance of pre-optimization done (n=73): time 2.184e-06/0.3772, allocations: 0 / 0.5254 GB, free: 7.359 MB / 382.1 MB Notification: Performance of matching and sorting (n=73): time 0.003594/0.3808, allocations: 2.538 MB / 0.5279 GB, free: 6.305 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002398/0.381, allocations: 0.5629 MB / 0.5285 GB, free: 5.727 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004195/0.3814, allocations: 423.9 kB / 0.5289 GB, free: 5.496 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.874e-05/0.3815, allocations: 71.14 kB / 0.5289 GB, free: 5.445 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001547/0.3817, allocations: 263.9 kB / 0.5292 GB, free: 5.238 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001396/0.3818, allocations: 193.5 kB / 0.5294 GB, free: 5.105 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003095/0.3821, allocations: 225.3 kB / 0.5296 GB, free: 5.016 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001068/0.3822, allocations: 377.7 kB / 0.5299 GB, free: 4.672 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006241/0.3828, allocations: 433.5 kB / 0.5304 GB, free: 4.539 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008517/0.3837, allocations: 0.7923 MB / 0.5311 GB, free: 3.934 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002459/0.3861, allocations: 2.514 MB / 0.5336 GB, free: 2.09 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.257e-05/0.3862, allocations: 2.812 kB / 0.5336 GB, free: 2.09 MB / 382.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002409/0.3886, allocations: 1.817 MB / 0.5354 GB, free: 1.266 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001609/0.3887, allocations: 336.1 kB / 0.5357 GB, free: 0.9297 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.936e-05/0.3887, allocations: 10.44 kB / 0.5357 GB, free: 0.9297 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.455e-05/0.3888, allocations: 17.78 kB / 0.5357 GB, free: 0.9297 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003578/0.3891, allocations: 121.5 kB / 0.5358 GB, free: 0.9219 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.761e-05/0.3892, allocations: 21.08 kB / 0.5358 GB, free: 0.9219 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005332/0.3897, allocations: 136.3 kB / 0.536 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.239e-05/0.3898, allocations: 56.11 kB / 0.536 GB, free: 0.8398 MB / 382.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.0009444/0.3907, allocations: 0.7592 MB / 0.5368 GB, free: 324 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001504/0.3909, allocations: 77.05 kB / 0.5368 GB, free: 296 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003156/0.394, allocations: 1.951 MB / 0.5387 GB, free: 15.44 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-05/0.3941, allocations: 10.28 kB / 0.5388 GB, free: 15.44 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.543e-06/0.3941, allocations: 1.188 kB / 0.5388 GB, free: 15.44 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.008e-05/0.3941, allocations: 3.906 kB / 0.5388 GB, free: 15.44 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003883/0.398, allocations: 2.723 MB / 0.5414 GB, free: 14.16 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.139e-06/0.398, allocations: 4.844 kB / 0.5414 GB, free: 14.16 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001111/0.3981, allocations: 21 kB / 0.5414 GB, free: 14.16 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.681e-06/0.3981, allocations: 2.344 kB / 0.5414 GB, free: 14.16 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001009/0.3982, allocations: 39.72 kB / 0.5415 GB, free: 14.15 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.282e-06/0.3982, allocations: 1.938 kB / 0.5415 GB, free: 14.15 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.3982, allocations: 0 / 0.5415 GB, free: 14.15 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003394/0.4016, allocations: 2.328 MB / 0.5438 GB, free: 13.04 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001004/0.4017, allocations: 57.61 kB / 0.5438 GB, free: 13 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002259/0.4019, allocations: 75.47 kB / 0.5439 GB, free: 12.98 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004393/0.4024, allocations: 65.98 kB / 0.5439 GB, free: 12.97 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005306/0.4029, allocations: 341.3 kB / 0.5443 GB, free: 12.88 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.809e-05/0.403, allocations: 43.52 kB / 0.5443 GB, free: 12.87 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002795/0.4033, allocations: 251 kB / 0.5446 GB, free: 12.73 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4033, allocations: 0 / 0.5446 GB, free: 12.73 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001175/0.4044, allocations: 337.8 kB / 0.5449 GB, free: 12.68 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.0007212/0.4052, allocations: 385.7 kB / 0.5452 GB, free: 12.53 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002582/0.4077, allocations: 1.912 MB / 0.5471 GB, free: 11.45 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.909e-06/0.4077, allocations: 10.2 kB / 0.5471 GB, free: 11.45 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001494/0.4092, allocations: 1.227 MB / 0.5483 GB, free: 10.66 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005969/0.4098, allocations: 102 kB / 0.5484 GB, free: 10.64 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0027/0.4125, allocations: 1.577 MB / 0.55 GB, free: 9.773 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005344/0.4131, allocations: 0.9096 MB / 0.5508 GB, free: 8.969 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001345/0.4132, allocations: 55.55 kB / 0.5509 GB, free: 8.949 MB / 398.1 MB Notification: Performance of SimCode: time 5.11e-07/0.4132, allocations: 0 / 0.5509 GB, free: 8.949 MB / 398.1 MB Notification: Performance of Templates: time 0.01775/0.431, allocations: 12.29 MB / 0.5629 GB, free: 15.36 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 -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.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.293244689935818] Failed to read output from testmodel.py, exit status != 0: 0.4396908020135015 0.45372302299999995 0.086670363 Calling exit ...