Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PNlib_PNlib.Examples.DisTest.PDtoTDfunction.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.001702/0.001702, allocations: 102.1 kB / 19.7 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.002097/0.002097, allocations: 215.8 kB / 23.01 MB, free: 4.609 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.452/1.452, allocations: 230.6 MB / 256.8 MB, free: 8.051 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.07902/0.07902, allocations: 16.94 MB / 330.1 MB, free: 2.344 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.PDtoTDfunction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="P1.t|T1.active|T1.fire|time",fileNamePrefix="PNlib_PNlib.Examples.DisTest.PDtoTDfunction") translateModel(PNlib.Examples.DisTest.PDtoTDfunction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="P1.t|T1.active|T1.fire|time",fileNamePrefix="PNlib_PNlib.Examples.DisTest.PDtoTDfunction") [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.002001/0.002001, allocations: 59.91 kB / 461 MB, free: 1.848 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1157/0.1177, allocations: 57.64 MB / 0.5065 GB, free: 8.129 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.DisTest.PDtoTDfunction): time 0.003346/0.1211, allocations: 1.881 MB / 0.5083 GB, free: 6.238 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003635/0.1247, allocations: 1.937 MB / 0.5102 GB, free: 4.297 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002119/0.1249, allocations: 11.94 kB / 0.5102 GB, free: 4.285 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003788/0.1253, allocations: 111.1 kB / 0.5103 GB, free: 4.176 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000417/0.1257, allocations: 143 kB / 0.5105 GB, free: 4.035 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002026/0.1277, allocations: 0.9473 MB / 0.5114 GB, free: 3.086 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001555/0.1293, allocations: 1.365 MB / 0.5127 GB, free: 1.719 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001964/0.1295, allocations: 65.14 kB / 0.5128 GB, free: 1.652 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000655/0.1301, allocations: 0.5532 MB / 0.5133 GB, free: 1.098 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005718/0.1307, allocations: 390.2 kB / 0.5137 GB, free: 0.7148 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001351/0.1309, allocations: 88 kB / 0.5138 GB, free: 0.6289 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2107/0.3415, allocations: 0.6509 MB / 0.5144 GB, free: 11.25 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000331/0.3418, allocations: 150.7 kB / 0.5146 GB, free: 11.25 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005503/0.3424, allocations: 396.9 kB / 0.515 GB, free: 11.2 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0015/0.3439, allocations: 1.188 MB / 0.5161 GB, free: 11.07 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.3439, allocations: 0 / 0.5161 GB, free: 11.07 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.3439, allocations: 0 / 0.5161 GB, free: 11.07 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.327e-06/0.3439, allocations: 2.469 kB / 0.5161 GB, free: 11.07 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: 165 * Number of variables: 165 Notification: Performance of Generate backend data structure: time 0.001448/0.3454, allocations: 1.219 MB / 0.5173 GB, free: 10.27 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.792e-05/0.3454, allocations: 10.41 kB / 0.5173 GB, free: 10.27 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003037/0.3457, allocations: 96.81 kB / 0.5174 GB, free: 10.24 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005197/0.3462, allocations: 373.9 kB / 0.5178 GB, free: 10.07 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.473e-05/0.3463, allocations: 115.8 kB / 0.5179 GB, free: 10 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001037/0.3464, allocations: 75.31 kB / 0.518 GB, free: 10 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001657/0.3481, allocations: 1.323 MB / 0.5192 GB, free: 9.789 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.095e-05/0.3481, allocations: 2.578 kB / 0.5192 GB, free: 9.789 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.869e-05/0.3482, allocations: 39.55 kB / 0.5193 GB, free: 9.789 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.048e-05/0.3483, allocations: 54.09 kB / 0.5193 GB, free: 9.789 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001393/0.3497, allocations: 0.9115 MB / 0.5202 GB, free: 9.785 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003356/0.353, allocations: 3.212 MB / 0.5234 GB, free: 8.008 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001153/0.3542, allocations: 0.7269 MB / 0.5241 GB, free: 7.949 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008836/0.3551, allocations: 0.5944 MB / 0.5247 GB, free: 7.73 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.461e-05/0.3551, allocations: 7.312 kB / 0.5247 GB, free: 7.73 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001335/0.3564, allocations: 0.9232 MB / 0.5256 GB, free: 7.34 MB / 382.1 MB Notification: Performance of pre-optimization done (n=77): time 2.014e-06/0.3564, allocations: 1.75 kB / 0.5256 GB, free: 7.34 MB / 382.1 MB Notification: Performance of matching and sorting (n=77): time 0.003577/0.36, allocations: 2.626 MB / 0.5281 GB, free: 6.254 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002278/0.3602, allocations: 0.5329 MB / 0.5286 GB, free: 5.711 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004145/0.3607, allocations: 417.5 kB / 0.529 GB, free: 5.484 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.327e-05/0.3607, allocations: 66.86 kB / 0.5291 GB, free: 5.438 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001572/0.3609, allocations: 265.1 kB / 0.5294 GB, free: 5.227 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001447/0.361, allocations: 198.8 kB / 0.5296 GB, free: 5.09 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002934/0.3613, allocations: 229.5 kB / 0.5298 GB, free: 4.996 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.127e-05/0.3614, allocations: 373.9 kB / 0.5301 GB, free: 4.656 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000633/0.3621, allocations: 443.1 kB / 0.5306 GB, free: 4.52 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007517/0.3628, allocations: 0.8103 MB / 0.5313 GB, free: 3.902 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002425/0.3652, allocations: 2.543 MB / 0.5338 GB, free: 2.039 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.04e-05/0.3653, allocations: 4.062 kB / 0.5338 GB, free: 2.039 MB / 382.1 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.00233/0.3676, allocations: 1.841 MB / 0.5356 GB, free: 1.203 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000144/0.3677, allocations: 338.8 kB / 0.536 GB, free: 0.8672 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.95e-05/0.3677, allocations: 12.02 kB / 0.536 GB, free: 0.8672 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.006e-05/0.3678, allocations: 17.47 kB / 0.536 GB, free: 0.8672 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003539/0.3681, allocations: 119.8 kB / 0.5361 GB, free: 0.8594 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.613e-05/0.3682, allocations: 29.94 kB / 0.5361 GB, free: 0.8555 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004831/0.3686, allocations: 131.6 kB / 0.5362 GB, free: 0.7891 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.99e-05/0.3687, allocations: 54.27 kB / 0.5363 GB, free: 0.7812 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: 51 * Number of states: 0 () * Number of discrete variables: 128 ($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,T1.inPlaces[1].tokenInOut,$PRE.P1.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.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.delayPassed,$PRE.T1.delayPassed,T1.firingTime,T1.active,P1.enableOut.arcWeightSum,P1.enableOut.TEout[1],P1.enableOut.TEout_[1],P1.enableOut.TAout[1],P1.enableOut.arcWeight[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 (134): * Single equations (assignments): 123 * 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.0008326/0.3696, allocations: 0.7569 MB / 0.537 GB, free: 264 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001393/0.3697, allocations: 78.77 kB / 0.5371 GB, free: 236 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003289/0.373, allocations: 2.041 MB / 0.5391 GB, free: 15.41 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.768e-05/0.373, allocations: 4.609 kB / 0.5391 GB, free: 15.41 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.703e-06/0.373, allocations: 1.875 kB / 0.5391 GB, free: 15.41 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.285e-06/0.373, allocations: 7.344 kB / 0.5391 GB, free: 15.4 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004418/0.3774, allocations: 3.014 MB / 0.5421 GB, free: 14 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.227e-06/0.3774, allocations: 1.375 kB / 0.5421 GB, free: 14 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001317/0.3776, allocations: 31.89 kB / 0.5421 GB, free: 14 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.249e-06/0.3776, allocations: 2.062 kB / 0.5421 GB, free: 14 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.04e-05/0.3777, allocations: 39.86 kB / 0.5421 GB, free: 13.99 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.526e-06/0.3777, allocations: 2.062 kB / 0.5421 GB, free: 13.99 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.3777, allocations: 1.062 kB / 0.5421 GB, free: 13.99 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003322/0.381, allocations: 2.399 MB / 0.5445 GB, free: 12.84 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.67e-05/0.3811, allocations: 60.22 kB / 0.5445 GB, free: 12.8 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002023/0.3813, allocations: 79.02 kB / 0.5446 GB, free: 12.77 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004498/0.3817, allocations: 81.92 kB / 0.5447 GB, free: 12.76 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005146/0.3823, allocations: 332.6 kB / 0.545 GB, free: 12.66 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001001/0.3824, allocations: 47.66 kB / 0.5451 GB, free: 12.66 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002707/0.3826, allocations: 241.9 kB / 0.5453 GB, free: 12.53 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3826, allocations: 0 / 0.5453 GB, free: 12.53 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001136/0.3838, allocations: 339.7 kB / 0.5456 GB, free: 12.47 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: 69 ($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,T1.active,$whenCondition6,$whenCondition5,$whenCondition7,$whenCondition4,$whenCondition3,$whenCondition2,P1.t,P1.tokeninout,P1.activeOut[1],P1.activeConOut.vec[1],P1.activeConOut.anychange,P1.delayPassedOut.vec[1],P1.delayPassedOut.anytrue,P1.delayPassedOut.numtrue,P1.firingSumIn.firingSum,P1.firingSumOut.fire[1],P1.firingSumOut.arcWeight[1],P1.firingSumOut.firingSum,P1.enableOut.arcWeight[1],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.inPlaces[1].tokenInOut,T1.firingTime,T1.fireTime,T1.delayPassed,T1.ani,T1.activation.tIntIn[1],T1.activation.arcWeightIntIn[1],T1.activation.minTokensInt[1],T1.activation.active) * Number of discrete states: 52 (P1.firingSumOut.firingSum,P1.firingSumIn.firingSum,P1.tokeninout,P1.t,P1.activeOut[1],T1.activation.active,T1.delayPassed,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 (39): * Single equations (assignments): 26 * 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.0007353/0.3845, allocations: 389.5 kB / 0.546 GB, free: 12.32 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002595/0.3871, allocations: 1.954 MB / 0.5479 GB, free: 11.23 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.466e-06/0.3871, allocations: 384 / 0.5479 GB, free: 11.23 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001592/0.3887, allocations: 1.263 MB / 0.5491 GB, free: 10.41 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006052/0.3893, allocations: 114.6 kB / 0.5492 GB, free: 10.37 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002813/0.3921, allocations: 1.658 MB / 0.5508 GB, free: 9.422 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006043/0.3927, allocations: 0.9077 MB / 0.5517 GB, free: 8.625 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001315/0.3928, allocations: 55.33 kB / 0.5518 GB, free: 8.609 MB / 398.1 MB Notification: Performance of SimCode: time 4.9e-07/0.3928, allocations: 0 / 0.5518 GB, free: 8.609 MB / 398.1 MB Notification: Performance of Templates: time 0.01787/0.4107, allocations: 12.37 MB / 0.5639 GB, free: 14.48 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f PNlib_PNlib.Examples.DisTest.PDtoTDfunction.makefile [Timeout 660] make -j1 -f PNlib_PNlib.Examples.DisTest.PDtoTDfunction.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.PDtoTDfunctionCalcHelperMain.o OMCppPNlib_PNlib.Examples.DisTest.PDtoTDfunctionCalcHelperMain.cpp In file included from OMCppPNlib_PNlib.Examples.DisTest.PDtoTDfunctionCalcHelperMain.cpp:29: ./OMCppPNlib_PNlib.Examples.DisTest.PDtoTDfunctionInitialize.cpp:564: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.PDtoTDfunctionInitialize.cpp:599: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.PDtoTDfunctionCalcHelperMain.cpp:29: ./OMCppPNlib_PNlib.Examples.DisTest.PDtoTDfunctionInitialize.cpp:599: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.PDtoTDfunctionCalcHelperMain.cpp:33: ./OMCppPNlib_PNlib.Examples.DisTest.PDtoTDfunction.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.PDtoTDfunctionCalcHelperMain.o] Error 1 [Calling os._exit(0), Time elapsed: 4.370959305204451] Failed to read output from testmodel.py, exit status != 0: 0.41989119490608573 0.43388027399999995 0.086927896 Calling exit ...