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.001881/0.001881, allocations: 105.5 kB / 16.41 MB, free: 6.516 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.002029/0.002029, allocations: 189.7 kB / 17.34 MB, free: 5.738 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.234/2.234, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 3.0.0-master/package.mo): time 0.083/0.083, allocations: 16.73 MB / 307.9 MB, free: 14.23 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00131/0.00131, allocations: 71.89 kB / 427 MB, free: 10.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1589/0.1603, allocations: 53.48 MB / 480.5 MB, free: 5.066 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.DisTest.PDtoTT): time 0.005527/0.1658, allocations: 1.859 MB / 482.3 MB, free: 3.199 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006914/0.1728, allocations: 1.948 MB / 484.3 MB, free: 1.246 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006365/0.1735, allocations: 11.94 kB / 484.3 MB, free: 1.234 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007157/0.1743, allocations: 111 kB / 484.4 MB, free: 1.125 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007996/0.1751, allocations: 115 kB / 484.5 MB, free: 1.012 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004074/0.1792, allocations: 0.9148 MB / 485.4 MB, free: 100 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003034/0.1822, allocations: 1.42 MB / 486.9 MB, free: 14.68 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005228/0.1828, allocations: 164.5 kB / 487 MB, free: 14.51 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001419/0.1842, allocations: 0.5376 MB / 487.6 MB, free: 13.97 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001073/0.1853, allocations: 354.2 kB / 487.9 MB, free: 13.62 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004265/0.1858, allocations: 88 kB / 488 MB, free: 13.54 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001775/0.1876, allocations: 0.5033 MB / 488.5 MB, free: 13.04 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004297/0.1881, allocations: 139.5 kB / 488.6 MB, free: 12.9 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009655/0.189, allocations: 398.3 kB / 489 MB, free: 12.51 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002781/0.1918, allocations: 1.169 MB / 490.2 MB, free: 11.34 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.314e-06/0.1919, allocations: 3.938 kB / 490.2 MB, free: 11.33 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.805e-06/0.1919, allocations: 0 / 490.2 MB, free: 11.33 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.903e-05/0.1919, allocations: 0 / 490.2 MB, free: 11.33 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.003919/0.1959, allocations: 1.279 MB / 491.5 MB, free: 9.941 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.231e-05/0.196, allocations: 15.89 kB / 491.5 MB, free: 9.926 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006445/0.1966, allocations: 92.17 kB / 491.6 MB, free: 9.836 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001171/0.1978, allocations: 431.8 kB / 492 MB, free: 9.371 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001903/0.198, allocations: 86.98 kB / 492.1 MB, free: 9.277 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002428/0.1983, allocations: 75.92 kB / 492.2 MB, free: 9.203 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003905/0.2022, allocations: 1.326 MB / 493.5 MB, free: 7.809 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.121e-05/0.2023, allocations: 0 / 493.5 MB, free: 7.809 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001867/0.2025, allocations: 35.98 kB / 493.5 MB, free: 7.773 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000211/0.2027, allocations: 52.95 kB / 493.6 MB, free: 7.719 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002854/0.2056, allocations: 0.8898 MB / 494.5 MB, free: 6.828 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00771/0.2133, allocations: 3.298 MB / 497.8 MB, free: 3.375 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00339/0.2168, allocations: 1.522 MB / 499.3 MB, free: 1.816 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002862/0.2197, allocations: 1.358 MB / 0.4889 GB, free: 464 kB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001573/0.2199, allocations: 89.31 kB / 0.489 GB, free: 356 kB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002661/0.2226, allocations: 0.893 MB / 0.4899 GB, free: 15.42 MB / 382.1 MB Notification: Performance of pre-optimization done (n=73): time 6.041e-06/0.2226, allocations: 0 / 0.4899 GB, free: 15.42 MB / 382.1 MB Notification: Performance of matching and sorting (n=73): time 0.007487/0.2301, allocations: 2.526 MB / 0.4923 GB, free: 12.84 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0005963/0.2308, allocations: 0.5598 MB / 0.4929 GB, free: 12.18 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009405/0.2317, allocations: 417.1 kB / 0.4933 GB, free: 11.77 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001844/0.232, allocations: 69.69 kB / 0.4933 GB, free: 11.69 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004058/0.2324, allocations: 264.3 kB / 0.4936 GB, free: 11.43 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003857/0.2328, allocations: 185.8 kB / 0.4938 GB, free: 11.24 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006432/0.2335, allocations: 226.5 kB / 0.494 GB, free: 11.01 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002952/0.2338, allocations: 382.7 kB / 0.4943 GB, free: 10.63 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001367/0.2352, allocations: 434 kB / 0.4948 GB, free: 10.21 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001948/0.2371, allocations: 0.7879 MB / 0.4955 GB, free: 9.262 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006362/0.2435, allocations: 2.518 MB / 0.498 GB, free: 6.418 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.379e-05/0.2436, allocations: 0 / 0.498 GB, free: 6.418 MB / 382.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.005246/0.2489, allocations: 1.805 MB / 0.4998 GB, free: 4.543 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004415/0.2494, allocations: 337 kB / 0.5001 GB, free: 4.152 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.309e-05/0.2494, allocations: 12.88 kB / 0.5001 GB, free: 4.141 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.886e-05/0.2495, allocations: 16 kB / 0.5001 GB, free: 4.125 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007791/0.2503, allocations: 127.7 kB / 0.5002 GB, free: 4 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.034e-05/0.2504, allocations: 23.92 kB / 0.5002 GB, free: 3.977 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00119/0.2516, allocations: 126.9 kB / 0.5004 GB, free: 3.852 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002242/0.2518, allocations: 63.91 kB / 0.5004 GB, free: 3.789 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.00197/0.2538, allocations: 0.7493 MB / 0.5012 GB, free: 2.977 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003757/0.2542, allocations: 71.44 kB / 0.5012 GB, free: 2.906 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005984/0.2602, allocations: 1.944 MB / 0.5031 GB, free: 0.9141 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.487e-05/0.2603, allocations: 4 kB / 0.5031 GB, free: 0.9102 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.705e-05/0.2604, allocations: 8 kB / 0.5031 GB, free: 0.9023 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.438e-05/0.2604, allocations: 3.984 kB / 0.5031 GB, free: 0.8984 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4018/0.6622, allocations: 2.742 MB / 0.5058 GB, free: 34.55 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-05/0.6623, allocations: 1.703 kB / 0.5058 GB, free: 34.55 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002636/0.6626, allocations: 25.58 kB / 0.5058 GB, free: 34.55 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.699e-05/0.6626, allocations: 2.234 kB / 0.5058 GB, free: 34.55 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002215/0.6628, allocations: 40.91 kB / 0.5059 GB, free: 34.55 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.256e-05/0.6629, allocations: 5.891 kB / 0.5059 GB, free: 34.55 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.41e-06/0.6629, allocations: 4.906 kB / 0.5059 GB, free: 34.55 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006732/0.6696, allocations: 2.305 MB / 0.5081 GB, free: 33.88 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000256/0.6699, allocations: 134.3 kB / 0.5083 GB, free: 33.78 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004441/0.6704, allocations: 73.84 kB / 0.5083 GB, free: 33.75 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009843/0.6714, allocations: 76.42 kB / 0.5084 GB, free: 33.75 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001004/0.6724, allocations: 331.4 kB / 0.5087 GB, free: 33.66 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002162/0.6727, allocations: 49.77 kB / 0.5088 GB, free: 33.65 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006311/0.6733, allocations: 251.5 kB / 0.509 GB, free: 33.52 MB / 382.1 MB Notification: Performance of sort global known variables: time 4.7e-07/0.6734, allocations: 0 / 0.509 GB, free: 33.52 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002334/0.6757, allocations: 327.8 kB / 0.5093 GB, free: 33.5 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.001667/0.6774, allocations: 373 kB / 0.5097 GB, free: 33.38 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004803/0.6822, allocations: 2.056 MB / 0.5117 GB, free: 32.22 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.237e-05/0.6823, allocations: 1.219 kB / 0.5117 GB, free: 32.22 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00584/0.6881, allocations: 3.051 MB / 0.5147 GB, free: 29.97 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00136/0.6896, allocations: 111.3 kB / 0.5148 GB, free: 29.94 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005303/0.6949, allocations: 1.559 MB / 0.5163 GB, free: 29.24 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008928/0.6958, allocations: 0.9026 MB / 0.5172 GB, free: 28.53 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003307/0.6962, allocations: 51.25 kB / 0.5172 GB, free: 28.52 MB / 382.1 MB Notification: Performance of SimCode: time 1.463e-06/0.6962, allocations: 0 / 0.5172 GB, free: 28.52 MB / 382.1 MB Notification: Performance of Templates: time 0.03796/0.7342, allocations: 12.1 MB / 0.5291 GB, free: 24.03 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