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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 3.0.0-master/package.mo", uses=false) 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=5000,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=5000,variableFilter="P1.t|T1.active|T1.fire|T1.fire|time",fileNamePrefix="PNlib_PNlib.Examples.DisTest.DisLoopAndArcweight") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001564/0.001564, allocations: 105.8 kB / 16.41 MB, free: 5.973 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001753/0.001753, allocations: 194.8 kB / 17.34 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.355/1.355, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 3.0.0-master/package.mo): time 0.07506/0.07506, allocations: 16.74 MB / 307.9 MB, free: 14.24 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001228/0.001228, allocations: 71.86 kB / 427 MB, free: 10.5 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09656/0.0978, allocations: 53.48 MB / 480.5 MB, free: 4.965 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.DisTest.DisLoopAndArcweight): time 0.002922/0.1008, allocations: 1.849 MB / 482.3 MB, free: 3.109 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003172/0.104, allocations: 1.921 MB / 484.3 MB, free: 1.184 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000213/0.1042, allocations: 7.938 kB / 484.3 MB, free: 1.176 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003362/0.1045, allocations: 119 kB / 484.4 MB, free: 1.059 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003888/0.1049, allocations: 134.9 kB / 484.5 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001567/0.1065, allocations: 0.9044 MB / 485.4 MB, free: 20 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001306/0.1078, allocations: 1.494 MB / 486.9 MB, free: 14.52 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003306/0.1082, allocations: 263 kB / 487.2 MB, free: 14.25 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004933/0.1087, allocations: 0.5765 MB / 487.7 MB, free: 13.67 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00048/0.1092, allocations: 493.9 kB / 488.2 MB, free: 13.19 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000163/0.1093, allocations: 140 kB / 488.4 MB, free: 13.05 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009103/0.1103, allocations: 0.8115 MB / 489.2 MB, free: 12.24 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001933/0.1105, allocations: 203.3 kB / 489.4 MB, free: 12.04 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005086/0.111, allocations: 0.5798 MB / 490 MB, free: 11.46 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001577/0.1126, allocations: 1.804 MB / 491.8 MB, free: 9.648 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.1126, allocations: 0 / 491.8 MB, free: 9.648 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.1126, allocations: 0 / 491.8 MB, free: 9.648 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.18e-05/0.1126, allocations: 0 / 491.8 MB, free: 9.648 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.001961/0.1146, allocations: 1.558 MB / 493.3 MB, free: 7.977 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.919e-05/0.1146, allocations: 19.89 kB / 493.3 MB, free: 7.957 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004002/0.115, allocations: 135.7 kB / 493.5 MB, free: 7.824 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007998/0.1158, allocations: 0.5388 MB / 494 MB, free: 7.242 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000138/0.116, allocations: 141.4 kB / 494.1 MB, free: 7.09 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001685/0.1162, allocations: 116 kB / 494.3 MB, free: 6.977 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002865/0.119, allocations: 2.029 MB / 496.3 MB, free: 4.867 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.931e-05/0.1191, allocations: 0 / 496.3 MB, free: 4.867 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001312/0.1192, allocations: 63.95 kB / 496.4 MB, free: 4.805 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001414/0.1194, allocations: 89.23 kB / 496.4 MB, free: 4.719 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002162/0.1215, allocations: 1.427 MB / 497.9 MB, free: 3.289 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005065/0.1266, allocations: 4.236 MB / 0.4903 GB, free: 14.92 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002372/0.129, allocations: 2.413 MB / 0.4927 GB, free: 12.5 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00208/0.1311, allocations: 2.307 MB / 0.4949 GB, free: 10.19 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000106/0.1312, allocations: 85.11 kB / 0.495 GB, free: 10.09 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001871/0.1331, allocations: 1.307 MB / 0.4963 GB, free: 8.746 MB / 382.1 MB Notification: Performance of pre-optimization done (n=91): time 2.234e-06/0.1331, allocations: 0 / 0.4963 GB, free: 8.746 MB / 382.1 MB Notification: Performance of matching and sorting (n=91): time 0.005603/0.1387, allocations: 3.966 MB / 0.5002 GB, free: 4.727 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003622/0.1391, allocations: 0.6613 MB / 0.5008 GB, free: 3.949 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000565/0.1397, allocations: 0.505 MB / 0.5013 GB, free: 3.438 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.3e-05/0.1398, allocations: 77.62 kB / 0.5014 GB, free: 3.355 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002436/0.14, allocations: 355.7 kB / 0.5017 GB, free: 3 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002101/0.1402, allocations: 237.2 kB / 0.502 GB, free: 2.766 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003562/0.1406, allocations: 302.7 kB / 0.5022 GB, free: 2.461 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001123/0.1407, allocations: 326 kB / 0.5026 GB, free: 2.137 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007943/0.1415, allocations: 0.5537 MB / 0.5031 GB, free: 1.586 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001071/0.1426, allocations: 1.017 MB / 0.5041 GB, free: 368 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2207/0.3633, allocations: 3.185 MB / 0.5072 GB, free: 32.44 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.268e-05/0.3634, allocations: 8.125 kB / 0.5072 GB, free: 32.44 MB / 382.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.003108/0.3665, allocations: 2.225 MB / 0.5094 GB, free: 31.89 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000154/0.3666, allocations: 355.9 kB / 0.5097 GB, free: 31.55 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.836e-05/0.3667, allocations: 17.75 kB / 0.5097 GB, free: 31.55 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.212e-05/0.3667, allocations: 17.47 kB / 0.5097 GB, free: 31.55 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004666/0.3672, allocations: 164.2 kB / 0.5099 GB, free: 31.52 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.539e-05/0.3672, allocations: 31.42 kB / 0.5099 GB, free: 31.51 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006135/0.3678, allocations: 161.2 kB / 0.5101 GB, free: 31.49 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000102/0.368, allocations: 75.23 kB / 0.5102 GB, free: 31.48 MB / 382.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.001084/0.3691, allocations: 0.8847 MB / 0.511 GB, free: 30.92 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001903/0.3692, allocations: 97.72 kB / 0.5111 GB, free: 30.92 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004637/0.3739, allocations: 3.349 MB / 0.5144 GB, free: 29.53 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.888e-05/0.374, allocations: 8.797 kB / 0.5144 GB, free: 29.53 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.224e-06/0.374, allocations: 0.5 kB / 0.5144 GB, free: 29.53 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.005e-06/0.374, allocations: 5.156 kB / 0.5144 GB, free: 29.53 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006595/0.3806, allocations: 4.752 MB / 0.519 GB, free: 27.46 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.64e-06/0.3806, allocations: 1.25 kB / 0.519 GB, free: 27.46 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001657/0.3808, allocations: 40.11 kB / 0.5191 GB, free: 27.45 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.094e-06/0.3808, allocations: 2.094 kB / 0.5191 GB, free: 27.45 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001256/0.3809, allocations: 52.94 kB / 0.5191 GB, free: 27.44 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.588e-06/0.3809, allocations: 6.219 kB / 0.5191 GB, free: 27.43 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.381, allocations: 4.438 kB / 0.5191 GB, free: 27.43 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004581/0.3855, allocations: 3.471 MB / 0.5225 GB, free: 25.96 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001176/0.3857, allocations: 142.1 kB / 0.5227 GB, free: 25.84 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002444/0.3859, allocations: 90.69 kB / 0.5228 GB, free: 25.81 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006449/0.3866, allocations: 111.4 kB / 0.5229 GB, free: 25.79 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000594/0.3872, allocations: 377.2 kB / 0.5232 GB, free: 25.69 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000141/0.3873, allocations: 63.25 kB / 0.5233 GB, free: 25.68 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003242/0.3877, allocations: 299.8 kB / 0.5236 GB, free: 25.53 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3877, allocations: 0 / 0.5236 GB, free: 25.53 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00134/0.389, allocations: 490.1 kB / 0.524 GB, free: 25.47 MB / 382.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.0007963/0.3898, allocations: 488.5 kB / 0.5245 GB, free: 25.33 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003143/0.393, allocations: 2.665 MB / 0.5271 GB, free: 23.9 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.178e-06/0.393, allocations: 5.5 kB / 0.5271 GB, free: 23.89 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002705/0.3957, allocations: 4.482 MB / 0.5315 GB, free: 20.64 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006745/0.3964, allocations: 135.5 kB / 0.5316 GB, free: 20.52 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002999/0.3994, allocations: 2.268 MB / 0.5338 GB, free: 18.44 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004001/0.3998, allocations: 1.014 MB / 0.5348 GB, free: 17.39 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001291/0.4, allocations: 59.44 kB / 0.5349 GB, free: 17.34 MB / 382.1 MB Notification: Performance of SimCode: time 7.51e-07/0.4, allocations: 2.188 kB / 0.5349 GB, free: 17.34 MB / 382.1 MB Notification: Performance of Templates: time 0.0176/0.4176, allocations: 16.89 MB / 0.5514 GB, free: 420 kB / 382.1 MB make -j1 -f PNlib_PNlib.Examples.DisTest.DisLoopAndArcweight.makefile 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/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.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/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.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/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.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