Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PNlib_PNlib.Examples.DisTest.PDtoTDfunction.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.PDtoTDfunction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="P1.t|T1.active|T1.fire|time",fileNamePrefix="PNlib_PNlib.Examples.DisTest.PDtoTDfunction") translateModel(PNlib.Examples.DisTest.PDtoTDfunction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="P1.t|T1.active|T1.fire|time",fileNamePrefix="PNlib_PNlib.Examples.DisTest.PDtoTDfunction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001815/0.001815, allocations: 107.8 kB / 16.41 MB, free: 6.484 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.002149/0.002149, allocations: 187 kB / 17.34 MB, free: 5.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.528/2.528, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 3.0.0-master/package.mo): time 0.1677/0.1677, allocations: 16.72 MB / 307.9 MB, free: 14.23 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002708/0.002708, allocations: 68.09 kB / 427 MB, free: 10.48 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1795/0.1823, allocations: 53.48 MB / 480.5 MB, free: 4.961 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.DisTest.PDtoTDfunction): time 0.006444/0.1888, allocations: 1.862 MB / 482.3 MB, free: 3.09 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007539/0.1964, allocations: 1.917 MB / 484.3 MB, free: 1.168 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000713/0.1972, allocations: 4 kB / 484.3 MB, free: 1.164 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007881/0.198, allocations: 107 kB / 484.4 MB, free: 1.059 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009838/0.1991, allocations: 127 kB / 484.5 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004002/0.2031, allocations: 0.9005 MB / 485.4 MB, free: 32 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003464/0.2066, allocations: 1.42 MB / 486.8 MB, free: 14.61 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005719/0.2072, allocations: 161.7 kB / 487 MB, free: 14.45 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001555/0.2088, allocations: 0.5376 MB / 487.5 MB, free: 13.91 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001101/0.21, allocations: 350.3 kB / 487.9 MB, free: 13.57 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003104/0.2103, allocations: 88 kB / 487.9 MB, free: 13.48 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001794/0.2121, allocations: 0.5072 MB / 488.4 MB, free: 12.97 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004177/0.2126, allocations: 143.5 kB / 488.6 MB, free: 12.83 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001027/0.2136, allocations: 398.3 kB / 489 MB, free: 12.44 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002921/0.2166, allocations: 1.173 MB / 490.1 MB, free: 11.27 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.714e-06/0.2166, allocations: 0 / 490.1 MB, free: 11.27 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.076e-06/0.2166, allocations: 4 kB / 490.2 MB, free: 11.26 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.976e-05/0.2167, allocations: 3.938 kB / 490.2 MB, free: 11.26 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 165 * Number of variables: 165 Notification: Performance of Generate backend data structure: time 0.003699/0.2204, allocations: 1.279 MB / 491.4 MB, free: 9.867 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.265e-05/0.2205, allocations: 11.89 kB / 491.4 MB, free: 9.855 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007119/0.2212, allocations: 92.17 kB / 491.5 MB, free: 9.766 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001336/0.2226, allocations: 434.8 kB / 492 MB, free: 9.301 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002257/0.2228, allocations: 86.98 kB / 492 MB, free: 9.207 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002817/0.2231, allocations: 75.98 kB / 492.1 MB, free: 9.133 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004694/0.2279, allocations: 1.33 MB / 493.4 MB, free: 7.734 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.641e-05/0.2279, allocations: 0 / 493.4 MB, free: 7.734 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002293/0.2282, allocations: 39.98 kB / 493.5 MB, free: 7.695 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002285/0.2285, allocations: 52.95 kB / 493.5 MB, free: 7.641 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00353/0.232, allocations: 0.9132 MB / 494.5 MB, free: 6.727 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008529/0.2406, allocations: 3.325 MB / 497.8 MB, free: 3.25 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00376/0.2444, allocations: 1.583 MB / 499.4 MB, free: 1.648 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002976/0.2474, allocations: 1.451 MB / 0.4891 GB, free: 196 kB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001874/0.2477, allocations: 89.09 kB / 0.4892 GB, free: 88 kB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003056/0.2508, allocations: 0.9116 MB / 0.49 GB, free: 15.14 MB / 382.1 MB Notification: Performance of pre-optimization done (n=77): time 5.902e-06/0.2508, allocations: 0 / 0.49 GB, free: 15.14 MB / 382.1 MB Notification: Performance of matching and sorting (n=77): time 0.00859/0.2594, allocations: 2.621 MB / 0.4926 GB, free: 12.47 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0006076/0.2601, allocations: 0.5349 MB / 0.4931 GB, free: 11.84 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001007/0.2611, allocations: 409.1 kB / 0.4935 GB, free: 11.43 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001705/0.2613, allocations: 73.69 kB / 0.4936 GB, free: 11.36 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003853/0.2617, allocations: 256.3 kB / 0.4938 GB, free: 11.1 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004468/0.2622, allocations: 197.7 kB / 0.494 GB, free: 10.91 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006682/0.2629, allocations: 226.5 kB / 0.4942 GB, free: 10.68 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002531/0.2632, allocations: 378.7 kB / 0.4946 GB, free: 10.3 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001383/0.2646, allocations: 442 kB / 0.495 GB, free: 9.867 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001923/0.2665, allocations: 0.8046 MB / 0.4958 GB, free: 8.902 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006139/0.2727, allocations: 2.547 MB / 0.4983 GB, free: 6.023 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.659e-05/0.2728, allocations: 0 / 0.4983 GB, free: 6.023 MB / 382.1 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.00576/0.2786, allocations: 1.822 MB / 0.5001 GB, free: 4.133 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004268/0.279, allocations: 341 kB / 0.5004 GB, free: 3.738 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-05/0.2791, allocations: 16.09 kB / 0.5004 GB, free: 3.723 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.356e-05/0.2792, allocations: 16 kB / 0.5004 GB, free: 3.707 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008597/0.2801, allocations: 123.7 kB / 0.5005 GB, free: 3.586 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.434e-05/0.2802, allocations: 23.88 kB / 0.5006 GB, free: 3.562 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001086/0.2813, allocations: 130.9 kB / 0.5007 GB, free: 3.434 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002118/0.2815, allocations: 52 kB / 0.5007 GB, free: 3.383 MB / 382.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: 51 * Number of states: 0 () * Number of discrete variables: 128 ($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,T1.inPlaces[1].tokenInOut,$PRE.P1.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.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.delayPassed,$PRE.T1.delayPassed,T1.firingTime,T1.active,P1.enableOut.arcWeightSum,P1.enableOut.TEout[1],P1.enableOut.TEout_[1],P1.enableOut.TAout[1],P1.enableOut.arcWeight[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 (134): * Single equations (assignments): 123 * 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.002024/0.2836, allocations: 0.7579 MB / 0.5015 GB, free: 2.559 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004367/0.284, allocations: 75.34 kB / 0.5016 GB, free: 2.484 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006632/0.2907, allocations: 2.026 MB / 0.5035 GB, free: 420 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.1e-05/0.2908, allocations: 4 kB / 0.5035 GB, free: 416 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.192e-05/0.2908, allocations: 0 / 0.5035 GB, free: 416 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.858e-05/0.2908, allocations: 7.984 kB / 0.5035 GB, free: 408 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3857/0.6765, allocations: 3.04 MB / 0.5065 GB, free: 34.38 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.164e-05/0.6766, allocations: 1.156 kB / 0.5065 GB, free: 34.38 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002669/0.6769, allocations: 25.66 kB / 0.5065 GB, free: 34.38 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.275e-05/0.6769, allocations: 1 kB / 0.5065 GB, free: 34.38 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00019/0.6771, allocations: 42.88 kB / 0.5066 GB, free: 34.38 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.949e-06/0.6772, allocations: 5.516 kB / 0.5066 GB, free: 34.38 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.906e-06/0.6772, allocations: 1.156 kB / 0.5066 GB, free: 34.38 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006588/0.6838, allocations: 2.38 MB / 0.5089 GB, free: 33.49 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002043/0.684, allocations: 127.4 kB / 0.509 GB, free: 33.4 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004101/0.6845, allocations: 84.66 kB / 0.5091 GB, free: 33.38 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009856/0.6855, allocations: 74.81 kB / 0.5092 GB, free: 33.37 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009762/0.6865, allocations: 333.4 kB / 0.5095 GB, free: 33.28 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002156/0.6867, allocations: 46.19 kB / 0.5096 GB, free: 33.27 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004953/0.6872, allocations: 243.5 kB / 0.5098 GB, free: 33.14 MB / 382.1 MB Notification: Performance of sort global known variables: time 4.51e-07/0.6872, allocations: 4.875 kB / 0.5098 GB, free: 33.14 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002291/0.6895, allocations: 339.7 kB / 0.5101 GB, free: 33.11 MB / 382.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: 69 ($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,T1.active,$whenCondition6,$whenCondition5,$whenCondition7,$whenCondition4,$whenCondition3,$whenCondition2,P1.t,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.arcWeight[1],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.inPlaces[1].tokenInOut,T1.firingTime,T1.fireTime,T1.delayPassed,T1.ani,T1.activation.tIntIn[1],T1.activation.arcWeightIntIn[1],T1.activation.minTokensInt[1],T1.activation.active) * Number of discrete states: 52 (P1.firingSumOut.firingSum,P1.firingSumIn.firingSum,P1.tokeninout,P1.t,P1.activeOut[1],T1.activation.active,T1.delayPassed,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 (39): * Single equations (assignments): 26 * 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.001513/0.6911, allocations: 382.3 kB / 0.5105 GB, free: 32.99 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005321/0.6964, allocations: 2.097 MB / 0.5125 GB, free: 31.82 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.054e-05/0.6965, allocations: 5.062 kB / 0.5125 GB, free: 31.82 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005053/0.7016, allocations: 3.141 MB / 0.5156 GB, free: 29.5 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001363/0.703, allocations: 112.6 kB / 0.5157 GB, free: 29.47 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00544/0.7084, allocations: 1.653 MB / 0.5173 GB, free: 28.73 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006674/0.7091, allocations: 0.9073 MB / 0.5182 GB, free: 28.02 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002935/0.7095, allocations: 52.06 kB / 0.5183 GB, free: 28.01 MB / 382.1 MB Notification: Performance of SimCode: time 1.533e-06/0.7095, allocations: 1.219 kB / 0.5183 GB, free: 28.01 MB / 382.1 MB Notification: Performance of Templates: time 0.03353/0.743, allocations: 12.27 MB / 0.5302 GB, free: 23.06 MB / 382.1 MB make -j1 -f PNlib_PNlib.Examples.DisTest.PDtoTDfunction.makefile make -j1 -f PNlib_PNlib.Examples.DisTest.PDtoTDfunction.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.PDtoTDfunctionCalcHelperMain.o OMCppPNlib_PNlib.Examples.DisTest.PDtoTDfunctionCalcHelperMain.cpp In file included from OMCppPNlib_PNlib.Examples.DisTest.PDtoTDfunctionCalcHelperMain.cpp:29: ./OMCppPNlib_PNlib.Examples.DisTest.PDtoTDfunctionInitialize.cpp:564: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.PDtoTDfunctionInitialize.cpp:599: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.PDtoTDfunctionCalcHelperMain.cpp:29: ./OMCppPNlib_PNlib.Examples.DisTest.PDtoTDfunctionInitialize.cpp:599: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.PDtoTDfunctionCalcHelperMain.cpp:33: ./OMCppPNlib_PNlib.Examples.DisTest.PDtoTDfunction.cpp:160: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.PDtoTDfunctionCalcHelperMain.o] Error 1