Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PNlib_PNlib.Examples.ExtTest.TDSdiscrete.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.ExtTest.TDSdiscrete,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="P1.t|P2.t|T1.active|T1.fire|T1.putFireTime|time",fileNamePrefix="PNlib_PNlib.Examples.ExtTest.TDSdiscrete") translateModel(PNlib.Examples.ExtTest.TDSdiscrete,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="P1.t|P2.t|T1.active|T1.fire|T1.putFireTime|time",fileNamePrefix="PNlib_PNlib.Examples.ExtTest.TDSdiscrete") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001496/0.001496, allocations: 103.9 kB / 16.27 MB, free: 6.414 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.001554/0.001554, allocations: 189.3 kB / 17.2 MB, free: 5.953 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.364/1.364, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 3.0.0-master/package.mo): time 0.07278/0.07278, allocations: 16.72 MB / 307.8 MB, free: 14.31 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001304/0.001304, allocations: 64.25 kB / 372.3 MB, free: 49.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09955/0.1009, allocations: 53.47 MB / 425.7 MB, free: 12.62 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.ExtTest.TDSdiscrete): time 0.002819/0.1037, allocations: 2.507 MB / 428.2 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004442/0.1082, allocations: 4.265 MB / 432.5 MB, free: 5.824 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00024/0.1084, allocations: 11.94 kB / 432.5 MB, free: 5.812 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003436/0.1088, allocations: 182.5 kB / 432.7 MB, free: 5.633 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003968/0.1092, allocations: 190.4 kB / 432.9 MB, free: 5.445 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00199/0.1112, allocations: 1.588 MB / 434.5 MB, free: 3.855 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001539/0.1128, allocations: 2.735 MB / 437.2 MB, free: 1.117 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002762/0.1131, allocations: 288 kB / 437.5 MB, free: 0.8203 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006171/0.1137, allocations: 0.9741 MB / 438.5 MB, free: 15.84 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006561/0.1143, allocations: 0.6221 MB / 439.1 MB, free: 15.22 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002208/0.1146, allocations: 164 kB / 439.2 MB, free: 15.06 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001017/0.1156, allocations: 0.8388 MB / 440.1 MB, free: 14.22 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002476/0.1159, allocations: 263 kB / 440.3 MB, free: 13.96 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006613/0.1165, allocations: 0.7195 MB / 441.1 MB, free: 13.24 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001824/0.1184, allocations: 2.038 MB / 443.1 MB, free: 11.2 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.1184, allocations: 0 / 443.1 MB, free: 11.2 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.1184, allocations: 0 / 443.1 MB, free: 11.2 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.085e-05/0.1184, allocations: 0 / 443.1 MB, free: 11.2 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 306 * Number of variables: 306 Notification: Performance of Generate backend data structure: time 0.002426/0.1208, allocations: 2.181 MB / 445.3 MB, free: 8.828 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.525e-05/0.1209, allocations: 19.89 kB / 445.3 MB, free: 8.809 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006722/0.1216, allocations: 187.4 kB / 445.5 MB, free: 8.625 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008541/0.1224, allocations: 0.6525 MB / 446.1 MB, free: 7.934 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001455/0.1226, allocations: 153.4 kB / 446.3 MB, free: 7.77 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001995/0.1228, allocations: 136 kB / 446.4 MB, free: 7.637 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003235/0.126, allocations: 2.376 MB / 448.8 MB, free: 5.125 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.41e-05/0.1261, allocations: 7.922 kB / 448.8 MB, free: 5.117 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000156/0.1262, allocations: 67.98 kB / 448.9 MB, free: 5.051 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001562/0.1264, allocations: 97.92 kB / 449 MB, free: 4.957 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002403/0.1288, allocations: 1.6 MB / 450.6 MB, free: 3.355 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005594/0.1344, allocations: 5.361 MB / 455.9 MB, free: 13.82 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002737/0.1371, allocations: 2.722 MB / 458.6 MB, free: 11.07 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002411/0.1396, allocations: 2.575 MB / 461.2 MB, free: 8.488 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001062/0.1397, allocations: 93.48 kB / 461.3 MB, free: 8.379 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002166/0.1419, allocations: 1.68 MB / 463 MB, free: 6.629 MB / 334.1 MB Notification: Performance of pre-optimization done (n=150): time 2.665e-06/0.1419, allocations: 0 / 463 MB, free: 6.629 MB / 334.1 MB Notification: Performance of matching and sorting (n=150): time 0.006524/0.1484, allocations: 4.708 MB / 467.7 MB, free: 1.816 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0006242/0.149, allocations: 1.166 MB / 468.9 MB, free: 440 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006917/0.1497, allocations: 0.6582 MB / 469.5 MB, free: 15.76 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001404/0.1499, allocations: 113.7 kB / 469.6 MB, free: 15.64 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002969/0.1502, allocations: 408.8 kB / 470 MB, free: 15.24 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003067/0.1505, allocations: 371.7 kB / 470.4 MB, free: 14.87 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004905/0.151, allocations: 419.8 kB / 470.8 MB, free: 14.45 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001229/0.1511, allocations: 342 kB / 471.1 MB, free: 14.11 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001116/0.1523, allocations: 0.7615 MB / 471.9 MB, free: 13.35 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001589/0.1539, allocations: 1.454 MB / 473.3 MB, free: 11.59 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004903/0.1588, allocations: 4.777 MB / 478.1 MB, free: 6.18 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-05/0.1588, allocations: 8 kB / 478.1 MB, free: 6.172 MB / 350.1 MB Notification: Performance of matching and sorting (n=283) (initialization): time 0.004369/0.1632, allocations: 3.386 MB / 481.5 MB, free: 2.637 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004298/0.1636, allocations: 0.7083 MB / 482.2 MB, free: 1.793 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.216e-05/0.1637, allocations: 20 kB / 482.2 MB, free: 1.773 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.999e-05/0.1637, allocations: 32 kB / 482.3 MB, free: 1.742 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005943/0.1643, allocations: 215.5 kB / 482.5 MB, free: 1.531 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.413e-05/0.1643, allocations: 39.86 kB / 482.5 MB, free: 1.492 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008137/0.1652, allocations: 230 kB / 482.8 MB, free: 1.266 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001446/0.1653, allocations: 104.2 kB / 482.9 MB, free: 1.164 MB / 350.1 MB Warning: Assuming fixed start value for the following 47 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 P2.enableIn.valid:DISCRETE(fixed = true protected = true ) "valid solution" type: Boolean P2.enableIn.benefitLimit:DISCRETE(fixed = true protected = true ) "best valid benefit" type: Real P2.enableIn.benefitMax:DISCRETE(fixed = true protected = true ) "theoretical benefit" type: Real P2.enableIn.posTE:DISCRETE(fixed = true protected = true ) "possible enabled transition" type: Integer P2.enableIn.k:DISCRETE(fixed = true protected = true ) "iteration index" type: Integer P2.enableIn.endWhile:DISCRETE(fixed = true protected = true ) type: Boolean P2.enableIn.sumEnablingProbTAin:DISCRETE(fixed = true protected = true ) "sum of the enabling probabilities of the active input transitions" type: Real P2.enableIn.nTAin:DISCRETE(fixed = true protected = true ) "number ofactive input transitions" type: Integer P2.enableIn.nremTAin:DISCRETE(fixed = true protected = true ) "number of remaining active input transitions" type: Integer P2.enableIn.Index:DISCRETE(fixed = true protected = true ) "priority Index" type: Integer P1.firingSumOut.firingSum:DISCRETE(fixed = true protected = true ) "firing sum" type: Integer P1.firingSumIn.firingSum:DISCRETE(fixed = true protected = true ) "firing sum" type: Integer P2.firingSumOut.firingSum:DISCRETE(fixed = true protected = true ) "firing sum" type: Integer P2.firingSumIn.firingSum:DISCRETE(fixed = true protected = true ) "firing sum" 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 P2.enableOut.benefitLimit:DISCRETE(fixed = true protected = true ) "best valid benefit" type: Real P2.enableOut.valid:DISCRETE(fixed = true protected = true ) "valid solution" type: Boolean P2.enableOut.benefitMax:DISCRETE(fixed = true protected = true ) "theoretical benefit" type: Real P2.enableOut.Index:DISCRETE(fixed = true protected = true ) "priority Index" type: Integer P2.enableOut.endWhile:DISCRETE(fixed = true protected = true ) type: Boolean P2.enableOut.sumEnablingProbTAout:DISCRETE(fixed = true protected = true ) "sum of the enabling probabilities of the active output transitions" type: Real P2.enableOut.posTE:DISCRETE(fixed = true protected = true ) "possible enabled transition" type: Integer P2.enableOut.k:DISCRETE(fixed = true protected = true ) "iteration index" type: Integer P2.enableOut.nTAout:DISCRETE(fixed = true protected = true ) "number of active output transitions" type: Integer P2.enableOut.nremTAout:DISCRETE(fixed = true protected = true ) "number of remaining active output transitions" 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.fire:DISCRETE(fixed = true ) "Does the transition fire?" type: Boolean Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 90 * Number of states: 0 () * Number of discrete variables: 249 ($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.P2.enableIn.valid,P2.enableIn.valid,$PRE.P2.enableIn.benefitLimit,P2.enableIn.benefitLimit,$PRE.P2.enableIn.benefitMax,P2.enableIn.benefitMax,$PRE.P2.enableIn.posTE,P2.enableIn.posTE,$PRE.P2.enableIn.k,P2.enableIn.k,$PRE.P2.enableIn.endWhile,P2.enableIn.endWhile,P2.enableIn.randNum,$PRE.P2.enableIn.randNum,P2.enableIn.state128[4],$PRE.P2.enableIn.state128[4],P2.enableIn.state128[3],$PRE.P2.enableIn.state128[3],P2.enableIn.state128[2],$PRE.P2.enableIn.state128[2],P2.enableIn.state128[1],$PRE.P2.enableIn.state128[1],P2.enableIn.cumEnablingProb[1],$PRE.P2.enableIn.cumEnablingProb[1],$PRE.P2.enableIn.sumEnablingProbTAin,P2.enableIn.sumEnablingProbTAin,$PRE.P2.enableIn.nTAin,P2.enableIn.nTAin,$PRE.P2.enableIn.nremTAin,P2.enableIn.nremTAin,P2.enableIn.remTAin[1],$PRE.P2.enableIn.remTAin[1],$PRE.P2.enableIn.Index,P2.enableIn.Index,$PRE.P2.reStart,$whenCondition8,$PRE.P1.reStart,$whenCondition5,P1.firingSumIn.firingSum,P2.firingSumOut.firingSum,$PRE.P1.firingSumOut.firingSum,$PRE.P1.firingSumIn.firingSum,P1.tokeninout,$whenCondition3,$whenCondition4,$PRE.P2.firingSumOut.firingSum,$PRE.P2.firingSumIn.firingSum,P2.tokeninout,$whenCondition6,$whenCondition7,$PRE.T1.ani,$PRE.T1.fireTime,T1.ani,T1.fireTime,T1.tokenChange.numtrue,T1.tokenChange.anytrue,T1.tokenChange.vec[1],$PRE.P1.tokeninout,$PRE.P2.enableOut.benefitLimit,P2.enableOut.benefitLimit,$PRE.P2.enableOut.valid,P2.enableOut.valid,$PRE.P2.enableOut.benefitMax,P2.enableOut.benefitMax,$PRE.P2.enableOut.Index,P2.enableOut.Index,$PRE.P2.enableOut.endWhile,P2.enableOut.endWhile,$PRE.P2.enableOut.sumEnablingProbTAout,P2.enableOut.sumEnablingProbTAout,P2.enableOut.randNum,$PRE.P2.enableOut.randNum,P2.enableOut.state128[4],$PRE.P2.enableOut.state128[4],P2.enableOut.state128[3],$PRE.P2.enableOut.state128[3],P2.enableOut.state128[2],$PRE.P2.enableOut.state128[2],P2.enableOut.state128[1],$PRE.P2.enableOut.state128[1],$PRE.P2.enableOut.posTE,P2.enableOut.posTE,$PRE.P2.enableOut.k,P2.enableOut.k,$PRE.P2.enableOut.nTAout,P2.enableOut.nTAout,$PRE.P2.enableOut.nremTAout,P2.enableOut.nremTAout,P2.enableOut.arcWeightSum,$PRE.P2.enableOut.arcWeightSum,P2.delayPassedOut.numtrue,P2.delayPassedOut.anytrue,P2.activeConOut.anychange,$whenCondition2,$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.outPlaces[1].disTransition,P2.inTransition[1].disPlace,T1.inPlaces[1].disTransition,P1.outTransition[1].normalArc,P1.outTransition[1].testValueint,P1.outTransition[1].arcType,P1.outTransition[1].disPlace,P2.reStart,P1.reStart,P2.enableIn.disTransition[1],$PRE.T1.r128,$PRE.T1.state128[4],$PRE.T1.state128[3],$PRE.T1.state128[2],$PRE.T1.state128[1],$PRE.T1.fire,$PRE.T1.putDelay,$PRE.T1.putFireTime,$PRE.P2.enableIn.arcWeightSum,$PRE.P2.enableIn.TEin[1],$PRE.P1.enableOut.arcWeightSum,$PRE.P1.enableOut.TEout[1],P1.enableOut.arcWeight[1],P2.enableIn.arcWeight[1],T1.activation.disPlaceOut[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.maxTokensInt[1],T1.activation.minTokensInt[1],T1.activation.arcWeightIntOut[1],T1.activation.arcWeightIntIn[1],T1.activation.tIntOut[1],T1.activation.tIntIn[1],T1.delayPassed,$PRE.T1.delayPassed,T1.r128,T1.state128[4],T1.state128[3],T1.state128[2],T1.state128[1],T1.outPlaces[1].enabledByInPlaces,T1.fire,T1.active,T1.putDelay,T1.putFireTime,P2.enableIn.arcWeightSum,P2.enableIn.TEin[1],P2.enableIn.TEin_[1],P2.enableIn.active[1],P2.enableIn.TAein[1],P2.firingSumIn.firingSum,P2.firingSumIn.arcWeight[1],P2.firingSumIn.fire[1],P2.delayPassedIn.numtrue,P2.delayPassedIn.anytrue,P2.delayPassedIn.vec[1],P2.t,$PRE.P2.t,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,$whenCondition13,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,P2.inTransition[1].emptied,P1.outTransition[1].fed) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (249): * Single equations (assignments): 226 * Array equations: 1 * Algorithm blocks: 22 * 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.001549/0.1669, allocations: 1.39 MB / 484.2 MB, free: 15.65 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002539/0.1671, allocations: 146.8 kB / 484.4 MB, free: 15.51 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004973/0.1721, allocations: 3.635 MB / 488 MB, free: 11.79 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.911e-05/0.1722, allocations: 12 kB / 488 MB, free: 11.77 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.141e-06/0.1722, allocations: 0 / 488 MB, free: 11.77 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.716e-06/0.1722, allocations: 3.984 kB / 488 MB, free: 11.77 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006228/0.1784, allocations: 4.972 MB / 493 MB, free: 6.664 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.759e-06/0.1784, allocations: 0 / 493 MB, free: 6.664 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001814/0.1786, allocations: 47.91 kB / 493.1 MB, free: 6.617 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.155e-06/0.1786, allocations: 4 kB / 493.1 MB, free: 6.613 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001626/0.1788, allocations: 79.95 kB / 493.1 MB, free: 6.535 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.861e-06/0.1788, allocations: 4 kB / 493.1 MB, free: 6.531 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.1788, allocations: 0 / 493.1 MB, free: 6.531 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005793/0.1846, allocations: 4.339 MB / 497.5 MB, free: 2.07 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001767/0.1848, allocations: 171.7 kB / 497.7 MB, free: 1.883 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003826/0.1852, allocations: 156 kB / 497.8 MB, free: 1.73 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007744/0.186, allocations: 131.9 kB / 497.9 MB, free: 1.602 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006371/0.1867, allocations: 400.2 kB / 498.3 MB, free: 1.211 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001701/0.1868, allocations: 91.95 kB / 498.4 MB, free: 1.121 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004373/0.1873, allocations: 394.8 kB / 498.8 MB, free: 0.7344 MB / 366.1 MB Notification: Performance of sort global known variables: time 2e-07/0.1873, allocations: 0 / 498.8 MB, free: 0.7344 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001724/0.189, allocations: 0.597 MB / 499.4 MB, free: 140 kB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 137 ($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,$whenCondition2,P2.activeConOut.anychange,P2.delayPassedOut.anytrue,P2.delayPassedOut.numtrue,P2.enableOut.state128[1],P2.enableOut.state128[2],P2.enableOut.state128[3],P2.enableOut.state128[4],P2.enableOut.arcWeightSum,P2.enableOut.nremTAout,P2.enableOut.nTAout,P2.enableOut.k,P2.enableOut.posTE,P2.enableOut.randNum,P2.enableOut.sumEnablingProbTAout,P2.enableOut.endWhile,P2.enableOut.Index,P2.enableOut.benefitMax,P2.enableOut.valid,P2.enableOut.benefitLimit,$whenCondition9,$whenCondition7,$whenCondition6,$whenCondition8,$whenCondition4,$whenCondition3,$whenCondition5,$whenCondition10,$whenCondition11,$whenCondition12,$whenCondition13,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,P2.t,P2.tokeninout,P2.delayPassedIn.vec[1],P2.delayPassedIn.anytrue,P2.delayPassedIn.numtrue,P2.firingSumIn.fire[1],P2.firingSumIn.arcWeight[1],P2.firingSumIn.firingSum,P2.firingSumOut.firingSum,P2.enableIn.TAein[1],P2.enableIn.active[1],P2.enableIn.TEin_[1],P2.enableIn.state128[1],P2.enableIn.state128[2],P2.enableIn.state128[3],P2.enableIn.state128[4],P2.enableIn.TEin[1],P2.enableIn.remTAin[1],P2.enableIn.cumEnablingProb[1],P2.enableIn.arcWeightSum,P2.enableIn.nremTAin,P2.enableIn.nTAin,P2.enableIn.k,P2.enableIn.posTE,P2.enableIn.randNum,P2.enableIn.sumEnablingProbTAin,P2.enableIn.endWhile,P2.enableIn.Index,P2.enableIn.benefitMax,P2.enableIn.valid,P2.enableIn.benefitLimit,T1.putFireTime,T1.putDelay,T1.active,T1.fire,T1.outPlaces[1].enabledByInPlaces,T1.state128[1],T1.state128[2],T1.state128[3],T1.state128[4],T1.r128,T1.fireTime,T1.delayPassed,T1.ani,T1.activation.tIntIn[1],T1.activation.tIntOut[1],T1.activation.arcWeightIntIn[1],T1.activation.arcWeightIntOut[1],T1.activation.minTokensInt[1],T1.activation.maxTokensInt[1],T1.activation.active,T1.tokenChange.vec[1],T1.tokenChange.anytrue,T1.tokenChange.numtrue) * Number of discrete states: 110 (P2.firingSumOut.firingSum,P2.firingSumIn.firingSum,P1.firingSumOut.firingSum,P1.firingSumIn.firingSum,P1.activeOut[1],P1.activeConOut.anychange,i,P1.activeConOut.vec[i],P1.t,P2.t,P1.tokeninout,T1.tokenChange.numtrue,T1.tokenChange.anytrue,T1.activation.active,T1.delayPassed,T1.putFireTime,$whenCondition11,T1.putDelay,T1.state128[4],T1.state128[3],T1.state128[2],T1.state128[1],T1.r128,$whenCondition10,T1.fire,P1.delayPassedOut.numtrue,P1.delayPassedOut.anytrue,P2.delayPassedIn.numtrue,P2.delayPassedIn.anytrue,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,$whenCondition13,P1.enableOut.arcWeightSum,P1.enableOut.TEout[1],P2.enableIn.TEin_[1],P2.enableIn.valid,P2.enableIn.benefitLimit,P2.enableIn.benefitMax,P2.enableIn.posTE,P2.enableIn.k,P2.enableIn.endWhile,P2.enableIn.state128[4],P2.enableIn.state128[3],P2.enableIn.state128[2],P2.enableIn.state128[1],P2.enableIn.randNum,P2.enableIn.cumEnablingProb[1],P2.enableIn.sumEnablingProbTAin,P2.enableIn.nTAin,P2.enableIn.nremTAin,P2.enableIn.remTAin[1],P2.enableIn.Index,$whenCondition12,P2.enableIn.arcWeightSum,P2.enableIn.TEin[1],P2.enableOut.benefitLimit,P2.enableOut.valid,P2.enableOut.benefitMax,P2.enableOut.Index,P2.enableOut.endWhile,P2.enableOut.sumEnablingProbTAout,P2.enableOut.state128[4],P2.enableOut.state128[3],P2.enableOut.state128[2],P2.enableOut.state128[1],P2.enableOut.randNum,P2.enableOut.posTE,P2.enableOut.k,P2.enableOut.nTAout,P2.enableOut.nremTAout,$whenCondition2,P2.enableOut.arcWeightSum,P2.delayPassedOut.numtrue,P2.delayPassedOut.anytrue,P2.activeConOut.anychange,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 (65): * Single equations (assignments): 43 * Array equations: 1 * Algorithm blocks: 17 * 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.001002/0.19, allocations: 0.5821 MB / 500 MB, free: 15.55 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005114/0.1952, allocations: 4.224 MB / 0.4924 GB, free: 11.05 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.942e-06/0.1952, allocations: 4.25 kB / 0.4924 GB, free: 11.05 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004544/0.1997, allocations: 5.93 MB / 0.4982 GB, free: 4.914 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009404/0.2007, allocations: 222.5 kB / 0.4984 GB, free: 4.711 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004561/0.2053, allocations: 2.977 MB / 0.5013 GB, free: 1.691 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006709/0.2059, allocations: 1.122 MB / 0.5024 GB, free: 0.5391 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002087/0.2062, allocations: 83.41 kB / 0.5025 GB, free: 468 kB / 382.1 MB Notification: Performance of SimCode: time 7.92e-07/0.2062, allocations: 0 / 0.5025 GB, free: 468 kB / 382.1 MB Notification: Performance of Templates: time 0.19/0.3962, allocations: 21.36 MB / 0.5233 GB, free: 71.75 MB / 382.1 MB make -j1 -f PNlib_PNlib.Examples.ExtTest.TDSdiscrete.makefile make -j1 -f PNlib_PNlib.Examples.ExtTest.TDSdiscrete.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.ExtTest.TDSdiscreteCalcHelperMain.o OMCppPNlib_PNlib.Examples.ExtTest.TDSdiscreteCalcHelperMain.cpp In file included from OMCppPNlib_PNlib.Examples.ExtTest.TDSdiscreteCalcHelperMain.cpp:29: ./OMCppPNlib_PNlib.Examples.ExtTest.TDSdiscreteInitialize.cpp:569: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.ExtTest.TDSdiscreteInitialize.cpp:604: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.ExtTest.TDSdiscreteCalcHelperMain.cpp:29: ./OMCppPNlib_PNlib.Examples.ExtTest.TDSdiscreteInitialize.cpp:604: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.ExtTest.TDSdiscreteCalcHelperMain.cpp:33: ./OMCppPNlib_PNlib.Examples.ExtTest.TDSdiscrete.cpp:260: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.ExtTest.TDSdiscreteCalcHelperMain.o] Error 1