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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001589/0.001589, allocations: 120.3 kB / 17.13 MB, free: 5.918 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001774/0.001774, allocations: 193.2 kB / 20.08 MB, free: 2.988 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.57/1.57, allocations: 225.6 MB / 248.5 MB, free: 3.609 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 3.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 3.0.0-master/package.mo): time 0.07714/0.07714, allocations: 16.96 MB / 320.3 MB, free: 13.1 MB / 254.1 MB " [Timeout remaining time 180] 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.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: Performance of FrontEnd - loaded program: time 0.002189/0.002189, allocations: 67.77 kB / 447.3 MB, free: 44.87 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1121/0.1143, allocations: 56.41 MB / 0.4919 GB, free: 18.37 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.DisTest.PDtoTDfunction): time 0.003423/0.1177, allocations: 1.888 MB / 0.4937 GB, free: 16.89 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003788/0.1215, allocations: 1.917 MB / 0.4956 GB, free: 15.39 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006073/0.1221, allocations: 12.75 kB / 0.4956 GB, free: 15.38 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000454/0.1225, allocations: 111.9 kB / 0.4957 GB, free: 15.29 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005665/0.1231, allocations: 141.7 kB / 0.4958 GB, free: 15.17 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002331/0.1254, allocations: 0.8954 MB / 0.4967 GB, free: 14.5 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001736/0.1272, allocations: 1.324 MB / 0.498 GB, free: 13.68 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002515/0.1274, allocations: 97.02 kB / 0.4981 GB, free: 13.64 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004494/0.1279, allocations: 0.5279 MB / 0.4986 GB, free: 13.3 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004223/0.1283, allocations: 369.9 kB / 0.499 GB, free: 13.03 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001614/0.1284, allocations: 88.66 kB / 0.499 GB, free: 13.03 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008861/0.1293, allocations: 0.5434 MB / 0.4996 GB, free: 12.75 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001634/0.1295, allocations: 150.1 kB / 0.4997 GB, free: 12.65 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003562/0.1299, allocations: 393.7 kB / 0.5001 GB, free: 12.37 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001258/0.1311, allocations: 1.182 MB / 0.5013 GB, free: 11.54 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.1311, allocations: 5.25 kB / 0.5013 GB, free: 11.54 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.1311, allocations: 0 / 0.5013 GB, free: 11.54 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.806e-05/0.1311, allocations: 0 / 0.5013 GB, free: 11.54 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: 165 * Number of variables: 165 Notification: Performance of Generate backend data structure: time 0.001567/0.1327, allocations: 1.298 MB / 0.5025 GB, free: 10.4 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.839e-05/0.1327, allocations: 13.42 kB / 0.5025 GB, free: 10.39 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003375/0.1331, allocations: 95.16 kB / 0.5026 GB, free: 10.36 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004945/0.1336, allocations: 436.3 kB / 0.503 GB, free: 9.969 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.838e-05/0.1337, allocations: 86.98 kB / 0.5031 GB, free: 9.875 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001129/0.1338, allocations: 75.98 kB / 0.5032 GB, free: 9.801 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001631/0.1354, allocations: 1.322 MB / 0.5045 GB, free: 8.41 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.905e-05/0.1354, allocations: 4 kB / 0.5045 GB, free: 8.406 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.061e-05/0.1355, allocations: 39.98 kB / 0.5045 GB, free: 8.367 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.507e-05/0.1356, allocations: 56.89 kB / 0.5046 GB, free: 8.309 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001286/0.1369, allocations: 0.9055 MB / 0.5055 GB, free: 7.402 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003082/0.14, allocations: 3.342 MB / 0.5087 GB, free: 3.91 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009798/0.141, allocations: 0.7201 MB / 0.5094 GB, free: 3.176 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007189/0.1417, allocations: 0.5921 MB / 0.51 GB, free: 2.578 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.094e-05/0.1417, allocations: 89.09 kB / 0.5101 GB, free: 2.473 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001088/0.1428, allocations: 0.9233 MB / 0.511 GB, free: 1.52 MB / 366.1 MB Notification: Performance of pre-optimization done (n=77): time 2.194e-06/0.1428, allocations: 0 / 0.511 GB, free: 1.52 MB / 366.1 MB Notification: Performance of matching and sorting (n=77): time 0.003683/0.1465, allocations: 2.628 MB / 0.5136 GB, free: 14.84 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004245/0.1469, allocations: 0.5348 MB / 0.5141 GB, free: 14.21 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005372/0.1475, allocations: 409.4 kB / 0.5145 GB, free: 13.8 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001051/0.1476, allocations: 73.72 kB / 0.5146 GB, free: 13.72 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002353/0.1478, allocations: 261 kB / 0.5148 GB, free: 13.46 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000216/0.148, allocations: 210.5 kB / 0.515 GB, free: 13.26 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003498/0.1484, allocations: 226.6 kB / 0.5152 GB, free: 13.03 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000223/0.1486, allocations: 378.7 kB / 0.5156 GB, free: 12.65 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007515/0.1494, allocations: 442 kB / 0.516 GB, free: 12.22 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001091/0.1504, allocations: 0.8046 MB / 0.5168 GB, free: 11.25 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003531/0.154, allocations: 2.543 MB / 0.5193 GB, free: 8.375 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.456e-05/0.154, allocations: 4 kB / 0.5193 GB, free: 8.371 MB / 382.1 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.00302/0.157, allocations: 1.833 MB / 0.5211 GB, free: 6.469 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002815/0.1573, allocations: 337 kB / 0.5214 GB, free: 6.078 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.24e-05/0.1573, allocations: 12 kB / 0.5214 GB, free: 6.066 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.251e-05/0.1573, allocations: 16 kB / 0.5214 GB, free: 6.051 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004129/0.1578, allocations: 131.8 kB / 0.5215 GB, free: 5.922 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.719e-05/0.1578, allocations: 19.94 kB / 0.5216 GB, free: 5.902 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005742/0.1584, allocations: 143.6 kB / 0.5217 GB, free: 5.762 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.731e-05/0.1585, allocations: 52 kB / 0.5217 GB, free: 5.711 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.001169/0.1596, allocations: 0.7458 MB / 0.5225 GB, free: 4.898 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001833/0.1598, allocations: 75.67 kB / 0.5225 GB, free: 4.824 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003319/0.1631, allocations: 2.026 MB / 0.5245 GB, free: 2.75 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.29e-05/0.1632, allocations: 8 kB / 0.5245 GB, free: 2.742 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/0.1632, allocations: 0 / 0.5245 GB, free: 2.742 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.648e-06/0.1632, allocations: 3.984 kB / 0.5245 GB, free: 2.738 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004829/0.168, allocations: 3.046 MB / 0.5275 GB, free: 15.6 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.751e-06/0.168, allocations: 3.938 kB / 0.5275 GB, free: 15.6 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001503/0.1682, allocations: 31.92 kB / 0.5275 GB, free: 15.57 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.901e-06/0.1682, allocations: 4 kB / 0.5275 GB, free: 15.56 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001043/0.1683, allocations: 43.95 kB / 0.5276 GB, free: 15.52 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.908e-05/0.1683, allocations: 11.94 kB / 0.5276 GB, free: 15.51 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.474e-06/0.1683, allocations: 0 / 0.5276 GB, free: 15.51 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003708/0.172, allocations: 2.395 MB / 0.5299 GB, free: 13.04 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001581/0.1721, allocations: 128.7 kB / 0.5301 GB, free: 12.89 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002185/0.1724, allocations: 75.97 kB / 0.5301 GB, free: 12.82 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005101/0.1729, allocations: 75.88 kB / 0.5302 GB, free: 12.74 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006003/0.1735, allocations: 327.7 kB / 0.5305 GB, free: 12.42 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001165/0.1736, allocations: 51.95 kB / 0.5306 GB, free: 12.37 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003141/0.1739, allocations: 247.1 kB / 0.5308 GB, free: 12.13 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1739, allocations: 0 / 0.5308 GB, free: 12.13 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001227/0.1751, allocations: 335.6 kB / 0.5311 GB, free: 11.8 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.0008418/0.176, allocations: 383.8 kB / 0.5315 GB, free: 11.43 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002999/0.179, allocations: 1.961 MB / 0.5334 GB, free: 9.355 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.516e-06/0.179, allocations: 0 / 0.5334 GB, free: 9.355 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001736/0.1807, allocations: 1.254 MB / 0.5346 GB, free: 8.004 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006803/0.1814, allocations: 116.3 kB / 0.5347 GB, free: 7.895 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003151/0.1845, allocations: 1.676 MB / 0.5364 GB, free: 6.18 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006095/0.1852, allocations: 0.9075 MB / 0.5373 GB, free: 5.246 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000166/0.1853, allocations: 51.42 kB / 0.5373 GB, free: 5.195 MB / 398.1 MB Notification: Performance of SimCode: time 1.052e-06/0.1853, allocations: 0 / 0.5373 GB, free: 5.195 MB / 398.1 MB Notification: Performance of Templates: time 0.0206/0.2059, allocations: 12.38 MB / 0.5494 GB, free: 8.805 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_2/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. -I"." -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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_2/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_2/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_2/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_2/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.5173380160704255] Failed to read output from testmodel.py, exit status != 0: 0.42383127892389894 0.22822054200000003 0.094121301 Calling exit ...