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.001163/0.001164, allocations: 100.1 kB / 15.88 MB, free: 12 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001657/0.001657, allocations: 199.6 kB / 16.79 MB, free: 6.809 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.405/1.405, allocations: 222.9 MB / 240.5 MB, free: 4.5 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 3.0.0-master/package.mo): time 0.1993/0.1993, allocations: 16.74 MB / 307.4 MB, free: 15.05 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001178/0.001178, allocations: 59.91 kB / 371.6 MB, free: 3.973 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2932/0.2944, allocations: 53.46 MB / 425.1 MB, free: 39.22 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.DisTest.DisLoopAndArcweight): time 0.002743/0.2972, allocations: 1.978 MB / 427 MB, free: 38.42 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003139/0.3004, allocations: 2.244 MB / 429.3 MB, free: 37.75 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001984/0.3006, allocations: 9.25 kB / 429.3 MB, free: 37.75 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003029/0.3009, allocations: 87.55 kB / 429.4 MB, free: 37.69 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002961/0.3012, allocations: 103 kB / 429.5 MB, free: 37.62 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001226/0.3024, allocations: 0.7442 MB / 430.2 MB, free: 37.22 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007419/0.3032, allocations: 1.187 MB / 431.4 MB, free: 36.73 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002668/0.3035, allocations: 262.2 kB / 431.7 MB, free: 36.62 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003472/0.3038, allocations: 475.4 kB / 432.1 MB, free: 36.45 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003467/0.3042, allocations: 463.1 kB / 432.6 MB, free: 36.24 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001326/0.3043, allocations: 68.69 kB / 432.7 MB, free: 36.24 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007469/0.3051, allocations: 0.7249 MB / 433.4 MB, free: 36.02 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001692/0.3053, allocations: 189.8 kB / 433.6 MB, free: 35.93 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000407/0.3057, allocations: 0.5104 MB / 434.1 MB, free: 35.65 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009289/0.3066, allocations: 1.286 MB / 435.4 MB, free: 35.26 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.3066, allocations: 0 / 435.4 MB, free: 35.26 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.3066, allocations: 0 / 435.4 MB, free: 35.26 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.691e-05/0.3067, allocations: 0 / 435.4 MB, free: 35.26 MB / 350.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.001779/0.3084, allocations: 1.556 MB / 436.9 MB, free: 34.1 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.925e-05/0.3085, allocations: 10.84 kB / 436.9 MB, free: 34.1 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004098/0.3089, allocations: 124.9 kB / 437 MB, free: 34.06 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006445/0.3096, allocations: 0.5507 MB / 437.6 MB, free: 33.65 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001119/0.3097, allocations: 134.9 kB / 437.7 MB, free: 33.56 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001549/0.3099, allocations: 120.9 kB / 437.9 MB, free: 33.53 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002551/0.3124, allocations: 2.03 MB / 439.9 MB, free: 32.68 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.081e-05/0.3124, allocations: 6.875 kB / 439.9 MB, free: 32.68 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001208/0.3126, allocations: 52.42 kB / 439.9 MB, free: 32.65 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001352/0.3127, allocations: 98.42 kB / 440 MB, free: 32.64 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001901/0.3146, allocations: 1.428 MB / 441.5 MB, free: 32.14 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004237/0.3189, allocations: 4.261 MB / 445.7 MB, free: 29.29 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001948/0.3208, allocations: 2.405 MB / 448.1 MB, free: 27.83 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00175/0.3226, allocations: 2.304 MB / 450.4 MB, free: 26.42 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001119/0.3227, allocations: 87.08 kB / 450.5 MB, free: 26.32 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00163/0.3244, allocations: 1.306 MB / 451.8 MB, free: 25.79 MB / 350.1 MB Notification: Performance of pre-optimization done (n=91): time 2.094e-06/0.3244, allocations: 0 / 451.8 MB, free: 25.79 MB / 350.1 MB Notification: Performance of matching and sorting (n=91): time 0.005003/0.3294, allocations: 3.964 MB / 455.8 MB, free: 24.25 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000267/0.3297, allocations: 0.6577 MB / 456.4 MB, free: 23.59 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005259/0.3302, allocations: 0.513 MB / 457 MB, free: 23.33 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.586e-05/0.3303, allocations: 78.92 kB / 457 MB, free: 23.27 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002185/0.3305, allocations: 352 kB / 457.4 MB, free: 22.99 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001974/0.3307, allocations: 226.3 kB / 457.6 MB, free: 22.83 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003995/0.3311, allocations: 297.9 kB / 457.9 MB, free: 22.71 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.609e-05/0.3312, allocations: 324.9 kB / 458.2 MB, free: 22.39 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008393/0.3321, allocations: 0.5555 MB / 458.8 MB, free: 22.22 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001103/0.3332, allocations: 1.024 MB / 459.8 MB, free: 21.44 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003318/0.3365, allocations: 3.191 MB / 463 MB, free: 19.09 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.858e-05/0.3365, allocations: 4.281 kB / 463 MB, free: 19.09 MB / 350.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.003166/0.3397, allocations: 2.23 MB / 465.2 MB, free: 18.05 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001844/0.3399, allocations: 354.8 kB / 465.6 MB, free: 17.7 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.389e-05/0.3399, allocations: 14.89 kB / 465.6 MB, free: 17.7 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.867e-05/0.34, allocations: 21.06 kB / 465.6 MB, free: 17.7 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004657/0.3405, allocations: 156.9 kB / 465.7 MB, free: 17.67 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.179e-05/0.3405, allocations: 27.61 kB / 465.8 MB, free: 17.67 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006297/0.3411, allocations: 166.4 kB / 465.9 MB, free: 17.58 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001085/0.3412, allocations: 65.61 kB / 466 MB, free: 17.57 MB / 350.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.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.enabledByInPlaces[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.001218/0.3425, allocations: 0.9094 MB / 466.9 MB, free: 16.95 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002217/0.3427, allocations: 100.5 kB / 467 MB, free: 16.91 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004566/0.3473, allocations: 3.341 MB / 470.3 MB, free: 15.52 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.879e-05/0.3473, allocations: 5.953 kB / 470.4 MB, free: 15.52 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.793e-06/0.3473, allocations: 1.344 kB / 470.4 MB, free: 15.52 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.945e-06/0.3473, allocations: 2.484 kB / 470.4 MB, free: 15.52 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006934/0.3543, allocations: 4.757 MB / 475.1 MB, free: 13.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.113e-06/0.3543, allocations: 1.062 kB / 475.1 MB, free: 13.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001633/0.3545, allocations: 38.97 kB / 475.2 MB, free: 13.4 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.721e-06/0.3545, allocations: 1.188 kB / 475.2 MB, free: 13.4 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000121/0.3546, allocations: 54.3 kB / 475.2 MB, free: 13.39 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.739e-06/0.3546, allocations: 2.406 kB / 475.2 MB, free: 13.39 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.074e-05/0.3546, allocations: 3.938 kB / 475.2 MB, free: 13.38 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004819/0.3595, allocations: 3.472 MB / 478.7 MB, free: 11.88 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001246/0.3596, allocations: 143 kB / 478.8 MB, free: 11.73 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002733/0.3599, allocations: 94.28 kB / 478.9 MB, free: 11.7 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006344/0.3605, allocations: 105.1 kB / 479 MB, free: 11.69 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006689/0.3612, allocations: 373.6 kB / 479.4 MB, free: 11.59 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000149/0.3614, allocations: 67.28 kB / 479.5 MB, free: 11.57 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003648/0.3617, allocations: 299.9 kB / 479.7 MB, free: 11.43 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.3617, allocations: 0 / 479.7 MB, free: 11.43 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001825/0.3636, allocations: 492.4 kB / 480.2 MB, free: 11.35 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.enabledByInPlaces[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.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.0009782/0.3646, allocations: 480.9 kB / 480.7 MB, free: 11.16 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003301/0.3679, allocations: 2.662 MB / 483.4 MB, free: 9.031 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.527e-06/0.3679, allocations: 0 / 483.4 MB, free: 9.031 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002827/0.3707, allocations: 4.48 MB / 487.8 MB, free: 4.641 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007093/0.3715, allocations: 132 kB / 488 MB, free: 4.516 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003298/0.3748, allocations: 2.528 MB / 490.5 MB, free: 2.23 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003865/0.3752, allocations: 1.007 MB / 491.5 MB, free: 1.258 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001484/0.3753, allocations: 59.42 kB / 491.6 MB, free: 1.199 MB / 350.1 MB Notification: Performance of SimCode: time 5.2e-07/0.3753, allocations: 4 kB / 491.6 MB, free: 1.195 MB / 350.1 MB Notification: Performance of Templates: time 0.02514/0.4005, allocations: 16.68 MB / 0.4963 GB, free: 496 kB / 366.1 MB make -j1 -f PNlib_PNlib.Examples.DisTest.DisLoopAndArcweight.makefile make -j1 -f PNlib_PNlib.Examples.DisTest.DisLoopAndArcweight.makefile clang++ -std=c++14 -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:147: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