Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PNlib_PNlib.Examples.DisTest.DisLoopAndArcweight.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.001425/0.001425, allocations: 111.3 kB / 17.08 MB, free: 5.984 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.001453/0.001453, allocations: 191.7 kB / 20.03 MB, free: 3.059 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.353/1.353, allocations: 222.9 MB / 245.7 MB, free: 4.219 MB / 190.1 MB " [Timeout remaining time 179] 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.1872/0.1872, allocations: 16.71 MB / 314.6 MB, free: 14.85 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.DisLoopAndArcweight,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="P1.t|T1.active|T1.fire|T1.fire|time",fileNamePrefix="PNlib_PNlib.Examples.DisTest.DisLoopAndArcweight") translateModel(PNlib.Examples.DisTest.DisLoopAndArcweight,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="P1.t|T1.active|T1.fire|T1.fire|time",fileNamePrefix="PNlib_PNlib.Examples.DisTest.DisLoopAndArcweight") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00183/0.001831, allocations: 67.55 kB / 435.7 MB, free: 37.41 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08381/0.08565, allocations: 53.49 MB / 489.2 MB, free: 10.19 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.DisTest.DisLoopAndArcweight): time 0.002532/0.08822, allocations: 1.857 MB / 491.1 MB, free: 8.727 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002923/0.09116, allocations: 1.93 MB / 493 MB, free: 7.207 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003546/0.09154, allocations: 9.625 kB / 493 MB, free: 7.203 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003318/0.09188, allocations: 113.5 kB / 493.1 MB, free: 7.105 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004071/0.09231, allocations: 132.5 kB / 493.2 MB, free: 6.988 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001749/0.09407, allocations: 0.8996 MB / 494.1 MB, free: 6.246 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001023/0.0951, allocations: 1.494 MB / 495.6 MB, free: 4.75 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002459/0.09536, allocations: 267 kB / 495.9 MB, free: 4.473 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003451/0.09571, allocations: 0.5765 MB / 496.5 MB, free: 3.895 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003533/0.09607, allocations: 494 kB / 496.9 MB, free: 3.41 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001402/0.09622, allocations: 140 kB / 497.1 MB, free: 3.273 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007603/0.09698, allocations: 0.8076 MB / 497.9 MB, free: 2.465 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001448/0.09714, allocations: 207.2 kB / 498.1 MB, free: 2.262 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003821/0.09753, allocations: 0.572 MB / 498.7 MB, free: 1.688 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001274/0.09881, allocations: 1.815 MB / 0.4888 GB, free: 15.87 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.446e-06/0.09882, allocations: 0 / 0.4888 GB, free: 15.87 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.09883, allocations: 0 / 0.4888 GB, free: 15.87 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.236e-05/0.09885, allocations: 4 kB / 0.4888 GB, free: 15.86 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: 235 * Number of variables: 235 Notification: Performance of Generate backend data structure: time 0.002113/0.101, allocations: 1.579 MB / 0.4903 GB, free: 14.17 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.33e-05/0.101, allocations: 15.89 kB / 0.4903 GB, free: 14.15 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000405/0.1014, allocations: 132.4 kB / 0.4904 GB, free: 14.02 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007647/0.1022, allocations: 0.5467 MB / 0.491 GB, free: 13.43 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000149/0.1024, allocations: 145.4 kB / 0.4911 GB, free: 13.28 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001742/0.1025, allocations: 112 kB / 0.4912 GB, free: 13.17 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00306/0.1056, allocations: 2.029 MB / 0.4932 GB, free: 11.06 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.903e-05/0.1056, allocations: 3.938 kB / 0.4932 GB, free: 11.05 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001351/0.1058, allocations: 63.95 kB / 0.4933 GB, free: 10.99 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001534/0.1059, allocations: 89.23 kB / 0.4933 GB, free: 10.91 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002347/0.1083, allocations: 1.43 MB / 0.4947 GB, free: 9.473 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005068/0.1134, allocations: 4.237 MB / 0.4989 GB, free: 5.109 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002619/0.116, allocations: 2.413 MB / 0.5012 GB, free: 2.684 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002444/0.1185, allocations: 2.308 MB / 0.5035 GB, free: 380 kB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001074/0.1186, allocations: 85.11 kB / 0.5036 GB, free: 276 kB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001979/0.1206, allocations: 1.308 MB / 0.5049 GB, free: 14.92 MB / 382.1 MB Notification: Performance of pre-optimization done (n=91): time 1.924e-06/0.1206, allocations: 0 / 0.5049 GB, free: 14.92 MB / 382.1 MB Notification: Performance of matching and sorting (n=91): time 0.006002/0.1266, allocations: 3.966 MB / 0.5087 GB, free: 10.91 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0005017/0.1271, allocations: 0.6574 MB / 0.5094 GB, free: 10.13 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005877/0.1277, allocations: 0.5131 MB / 0.5099 GB, free: 9.613 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001043/0.1278, allocations: 77.62 kB / 0.5099 GB, free: 9.531 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002907/0.1281, allocations: 364.8 kB / 0.5103 GB, free: 9.168 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002235/0.1283, allocations: 250.3 kB / 0.5105 GB, free: 8.922 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004059/0.1287, allocations: 298.8 kB / 0.5108 GB, free: 8.621 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001428/0.1289, allocations: 326 kB / 0.5111 GB, free: 8.297 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008714/0.1298, allocations: 0.5498 MB / 0.5117 GB, free: 7.75 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001294/0.1311, allocations: 1.021 MB / 0.5127 GB, free: 6.52 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003773/0.1349, allocations: 3.2 MB / 0.5158 GB, free: 2.918 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.038e-05/0.1349, allocations: 7.938 kB / 0.5158 GB, free: 2.91 MB / 382.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.003139/0.138, allocations: 2.221 MB / 0.518 GB, free: 0.6211 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002678/0.1383, allocations: 356.9 kB / 0.5183 GB, free: 216 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.57e-05/0.1383, allocations: 16.88 kB / 0.5183 GB, free: 200 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.09e-05/0.1384, allocations: 23.94 kB / 0.5183 GB, free: 176 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004521/0.1388, allocations: 163.5 kB / 0.5185 GB, free: 12 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.607e-05/0.1389, allocations: 27.98 kB / 0.5185 GB, free: 15.98 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005835/0.1395, allocations: 159 kB / 0.5187 GB, free: 15.83 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001101/0.1396, allocations: 71.98 kB / 0.5187 GB, free: 15.76 MB / 398.1 MB Warning: Assuming fixed start value for the following 25 variables: P1.enableIn.valid:DISCRETE(fixed = true protected = true ) \"valid solution\" type: Boolean P1.enableIn.benefitLimit:DISCRETE(fixed = true protected = true ) \"best valid benefit\" type: Real P1.enableIn.benefitMax:DISCRETE(fixed = true protected = true ) \"theoretical benefit\" 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.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.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 P1.enableIn.Index:DISCRETE(fixed = true protected = true ) \"priority Index\" type: Integer P1.enableOut.valid:DISCRETE(fixed = true protected = true ) \"valid solution\" type: Boolean P1.enableOut.benefitLimit:DISCRETE(fixed = true protected = true ) \"best valid benefit\" type: Real P1.enableOut.benefitMax:DISCRETE(fixed = true protected = true ) \"theoretical benefit\" type: Real P1.enableOut.posTE:DISCRETE(fixed = true protected = true ) \"possible enabled transition\" type: Integer P1.enableOut.k:DISCRETE(fixed = true protected = true ) \"iteration index\" type: Integer P1.enableOut.endWhile:DISCRETE(fixed = true protected = true ) type: Boolean P1.enableOut.sumEnablingProbTAout:DISCRETE(fixed = true protected = true ) \"sum of the enabling probabilities of the active output transitions\" type: Real P1.enableOut.nTAout:DISCRETE(fixed = true protected = true ) \"number of active output transitions\" type: Integer P1.enableOut.nremTAout:DISCRETE(fixed = true protected = true ) \"number of remaining active output transitions\" type: Integer P1.enableOut.Index:DISCRETE(fixed = true protected = true ) \"priority Index\" type: Integer T1.ani:DISCRETE(fixed = true protected = true ) \"for transition animation\" type: Boolean T1.fireTime:DISCRETE(fixed = true protected = true ) \"for transition animation\" type: Real P1.firingSumOut.firingSum:DISCRETE(fixed = true protected = true ) \"firing sum\" type: Integer P1.firingSumIn.firingSum:DISCRETE(fixed = true protected = true ) \"firing sum\" 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: 62 * Number of states: 0 () * Number of discrete variables: 149 ($PRE.P1.enableIn.valid,P1.enableIn.valid,$PRE.P1.enableIn.benefitLimit,P1.enableIn.benefitLimit,$PRE.P1.enableIn.benefitMax,P1.enableIn.benefitMax,$PRE.P1.enableIn.posTE,P1.enableIn.posTE,$PRE.P1.enableIn.k,P1.enableIn.k,$PRE.P1.enableIn.endWhile,P1.enableIn.endWhile,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],P1.enableIn.cumEnablingProb[1],$PRE.P1.enableIn.cumEnablingProb[1],$PRE.P1.enableIn.sumEnablingProbTAin,P1.enableIn.sumEnablingProbTAin,$PRE.P1.enableIn.nTAin,P1.enableIn.nTAin,$PRE.P1.enableIn.nremTAin,P1.enableIn.nremTAin,P1.enableIn.remTAin[1],$PRE.P1.enableIn.remTAin[1],$PRE.P1.enableIn.Index,P1.enableIn.Index,$PRE.P1.enableOut.valid,P1.enableOut.valid,$PRE.P1.enableOut.benefitLimit,P1.enableOut.benefitLimit,$PRE.P1.enableOut.benefitMax,P1.enableOut.benefitMax,$PRE.P1.enableOut.posTE,P1.enableOut.posTE,$PRE.P1.enableOut.k,P1.enableOut.k,$PRE.P1.enableOut.endWhile,P1.enableOut.endWhile,P1.enableOut.randNum,$PRE.P1.enableOut.randNum,P1.enableOut.state128[4],$PRE.P1.enableOut.state128[4],P1.enableOut.state128[3],$PRE.P1.enableOut.state128[3],P1.enableOut.state128[2],$PRE.P1.enableOut.state128[2],P1.enableOut.state128[1],$PRE.P1.enableOut.state128[1],P1.enableOut.cumEnablingProb[1],$PRE.P1.enableOut.cumEnablingProb[1],$PRE.P1.enableOut.sumEnablingProbTAout,P1.enableOut.sumEnablingProbTAout,$PRE.P1.enableOut.nTAout,P1.enableOut.nTAout,$PRE.P1.enableOut.nremTAout,P1.enableOut.nremTAout,P1.enableOut.remTAout[1],$PRE.P1.enableOut.remTAout[1],$PRE.P1.enableOut.Index,P1.enableOut.Index,$PRE.P1.reStart,$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,T1.firingCon,T1.outPlaces[1].disTransition,P1.inTransition[1].disPlace,T1.inPlaces[1].disTransition,P1.outTransition[1].normalArc,P1.outTransition[1].testValueint,P1.outTransition[1].arcType,P1.outTransition[1].disPlace,P1.reStart,P1.enableIn.disTransition[1],$PRE.T1.firingTime,$PRE.P1.enableIn.arcWeightSum,$PRE.P1.enableIn.TEin[1],$PRE.P1.enableOut.arcWeightSum,$PRE.P1.enableOut.TEout[1],P1.enableOut.arcWeight[1],P1.enableIn.arcWeight[1],T1.activation.disPlaceOut[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.maxTokensInt[1],T1.activation.minTokensInt[1],T1.activation.arcWeightIntOut[1],T1.activation.arcWeightIntIn[1],T1.activation.tIntOut[1],T1.activation.tIntIn[1],T1.delayPassed,$PRE.T1.delayPassed,T1.firingTime,T1.outPlaces[1].enabledByInPlaces,T1.active,P1.enableIn.arcWeightSum,P1.enableIn.TEin[1],P1.enableIn.TEin_[1],P1.enableIn.active[1],P1.enableIn.TAein[1],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.firingSumIn.firingSum,P1.firingSumIn.arcWeight[1],P1.firingSumIn.fire[1],P1.delayPassedIn.numtrue,P1.delayPassedIn.anytrue,P1.delayPassedIn.vec[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,$whenCondition1,$whenCondition3,$whenCondition4,P1.outTransition[1].fed,P1.inTransition[1].emptied) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (165): * Single equations (assignments): 154 * 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.001097/0.1407, allocations: 0.8979 MB / 0.5196 GB, free: 14.8 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001926/0.1409, allocations: 103.5 kB / 0.5197 GB, free: 14.7 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004914/0.1458, allocations: 3.357 MB / 0.523 GB, free: 11.29 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.857e-05/0.1459, allocations: 7.984 kB / 0.523 GB, free: 11.28 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.1459, allocations: 0 / 0.523 GB, free: 11.28 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.604e-06/0.1459, allocations: 4 kB / 0.523 GB, free: 11.27 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006717/0.1526, allocations: 4.748 MB / 0.5276 GB, free: 6.414 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.266e-06/0.1526, allocations: 0 / 0.5276 GB, free: 6.414 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001579/0.1528, allocations: 39.91 kB / 0.5277 GB, free: 6.375 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.574e-06/0.1528, allocations: 4 kB / 0.5277 GB, free: 6.371 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001206/0.1529, allocations: 55.97 kB / 0.5277 GB, free: 6.316 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.669e-06/0.1529, allocations: 4 kB / 0.5277 GB, free: 6.312 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.1529, allocations: 0 / 0.5277 GB, free: 6.312 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004987/0.1579, allocations: 3.474 MB / 0.5311 GB, free: 2.773 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001222/0.1581, allocations: 144.5 kB / 0.5313 GB, free: 2.613 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002348/0.1583, allocations: 91.97 kB / 0.5314 GB, free: 2.523 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000608/0.1589, allocations: 103.9 kB / 0.5315 GB, free: 2.422 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000607/0.1595, allocations: 384.1 kB / 0.5318 GB, free: 2.047 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001333/0.1597, allocations: 55.97 kB / 0.5319 GB, free: 1.992 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003374/0.16, allocations: 303.1 kB / 0.5322 GB, free: 1.699 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.16, allocations: 7.938 kB / 0.5322 GB, free: 1.691 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001241/0.1613, allocations: 495.2 kB / 0.5326 GB, free: 1.207 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 81 (T1.active,$whenCondition6,$whenCondition5,$whenCondition7,$whenCondition4,$whenCondition3,$whenCondition1,$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.delayPassedIn.vec[1],P1.delayPassedIn.anytrue,P1.delayPassedIn.numtrue,P1.firingSumIn.fire[1],P1.firingSumIn.arcWeight[1],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,P1.enableIn.TAein[1],P1.enableIn.active[1],P1.enableIn.TEin_[1],P1.enableIn.state128[1],P1.enableIn.state128[2],P1.enableIn.state128[3],P1.enableIn.state128[4],P1.enableIn.TEin[1],P1.enableIn.remTAin[1],P1.enableIn.cumEnablingProb[1],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.outPlaces[1].enabledByInPlaces,T1.firingTime,T1.fireTime,T1.delayPassed,T1.ani,T1.activation.tIntIn[1],T1.activation.tIntOut[1],T1.activation.arcWeightIntIn[1],T1.activation.arcWeightIntOut[1],T1.activation.minTokensInt[1],T1.activation.maxTokensInt[1],T1.activation.active) * Number of discrete states: 56 (P1.firingSumOut.firingSum,P1.firingSumIn.firingSum,P1.tokeninout,P1.t,P1.activeOut[1],T1.activation.active,T1.delayPassed,P1.delayPassedIn.numtrue,P1.delayPassedIn.anytrue,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,$whenCondition1,P1.enableOut.arcWeightSum,P1.enableOut.TEout[1],P1.enableIn.TEin_[1],P1.enableIn.valid,P1.enableIn.benefitLimit,P1.enableIn.benefitMax,P1.enableIn.posTE,P1.enableIn.k,P1.enableIn.endWhile,P1.enableIn.state128[4],P1.enableIn.state128[3],P1.enableIn.state128[2],P1.enableIn.state128[1],P1.enableIn.randNum,P1.enableIn.cumEnablingProb[1],P1.enableIn.sumEnablingProbTAin,P1.enableIn.nTAin,P1.enableIn.nremTAin,P1.enableIn.remTAin[1],P1.enableIn.Index,$whenCondition2,P1.enableIn.arcWeightSum,P1.enableIn.TEin[1]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (49): * Single equations (assignments): 36 * 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.0009011/0.1622, allocations: 475.4 kB / 0.5331 GB, free: 0.7539 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003508/0.1657, allocations: 2.668 MB / 0.5357 GB, free: 13.95 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.308e-06/0.1657, allocations: 5.875 kB / 0.5357 GB, free: 13.95 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004165/0.1699, allocations: 4.478 MB / 0.5401 GB, free: 9.379 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006285/0.1705, allocations: 139.9 kB / 0.5402 GB, free: 9.25 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003649/0.1742, allocations: 2.297 MB / 0.5425 GB, free: 6.914 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006865/0.1749, allocations: 1.002 MB / 0.5434 GB, free: 5.883 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001382/0.175, allocations: 63.42 kB / 0.5435 GB, free: 5.82 MB / 414.1 MB Notification: Performance of SimCode: time 3.2e-07/0.1751, allocations: 0 / 0.5435 GB, free: 5.82 MB / 414.1 MB Notification: Performance of Templates: time 0.0235/0.1986, allocations: 16.8 MB / 0.5599 GB, free: 4.961 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f PNlib_PNlib.Examples.DisTest.DisLoopAndArcweight.makefile [Timeout 660] make -j1 -f PNlib_PNlib.Examples.DisTest.DisLoopAndArcweight.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.DisLoopAndArcweightCalcHelperMain.o OMCppPNlib_PNlib.Examples.DisTest.DisLoopAndArcweightCalcHelperMain.cpp In file included from OMCppPNlib_PNlib.Examples.DisTest.DisLoopAndArcweightCalcHelperMain.cpp:29: ./OMCppPNlib_PNlib.Examples.DisTest.DisLoopAndArcweightInitialize.cpp:737: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.DisLoopAndArcweightInitialize.cpp:772: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.DisLoopAndArcweightCalcHelperMain.cpp:29: ./OMCppPNlib_PNlib.Examples.DisTest.DisLoopAndArcweightInitialize.cpp:772: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.DisLoopAndArcweightCalcHelperMain.cpp:33: ./OMCppPNlib_PNlib.Examples.DisTest.DisLoopAndArcweight.cpp:146: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.DisLoopAndArcweightCalcHelperMain.o] Error 1 [Calling os._exit(0), Time elapsed: 3.977671187138185] Failed to read output from testmodel.py, exit status != 0: 0.20474068587645888 0.21792186200000002 0.116658599 Calling exit ...