Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PNlib_PNlib.Examples.DisTest.PDtoTT.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.PDtoTT,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="P1.t|T1.active|T1.fire|time",fileNamePrefix="PNlib_PNlib.Examples.DisTest.PDtoTT") translateModel(PNlib.Examples.DisTest.PDtoTT,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="P1.t|T1.active|T1.fire|time",fileNamePrefix="PNlib_PNlib.Examples.DisTest.PDtoTT") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00093/0.0009302, allocations: 97.78 kB / 16.02 MB, free: 76 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.001268/0.001268, allocations: 187.3 kB / 16.92 MB, free: 6.75 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.38/1.38, allocations: 223.3 MB / 241 MB, free: 5.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 3.0.0-master/package.mo): time 0.2428/0.2428, allocations: 16.74 MB / 308.8 MB, free: 15.65 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003125/0.0003125, allocations: 16 kB / 374.1 MB, free: 3.102 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2731/0.2734, allocations: 54.47 MB / 428.6 MB, free: 38.07 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.DisTest.PDtoTT): time 0.001799/0.2753, allocations: 1.604 MB / 430.2 MB, free: 37.92 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003459/0.2788, allocations: 2.246 MB / 432.4 MB, free: 37.64 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002238/0.279, allocations: 6.875 kB / 432.4 MB, free: 37.63 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002823/0.2793, allocations: 87.95 kB / 432.5 MB, free: 37.6 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002947/0.2796, allocations: 86.81 kB / 432.6 MB, free: 37.57 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001465/0.2811, allocations: 0.7583 MB / 433.3 MB, free: 37.5 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009204/0.282, allocations: 1.119 MB / 434.5 MB, free: 37.29 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002143/0.2822, allocations: 153 kB / 434.6 MB, free: 37.24 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003484/0.2826, allocations: 418.8 kB / 435 MB, free: 37.1 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003448/0.2829, allocations: 300.3 kB / 435.3 MB, free: 36.96 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.367e-05/0.283, allocations: 33.41 kB / 435.3 MB, free: 36.96 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005446/0.2836, allocations: 456.9 kB / 435.8 MB, free: 36.82 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001166/0.2837, allocations: 127.6 kB / 435.9 MB, free: 36.76 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002667/0.284, allocations: 362.9 kB / 436.3 MB, free: 36.54 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006233/0.2846, allocations: 0.8141 MB / 437.1 MB, free: 36.36 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.111e-06/0.2846, allocations: 3 kB / 437.1 MB, free: 36.36 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.2846, allocations: 0 / 437.1 MB, free: 36.36 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.032e-05/0.2846, allocations: 0 / 437.1 MB, free: 36.36 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: 163 * Number of variables: 163 Notification: Performance of Generate backend data structure: time 0.001143/0.2858, allocations: 1.126 MB / 438.2 MB, free: 35.41 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.548e-05/0.2858, allocations: 10.38 kB / 438.2 MB, free: 35.41 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002742/0.2861, allocations: 92.62 kB / 438.3 MB, free: 35.37 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004452/0.2866, allocations: 429.4 kB / 438.7 MB, free: 35.04 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.61e-05/0.2867, allocations: 84.25 kB / 438.8 MB, free: 34.98 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001087/0.2868, allocations: 75.2 kB / 438.9 MB, free: 34.96 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001613/0.2884, allocations: 1.323 MB / 440.2 MB, free: 34.37 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.993e-05/0.2884, allocations: 3.125 kB / 440.2 MB, free: 34.37 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.167e-05/0.2885, allocations: 37.3 kB / 440.3 MB, free: 34.35 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.126e-05/0.2886, allocations: 62.89 kB / 440.3 MB, free: 34.34 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001233/0.2899, allocations: 0.8778 MB / 441.2 MB, free: 34.05 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002871/0.2928, allocations: 3.318 MB / 444.5 MB, free: 31.55 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001265/0.294, allocations: 1.522 MB / 446 MB, free: 30.58 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001049/0.2951, allocations: 1.356 MB / 447.4 MB, free: 29.75 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.738e-05/0.2952, allocations: 87.5 kB / 447.5 MB, free: 29.66 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00109/0.2963, allocations: 0.8944 MB / 448.4 MB, free: 29.27 MB / 350.1 MB Notification: Performance of pre-optimization done (n=73): time 2.815e-06/0.2963, allocations: 0 / 448.4 MB, free: 29.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=73): time 0.003153/0.2994, allocations: 2.536 MB / 450.9 MB, free: 28.2 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002027/0.2997, allocations: 0.564 MB / 451.5 MB, free: 27.62 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003864/0.3, allocations: 419.1 kB / 451.9 MB, free: 27.4 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.786e-05/0.3001, allocations: 67.11 kB / 451.9 MB, free: 27.35 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001463/0.3003, allocations: 262.7 kB / 452.2 MB, free: 27.14 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001371/0.3004, allocations: 178.6 kB / 452.4 MB, free: 27.01 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001366/0.3006, allocations: 137 kB / 452.5 MB, free: 26.95 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.767e-05/0.3007, allocations: 382.6 kB / 452.9 MB, free: 26.6 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005725/0.3013, allocations: 435 kB / 453.3 MB, free: 26.47 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007475/0.302, allocations: 0.7928 MB / 454.1 MB, free: 25.87 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002297/0.3043, allocations: 2.509 MB / 456.6 MB, free: 23.98 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.338e-06/0.3043, allocations: 3.094 kB / 456.6 MB, free: 23.98 MB / 350.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002052/0.3064, allocations: 1.816 MB / 458.4 MB, free: 23.09 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001343/0.3066, allocations: 340.7 kB / 458.8 MB, free: 22.75 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.487e-05/0.3066, allocations: 16.28 kB / 458.8 MB, free: 22.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.01e-05/0.3066, allocations: 15.28 kB / 458.8 MB, free: 22.75 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003348/0.307, allocations: 120.7 kB / 458.9 MB, free: 22.73 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.275e-05/0.307, allocations: 19.09 kB / 458.9 MB, free: 22.72 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004919/0.3075, allocations: 134.7 kB / 459.1 MB, free: 22.65 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.12e-05/0.3076, allocations: 60.25 kB / 459.1 MB, free: 22.64 MB / 350.1 MB Warning: Assuming fixed start value for the following 25 variables: 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 P1.enableIn.benefitLimit:DISCRETE(fixed = true protected = true ) "best valid benefit" type: Real P1.enableIn.valid:DISCRETE(fixed = true protected = true ) "valid solution" type: Boolean P1.enableIn.benefitMax:DISCRETE(fixed = true protected = true ) "theoretical benefit" type: Real P1.enableIn.Index:DISCRETE(fixed = true protected = true ) "priority 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.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.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 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: 50 * Number of states: 0 () * Number of discrete variables: 125 ($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,P1.firingSumIn.firingSum,$PRE.P1.enableIn.benefitLimit,P1.enableIn.benefitLimit,$PRE.P1.enableIn.valid,P1.enableIn.valid,$PRE.P1.enableIn.benefitMax,P1.enableIn.benefitMax,$PRE.P1.enableIn.Index,P1.enableIn.Index,$PRE.P1.enableIn.endWhile,P1.enableIn.endWhile,$PRE.P1.enableIn.sumEnablingProbTAin,P1.enableIn.sumEnablingProbTAin,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],$PRE.P1.enableIn.posTE,P1.enableIn.posTE,$PRE.P1.enableIn.k,P1.enableIn.k,$PRE.P1.enableIn.nTAin,P1.enableIn.nTAin,$PRE.P1.enableIn.nremTAin,P1.enableIn.nremTAin,P1.enableIn.arcWeightSum,$PRE.P1.enableIn.arcWeightSum,P1.delayPassedIn.numtrue,P1.delayPassedIn.anytrue,$whenCondition1,T1.firingCon,T1.inPlaces[1].disTransition,P1.outTransition[1].normalArc,P1.outTransition[1].testValueint,P1.outTransition[1].arcType,P1.outTransition[1].disPlace,P1.reStart,$PRE.T1.firingTime,$PRE.P1.enableOut.arcWeightSum,$PRE.P1.enableOut.TEout[1],P1.enableOut.arcWeight[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.minTokensInt[1],T1.activation.arcWeightIntIn[1],T1.activation.tIntIn[1],T1.firingTime,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.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,$whenCondition3,$whenCondition4,T1.enabledByOutPlaces,P1.outTransition[1].fed) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (130): * Single equations (assignments): 119 * 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.0008253/0.3084, allocations: 0.7486 MB / 459.9 MB, free: 22.08 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000125/0.3085, allocations: 79.94 kB / 459.9 MB, free: 22.05 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002701/0.3112, allocations: 1.958 MB / 461.9 MB, free: 21.19 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.675e-05/0.3113, allocations: 9 kB / 461.9 MB, free: 21.18 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/0.3113, allocations: 1.062 kB / 461.9 MB, free: 21.18 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.133e-06/0.3113, allocations: 4.531 kB / 461.9 MB, free: 21.18 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003492/0.3148, allocations: 2.742 MB / 464.7 MB, free: 19.86 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.418e-06/0.3148, allocations: 1.062 kB / 464.7 MB, free: 19.86 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001133/0.3149, allocations: 25.41 kB / 464.7 MB, free: 19.86 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.594e-06/0.315, allocations: 6.312 kB / 464.7 MB, free: 19.85 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.224e-05/0.3151, allocations: 37.5 kB / 464.7 MB, free: 19.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.442e-06/0.3151, allocations: 9.844 kB / 464.7 MB, free: 19.84 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.973e-06/0.3151, allocations: 0 / 464.7 MB, free: 19.84 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003116/0.3182, allocations: 2.319 MB / 467.1 MB, free: 18.73 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.44e-05/0.3183, allocations: 125.1 kB / 467.2 MB, free: 18.6 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000214/0.3185, allocations: 75.02 kB / 467.2 MB, free: 18.58 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004731/0.319, allocations: 77.34 kB / 467.3 MB, free: 18.57 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005759/0.3196, allocations: 328.5 kB / 467.6 MB, free: 18.47 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001037/0.3197, allocations: 46.33 kB / 467.7 MB, free: 18.46 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000293/0.32, allocations: 255.2 kB / 467.9 MB, free: 18.33 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.32, allocations: 0 / 467.9 MB, free: 18.33 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.00136/0.3214, allocations: 334.4 kB / 468.3 MB, free: 18.28 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 66 ($whenCondition1,P1.delayPassedIn.anytrue,P1.delayPassedIn.numtrue,P1.enableIn.state128[1],P1.enableIn.state128[2],P1.enableIn.state128[3],P1.enableIn.state128[4],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,$whenCondition6,$whenCondition5,$whenCondition7,$whenCondition4,$whenCondition3,$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.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,T1.firingTime,T1.fireTime,T1.ani,T1.activation.tIntIn[1],T1.activation.arcWeightIntIn[1],T1.activation.minTokensInt[1],T1.activation.active) * Number of discrete states: 51 (P1.firingSumOut.firingSum,P1.firingSumIn.firingSum,P1.tokeninout,P1.t,P1.activeOut[1],T1.activation.active,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,$whenCondition2,P1.enableOut.arcWeightSum,P1.enableOut.TEout[1],P1.enableIn.benefitLimit,P1.enableIn.valid,P1.enableIn.benefitMax,P1.enableIn.Index,P1.enableIn.endWhile,P1.enableIn.sumEnablingProbTAin,P1.enableIn.state128[4],P1.enableIn.state128[3],P1.enableIn.state128[2],P1.enableIn.state128[1],P1.enableIn.randNum,P1.enableIn.posTE,P1.enableIn.k,P1.enableIn.nTAin,P1.enableIn.nremTAin,$whenCondition1,P1.enableIn.arcWeightSum,P1.delayPassedIn.numtrue,P1.delayPassedIn.anytrue) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 22 * 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.0008994/0.3223, allocations: 381 kB / 468.6 MB, free: 18.11 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003096/0.3254, allocations: 2.051 MB / 470.7 MB, free: 16.92 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.781e-06/0.3254, allocations: 0 / 470.7 MB, free: 16.92 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002487/0.3279, allocations: 3.052 MB / 473.7 MB, free: 14.66 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007199/0.3286, allocations: 109.5 kB / 473.8 MB, free: 14.62 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002838/0.3315, allocations: 1.728 MB / 475.6 MB, free: 13.73 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004088/0.3319, allocations: 0.9046 MB / 476.5 MB, free: 13.01 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001472/0.3321, allocations: 50.59 kB / 476.5 MB, free: 13 MB / 350.1 MB Notification: Performance of SimCode: time 8.72e-07/0.3321, allocations: 1.031 kB / 476.5 MB, free: 13 MB / 350.1 MB Notification: Performance of Templates: time 0.01981/0.3519, allocations: 11.96 MB / 488.5 MB, free: 7.207 MB / 350.1 MB make -j1 -f PNlib_PNlib.Examples.DisTest.PDtoTT.makefile make -j1 -f PNlib_PNlib.Examples.DisTest.PDtoTT.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.PDtoTTCalcHelperMain.o OMCppPNlib_PNlib.Examples.DisTest.PDtoTTCalcHelperMain.cpp In file included from OMCppPNlib_PNlib.Examples.DisTest.PDtoTTCalcHelperMain.cpp:29: ./OMCppPNlib_PNlib.Examples.DisTest.PDtoTTInitialize.cpp:651: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.PDtoTTInitialize.cpp:686: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.PDtoTTCalcHelperMain.cpp:29: ./OMCppPNlib_PNlib.Examples.DisTest.PDtoTTInitialize.cpp:686: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.PDtoTTCalcHelperMain.cpp:33: ./OMCppPNlib_PNlib.Examples.DisTest.PDtoTT.cpp:161: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.PDtoTTCalcHelperMain.o] Error 1