Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PNlib_PNlib.Examples.DisTest.PDtoTT.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.PDtoTT,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="P1.t|T1.active|T1.fire|time",fileNamePrefix="PNlib_PNlib.Examples.DisTest.PDtoTT") translateModel(PNlib.Examples.DisTest.PDtoTT,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="P1.t|T1.active|T1.fire|time",fileNamePrefix="PNlib_PNlib.Examples.DisTest.PDtoTT") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001198/0.001198, 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.001254/0.001254, allocations: 196 kB / 16.79 MB, free: 6.809 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.386/1.386, allocations: 222.9 MB / 240.5 MB, free: 4.602 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 3.0.0-master/package.mo): time 0.1815/0.1815, allocations: 16.76 MB / 307.4 MB, free: 15.16 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001274/0.001274, allocations: 63.91 kB / 371.6 MB, free: 3.992 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3389/0.3402, allocations: 53.45 MB / 425.1 MB, free: 39.36 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.DisTest.PDtoTT): time 0.003627/0.3439, allocations: 1.971 MB / 427.1 MB, free: 38.55 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004533/0.3484, allocations: 2.291 MB / 429.3 MB, free: 37.85 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000354/0.3488, allocations: 8.25 kB / 429.4 MB, free: 37.84 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003884/0.3492, allocations: 83.97 kB / 429.4 MB, free: 37.79 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00037/0.3496, allocations: 88.11 kB / 429.5 MB, free: 37.73 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002107/0.3518, allocations: 0.7615 MB / 430.3 MB, free: 37.32 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001206/0.353, allocations: 1.111 MB / 431.4 MB, free: 36.87 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003044/0.3533, allocations: 157.7 kB / 431.5 MB, free: 36.81 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006063/0.3539, allocations: 432.7 kB / 432 MB, free: 36.66 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004972/0.3544, allocations: 333.6 kB / 432.3 MB, free: 36.5 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001407/0.3546, allocations: 40.41 kB / 432.3 MB, free: 36.5 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008815/0.3555, allocations: 461.3 kB / 432.8 MB, free: 36.36 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001845/0.3557, allocations: 137.2 kB / 432.9 MB, free: 36.29 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004352/0.3561, allocations: 348 kB / 433.3 MB, free: 36.11 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009889/0.3571, allocations: 0.8405 MB / 434.1 MB, free: 35.84 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.3572, allocations: 3.422 kB / 434.1 MB, free: 35.84 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.3572, allocations: 0 / 434.1 MB, free: 35.84 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.838e-06/0.3572, allocations: 0 / 434.1 MB, free: 35.84 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: 163 * Number of variables: 163 Notification: Performance of Generate backend data structure: time 0.002012/0.3592, allocations: 1.273 MB / 435.4 MB, free: 34.82 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.124e-05/0.3593, allocations: 8.688 kB / 435.4 MB, free: 34.82 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004336/0.3597, allocations: 88.61 kB / 435.5 MB, free: 34.79 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000668/0.3604, allocations: 440.8 kB / 435.9 MB, free: 34.45 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001112/0.3605, allocations: 84.58 kB / 436 MB, free: 34.39 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001611/0.3607, allocations: 80.7 kB / 436.1 MB, free: 34.37 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002492/0.3632, allocations: 1.31 MB / 437.4 MB, free: 33.79 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.505e-05/0.3632, allocations: 6.594 kB / 437.4 MB, free: 33.78 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001285/0.3634, allocations: 39.3 kB / 437.4 MB, free: 33.76 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001426/0.3635, allocations: 59.72 kB / 437.5 MB, free: 33.75 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001911/0.3655, allocations: 0.88 MB / 438.4 MB, free: 33.46 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004663/0.3701, allocations: 3.314 MB / 441.7 MB, free: 30.98 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002171/0.3723, allocations: 1.526 MB / 443.2 MB, free: 30 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001882/0.3743, allocations: 1.346 MB / 444.5 MB, free: 29.18 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.222e-05/0.3744, allocations: 98.94 kB / 444.6 MB, free: 29.07 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001871/0.3762, allocations: 0.8975 MB / 445.5 MB, free: 28.68 MB / 350.1 MB Notification: Performance of pre-optimization done (n=73): time 3.988e-06/0.3763, allocations: 0 / 445.5 MB, free: 28.68 MB / 350.1 MB Notification: Performance of matching and sorting (n=73): time 0.005129/0.3814, allocations: 2.532 MB / 448.1 MB, free: 27.62 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002793/0.3817, allocations: 0.5557 MB / 448.6 MB, free: 27.04 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005548/0.3823, allocations: 421.7 kB / 449 MB, free: 26.82 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001162/0.3824, allocations: 65.77 kB / 449.1 MB, free: 26.77 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001882/0.3826, allocations: 265 kB / 449.4 MB, free: 26.55 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001782/0.3828, allocations: 180.5 kB / 449.5 MB, free: 26.42 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003543/0.3832, allocations: 230.2 kB / 449.8 MB, free: 26.32 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001124/0.3833, allocations: 383.9 kB / 450.1 MB, free: 25.98 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008693/0.3842, allocations: 434.7 kB / 450.6 MB, free: 25.84 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001092/0.3853, allocations: 0.7839 MB / 451.3 MB, free: 25.25 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003589/0.3889, allocations: 2.52 MB / 453.9 MB, free: 23.35 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.048e-05/0.3889, allocations: 3.031 kB / 453.9 MB, free: 23.35 MB / 350.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.00344/0.3924, allocations: 1.8 MB / 455.7 MB, free: 22.46 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001949/0.3926, allocations: 335 kB / 456 MB, free: 22.13 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.802e-05/0.3926, allocations: 12 kB / 456 MB, free: 22.13 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.878e-05/0.3927, allocations: 17.78 kB / 456 MB, free: 22.13 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005556/0.3932, allocations: 121.4 kB / 456.1 MB, free: 22.1 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.563e-05/0.3933, allocations: 29.39 kB / 456.2 MB, free: 22.09 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009088/0.3942, allocations: 124.9 kB / 456.3 MB, free: 22.03 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001321/0.3944, allocations: 62.58 kB / 456.4 MB, free: 22.01 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: 50 * Number of states: 0 () * Number of discrete variables: 125 ($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,$PRE.P1.tokeninout,P1.outTransition[1].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.firingTime,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 (130): * Single equations (assignments): 119 * 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.001169/0.3955, allocations: 0.7525 MB / 457.1 MB, free: 21.45 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002535/0.3958, allocations: 75.44 kB / 457.2 MB, free: 21.42 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004117/0.3999, allocations: 1.948 MB / 459.1 MB, free: 20.57 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.065e-05/0.4, allocations: 7.703 kB / 459.1 MB, free: 20.57 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.646e-06/0.4, allocations: 5.094 kB / 459.1 MB, free: 20.56 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.454e-06/0.4, allocations: 1.062 kB / 459.1 MB, free: 20.56 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005553/0.4056, allocations: 2.735 MB / 461.9 MB, free: 19.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.718e-06/0.4056, allocations: 1.219 kB / 461.9 MB, free: 19.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001855/0.4058, allocations: 24.52 kB / 461.9 MB, free: 19.24 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.769e-06/0.4059, allocations: 5.297 kB / 461.9 MB, free: 19.24 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001441/0.406, allocations: 43.47 kB / 461.9 MB, free: 19.23 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.874e-06/0.406, allocations: 5.469 kB / 462 MB, free: 19.22 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.556e-06/0.4061, allocations: 9.344 kB / 462 MB, free: 19.21 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005096/0.4112, allocations: 2.312 MB / 464.3 MB, free: 18.11 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001473/0.4113, allocations: 126.3 kB / 464.4 MB, free: 17.98 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003147/0.4117, allocations: 74.81 kB / 464.5 MB, free: 17.96 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007698/0.4124, allocations: 80.14 kB / 464.5 MB, free: 17.94 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009074/0.4134, allocations: 325.5 kB / 464.9 MB, free: 17.85 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001701/0.4136, allocations: 49.5 kB / 464.9 MB, free: 17.84 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004074/0.414, allocations: 252 kB / 465.2 MB, free: 17.71 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.9e-07/0.414, allocations: 0 / 465.2 MB, free: 17.71 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001782/0.4158, allocations: 332.9 kB / 465.5 MB, free: 17.66 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: 66 ($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,$whenCondition6,$whenCondition5,$whenCondition7,$whenCondition4,$whenCondition3,$whenCondition2,P1.t,P1.outTransition[1].tokenInOut,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.firingTime,T1.fireTime,T1.ani,T1.activation.tIntIn[1],T1.activation.arcWeightIntIn[1],T1.activation.minTokensInt[1],T1.activation.active) * Number of discrete states: 51 (P1.firingSumOut.firingSum,P1.firingSumIn.firingSum,P1.tokeninout,P1.t,P1.activeOut[1],T1.activation.active,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 (35): * Single equations (assignments): 22 * 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.001039/0.4168, allocations: 378.6 kB / 465.9 MB, free: 17.49 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00405/0.4209, allocations: 2.054 MB / 467.9 MB, free: 16.3 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.023e-05/0.421, allocations: 5.812 kB / 467.9 MB, free: 16.29 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00367/0.4246, allocations: 3.05 MB / 471 MB, free: 14.03 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001065/0.4257, allocations: 101.7 kB / 471.1 MB, free: 14.01 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004032/0.4298, allocations: 1.726 MB / 472.8 MB, free: 13.12 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005884/0.4304, allocations: 0.9075 MB / 473.7 MB, free: 12.4 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002884/0.4307, allocations: 52.08 kB / 473.7 MB, free: 12.39 MB / 350.1 MB Notification: Performance of SimCode: time 6.41e-07/0.4307, allocations: 0 / 473.7 MB, free: 12.39 MB / 350.1 MB Notification: Performance of Templates: time 0.02921/0.4599, allocations: 12.03 MB / 485.8 MB, free: 7.145 MB / 350.1 MB make -j1 -f PNlib_PNlib.Examples.DisTest.PDtoTT.makefile make -j1 -f PNlib_PNlib.Examples.DisTest.PDtoTT.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.PDtoTTCalcHelperMain.o OMCppPNlib_PNlib.Examples.DisTest.PDtoTTCalcHelperMain.cpp In file included from OMCppPNlib_PNlib.Examples.DisTest.PDtoTTCalcHelperMain.cpp:29: ./OMCppPNlib_PNlib.Examples.DisTest.PDtoTTInitialize.cpp:651: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.PDtoTTInitialize.cpp:686: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.PDtoTTCalcHelperMain.cpp:29: ./OMCppPNlib_PNlib.Examples.DisTest.PDtoTTInitialize.cpp:686: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.PDtoTTCalcHelperMain.cpp:33: ./OMCppPNlib_PNlib.Examples.DisTest.PDtoTT.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.PDtoTTCalcHelperMain.o] Error 1