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.005763/0.005763, allocations: 101.6 kB / 15.88 MB, free: 5.871 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.001154/0.001154, allocations: 191.9 kB / 16.78 MB, free: 5.816 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.498/1.498, allocations: 222.9 MB / 240.5 MB, free: 4.57 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 3.0.0-master/package.mo): time 0.2004/0.2004, allocations: 16.77 MB / 307.4 MB, free: 15.06 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001283/0.001283, allocations: 63.89 kB / 371.6 MB, free: 3.906 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3015/0.3028, allocations: 53.45 MB / 425.1 MB, free: 39.24 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.DisTest.PDtoTDfunction): time 0.003087/0.3059, allocations: 1.977 MB / 427.1 MB, free: 38.44 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00349/0.3095, allocations: 2.252 MB / 429.3 MB, free: 37.75 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000225/0.3097, allocations: 6.781 kB / 429.3 MB, free: 37.75 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003517/0.3101, allocations: 86.02 kB / 429.4 MB, free: 37.69 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003051/0.3104, allocations: 87.11 kB / 429.5 MB, free: 37.63 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001779/0.3122, allocations: 0.7469 MB / 430.2 MB, free: 37.23 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009685/0.3132, allocations: 1.116 MB / 431.4 MB, free: 36.77 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002372/0.3134, allocations: 159.1 kB / 431.5 MB, free: 36.71 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004146/0.3139, allocations: 438.5 kB / 431.9 MB, free: 36.55 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003552/0.3142, allocations: 325.8 kB / 432.3 MB, free: 36.4 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001009/0.3143, allocations: 42.09 kB / 432.3 MB, free: 36.4 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006576/0.315, allocations: 468.8 kB / 432.8 MB, free: 36.26 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001448/0.3152, allocations: 139.7 kB / 432.9 MB, free: 36.19 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003206/0.3155, allocations: 341.2 kB / 433.2 MB, free: 36 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007045/0.3162, allocations: 0.8425 MB / 434.1 MB, free: 35.74 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.608e-06/0.3162, allocations: 0 / 434.1 MB, free: 35.74 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.3162, allocations: 0 / 434.1 MB, free: 35.74 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.286e-06/0.3162, allocations: 0 / 434.1 MB, free: 35.74 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.001447/0.3177, allocations: 1.269 MB / 435.3 MB, free: 34.73 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.894e-05/0.3177, allocations: 12.09 kB / 435.3 MB, free: 34.73 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003348/0.3181, allocations: 94.31 kB / 435.4 MB, free: 34.69 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004829/0.3186, allocations: 439 kB / 435.9 MB, free: 34.35 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.636e-05/0.3187, allocations: 85.41 kB / 436 MB, free: 34.29 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001096/0.3188, allocations: 77.97 kB / 436 MB, free: 34.28 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001886/0.3207, allocations: 1.326 MB / 437.4 MB, free: 33.68 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.452e-05/0.3207, allocations: 3.938 kB / 437.4 MB, free: 33.68 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.778e-05/0.3208, allocations: 40.23 kB / 437.4 MB, free: 33.66 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001029/0.3209, allocations: 53.53 kB / 437.4 MB, free: 33.65 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001504/0.3224, allocations: 0.9127 MB / 438.4 MB, free: 33.35 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003525/0.326, allocations: 3.328 MB / 441.7 MB, free: 30.87 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001502/0.3275, allocations: 1.584 MB / 443.3 MB, free: 29.91 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001204/0.3287, allocations: 1.459 MB / 444.7 MB, free: 29 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.1e-05/0.3288, allocations: 83.59 kB / 444.8 MB, free: 28.91 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00129/0.3301, allocations: 0.9194 MB / 445.7 MB, free: 28.52 MB / 350.1 MB Notification: Performance of pre-optimization done (n=77): time 2.444e-06/0.3301, allocations: 0 / 445.7 MB, free: 28.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=77): time 0.003416/0.3336, allocations: 2.619 MB / 448.4 MB, free: 27.44 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002062/0.3338, allocations: 0.5331 MB / 448.9 MB, free: 26.89 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004637/0.3342, allocations: 412.7 kB / 449.3 MB, free: 26.66 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.84e-05/0.3343, allocations: 69.59 kB / 449.4 MB, free: 26.61 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001579/0.3345, allocations: 253.6 kB / 449.6 MB, free: 26.41 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001401/0.3347, allocations: 200.9 kB / 449.8 MB, free: 26.26 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002998/0.335, allocations: 231.6 kB / 450 MB, free: 26.16 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.766e-05/0.3351, allocations: 375.9 kB / 450.4 MB, free: 25.82 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005735/0.3357, allocations: 444.2 kB / 450.8 MB, free: 25.68 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007355/0.3364, allocations: 0.8086 MB / 451.6 MB, free: 25.07 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002316/0.3387, allocations: 2.555 MB / 454.2 MB, free: 23.14 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.264e-05/0.3387, allocations: 3.125 kB / 454.2 MB, free: 23.14 MB / 350.1 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.002126/0.3409, allocations: 1.827 MB / 456 MB, free: 22.24 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001326/0.341, allocations: 335.3 kB / 456.3 MB, free: 21.91 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.861e-05/0.3411, allocations: 12.94 kB / 456.4 MB, free: 21.91 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.684e-05/0.3411, allocations: 15.69 kB / 456.4 MB, free: 21.91 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003453/0.3414, allocations: 123.8 kB / 456.5 MB, free: 21.88 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.202e-05/0.3415, allocations: 23.48 kB / 456.5 MB, free: 21.88 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004919/0.342, allocations: 127 kB / 456.6 MB, free: 21.81 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.012e-05/0.3421, allocations: 53.31 kB / 456.7 MB, free: 21.8 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: 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.0008024/0.3429, allocations: 0.7663 MB / 457.5 MB, free: 21.23 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001407/0.343, allocations: 74.78 kB / 457.5 MB, free: 21.2 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00262/0.3456, allocations: 2.012 MB / 459.5 MB, free: 20.32 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.879e-05/0.3457, allocations: 6.469 kB / 459.6 MB, free: 20.32 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.544e-06/0.3457, allocations: 1.031 kB / 459.6 MB, free: 20.32 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.933e-06/0.3457, allocations: 6.719 kB / 459.6 MB, free: 20.32 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003915/0.3496, allocations: 3.053 MB / 462.6 MB, free: 18.85 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.439e-06/0.3496, allocations: 0 / 462.6 MB, free: 18.85 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001384/0.3498, allocations: 26.64 kB / 462.6 MB, free: 18.85 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.542e-06/0.3498, allocations: 6.062 kB / 462.6 MB, free: 18.85 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001168/0.3499, allocations: 39.17 kB / 462.7 MB, free: 18.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.372e-06/0.3499, allocations: 5.969 kB / 462.7 MB, free: 18.84 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.416e-06/0.3499, allocations: 1.156 kB / 462.7 MB, free: 18.84 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003215/0.3532, allocations: 2.381 MB / 465.1 MB, free: 17.69 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001011/0.3533, allocations: 133.2 kB / 465.2 MB, free: 17.56 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002062/0.3535, allocations: 75.25 kB / 465.3 MB, free: 17.54 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004878/0.354, allocations: 78.97 kB / 465.4 MB, free: 17.52 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005495/0.3546, allocations: 329.6 kB / 465.7 MB, free: 17.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000105/0.3547, allocations: 45.77 kB / 465.7 MB, free: 17.42 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002554/0.3549, allocations: 242.4 kB / 466 MB, free: 17.29 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.9e-07/0.3549, allocations: 1.375 kB / 466 MB, free: 17.29 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001197/0.3561, allocations: 343.4 kB / 466.3 MB, free: 17.23 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: 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.0007375/0.3569, allocations: 386.9 kB / 466.7 MB, free: 17.06 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00272/0.3596, allocations: 2.093 MB / 468.8 MB, free: 15.86 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.3596, allocations: 1.312 kB / 468.8 MB, free: 15.86 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002333/0.362, allocations: 3.147 MB / 471.9 MB, free: 13.54 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007169/0.3627, allocations: 106.7 kB / 472 MB, free: 13.51 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002891/0.3656, allocations: 1.816 MB / 473.8 MB, free: 12.59 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004608/0.3661, allocations: 0.9094 MB / 474.7 MB, free: 11.87 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001616/0.3663, allocations: 52.61 kB / 474.8 MB, free: 11.86 MB / 350.1 MB Notification: Performance of SimCode: time 1.082e-06/0.3663, allocations: 0 / 474.8 MB, free: 11.86 MB / 350.1 MB Notification: Performance of Templates: time 0.02175/0.388, allocations: 12.11 MB / 486.9 MB, free: 5.984 MB / 350.1 MB make -j1 -f PNlib_PNlib.Examples.DisTest.PDtoTDfunction.makefile make -j1 -f PNlib_PNlib.Examples.DisTest.PDtoTDfunction.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.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: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.PDtoTDfunctionCalcHelperMain.o] Error 1