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.00117/0.00117, allocations: 92.16 kB / 16.02 MB, free: 80 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.001409/0.00141, allocations: 173 kB / 16.92 MB, free: 6.652 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.346/1.346, allocations: 223.3 MB / 241 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 3.0.0-master/package.mo): time 0.1998/0.1998, allocations: 16.72 MB / 308.8 MB, free: 15.6 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003136/0.0003136, allocations: 8 kB / 374.1 MB, free: 3.113 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2885/0.2888, allocations: 54.47 MB / 428.5 MB, free: 38.17 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.DisTest.DisLoopAndArcweight): time 0.002418/0.2913, allocations: 1.606 MB / 430.2 MB, free: 38.02 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004266/0.2956, allocations: 2.214 MB / 432.4 MB, free: 37.73 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003564/0.296, allocations: 6.781 kB / 432.4 MB, free: 37.73 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003617/0.2964, allocations: 88.78 kB / 432.5 MB, free: 37.7 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000373/0.2968, allocations: 105.2 kB / 432.6 MB, free: 37.66 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001798/0.2986, allocations: 0.7465 MB / 433.3 MB, free: 37.59 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001163/0.2998, allocations: 1.183 MB / 434.5 MB, free: 37.36 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003124/0.3001, allocations: 252.5 kB / 434.7 MB, free: 37.27 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004542/0.3005, allocations: 437.1 kB / 435.2 MB, free: 37.11 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004187/0.301, allocations: 424.4 kB / 435.6 MB, free: 36.92 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001134/0.3011, allocations: 49.62 kB / 435.6 MB, free: 36.92 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001063/0.3022, allocations: 0.7052 MB / 436.3 MB, free: 36.7 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001754/0.3023, allocations: 175.7 kB / 436.5 MB, free: 36.62 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004624/0.3028, allocations: 0.503 MB / 437 MB, free: 36.33 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001122/0.3039, allocations: 1.25 MB / 438.3 MB, free: 36.06 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.622e-06/0.304, allocations: 4 kB / 438.3 MB, free: 36.06 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.424e-06/0.304, allocations: 3.938 kB / 438.3 MB, free: 36.05 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.168e-05/0.304, allocations: 0 / 438.3 MB, free: 36.05 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.001542/0.3055, allocations: 1.342 MB / 439.6 MB, free: 34.99 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.125e-05/0.3056, allocations: 9.469 kB / 439.6 MB, free: 34.99 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003965/0.306, allocations: 127.4 kB / 439.7 MB, free: 34.95 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006543/0.3066, allocations: 0.5423 MB / 440.3 MB, free: 34.55 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001339/0.3068, allocations: 143.5 kB / 440.4 MB, free: 34.45 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001915/0.307, allocations: 119.8 kB / 440.5 MB, free: 34.42 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002613/0.3096, allocations: 2.033 MB / 442.6 MB, free: 33.57 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.101e-05/0.3096, allocations: 0 / 442.6 MB, free: 33.57 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001274/0.3098, allocations: 59.72 kB / 442.6 MB, free: 33.54 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001371/0.3099, allocations: 98.33 kB / 442.7 MB, free: 33.53 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002041/0.312, allocations: 1.43 MB / 444.2 MB, free: 33.04 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004376/0.3164, allocations: 4.239 MB / 448.4 MB, free: 30.18 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002184/0.3186, allocations: 2.402 MB / 450.8 MB, free: 28.73 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001931/0.3205, allocations: 2.31 MB / 453.1 MB, free: 27.31 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001049/0.3206, allocations: 90.39 kB / 453.2 MB, free: 27.21 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00168/0.3223, allocations: 1.301 MB / 454.5 MB, free: 26.68 MB / 350.1 MB Notification: Performance of pre-optimization done (n=91): time 2.144e-06/0.3223, allocations: 2.719 kB / 454.5 MB, free: 26.68 MB / 350.1 MB Notification: Performance of matching and sorting (n=91): time 0.005327/0.3277, allocations: 3.971 MB / 458.5 MB, free: 25.14 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003029/0.328, allocations: 0.6663 MB / 459.1 MB, free: 24.48 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000591/0.3286, allocations: 0.506 MB / 459.6 MB, free: 24.21 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001099/0.3287, allocations: 73.55 kB / 459.7 MB, free: 24.16 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002191/0.3289, allocations: 358.1 kB / 460.1 MB, free: 23.88 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001872/0.3291, allocations: 226.2 kB / 460.3 MB, free: 23.72 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002119/0.3294, allocations: 173.1 kB / 460.5 MB, free: 23.65 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.088e-05/0.3295, allocations: 330 kB / 460.8 MB, free: 23.33 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009082/0.3304, allocations: 0.5547 MB / 461.3 MB, free: 23.15 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001085/0.3315, allocations: 1.025 MB / 462.4 MB, free: 22.38 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003424/0.3349, allocations: 3.189 MB / 465.6 MB, free: 20.03 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.108e-05/0.3349, allocations: 8.938 kB / 465.6 MB, free: 20.03 MB / 350.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.003365/0.3383, allocations: 2.227 MB / 467.8 MB, free: 18.99 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001955/0.3385, allocations: 358.4 kB / 468.1 MB, free: 18.64 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.763e-05/0.3386, allocations: 13.91 kB / 468.1 MB, free: 18.64 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.315e-05/0.3386, allocations: 20.34 kB / 468.2 MB, free: 18.64 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004837/0.3391, allocations: 158.2 kB / 468.3 MB, free: 18.62 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.476e-05/0.3391, allocations: 32.11 kB / 468.4 MB, free: 18.61 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007188/0.3399, allocations: 170.8 kB / 468.5 MB, free: 18.52 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001201/0.34, allocations: 66.67 kB / 468.6 MB, free: 18.51 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.001308/0.3413, allocations: 0.9027 MB / 469.5 MB, free: 17.89 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001912/0.3415, allocations: 101 kB / 469.6 MB, free: 17.86 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005069/0.3466, allocations: 3.352 MB / 472.9 MB, free: 16.46 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.281e-05/0.3466, allocations: 5.062 kB / 472.9 MB, free: 16.46 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.714e-06/0.3467, allocations: 0 / 472.9 MB, free: 16.46 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.017e-06/0.3467, allocations: 2.672 kB / 472.9 MB, free: 16.46 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007252/0.3539, allocations: 4.755 MB / 477.7 MB, free: 14.35 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.528e-06/0.354, allocations: 0 / 477.7 MB, free: 14.35 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000172/0.3542, allocations: 44.64 kB / 477.7 MB, free: 14.34 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.113e-06/0.3542, allocations: 2.031 kB / 477.7 MB, free: 14.34 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001288/0.3543, allocations: 58.06 kB / 477.8 MB, free: 14.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.43e-06/0.3543, allocations: 1.25 kB / 477.8 MB, free: 14.32 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.3543, allocations: 1.812 kB / 477.8 MB, free: 14.32 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00539/0.3597, allocations: 3.478 MB / 481.3 MB, free: 12.81 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001506/0.3599, allocations: 148.7 kB / 481.4 MB, free: 12.66 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002814/0.3602, allocations: 89.31 kB / 481.5 MB, free: 12.64 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006531/0.3609, allocations: 103.4 kB / 481.6 MB, free: 12.62 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006624/0.3615, allocations: 378.4 kB / 482 MB, free: 12.52 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001597/0.3617, allocations: 63.7 kB / 482.1 MB, free: 12.51 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004039/0.3621, allocations: 298.9 kB / 482.3 MB, free: 12.36 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3621, allocations: 0 / 482.3 MB, free: 12.36 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001735/0.3639, allocations: 488.5 kB / 482.8 MB, free: 12.29 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.000975/0.3648, allocations: 474 kB / 483.3 MB, free: 12.1 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003249/0.3681, allocations: 2.672 MB / 486 MB, free: 9.637 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.719e-06/0.3681, allocations: 448 / 486 MB, free: 9.637 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002972/0.3711, allocations: 4.479 MB / 490.4 MB, free: 5.195 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007629/0.3719, allocations: 138.8 kB / 490.6 MB, free: 5.059 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003296/0.3752, allocations: 2.527 MB / 493.1 MB, free: 2.5 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000366/0.3756, allocations: 1.007 MB / 494.1 MB, free: 1.465 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001456/0.3757, allocations: 59.42 kB / 494.2 MB, free: 1.406 MB / 350.1 MB Notification: Performance of SimCode: time 7.81e-07/0.3757, allocations: 0 / 494.2 MB, free: 1.406 MB / 350.1 MB Notification: Performance of Templates: time 0.02422/0.4, allocations: 16.57 MB / 0.4988 GB, free: 0.793 MB / 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