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.001311/0.001311, allocations: 104.3 kB / 16.27 MB, free: 6.051 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.001362/0.001362, allocations: 183.9 kB / 17.19 MB, free: 5.688 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.358/1.358, allocations: 222.9 MB / 240.9 MB, free: 15.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 3.0.0-master/package.mo): time 0.07303/0.07303, allocations: 16.73 MB / 307.8 MB, free: 14.34 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001318/0.001318, allocations: 63.12 kB / 372.3 MB, free: 48.58 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1066/0.108, allocations: 53.46 MB / 425.7 MB, free: 12.55 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.DisTest.DisLoopAndArcweight): time 0.003055/0.1111, allocations: 1.867 MB / 427.6 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002774/0.1139, allocations: 1.909 MB / 429.5 MB, free: 8.77 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001705/0.1141, allocations: 4 kB / 429.5 MB, free: 8.766 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003002/0.1144, allocations: 115 kB / 429.6 MB, free: 8.652 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003302/0.1147, allocations: 142.9 kB / 429.8 MB, free: 8.512 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00127/0.116, allocations: 0.9057 MB / 430.7 MB, free: 7.605 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009547/0.117, allocations: 1.509 MB / 432.2 MB, free: 6.094 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002772/0.1173, allocations: 255 kB / 432.4 MB, free: 5.828 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003502/0.1176, allocations: 0.5687 MB / 433 MB, free: 5.258 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003707/0.118, allocations: 497.9 kB / 433.5 MB, free: 4.77 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001474/0.1181, allocations: 136 kB / 433.6 MB, free: 4.637 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007278/0.1189, allocations: 0.7959 MB / 434.4 MB, free: 3.84 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000169/0.1191, allocations: 207.2 kB / 434.6 MB, free: 3.637 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004266/0.1195, allocations: 0.5681 MB / 435.2 MB, free: 3.066 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001346/0.1208, allocations: 1.762 MB / 436.9 MB, free: 1.301 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.762e-06/0.1209, allocations: 0 / 436.9 MB, free: 1.301 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.933e-06/0.1209, allocations: 0 / 436.9 MB, free: 1.301 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.061e-05/0.1209, allocations: 0 / 436.9 MB, free: 1.301 MB / 302.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.001878/0.1228, allocations: 1.55 MB / 438.5 MB, free: 15.64 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.973e-05/0.1228, allocations: 11.89 kB / 438.5 MB, free: 15.62 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004362/0.1233, allocations: 131.8 kB / 438.6 MB, free: 15.5 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000716/0.124, allocations: 0.5427 MB / 439.2 MB, free: 14.91 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001457/0.1241, allocations: 145.4 kB / 439.3 MB, free: 14.75 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001679/0.1243, allocations: 116 kB / 439.4 MB, free: 14.64 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002935/0.1273, allocations: 2.036 MB / 441.5 MB, free: 12.52 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.984e-05/0.1273, allocations: 3.938 kB / 441.5 MB, free: 12.52 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001402/0.1274, allocations: 59.97 kB / 441.5 MB, free: 12.46 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001507/0.1276, allocations: 89.23 kB / 441.6 MB, free: 12.38 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002225/0.1298, allocations: 1.427 MB / 443 MB, free: 10.94 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004951/0.1348, allocations: 4.267 MB / 447.3 MB, free: 6.543 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002463/0.1373, allocations: 2.413 MB / 449.7 MB, free: 4.121 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002199/0.1395, allocations: 2.308 MB / 452 MB, free: 1.809 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001205/0.1396, allocations: 81.11 kB / 452.1 MB, free: 1.711 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001915/0.1415, allocations: 1.311 MB / 453.4 MB, free: 376 kB / 318.1 MB Notification: Performance of pre-optimization done (n=91): time 2.645e-06/0.1416, allocations: 0 / 453.4 MB, free: 376 kB / 318.1 MB Notification: Performance of matching and sorting (n=91): time 0.005744/0.1473, allocations: 3.962 MB / 457.4 MB, free: 12.35 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004091/0.1477, allocations: 0.6652 MB / 458 MB, free: 11.57 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005853/0.1483, allocations: 0.505 MB / 458.5 MB, free: 11.05 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 9.432e-05/0.1484, allocations: 77.69 kB / 458.6 MB, free: 10.97 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002621/0.1487, allocations: 355.7 kB / 459 MB, free: 10.62 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002034/0.1489, allocations: 233.3 kB / 459.2 MB, free: 10.39 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003879/0.1493, allocations: 294.7 kB / 459.5 MB, free: 10.09 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001264/0.1494, allocations: 330 kB / 459.8 MB, free: 9.762 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008331/0.1503, allocations: 0.5498 MB / 460.4 MB, free: 9.215 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001109/0.1514, allocations: 1.021 MB / 461.4 MB, free: 7.988 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003496/0.1549, allocations: 3.196 MB / 464.6 MB, free: 4.395 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.186e-05/0.1549, allocations: 4 kB / 464.6 MB, free: 4.391 MB / 334.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.003037/0.158, allocations: 2.225 MB / 466.8 MB, free: 2.098 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002307/0.1582, allocations: 352.9 kB / 467.1 MB, free: 1.691 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.922e-05/0.1582, allocations: 16.12 kB / 467.2 MB, free: 1.676 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.332e-05/0.1583, allocations: 20 kB / 467.2 MB, free: 1.656 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000449/0.1587, allocations: 163.8 kB / 467.3 MB, free: 1.496 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.497e-05/0.1588, allocations: 23.94 kB / 467.4 MB, free: 1.473 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006181/0.1594, allocations: 170.6 kB / 467.5 MB, free: 1.305 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001097/0.1595, allocations: 71.98 kB / 467.6 MB, free: 1.234 MB / 334.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.001177/0.1607, allocations: 0.9019 MB / 468.5 MB, free: 284 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001953/0.1609, allocations: 103.2 kB / 468.6 MB, free: 180 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004635/0.1655, allocations: 3.341 MB / 471.9 MB, free: 12.78 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.169e-05/0.1656, allocations: 11.98 kB / 472 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.72e-06/0.1656, allocations: 0 / 472 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.843e-06/0.1656, allocations: 0 / 472 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006558/0.1722, allocations: 4.755 MB / 476.7 MB, free: 7.898 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.248e-06/0.1722, allocations: 4 kB / 476.7 MB, free: 7.895 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001709/0.1724, allocations: 43.91 kB / 476.8 MB, free: 7.852 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.894e-06/0.1724, allocations: 4 kB / 476.8 MB, free: 7.848 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001365/0.1725, allocations: 55.95 kB / 476.8 MB, free: 7.793 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.724e-06/0.1726, allocations: 4 kB / 476.8 MB, free: 7.789 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.1726, allocations: 0 / 476.8 MB, free: 7.789 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004846/0.1774, allocations: 3.473 MB / 480.3 MB, free: 4.25 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001142/0.1775, allocations: 140.2 kB / 480.4 MB, free: 4.094 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002668/0.1778, allocations: 91.97 kB / 480.5 MB, free: 4.004 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006771/0.1785, allocations: 107.9 kB / 480.6 MB, free: 3.898 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005984/0.1791, allocations: 380.1 kB / 481 MB, free: 3.527 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001381/0.1793, allocations: 59.97 kB / 481.1 MB, free: 3.469 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003451/0.1796, allocations: 299.1 kB / 481.3 MB, free: 3.176 MB / 350.1 MB Notification: Performance of sort global known variables: time 2e-07/0.1796, allocations: 0 / 481.3 MB, free: 3.176 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001782/0.1814, allocations: 487.5 kB / 481.8 MB, free: 2.699 MB / 350.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.001006/0.1824, allocations: 471.8 kB / 482.3 MB, free: 2.25 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003831/0.1863, allocations: 2.825 MB / 485.1 MB, free: 15.31 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.1863, allocations: 0 / 485.1 MB, free: 15.31 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003675/0.19, allocations: 4.478 MB / 489.6 MB, free: 10.73 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006902/0.1907, allocations: 139.9 kB / 489.7 MB, free: 10.59 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003662/0.1943, allocations: 2.291 MB / 492 MB, free: 8.266 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005769/0.1949, allocations: 1.006 MB / 493 MB, free: 7.23 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001521/0.1951, allocations: 59.42 kB / 493.1 MB, free: 7.172 MB / 366.1 MB Notification: Performance of SimCode: time 8.81e-07/0.1951, allocations: 0 / 493.1 MB, free: 7.172 MB / 366.1 MB Notification: Performance of Templates: time 0.02132/0.2164, allocations: 16.7 MB / 0.4978 GB, free: 6.418 MB / 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