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.00178/0.00178, allocations: 100.1 kB / 15.88 MB, free: 12 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002479/0.002479, allocations: 199.8 kB / 16.79 MB, free: 6.828 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.444/1.444, allocations: 222.9 MB / 240.5 MB, free: 4.535 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 3.0.0-master/package.mo): time 0.1877/0.1877, allocations: 16.75 MB / 307.4 MB, free: 15.06 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001188/0.001188, allocations: 55.91 kB / 371.6 MB, free: 3.934 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2884/0.2896, allocations: 53.46 MB / 425.1 MB, free: 39.05 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.DisTest.PDtoTD): time 0.002843/0.2925, allocations: 1.972 MB / 427 MB, free: 38.25 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003545/0.296, allocations: 2.248 MB / 429.3 MB, free: 37.58 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002604/0.2963, allocations: 6.781 kB / 429.3 MB, free: 37.58 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004384/0.2968, allocations: 90.67 kB / 429.4 MB, free: 37.52 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003688/0.2972, allocations: 92.22 kB / 429.5 MB, free: 37.46 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001528/0.2987, allocations: 0.7472 MB / 430.2 MB, free: 37.05 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007944/0.2995, allocations: 1.112 MB / 431.3 MB, free: 36.6 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002235/0.2997, allocations: 154.3 kB / 431.5 MB, free: 36.55 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003789/0.3001, allocations: 438.2 kB / 431.9 MB, free: 36.39 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003288/0.3005, allocations: 338.6 kB / 432.2 MB, free: 36.23 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001388/0.3006, allocations: 39.72 kB / 432.3 MB, free: 36.23 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007116/0.3013, allocations: 458.5 kB / 432.7 MB, free: 36.09 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001462/0.3015, allocations: 136.8 kB / 432.9 MB, free: 36.03 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003128/0.3018, allocations: 349.2 kB / 433.2 MB, free: 35.84 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007538/0.3026, allocations: 0.8391 MB / 434 MB, free: 35.58 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.616e-06/0.3026, allocations: 0 / 434 MB, free: 35.58 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.012e-06/0.3026, allocations: 0 / 434 MB, free: 35.58 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.566e-06/0.3026, allocations: 0 / 434 MB, free: 35.58 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.001539/0.3042, allocations: 1.277 MB / 435.3 MB, free: 34.56 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.024e-05/0.3042, allocations: 8.688 kB / 435.3 MB, free: 34.56 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003148/0.3045, allocations: 88.86 kB / 435.4 MB, free: 34.53 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004843/0.305, allocations: 438.6 kB / 435.8 MB, free: 34.19 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.172e-05/0.3051, allocations: 81.03 kB / 435.9 MB, free: 34.14 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001157/0.3053, allocations: 79.67 kB / 436 MB, free: 34.12 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0017/0.307, allocations: 1.321 MB / 437.3 MB, free: 33.53 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.918e-05/0.307, allocations: 10.75 kB / 437.3 MB, free: 33.52 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.027e-05/0.3071, allocations: 42.27 kB / 437.4 MB, free: 33.5 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.862e-05/0.3072, allocations: 50.7 kB / 437.4 MB, free: 33.5 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001309/0.3085, allocations: 0.9022 MB / 438.3 MB, free: 33.19 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003125/0.3116, allocations: 3.322 MB / 441.7 MB, free: 30.71 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001395/0.3131, allocations: 1.46 MB / 443.1 MB, free: 29.82 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001227/0.3143, allocations: 1.357 MB / 444.5 MB, free: 28.99 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.782e-05/0.3144, allocations: 86.69 kB / 444.6 MB, free: 28.9 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001231/0.3156, allocations: 0.9007 MB / 445.5 MB, free: 28.5 MB / 350.1 MB Notification: Performance of pre-optimization done (n=75): time 2.825e-06/0.3156, allocations: 0 / 445.5 MB, free: 28.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=75): time 0.003311/0.319, allocations: 2.536 MB / 448 MB, free: 27.45 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002346/0.3192, allocations: 0.5637 MB / 448.6 MB, free: 26.87 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004006/0.3196, allocations: 414.6 kB / 449 MB, free: 26.64 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.683e-05/0.3197, allocations: 72.97 kB / 449 MB, free: 26.59 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001604/0.3199, allocations: 269.8 kB / 449.3 MB, free: 26.37 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001642/0.32, allocations: 189.2 kB / 449.5 MB, free: 26.23 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002871/0.3203, allocations: 231.9 kB / 449.7 MB, free: 26.14 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001052/0.3204, allocations: 377.4 kB / 450.1 MB, free: 25.8 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006335/0.3211, allocations: 440.2 kB / 450.5 MB, free: 25.66 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007898/0.3219, allocations: 0.8171 MB / 451.3 MB, free: 25.03 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002396/0.3243, allocations: 2.537 MB / 453.9 MB, free: 23.11 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.341e-05/0.3243, allocations: 3 kB / 453.9 MB, free: 23.11 MB / 350.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.002146/0.3265, allocations: 1.837 MB / 455.7 MB, free: 22.21 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000144/0.3266, allocations: 334.7 kB / 456 MB, free: 21.87 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.657e-05/0.3267, allocations: 12.38 kB / 456 MB, free: 21.87 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.905e-05/0.3267, allocations: 16.22 kB / 456.1 MB, free: 21.87 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003487/0.327, allocations: 129.8 kB / 456.2 MB, free: 21.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.097e-05/0.3271, allocations: 25.88 kB / 456.2 MB, free: 21.84 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004876/0.3276, allocations: 129.4 kB / 456.3 MB, free: 21.77 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.533e-05/0.3277, allocations: 61.48 kB / 456.4 MB, free: 21.76 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.0008611/0.3285, allocations: 0.7583 MB / 457.1 MB, free: 21.19 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000143/0.3287, allocations: 74.81 kB / 457.2 MB, free: 21.16 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00259/0.3313, allocations: 1.952 MB / 459.2 MB, free: 20.3 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.897e-05/0.3313, allocations: 5.781 kB / 459.2 MB, free: 20.3 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.943e-06/0.3313, allocations: 0 / 459.2 MB, free: 20.3 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.841e-06/0.3313, allocations: 5.688 kB / 459.2 MB, free: 20.3 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004007/0.3353, allocations: 2.967 MB / 462.2 MB, free: 18.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.091e-06/0.3354, allocations: 2.953 kB / 462.2 MB, free: 18.88 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001213/0.3355, allocations: 28.23 kB / 462.2 MB, free: 18.88 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.573e-06/0.3355, allocations: 2.281 kB / 462.2 MB, free: 18.88 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001016/0.3356, allocations: 43.44 kB / 462.2 MB, free: 18.86 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.361e-06/0.3356, allocations: 14.53 kB / 462.2 MB, free: 18.85 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.3356, allocations: 0 / 462.2 MB, free: 18.85 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003146/0.3388, allocations: 2.319 MB / 464.6 MB, free: 17.74 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.125e-05/0.3389, allocations: 128.6 kB / 464.7 MB, free: 17.61 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002066/0.3391, allocations: 75.89 kB / 464.8 MB, free: 17.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000459/0.3396, allocations: 79.88 kB / 464.8 MB, free: 17.57 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005401/0.3401, allocations: 330.2 kB / 465.2 MB, free: 17.48 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001075/0.3402, allocations: 49.47 kB / 465.2 MB, free: 17.47 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002648/0.3405, allocations: 246.6 kB / 465.4 MB, free: 17.34 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.3405, allocations: 0 / 465.4 MB, free: 17.34 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001225/0.3417, allocations: 340.3 kB / 465.8 MB, free: 17.29 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.0009049/0.3427, allocations: 378.8 kB / 466.2 MB, free: 17.12 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00289/0.3456, allocations: 2.069 MB / 468.2 MB, free: 15.92 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.3456, allocations: 0 / 468.2 MB, free: 15.92 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002519/0.3481, allocations: 3.046 MB / 471.3 MB, free: 13.66 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007555/0.3489, allocations: 107 kB / 471.4 MB, free: 13.64 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002931/0.3518, allocations: 1.737 MB / 473.1 MB, free: 12.74 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005362/0.3524, allocations: 0.9052 MB / 474 MB, free: 12.02 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001792/0.3526, allocations: 52.38 kB / 474.1 MB, free: 12.01 MB / 350.1 MB Notification: Performance of SimCode: time 7.52e-07/0.3526, allocations: 4 kB / 474.1 MB, free: 12 MB / 350.1 MB Notification: Performance of Templates: time 0.02449/0.3771, allocations: 12.09 MB / 486.2 MB, free: 6.738 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