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.001585/0.001585, allocations: 104.9 kB / 15.98 MB, free: 5.891 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.00192/0.00192, allocations: 188.4 kB / 16.91 MB, free: 5.746 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.426/1.426, allocations: 222.9 MB / 240.6 MB, free: 4.492 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 3.0.0-master/package.mo): time 0.193/0.193, allocations: 16.77 MB / 307.5 MB, free: 14.95 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001306/0.001306, allocations: 55.91 kB / 371.8 MB, free: 3.777 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2983/0.2996, allocations: 53.45 MB / 425.3 MB, free: 39.18 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.DisTest.PDtoTD): time 0.002635/0.3023, allocations: 1.975 MB / 427.2 MB, free: 38.36 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002667/0.305, allocations: 1.946 MB / 429.2 MB, free: 37.72 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002062/0.3052, allocations: 8.688 kB / 429.2 MB, free: 37.71 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002792/0.3055, allocations: 83.91 kB / 429.3 MB, free: 37.68 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002991/0.3058, allocations: 84.2 kB / 429.3 MB, free: 37.65 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001441/0.3072, allocations: 0.808 MB / 430.2 MB, free: 37.25 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009916/0.3082, allocations: 1.43 MB / 431.6 MB, free: 36.61 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002111/0.3085, allocations: 162.9 kB / 431.7 MB, free: 36.55 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003896/0.3089, allocations: 0.5345 MB / 432.3 MB, free: 36.3 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003343/0.3092, allocations: 352.6 kB / 432.6 MB, free: 36.12 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.822e-05/0.3093, allocations: 87.53 kB / 432.7 MB, free: 36.12 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005375/0.3099, allocations: 0.5101 MB / 433.2 MB, free: 35.98 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000142/0.31, allocations: 136.6 kB / 433.4 MB, free: 35.91 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003032/0.3103, allocations: 402 kB / 433.7 MB, free: 35.67 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006608/0.311, allocations: 0.8641 MB / 434.6 MB, free: 35.39 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.311, allocations: 0 / 434.6 MB, free: 35.39 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.311, allocations: 0 / 434.6 MB, free: 35.39 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.019e-05/0.311, allocations: 3.422 kB / 434.6 MB, free: 35.39 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: 165 * Number of variables: 165 Notification: Performance of Generate backend data structure: time 0.001383/0.3124, allocations: 1.266 MB / 435.9 MB, free: 34.38 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.648e-05/0.3125, allocations: 16.7 kB / 435.9 MB, free: 34.38 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003039/0.3128, allocations: 90.86 kB / 436 MB, free: 34.34 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004549/0.3132, allocations: 446.8 kB / 436.4 MB, free: 34 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.754e-05/0.3133, allocations: 78.91 kB / 436.5 MB, free: 33.95 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001046/0.3135, allocations: 78.14 kB / 436.6 MB, free: 33.93 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001713/0.3152, allocations: 1.323 MB / 437.9 MB, free: 33.33 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.049e-05/0.3152, allocations: 7.906 kB / 437.9 MB, free: 33.33 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.51e-05/0.3153, allocations: 34.86 kB / 437.9 MB, free: 33.31 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001013/0.3154, allocations: 56.8 kB / 438 MB, free: 33.3 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001309/0.3167, allocations: 0.8966 MB / 438.9 MB, free: 33.01 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003052/0.3198, allocations: 3.319 MB / 442.2 MB, free: 30.52 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00128/0.3211, allocations: 1.466 MB / 443.7 MB, free: 29.63 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001052/0.3222, allocations: 1.36 MB / 445 MB, free: 28.8 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.466e-05/0.3222, allocations: 83.27 kB / 445.1 MB, free: 28.71 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001123/0.3234, allocations: 0.8982 MB / 446 MB, free: 28.31 MB / 350.1 MB Notification: Performance of pre-optimization done (n=75): time 2.364e-06/0.3234, allocations: 0 / 446 MB, free: 28.31 MB / 350.1 MB Notification: Performance of matching and sorting (n=75): time 0.003285/0.3267, allocations: 2.536 MB / 448.5 MB, free: 27.26 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002557/0.327, allocations: 0.5596 MB / 449.1 MB, free: 26.68 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004099/0.3274, allocations: 419.8 kB / 449.5 MB, free: 26.46 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.403e-05/0.3275, allocations: 70.64 kB / 449.6 MB, free: 26.41 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001546/0.3276, allocations: 263.7 kB / 449.8 MB, free: 26.19 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001289/0.3278, allocations: 191.4 kB / 450 MB, free: 26.05 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002875/0.3281, allocations: 236.5 kB / 450.3 MB, free: 25.96 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.623e-05/0.3282, allocations: 378.9 kB / 450.6 MB, free: 25.61 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005913/0.3288, allocations: 436.3 kB / 451.1 MB, free: 25.48 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007383/0.3295, allocations: 0.8155 MB / 451.9 MB, free: 24.85 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002206/0.3317, allocations: 2.543 MB / 454.4 MB, free: 22.92 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.028e-05/0.3317, allocations: 2.562 kB / 454.4 MB, free: 22.92 MB / 350.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.002027/0.3338, allocations: 1.834 MB / 456.3 MB, free: 22.02 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001293/0.3339, allocations: 333.9 kB / 456.6 MB, free: 21.69 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.839e-05/0.3339, allocations: 12 kB / 456.6 MB, free: 21.69 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.825e-05/0.334, allocations: 18.56 kB / 456.6 MB, free: 21.69 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003496/0.3343, allocations: 120 kB / 456.7 MB, free: 21.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.169e-05/0.3344, allocations: 30 kB / 456.8 MB, free: 21.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004689/0.3348, allocations: 140.7 kB / 456.9 MB, free: 21.58 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.119e-05/0.3349, allocations: 58.16 kB / 457 MB, free: 21.57 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: 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.0007693/0.3357, allocations: 0.7487 MB / 457.7 MB, free: 21.01 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001473/0.3359, allocations: 73.5 kB / 457.8 MB, free: 20.98 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002466/0.3383, allocations: 1.952 MB / 459.7 MB, free: 20.12 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.65e-05/0.3384, allocations: 5.5 kB / 459.7 MB, free: 20.12 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.123e-06/0.3384, allocations: 1 kB / 459.7 MB, free: 20.12 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.522e-06/0.3384, allocations: 8.391 kB / 459.7 MB, free: 20.12 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003754/0.3421, allocations: 2.98 MB / 462.7 MB, free: 18.68 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.729e-06/0.3422, allocations: 1.156 kB / 462.7 MB, free: 18.68 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001169/0.3423, allocations: 24.31 kB / 462.7 MB, free: 18.68 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.993e-06/0.3423, allocations: 5.797 kB / 462.7 MB, free: 18.68 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.343e-05/0.3424, allocations: 39.86 kB / 462.8 MB, free: 18.67 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.359e-06/0.3424, allocations: 5.188 kB / 462.8 MB, free: 18.66 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.614e-06/0.3424, allocations: 4.609 kB / 462.8 MB, free: 18.66 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003078/0.3455, allocations: 2.316 MB / 465.1 MB, free: 17.55 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001174/0.3457, allocations: 129.1 kB / 465.2 MB, free: 17.43 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002054/0.3459, allocations: 78.53 kB / 465.3 MB, free: 17.4 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004737/0.3463, allocations: 76.89 kB / 465.4 MB, free: 17.39 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007324/0.3471, allocations: 329.4 kB / 465.7 MB, free: 17.29 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001274/0.3472, allocations: 49.94 kB / 465.8 MB, free: 17.28 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003011/0.3475, allocations: 252 kB / 466 MB, free: 17.15 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.1e-07/0.3475, allocations: 0 / 466 MB, free: 17.15 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001281/0.3488, allocations: 338.5 kB / 466.3 MB, free: 17.09 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: 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.0007343/0.3496, allocations: 377.7 kB / 466.7 MB, free: 16.93 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002838/0.3524, allocations: 2.139 MB / 468.8 MB, free: 15.71 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.057e-06/0.3524, allocations: 1.406 kB / 468.8 MB, free: 15.71 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002155/0.3546, allocations: 3.049 MB / 471.9 MB, free: 13.45 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006586/0.3553, allocations: 118.1 kB / 472 MB, free: 13.42 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002818/0.3581, allocations: 1.727 MB / 473.7 MB, free: 12.53 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003875/0.3585, allocations: 0.9091 MB / 474.6 MB, free: 11.8 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001533/0.3587, allocations: 53.47 kB / 474.7 MB, free: 11.79 MB / 350.1 MB Notification: Performance of SimCode: time 8.32e-07/0.3587, allocations: 0 / 474.7 MB, free: 11.79 MB / 350.1 MB Notification: Performance of Templates: time 0.02029/0.379, allocations: 12.1 MB / 486.8 MB, free: 6.16 MB / 350.1 MB make -j1 -f PNlib_PNlib.Examples.DisTest.PDtoTD.makefile make -j1 -f PNlib_PNlib.Examples.DisTest.PDtoTD.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.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: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.PDtoTDCalcHelperMain.o] Error 1