Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PNlib_PNlib.Examples.DisTest.PDtoTD.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.PDtoTD,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="P1.t|T1.active|T1.fire|time",fileNamePrefix="PNlib_PNlib.Examples.DisTest.PDtoTD") translateModel(PNlib.Examples.DisTest.PDtoTD,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="P1.t|T1.active|T1.fire|time",fileNamePrefix="PNlib_PNlib.Examples.DisTest.PDtoTD") 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: 105.5 kB / 16.41 MB, free: 6.461 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.002726/0.002726, allocations: 187 kB / 17.34 MB, free: 5.719 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.916/2.916, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 3.0.0-master/package.mo): time 0.1471/0.1471, allocations: 16.73 MB / 307.9 MB, free: 14.21 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002651/0.002651, allocations: 63.89 kB / 427 MB, free: 10.48 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1848/0.1875, allocations: 53.49 MB / 480.5 MB, free: 4.945 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.DisTest.PDtoTD): time 0.006019/0.1936, allocations: 1.85 MB / 482.3 MB, free: 3.09 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007058/0.2007, allocations: 1.917 MB / 484.3 MB, free: 1.168 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006343/0.2014, allocations: 7.938 kB / 484.3 MB, free: 1.16 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007511/0.2021, allocations: 107.1 kB / 484.4 MB, free: 1.055 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009993/0.2032, allocations: 127 kB / 484.5 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004688/0.208, allocations: 0.8966 MB / 485.4 MB, free: 32 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003518/0.2115, allocations: 1.431 MB / 486.8 MB, free: 14.6 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006067/0.2122, allocations: 160.5 kB / 487 MB, free: 14.44 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001546/0.2138, allocations: 0.5337 MB / 487.5 MB, free: 13.9 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001115/0.2149, allocations: 350.3 kB / 487.9 MB, free: 13.56 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004156/0.2153, allocations: 88 kB / 487.9 MB, free: 13.47 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001783/0.2172, allocations: 0.5033 MB / 488.4 MB, free: 12.97 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003898/0.2176, allocations: 143.5 kB / 488.6 MB, free: 12.83 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001124/0.2187, allocations: 398.3 kB / 489 MB, free: 12.44 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002849/0.2216, allocations: 1.165 MB / 490.1 MB, free: 11.27 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.648e-06/0.2216, allocations: 7.938 kB / 490.1 MB, free: 11.26 MB / 366.1 MB Notification: Performance of FrontEnd: time 7.454e-06/0.2217, allocations: 4 kB / 490.2 MB, free: 11.26 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.108e-05/0.2217, allocations: 0 / 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.004048/0.2258, allocations: 1.279 MB / 491.4 MB, free: 9.867 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.281e-05/0.2259, allocations: 11.89 kB / 491.4 MB, free: 9.855 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007975/0.2267, allocations: 92.17 kB / 491.5 MB, free: 9.766 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001249/0.2279, allocations: 438.7 kB / 492 MB, free: 9.297 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002119/0.2282, allocations: 86.98 kB / 492 MB, free: 9.203 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002751/0.2285, allocations: 79.98 kB / 492.1 MB, free: 9.125 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004023/0.2325, allocations: 1.318 MB / 493.4 MB, free: 7.738 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.793e-05/0.2326, allocations: 7.938 kB / 493.4 MB, free: 7.73 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000196/0.2328, allocations: 35.98 kB / 493.5 MB, free: 7.695 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002036/0.233, allocations: 60.95 kB / 493.5 MB, free: 7.633 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002725/0.2358, allocations: 0.8937 MB / 494.4 MB, free: 6.738 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007582/0.2434, allocations: 3.313 MB / 497.8 MB, free: 3.273 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003083/0.2465, allocations: 1.462 MB / 499.2 MB, free: 1.793 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002578/0.2491, allocations: 1.358 MB / 0.4888 GB, free: 440 kB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002206/0.2494, allocations: 81.11 kB / 0.4889 GB, free: 340 kB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002534/0.2519, allocations: 0.9033 MB / 0.4898 GB, free: 15.39 MB / 382.1 MB Notification: Performance of pre-optimization done (n=75): time 5.62e-06/0.252, allocations: 0 / 0.4898 GB, free: 15.39 MB / 382.1 MB Notification: Performance of matching and sorting (n=75): time 0.007033/0.259, allocations: 2.531 MB / 0.4923 GB, free: 12.81 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0006153/0.2597, allocations: 0.5637 MB / 0.4928 GB, free: 12.14 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009738/0.2607, allocations: 417.1 kB / 0.4932 GB, free: 11.73 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001822/0.2609, allocations: 69.69 kB / 0.4933 GB, free: 11.66 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004037/0.2613, allocations: 252.4 kB / 0.4935 GB, free: 11.41 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004049/0.2617, allocations: 205.7 kB / 0.4937 GB, free: 11.2 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006147/0.2624, allocations: 230.5 kB / 0.4939 GB, free: 10.97 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002841/0.2627, allocations: 378.7 kB / 0.4943 GB, free: 10.59 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001378/0.2641, allocations: 438 kB / 0.4947 GB, free: 10.16 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00188/0.266, allocations: 0.8215 MB / 0.4955 GB, free: 9.18 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005656/0.2717, allocations: 2.536 MB / 0.498 GB, free: 6.309 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.816e-05/0.2717, allocations: 4 kB / 0.498 GB, free: 6.305 MB / 382.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.00521/0.277, allocations: 1.834 MB / 0.4998 GB, free: 4.402 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003907/0.2774, allocations: 337 kB / 0.5001 GB, free: 4.012 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.806e-05/0.2775, allocations: 12 kB / 0.5001 GB, free: 4 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.509e-05/0.2775, allocations: 16 kB / 0.5001 GB, free: 3.984 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006951/0.2782, allocations: 123.9 kB / 0.5003 GB, free: 3.863 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.844e-05/0.2783, allocations: 27.88 kB / 0.5003 GB, free: 3.836 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001142/0.2795, allocations: 139.4 kB / 0.5004 GB, free: 3.699 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002106/0.2797, allocations: 59.94 kB / 0.5005 GB, free: 3.641 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: 52 * 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.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.delayPassed,$PRE.T1.delayPassed,T1.firingTime,T1.active,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 (135): * Single equations (assignments): 124 * 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.001903/0.2816, allocations: 0.7497 MB / 0.5012 GB, free: 2.828 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004196/0.2821, allocations: 75.34 kB / 0.5013 GB, free: 2.754 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005748/0.2878, allocations: 1.952 MB / 0.5032 GB, free: 0.7539 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.622e-05/0.2879, allocations: 4 kB / 0.5032 GB, free: 0.75 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.146e-05/0.2879, allocations: 0 / 0.5032 GB, free: 0.75 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.115e-06/0.2879, allocations: 0 / 0.5032 GB, free: 0.75 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4342/0.7221, allocations: 2.976 MB / 0.5061 GB, free: 34.19 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.574e-05/0.7222, allocations: 1.406 kB / 0.5061 GB, free: 34.19 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002329/0.7224, allocations: 25.42 kB / 0.5061 GB, free: 34.19 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.57e-05/0.7225, allocations: 1.469 kB / 0.5061 GB, free: 34.19 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00021/0.7227, allocations: 45.92 kB / 0.5062 GB, free: 34.19 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.17e-05/0.7227, allocations: 5.219 kB / 0.5062 GB, free: 34.19 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.747e-06/0.7228, allocations: 1.406 kB / 0.5062 GB, free: 34.19 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006213/0.729, allocations: 2.32 MB / 0.5084 GB, free: 33.5 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002164/0.7292, allocations: 128.2 kB / 0.5086 GB, free: 33.41 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004031/0.7297, allocations: 79.61 kB / 0.5086 GB, free: 33.38 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000855/0.7305, allocations: 80.89 kB / 0.5087 GB, free: 33.38 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009362/0.7315, allocations: 327.5 kB / 0.509 GB, free: 33.29 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00021/0.7317, allocations: 48.53 kB / 0.5091 GB, free: 33.28 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005302/0.7323, allocations: 252.5 kB / 0.5093 GB, free: 33.15 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.6e-07/0.7323, allocations: 0 / 0.5093 GB, free: 33.15 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002135/0.7344, allocations: 339.6 kB / 0.5096 GB, free: 33.12 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: 68 ($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.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 (37): * Single equations (assignments): 24 * 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.001354/0.7358, allocations: 378.1 kB / 0.51 GB, free: 33 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004754/0.7406, allocations: 2.068 MB / 0.512 GB, free: 31.85 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.893e-06/0.7406, allocations: 0 / 0.512 GB, free: 31.85 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005086/0.7457, allocations: 3.044 MB / 0.515 GB, free: 29.6 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001427/0.7472, allocations: 112.7 kB / 0.5151 GB, free: 29.57 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00549/0.7527, allocations: 1.556 MB / 0.5166 GB, free: 28.87 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008118/0.7536, allocations: 0.9094 MB / 0.5175 GB, free: 28.15 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003219/0.754, allocations: 56.05 kB / 0.5176 GB, free: 28.14 MB / 382.1 MB Notification: Performance of SimCode: time 1.172e-06/0.754, allocations: 0 / 0.5176 GB, free: 28.14 MB / 382.1 MB Notification: Performance of Templates: time 0.03672/0.7907, allocations: 12.17 MB / 0.5294 GB, free: 23.62 MB / 382.1 MB make -j1 -f PNlib_PNlib.Examples.DisTest.PDtoTD.makefile make -j1 -f PNlib_PNlib.Examples.DisTest.PDtoTD.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.PDtoTDCalcHelperMain.o OMCppPNlib_PNlib.Examples.DisTest.PDtoTDCalcHelperMain.cpp In file included from OMCppPNlib_PNlib.Examples.DisTest.PDtoTDCalcHelperMain.cpp:29: ./OMCppPNlib_PNlib.Examples.DisTest.PDtoTDInitialize.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.PDtoTDInitialize.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.PDtoTDCalcHelperMain.cpp:29: ./OMCppPNlib_PNlib.Examples.DisTest.PDtoTDInitialize.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.PDtoTDCalcHelperMain.cpp:33: ./OMCppPNlib_PNlib.Examples.DisTest.PDtoTD.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.PDtoTDCalcHelperMain.o] Error 1