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.001475/0.001475, allocations: 108.2 kB / 16.41 MB, free: 6.508 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.001713/0.001713, allocations: 187 kB / 17.34 MB, free: 5.742 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.363/1.363, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 3.0.0-master/package.mo): time 0.1003/0.1003, allocations: 16.73 MB / 307.9 MB, free: 14.24 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001384/0.001384, allocations: 63.88 kB / 427 MB, free: 10.48 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1045/0.1059, allocations: 53.48 MB / 480.5 MB, free: 4.949 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.DisTest.PDtoTT): time 0.003434/0.1094, allocations: 1.855 MB / 482.3 MB, free: 3.086 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00363/0.113, allocations: 1.952 MB / 484.3 MB, free: 1.129 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003884/0.1134, allocations: 15.88 kB / 484.3 MB, free: 1.113 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004018/0.1139, allocations: 107.1 kB / 484.4 MB, free: 1.008 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000502/0.1144, allocations: 111.1 kB / 484.5 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002043/0.1165, allocations: 0.9122 MB / 485.4 MB, free: 15.98 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001718/0.1182, allocations: 1.424 MB / 486.9 MB, free: 14.56 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003178/0.1185, allocations: 160.5 kB / 487 MB, free: 14.4 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007693/0.1193, allocations: 0.5337 MB / 487.6 MB, free: 13.86 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006268/0.12, allocations: 354.3 kB / 487.9 MB, free: 13.52 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001932/0.1202, allocations: 88 kB / 488 MB, free: 13.43 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008295/0.121, allocations: 0.5072 MB / 488.5 MB, free: 12.92 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001965/0.1212, allocations: 135.5 kB / 488.6 MB, free: 12.79 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004946/0.1217, allocations: 398.2 kB / 489 MB, free: 12.4 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001445/0.1232, allocations: 1.173 MB / 490.2 MB, free: 11.22 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.1232, allocations: 0 / 490.2 MB, free: 11.22 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.794e-06/0.1232, allocations: 4 kB / 490.2 MB, free: 11.22 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.199e-05/0.1232, allocations: 0 / 490.2 MB, free: 11.22 MB / 366.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.00192/0.1252, allocations: 1.279 MB / 491.5 MB, free: 9.828 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.555e-05/0.1252, allocations: 11.89 kB / 491.5 MB, free: 9.816 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000331/0.1255, allocations: 92.17 kB / 491.6 MB, free: 9.727 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006274/0.1262, allocations: 431.8 kB / 492 MB, free: 9.262 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001039/0.1263, allocations: 86.98 kB / 492.1 MB, free: 9.168 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001244/0.1264, allocations: 75.98 kB / 492.2 MB, free: 9.094 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001904/0.1283, allocations: 1.318 MB / 493.5 MB, free: 7.707 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.682e-05/0.1284, allocations: 3.938 kB / 493.5 MB, free: 7.703 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.907e-05/0.1285, allocations: 39.97 kB / 493.5 MB, free: 7.664 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.493e-05/0.1286, allocations: 56.95 kB / 493.6 MB, free: 7.605 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001453/0.13, allocations: 0.8898 MB / 494.5 MB, free: 6.715 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003728/0.1338, allocations: 3.298 MB / 497.8 MB, free: 3.262 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00153/0.1353, allocations: 1.526 MB / 499.3 MB, free: 1.699 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001292/0.1366, allocations: 1.362 MB / 0.4889 GB, free: 340 kB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.645e-05/0.1367, allocations: 85.33 kB / 0.489 GB, free: 236 kB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001384/0.1381, allocations: 0.8969 MB / 0.4899 GB, free: 15.3 MB / 382.1 MB Notification: Performance of pre-optimization done (n=73): time 2.735e-06/0.1381, allocations: 0 / 0.4899 GB, free: 15.3 MB / 382.1 MB Notification: Performance of matching and sorting (n=73): time 0.003884/0.142, allocations: 2.526 MB / 0.4923 GB, free: 12.72 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003383/0.1424, allocations: 0.5637 MB / 0.4929 GB, free: 12.05 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000517/0.1429, allocations: 417.1 kB / 0.4933 GB, free: 11.64 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001106/0.143, allocations: 65.69 kB / 0.4933 GB, free: 11.57 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002428/0.1433, allocations: 260.3 kB / 0.4936 GB, free: 11.31 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002069/0.1435, allocations: 181.8 kB / 0.4938 GB, free: 11.13 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003514/0.1439, allocations: 234.5 kB / 0.494 GB, free: 10.89 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.00015/0.144, allocations: 374.7 kB / 0.4943 GB, free: 10.52 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006968/0.1447, allocations: 434.1 kB / 0.4948 GB, free: 10.09 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000971/0.1457, allocations: 0.7956 MB / 0.4955 GB, free: 9.141 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002917/0.1486, allocations: 2.506 MB / 0.498 GB, free: 6.309 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.025e-05/0.1487, allocations: 4 kB / 0.498 GB, free: 6.305 MB / 382.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002652/0.1513, allocations: 1.813 MB / 0.4998 GB, free: 4.422 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000214/0.1516, allocations: 337 kB / 0.5001 GB, free: 4.031 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.136e-05/0.1516, allocations: 16.12 kB / 0.5001 GB, free: 4.016 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.584e-05/0.1517, allocations: 16 kB / 0.5001 GB, free: 4 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003913/0.1521, allocations: 119.7 kB / 0.5002 GB, free: 3.883 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.406e-05/0.1521, allocations: 23.92 kB / 0.5002 GB, free: 3.859 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005571/0.1527, allocations: 126.9 kB / 0.5004 GB, free: 3.734 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001004/0.1528, allocations: 59.94 kB / 0.5004 GB, free: 3.676 MB / 382.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.0009882/0.1538, allocations: 0.7431 MB / 0.5012 GB, free: 2.871 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002002/0.154, allocations: 75.42 kB / 0.5012 GB, free: 2.797 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002887/0.1569, allocations: 1.952 MB / 0.5031 GB, free: 0.7969 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.158e-05/0.1569, allocations: 4 kB / 0.5031 GB, free: 0.793 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.224e-06/0.1569, allocations: 4 kB / 0.5031 GB, free: 0.7891 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.213e-06/0.1569, allocations: 3.984 kB / 0.5031 GB, free: 0.7852 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2103/0.3673, allocations: 2.745 MB / 0.5058 GB, free: 34.38 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.005e-06/0.3673, allocations: 0.6562 kB / 0.5058 GB, free: 34.38 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001336/0.3675, allocations: 24.36 kB / 0.5058 GB, free: 34.38 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.803e-06/0.3675, allocations: 1.344 kB / 0.5058 GB, free: 34.38 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001197/0.3676, allocations: 45.03 kB / 0.5059 GB, free: 34.38 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.376e-06/0.3676, allocations: 7.062 kB / 0.5059 GB, free: 34.38 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.3676, allocations: 0 / 0.5059 GB, free: 34.38 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003291/0.3709, allocations: 2.307 MB / 0.5082 GB, free: 33.76 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001037/0.3711, allocations: 130.4 kB / 0.5083 GB, free: 33.66 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001799/0.3713, allocations: 77.16 kB / 0.5083 GB, free: 33.64 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004637/0.3717, allocations: 80.16 kB / 0.5084 GB, free: 33.63 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005256/0.3723, allocations: 329.4 kB / 0.5087 GB, free: 33.54 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00011/0.3724, allocations: 45.41 kB / 0.5088 GB, free: 33.54 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002778/0.3727, allocations: 252.6 kB / 0.509 GB, free: 33.4 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3727, allocations: 1.156 kB / 0.509 GB, free: 33.4 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001162/0.3738, allocations: 330.2 kB / 0.5093 GB, free: 33.38 MB / 382.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.0007202/0.3746, allocations: 378.8 kB / 0.5097 GB, free: 33.26 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00262/0.3772, allocations: 2.046 MB / 0.5117 GB, free: 32.11 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.039e-06/0.3772, allocations: 0 / 0.5117 GB, free: 32.11 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002905/0.3801, allocations: 3.056 MB / 0.5147 GB, free: 29.86 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007651/0.3809, allocations: 112.5 kB / 0.5148 GB, free: 29.83 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002948/0.3839, allocations: 1.552 MB / 0.5163 GB, free: 29.13 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003898/0.3843, allocations: 0.9069 MB / 0.5172 GB, free: 28.42 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001514/0.3844, allocations: 55.12 kB / 0.5172 GB, free: 28.41 MB / 382.1 MB Notification: Performance of SimCode: time 6.61e-07/0.3845, allocations: 0 / 0.5172 GB, free: 28.41 MB / 382.1 MB Notification: Performance of Templates: time 0.01784/0.4023, allocations: 12.19 MB / 0.5291 GB, free: 23.86 MB / 382.1 MB make -j1 -f PNlib_PNlib.Examples.DisTest.PDtoTT.makefile make -j1 -f PNlib_PNlib.Examples.DisTest.PDtoTT.makefile clang++ -std=c++17 -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:160: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