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.01012/0.01012, allocations: 110.2 kB / 16.41 MB, free: 6.449 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.002045/0.002045, allocations: 193.4 kB / 17.34 MB, free: 5.738 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.723/2.723, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 3.0.0-master/package.mo): time 0.1549/0.1549, allocations: 16.73 MB / 307.9 MB, free: 14.24 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002098/0.002098, allocations: 59.91 kB / 427 MB, free: 10.48 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1756/0.1777, allocations: 53.47 MB / 480.5 MB, free: 4.961 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.DisTest.PDtoTDfunction): time 0.004664/0.1824, allocations: 1.862 MB / 482.3 MB, free: 3.09 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005318/0.1878, allocations: 1.909 MB / 484.3 MB, free: 1.176 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005346/0.1884, allocations: 11.88 kB / 484.3 MB, free: 1.164 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005035/0.1889, allocations: 107.1 kB / 484.4 MB, free: 1.059 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005479/0.1895, allocations: 115.1 kB / 484.5 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003578/0.1931, allocations: 0.9083 MB / 485.4 MB, free: 36 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002621/0.1957, allocations: 1.424 MB / 486.8 MB, free: 14.61 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005291/0.1963, allocations: 152.6 kB / 487 MB, free: 14.46 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001073/0.1974, allocations: 0.5337 MB / 487.5 MB, free: 13.92 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007427/0.1981, allocations: 354.2 kB / 487.8 MB, free: 13.57 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002163/0.1984, allocations: 92 kB / 487.9 MB, free: 13.48 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001296/0.1997, allocations: 0.5033 MB / 488.4 MB, free: 12.98 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002694/0.2, allocations: 139.5 kB / 488.6 MB, free: 12.84 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006056/0.2006, allocations: 398.3 kB / 489 MB, free: 12.45 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002059/0.2027, allocations: 1.177 MB / 490.1 MB, free: 11.27 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.584e-06/0.2027, allocations: 4 kB / 490.1 MB, free: 11.27 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.535e-06/0.2027, allocations: 0 / 490.1 MB, free: 11.27 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.431e-05/0.2027, allocations: 0 / 490.1 MB, free: 11.27 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.002804/0.2055, allocations: 1.275 MB / 491.4 MB, free: 9.883 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.081e-05/0.2056, allocations: 15.89 kB / 491.4 MB, free: 9.867 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005291/0.2062, allocations: 96.17 kB / 491.5 MB, free: 9.773 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009598/0.2071, allocations: 430.8 kB / 491.9 MB, free: 9.312 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001641/0.2073, allocations: 90.92 kB / 492 MB, free: 9.215 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002115/0.2075, allocations: 79.98 kB / 492.1 MB, free: 9.137 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003302/0.2109, allocations: 1.322 MB / 493.4 MB, free: 7.746 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.522e-05/0.2109, allocations: 3.938 kB / 493.4 MB, free: 7.742 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001482/0.2111, allocations: 36 kB / 493.5 MB, free: 7.707 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001526/0.2112, allocations: 56.95 kB / 493.5 MB, free: 7.648 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002541/0.2138, allocations: 0.9132 MB / 494.4 MB, free: 6.734 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00626/0.2201, allocations: 3.329 MB / 497.8 MB, free: 3.254 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002783/0.2229, allocations: 1.589 MB / 499.4 MB, free: 1.648 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002379/0.2253, allocations: 1.455 MB / 0.4891 GB, free: 192 kB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001412/0.2255, allocations: 81.11 kB / 0.4892 GB, free: 92 kB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002175/0.2276, allocations: 0.9194 MB / 0.4901 GB, free: 15.14 MB / 382.1 MB Notification: Performance of pre-optimization done (n=77): time 4.258e-06/0.2277, allocations: 0 / 0.4901 GB, free: 15.14 MB / 382.1 MB Notification: Performance of matching and sorting (n=77): time 0.0063/0.234, allocations: 2.621 MB / 0.4926 GB, free: 12.47 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0005787/0.2346, allocations: 0.5349 MB / 0.4931 GB, free: 11.84 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000905/0.2355, allocations: 409.1 kB / 0.4935 GB, free: 11.43 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001997/0.2357, allocations: 69.69 kB / 0.4936 GB, free: 11.36 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003798/0.2361, allocations: 256.4 kB / 0.4938 GB, free: 11.1 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003729/0.2365, allocations: 193.7 kB / 0.494 GB, free: 10.91 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005067/0.237, allocations: 230.5 kB / 0.4942 GB, free: 10.68 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002503/0.2373, allocations: 374.7 kB / 0.4946 GB, free: 10.3 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001081/0.2384, allocations: 442 kB / 0.495 GB, free: 9.871 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001472/0.2399, allocations: 0.8046 MB / 0.4958 GB, free: 8.906 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004932/0.2448, allocations: 2.547 MB / 0.4983 GB, free: 6.027 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.295e-05/0.2449, allocations: 8 kB / 0.4983 GB, free: 6.02 MB / 382.1 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.004518/0.2494, allocations: 1.822 MB / 0.5001 GB, free: 4.129 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003596/0.2498, allocations: 333 kB / 0.5004 GB, free: 3.742 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.421e-05/0.2499, allocations: 12 kB / 0.5004 GB, free: 3.73 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.106e-05/0.2499, allocations: 20 kB / 0.5004 GB, free: 3.711 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006094/0.2505, allocations: 119.7 kB / 0.5005 GB, free: 3.594 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.674e-05/0.2506, allocations: 27.88 kB / 0.5006 GB, free: 3.566 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009787/0.2516, allocations: 126.9 kB / 0.5007 GB, free: 3.441 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001898/0.2518, allocations: 59.98 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.001834/0.2537, allocations: 0.7551 MB / 0.5015 GB, free: 2.566 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004066/0.2541, allocations: 79.34 kB / 0.5016 GB, free: 2.488 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005082/0.2592, allocations: 2.022 MB / 0.5035 GB, free: 428 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.396e-05/0.2593, allocations: 8 kB / 0.5035 GB, free: 420 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.698e-05/0.2593, allocations: 0 / 0.5035 GB, free: 420 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.711e-05/0.2593, allocations: 3.984 kB / 0.5035 GB, free: 416 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4065/0.6659, allocations: 3.041 MB / 0.5065 GB, free: 34.35 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.466e-05/0.6659, allocations: 5.281 kB / 0.5065 GB, free: 34.35 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002425/0.6662, allocations: 24.17 kB / 0.5065 GB, free: 34.35 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.602e-05/0.6662, allocations: 2.719 kB / 0.5065 GB, free: 34.35 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001876/0.6664, allocations: 44.22 kB / 0.5066 GB, free: 34.35 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.918e-06/0.6664, allocations: 4.938 kB / 0.5066 GB, free: 34.35 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/0.6664, allocations: 1.062 kB / 0.5066 GB, free: 34.35 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005954/0.6724, allocations: 2.381 MB / 0.5089 GB, free: 33.48 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002206/0.6727, allocations: 125.2 kB / 0.509 GB, free: 33.39 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003314/0.673, allocations: 83.08 kB / 0.5091 GB, free: 33.37 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007626/0.6738, allocations: 77.17 kB / 0.5092 GB, free: 33.36 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008669/0.6747, allocations: 322.9 kB / 0.5095 GB, free: 33.27 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001717/0.6749, allocations: 46.25 kB / 0.5095 GB, free: 33.26 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000443/0.6753, allocations: 247.8 kB / 0.5098 GB, free: 33.13 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.6753, allocations: 0 / 0.5098 GB, free: 33.13 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001946/0.6773, allocations: 344.7 kB / 0.5101 GB, free: 33.1 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.001258/0.6786, allocations: 381.6 kB / 0.5105 GB, free: 32.98 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004603/0.6832, allocations: 2.099 MB / 0.5125 GB, free: 31.81 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.484e-06/0.6832, allocations: 0 / 0.5125 GB, free: 31.81 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004306/0.6875, allocations: 3.148 MB / 0.5156 GB, free: 29.49 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001156/0.6887, allocations: 118.9 kB / 0.5157 GB, free: 29.46 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004616/0.6934, allocations: 1.647 MB / 0.5173 GB, free: 28.72 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001055/0.6945, allocations: 0.9058 MB / 0.5182 GB, free: 28.02 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003855/0.6949, allocations: 54.8 kB / 0.5183 GB, free: 28 MB / 382.1 MB Notification: Performance of SimCode: time 3.006e-06/0.6949, allocations: 0.875 kB / 0.5183 GB, free: 28 MB / 382.1 MB Notification: Performance of Templates: time 0.03633/0.7312, allocations: 12.19 MB / 0.5302 GB, free: 23.17 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