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.0009772/0.0009772, allocations: 98.72 kB / 16.02 MB, free: 76 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.001215/0.001215, allocations: 182.4 kB / 16.92 MB, free: 6.918 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.459/1.459, allocations: 223.3 MB / 241 MB, free: 5.254 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 3.0.0-master/package.mo): time 0.2166/0.2166, allocations: 16.73 MB / 308.8 MB, free: 15.66 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003243/0.000325, allocations: 8 kB / 374.1 MB, free: 3.094 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3017/0.3021, allocations: 54.47 MB / 428.5 MB, free: 38.05 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.DisTest.PDtoTDfunction): time 0.002048/0.3041, allocations: 1.607 MB / 430.2 MB, free: 37.9 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004003/0.3082, allocations: 2.214 MB / 432.4 MB, free: 37.62 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002363/0.3084, allocations: 6.906 kB / 432.4 MB, free: 37.61 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002715/0.3087, allocations: 86.33 kB / 432.5 MB, free: 37.58 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002912/0.309, allocations: 86.84 kB / 432.5 MB, free: 37.54 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001369/0.3104, allocations: 0.7448 MB / 433.3 MB, free: 37.47 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008804/0.3113, allocations: 1.115 MB / 434.4 MB, free: 37.3 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002079/0.3115, allocations: 156.2 kB / 434.6 MB, free: 37.25 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003687/0.3119, allocations: 417.3 kB / 435 MB, free: 37.1 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003072/0.3122, allocations: 303.9 kB / 435.3 MB, free: 36.96 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.118e-05/0.3123, allocations: 31.28 kB / 435.3 MB, free: 36.96 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005428/0.3128, allocations: 461.9 kB / 435.7 MB, free: 36.82 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001176/0.313, allocations: 125.5 kB / 435.9 MB, free: 36.76 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002654/0.3132, allocations: 357.5 kB / 436.2 MB, free: 36.55 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005949/0.3138, allocations: 0.8212 MB / 437 MB, free: 36.36 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.126e-06/0.3138, allocations: 0 / 437 MB, free: 36.36 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.3139, allocations: 0 / 437 MB, free: 36.36 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.895e-06/0.3139, allocations: 0 / 437 MB, free: 36.36 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.001102/0.315, allocations: 1.118 MB / 438.2 MB, free: 35.42 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.772e-05/0.315, allocations: 9.438 kB / 438.2 MB, free: 35.42 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00027/0.3153, allocations: 101.5 kB / 438.3 MB, free: 35.38 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004442/0.3157, allocations: 441.2 kB / 438.7 MB, free: 35.03 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.56e-05/0.3158, allocations: 82.22 kB / 438.8 MB, free: 34.98 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001082/0.316, allocations: 79.86 kB / 438.8 MB, free: 34.96 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001619/0.3176, allocations: 1.324 MB / 440.2 MB, free: 34.37 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.882e-05/0.3176, allocations: 2.906 kB / 440.2 MB, free: 34.37 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.677e-05/0.3177, allocations: 37.95 kB / 440.2 MB, free: 34.35 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.368e-05/0.3178, allocations: 58.88 kB / 440.3 MB, free: 34.34 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001232/0.319, allocations: 0.9129 MB / 441.2 MB, free: 34.04 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002966/0.322, allocations: 3.334 MB / 444.5 MB, free: 31.55 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001386/0.3234, allocations: 1.572 MB / 446.1 MB, free: 30.59 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001131/0.3246, allocations: 1.457 MB / 447.5 MB, free: 29.7 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.215e-05/0.3247, allocations: 90.69 kB / 447.6 MB, free: 29.6 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001147/0.3258, allocations: 0.9207 MB / 448.6 MB, free: 29.2 MB / 350.1 MB Notification: Performance of pre-optimization done (n=77): time 2.515e-06/0.3258, allocations: 3.938 kB / 448.6 MB, free: 29.2 MB / 350.1 MB Notification: Performance of matching and sorting (n=77): time 0.003402/0.3292, allocations: 2.62 MB / 451.2 MB, free: 28.12 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002248/0.3295, allocations: 0.5417 MB / 451.7 MB, free: 27.56 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004003/0.3299, allocations: 412.6 kB / 452.1 MB, free: 27.34 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.567e-05/0.33, allocations: 66.69 kB / 452.2 MB, free: 27.29 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001509/0.3301, allocations: 260.4 kB / 452.4 MB, free: 27.08 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001358/0.3303, allocations: 195.4 kB / 452.6 MB, free: 26.94 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001352/0.3304, allocations: 137.1 kB / 452.8 MB, free: 26.88 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001092/0.3305, allocations: 383 kB / 453.1 MB, free: 26.53 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006015/0.3311, allocations: 446.1 kB / 453.6 MB, free: 26.39 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007403/0.3319, allocations: 0.803 MB / 454.4 MB, free: 25.79 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002328/0.3342, allocations: 2.557 MB / 456.9 MB, free: 23.86 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.386e-05/0.3343, allocations: 7.219 kB / 456.9 MB, free: 23.86 MB / 350.1 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.002125/0.3364, allocations: 1.827 MB / 458.8 MB, free: 22.96 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001306/0.3365, allocations: 334.2 kB / 459.1 MB, free: 22.63 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.579e-05/0.3365, allocations: 11.94 kB / 459.1 MB, free: 22.63 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.404e-05/0.3366, allocations: 21.23 kB / 459.1 MB, free: 22.63 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003357/0.3369, allocations: 124.2 kB / 459.3 MB, free: 22.6 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.948e-05/0.3369, allocations: 23.33 kB / 459.3 MB, free: 22.6 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004515/0.3374, allocations: 137.5 kB / 459.4 MB, free: 22.53 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.467e-05/0.3375, allocations: 56.22 kB / 459.5 MB, free: 22.52 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.0007477/0.3382, allocations: 0.7539 MB / 460.2 MB, free: 21.95 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000118/0.3384, allocations: 72.59 kB / 460.3 MB, free: 21.93 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00276/0.3411, allocations: 2.02 MB / 462.3 MB, free: 21.04 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.866e-05/0.3412, allocations: 5.188 kB / 462.3 MB, free: 21.04 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.113e-06/0.3412, allocations: 1.859 kB / 462.3 MB, free: 21.04 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.624e-06/0.3412, allocations: 8.156 kB / 462.3 MB, free: 21.04 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00387/0.3451, allocations: 3.049 MB / 465.4 MB, free: 19.58 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.787e-06/0.3451, allocations: 0 / 465.4 MB, free: 19.58 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001289/0.3452, allocations: 32.7 kB / 465.4 MB, free: 19.57 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.572e-06/0.3452, allocations: 2.156 kB / 465.4 MB, free: 19.57 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.675e-05/0.3453, allocations: 43.56 kB / 465.4 MB, free: 19.56 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.04e-06/0.3453, allocations: 5.094 kB / 465.5 MB, free: 19.55 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.3453, allocations: 7.938 kB / 465.5 MB, free: 19.55 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003205/0.3486, allocations: 2.383 MB / 467.8 MB, free: 18.41 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.159e-05/0.3486, allocations: 133.5 kB / 468 MB, free: 18.27 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000192/0.3488, allocations: 74.7 kB / 468 MB, free: 18.25 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004655/0.3493, allocations: 80.27 kB / 468.1 MB, free: 18.24 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005284/0.3499, allocations: 325.2 kB / 468.4 MB, free: 18.15 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001021/0.35, allocations: 50.64 kB / 468.5 MB, free: 18.14 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002462/0.3502, allocations: 243.1 kB / 468.7 MB, free: 18.01 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3502, allocations: 0 / 468.7 MB, free: 18.01 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001141/0.3514, allocations: 339.3 kB / 469.1 MB, free: 17.96 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.0007278/0.3521, allocations: 381.2 kB / 469.4 MB, free: 17.79 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002493/0.3546, allocations: 2.097 MB / 471.5 MB, free: 16.58 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.367e-06/0.3546, allocations: 4.062 kB / 471.5 MB, free: 16.58 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002174/0.3568, allocations: 3.147 MB / 474.7 MB, free: 14.25 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006419/0.3575, allocations: 105 kB / 474.8 MB, free: 14.23 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002796/0.3603, allocations: 1.829 MB / 476.6 MB, free: 13.29 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003775/0.3607, allocations: 0.9062 MB / 477.5 MB, free: 12.58 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001333/0.3608, allocations: 52.3 kB / 477.6 MB, free: 12.57 MB / 350.1 MB Notification: Performance of SimCode: time 3.8e-07/0.3608, allocations: 0 / 477.6 MB, free: 12.57 MB / 350.1 MB Notification: Performance of Templates: time 0.0162/0.377, allocations: 12.04 MB / 489.6 MB, free: 6.105 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