Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PNlib_PNlib.Examples.DisTest.PDtoTD.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.PDtoTD,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="P1.t|T1.active|T1.fire|time",fileNamePrefix="PNlib_PNlib.Examples.DisTest.PDtoTD") translateModel(PNlib.Examples.DisTest.PDtoTD,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="P1.t|T1.active|T1.fire|time",fileNamePrefix="PNlib_PNlib.Examples.DisTest.PDtoTD") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001729/0.001729, allocations: 104 kB / 16.41 MB, free: 6.512 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.002206/0.002206, 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 2.398/2.398, 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.1334/0.1334, allocations: 16.73 MB / 307.9 MB, free: 14.21 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002611/0.002611, allocations: 71.88 kB / 427 MB, free: 10.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2058/0.2085, allocations: 53.47 MB / 480.5 MB, free: 4.945 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.DisTest.PDtoTD): time 0.005584/0.2141, allocations: 1.859 MB / 482.3 MB, free: 3.078 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006702/0.2209, allocations: 1.913 MB / 484.2 MB, free: 1.16 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005977/0.2215, allocations: 11.94 kB / 484.3 MB, free: 1.148 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006617/0.2223, allocations: 107.1 kB / 484.4 MB, free: 1.043 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007887/0.2231, allocations: 131 kB / 484.5 MB, free: 0.9141 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003466/0.2266, allocations: 0.8951 MB / 485.4 MB, free: 20 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002789/0.2294, allocations: 1.424 MB / 486.8 MB, free: 14.59 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004792/0.2299, allocations: 165.6 kB / 487 MB, free: 14.43 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001201/0.2312, allocations: 0.5377 MB / 487.5 MB, free: 13.89 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001022/0.2322, allocations: 346.3 kB / 487.8 MB, free: 13.55 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003565/0.2326, allocations: 88 kB / 487.9 MB, free: 13.46 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001585/0.2342, allocations: 0.5111 MB / 488.4 MB, free: 12.95 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003463/0.2346, allocations: 135.5 kB / 488.6 MB, free: 12.82 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008964/0.2355, allocations: 398.3 kB / 489 MB, free: 12.43 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002532/0.238, allocations: 1.169 MB / 490.1 MB, free: 11.26 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.555e-06/0.2381, allocations: 7.938 kB / 490.1 MB, free: 11.25 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.495e-06/0.2381, allocations: 0 / 490.1 MB, free: 11.25 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.23e-05/0.2382, allocations: 0 / 490.1 MB, free: 11.25 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: 165 * Number of variables: 165 Notification: Performance of Generate backend data structure: time 0.003475/0.2416, allocations: 1.279 MB / 491.4 MB, free: 9.859 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.071e-05/0.2417, allocations: 15.83 kB / 491.4 MB, free: 9.844 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006416/0.2424, allocations: 92.19 kB / 491.5 MB, free: 9.754 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001189/0.2436, allocations: 434.7 kB / 492 MB, free: 9.289 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001813/0.2438, allocations: 83 kB / 492 MB, free: 9.199 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000255/0.2441, allocations: 83.97 kB / 492.1 MB, free: 9.117 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003955/0.248, allocations: 1.314 MB / 493.4 MB, free: 7.734 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.503e-05/0.2481, allocations: 4 kB / 493.4 MB, free: 7.73 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000193/0.2483, allocations: 43.97 kB / 493.5 MB, free: 7.688 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002072/0.2486, allocations: 56.95 kB / 493.5 MB, free: 7.629 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003002/0.2516, allocations: 0.8937 MB / 494.4 MB, free: 6.734 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007024/0.2586, allocations: 3.321 MB / 497.7 MB, free: 3.262 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003021/0.2617, allocations: 1.462 MB / 499.2 MB, free: 1.781 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002732/0.2645, allocations: 1.365 MB / 0.4888 GB, free: 420 kB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001532/0.2647, allocations: 81.11 kB / 0.4889 GB, free: 320 kB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002546/0.2672, allocations: 0.8878 MB / 0.4898 GB, free: 15.39 MB / 382.1 MB Notification: Performance of pre-optimization done (n=75): time 8.757e-06/0.2673, allocations: 0 / 0.4898 GB, free: 15.39 MB / 382.1 MB Notification: Performance of matching and sorting (n=75): time 0.007299/0.2746, allocations: 2.539 MB / 0.4923 GB, free: 12.8 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0005405/0.2751, allocations: 0.5598 MB / 0.4928 GB, free: 12.14 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009185/0.2761, allocations: 421.1 kB / 0.4932 GB, free: 11.72 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001813/0.2763, allocations: 69.67 kB / 0.4933 GB, free: 11.64 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004066/0.2767, allocations: 260.4 kB / 0.4935 GB, free: 11.39 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003725/0.2771, allocations: 197.7 kB / 0.4937 GB, free: 11.19 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006022/0.2777, allocations: 230.5 kB / 0.4939 GB, free: 10.96 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002605/0.278, allocations: 374.7 kB / 0.4943 GB, free: 10.58 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001347/0.2794, allocations: 442 kB / 0.4947 GB, free: 10.15 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001813/0.2812, allocations: 0.8099 MB / 0.4955 GB, free: 9.18 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00545/0.2867, allocations: 2.54 MB / 0.498 GB, free: 6.305 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-05/0.2868, allocations: 4 kB / 0.498 GB, free: 6.301 MB / 382.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.004713/0.2915, allocations: 1.838 MB / 0.4998 GB, free: 4.395 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003231/0.2918, allocations: 341 kB / 0.5001 GB, free: 4 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.819e-05/0.2919, allocations: 12 kB / 0.5001 GB, free: 3.988 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.204e-05/0.292, allocations: 16 kB / 0.5001 GB, free: 3.973 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006872/0.2927, allocations: 123.7 kB / 0.5003 GB, free: 3.852 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.22e-05/0.2928, allocations: 27.92 kB / 0.5003 GB, free: 3.824 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001084/0.2938, allocations: 127.3 kB / 0.5004 GB, free: 3.699 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000196/0.2941, allocations: 63.92 kB / 0.5005 GB, free: 3.637 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: 52 * 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.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.delayPassed,$PRE.T1.delayPassed,T1.firingTime,T1.active,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 (135): * Single equations (assignments): 124 * 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.001824/0.2959, allocations: 0.7569 MB / 0.5012 GB, free: 2.816 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004175/0.2963, allocations: 79.34 kB / 0.5013 GB, free: 2.738 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00608/0.3024, allocations: 1.948 MB / 0.5032 GB, free: 0.7422 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.767e-05/0.3025, allocations: 4 kB / 0.5032 GB, free: 0.7383 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.143e-05/0.3026, allocations: 0 / 0.5032 GB, free: 0.7383 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.555e-05/0.3026, allocations: 3.984 kB / 0.5032 GB, free: 0.7344 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3739/0.6765, allocations: 2.973 MB / 0.5061 GB, free: 34.21 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.14e-05/0.6766, allocations: 1.031 kB / 0.5061 GB, free: 34.21 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002266/0.6768, allocations: 25.91 kB / 0.5061 GB, free: 34.21 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.648e-05/0.6769, allocations: 2.109 kB / 0.5061 GB, free: 34.21 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001865/0.6771, allocations: 39.52 kB / 0.5062 GB, free: 34.21 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.261e-05/0.6771, allocations: 7.141 kB / 0.5062 GB, free: 34.21 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/0.6771, allocations: 0 / 0.5062 GB, free: 34.21 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005984/0.6831, allocations: 2.32 MB / 0.5084 GB, free: 33.5 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001814/0.6833, allocations: 129.2 kB / 0.5086 GB, free: 33.41 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003558/0.6837, allocations: 79.89 kB / 0.5086 GB, free: 33.39 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008909/0.6846, allocations: 80.83 kB / 0.5087 GB, free: 33.38 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008608/0.6855, allocations: 326 kB / 0.509 GB, free: 33.29 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001906/0.6857, allocations: 45.64 kB / 0.5091 GB, free: 33.28 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004662/0.6862, allocations: 251.3 kB / 0.5093 GB, free: 33.15 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.8e-07/0.6862, allocations: 0 / 0.5093 GB, free: 33.15 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001898/0.6881, allocations: 340.6 kB / 0.5096 GB, free: 33.12 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: 68 ($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.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 (37): * Single equations (assignments): 24 * 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.001475/0.6896, allocations: 371.2 kB / 0.51 GB, free: 33 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004599/0.6942, allocations: 2.071 MB / 0.512 GB, free: 31.86 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.025e-06/0.6943, allocations: 1.469 kB / 0.512 GB, free: 31.86 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004409/0.6987, allocations: 3.048 MB / 0.515 GB, free: 29.6 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001163/0.6999, allocations: 115.6 kB / 0.5151 GB, free: 29.57 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004415/0.7043, allocations: 1.561 MB / 0.5166 GB, free: 28.87 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007409/0.7051, allocations: 0.9086 MB / 0.5175 GB, free: 28.15 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002688/0.7054, allocations: 56.08 kB / 0.5176 GB, free: 28.14 MB / 382.1 MB Notification: Performance of SimCode: time 8.92e-07/0.7054, allocations: 0 / 0.5176 GB, free: 28.14 MB / 382.1 MB Notification: Performance of Templates: time 0.03292/0.7383, allocations: 12.26 MB / 0.5295 GB, free: 23.54 MB / 382.1 MB make -j1 -f PNlib_PNlib.Examples.DisTest.PDtoTD.makefile make -j1 -f PNlib_PNlib.Examples.DisTest.PDtoTD.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.PDtoTDCalcHelperMain.o OMCppPNlib_PNlib.Examples.DisTest.PDtoTDCalcHelperMain.cpp In file included from OMCppPNlib_PNlib.Examples.DisTest.PDtoTDCalcHelperMain.cpp:29: ./OMCppPNlib_PNlib.Examples.DisTest.PDtoTDInitialize.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.PDtoTDInitialize.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.PDtoTDCalcHelperMain.cpp:29: ./OMCppPNlib_PNlib.Examples.DisTest.PDtoTDInitialize.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.PDtoTDCalcHelperMain.cpp:33: ./OMCppPNlib_PNlib.Examples.DisTest.PDtoTD.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.PDtoTDCalcHelperMain.o] Error 1