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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008906/0.0008906, allocations: 80.45 kB / 19.93 MB, free: 4.605 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0008642/0.0008642, allocations: 173.2 kB / 23.22 MB, free: 1.316 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9115/0.9115, allocations: 177.2 MB / 203.5 MB, free: 5.75 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib master/package.mo): time 0.04732/0.04732, allocations: 12.64 MB / 272.6 MB, free: 0.7227 MB / 250.7 MB " [Timeout remaining time 180] Using package PNlib with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(PNlib.Examples.DisTest.PDtoTD,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,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=2500,variableFilter="P1.t|T1.active|T1.fire|time",fileNamePrefix="PNlib_PNlib.Examples.DisTest.PDtoTD") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.443e-06/1.443e-06, allocations: 0 / 403.5 MB, free: 10.19 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.63e-05/1.774e-05, allocations: 4.25 kB / 403.5 MB, free: 10.18 MB / 378.7 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.DisTest.PDtoTD): time 0.001925/0.001943, allocations: 1.739 MB / 405.2 MB, free: 8.434 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.002451/0.004393, allocations: 1.851 MB / 407.1 MB, free: 6.578 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001778/0.004571, allocations: 7.938 kB / 407.1 MB, free: 6.57 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002693/0.004841, allocations: 119 kB / 407.2 MB, free: 6.453 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002864/0.005127, allocations: 147 kB / 407.4 MB, free: 6.309 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001058/0.006185, allocations: 0.9431 MB / 408.3 MB, free: 5.363 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008929/0.007078, allocations: 1.349 MB / 409.7 MB, free: 4.012 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001431/0.007221, allocations: 69.25 kB / 409.7 MB, free: 3.938 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005287/0.00775, allocations: 0.7565 MB / 410.5 MB, free: 3.18 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003267/0.008076, allocations: 319 kB / 410.8 MB, free: 2.867 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 7.888e-05/0.008155, allocations: 92 kB / 410.9 MB, free: 2.777 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005345/0.00869, allocations: 0.6122 MB / 411.5 MB, free: 2.164 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001263/0.008816, allocations: 151.3 kB / 411.6 MB, free: 2.016 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002084/0.009024, allocations: 291.3 kB / 411.9 MB, free: 1.73 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009852/0.01001, allocations: 1.348 MB / 413.3 MB, free: 388 kB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.685e-06/0.01001, allocations: 4 kB / 413.3 MB, free: 384 kB / 378.7 MB Notification: Performance of FrontEnd: time 1.002e-06/0.01001, allocations: 0 / 413.3 MB, free: 384 kB / 378.7 MB Notification: Performance of Transformations before backend: time 6.161e-06/0.01002, allocations: 4 kB / 413.3 MB, free: 380 kB / 378.7 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.00112/0.01114, allocations: 1.198 MB / 414.5 MB, free: 15.07 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.09e-05/0.01117, allocations: 8.031 kB / 414.5 MB, free: 15.07 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001987/0.01137, allocations: 100.4 kB / 414.6 MB, free: 14.97 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004052/0.01177, allocations: 372.7 kB / 415 MB, free: 14.58 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.517e-05/0.01186, allocations: 113 kB / 415.1 MB, free: 14.45 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.857e-05/0.01194, allocations: 79.98 kB / 415.1 MB, free: 14.38 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001425/0.01336, allocations: 1.793 MB / 416.9 MB, free: 12.43 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.399e-05/0.01338, allocations: 4 kB / 416.9 MB, free: 12.43 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.102e-05/0.01344, allocations: 39.98 kB / 417 MB, free: 12.39 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.369e-05/0.0135, allocations: 52.95 kB / 417 MB, free: 12.34 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00107/0.01457, allocations: 1.239 MB / 418.3 MB, free: 11.05 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002192/0.01676, allocations: 2.888 MB / 421.2 MB, free: 8.059 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008709/0.01763, allocations: 1.008 MB / 422.2 MB, free: 6.988 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007021/0.01834, allocations: 0.9139 MB / 423.1 MB, free: 6.012 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.936e-05/0.01838, allocations: 11.98 kB / 423.1 MB, free: 6 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001004/0.01938, allocations: 1.263 MB / 424.4 MB, free: 4.645 MB / 394.7 MB Notification: Performance of pre-optimization done (n=75): time 1.392e-06/0.01938, allocations: 0 / 424.4 MB, free: 4.645 MB / 394.7 MB Notification: Performance of matching and sorting (n=75): time 0.002764/0.02215, allocations: 3.341 MB / 427.7 MB, free: 1.156 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000226/0.02237, allocations: 0.5521 MB / 428.2 MB, free: 0.5 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002419/0.02261, allocations: 384 kB / 428.6 MB, free: 124 kB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 5.542e-05/0.02267, allocations: 69.62 kB / 428.7 MB, free: 48 kB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001444/0.02281, allocations: 280.8 kB / 429 MB, free: 15.77 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001151/0.02293, allocations: 206.6 kB / 429.2 MB, free: 15.56 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001909/0.02312, allocations: 234.6 kB / 429.4 MB, free: 15.33 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001166/0.02324, allocations: 370.8 kB / 429.8 MB, free: 14.96 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005442/0.02378, allocations: 0.7412 MB / 430.5 MB, free: 14.16 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007483/0.02453, allocations: 1.231 MB / 431.7 MB, free: 12.67 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001866/0.02639, allocations: 2.552 MB / 434.3 MB, free: 9.781 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.767e-06/0.0264, allocations: 7.938 kB / 434.3 MB, free: 9.773 MB / 410.7 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.001671/0.02807, allocations: 2.179 MB / 436.5 MB, free: 7.465 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000136/0.02821, allocations: 331.9 kB / 436.8 MB, free: 7.082 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.335e-05/0.02822, allocations: 12.81 kB / 436.8 MB, free: 7.07 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.029e-05/0.02824, allocations: 19.94 kB / 436.8 MB, free: 7.051 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001972/0.02844, allocations: 127.7 kB / 436.9 MB, free: 6.926 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.681e-05/0.02846, allocations: 28.17 kB / 437 MB, free: 6.898 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002609/0.02872, allocations: 123.3 kB / 437.1 MB, free: 6.777 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.042e-05/0.02878, allocations: 67.98 kB / 437.2 MB, free: 6.711 MB / 410.7 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.0005317/0.02931, allocations: 0.7453 MB / 437.9 MB, free: 5.906 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.885e-05/0.02939, allocations: 71.72 kB / 438 MB, free: 5.836 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001941/0.03133, allocations: 2.327 MB / 440.3 MB, free: 3.43 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.121e-05/0.03134, allocations: 4 kB / 440.3 MB, free: 3.426 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/0.03135, allocations: 0 / 440.3 MB, free: 3.426 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.121e-06/0.03135, allocations: 11.97 kB / 440.3 MB, free: 3.414 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002635/0.03399, allocations: 3.077 MB / 443.4 MB, free: 220 kB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.406e-06/0.03399, allocations: 0 / 443.4 MB, free: 220 kB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.764e-05/0.03405, allocations: 27.98 kB / 443.4 MB, free: 192 kB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.986e-06/0.03405, allocations: 0 / 443.4 MB, free: 192 kB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.611e-05/0.03411, allocations: 39.97 kB / 443.5 MB, free: 152 kB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.765e-06/0.03411, allocations: 8 kB / 443.5 MB, free: 144 kB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.03411, allocations: 7.875 kB / 443.5 MB, free: 136 kB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1638/0.1979, allocations: 2.788 MB / 446.3 MB, free: 79.76 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.678e-05/0.1979, allocations: 48.05 kB / 446.3 MB, free: 79.76 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001238/0.198, allocations: 75.77 kB / 446.4 MB, free: 79.74 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000232/0.1983, allocations: 74.56 kB / 446.5 MB, free: 79.73 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003279/0.1986, allocations: 332.6 kB / 446.8 MB, free: 79.64 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.935e-05/0.1987, allocations: 45.5 kB / 446.8 MB, free: 79.63 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001311/0.1988, allocations: 208.9 kB / 447 MB, free: 79.51 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1988, allocations: 0 / 447 MB, free: 79.51 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0009364/0.1997, allocations: 350.6 kB / 447.4 MB, free: 79.49 MB / 410.7 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.0006195/0.2004, allocations: 394.7 kB / 447.8 MB, free: 79.36 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001616/0.202, allocations: 2.613 MB / 450.4 MB, free: 77.61 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.202, allocations: 1.125 kB / 450.4 MB, free: 77.61 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008265/0.2028, allocations: 1.568 MB / 451.9 MB, free: 76.5 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003182/0.2031, allocations: 86.66 kB / 452 MB, free: 76.48 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001633/0.2047, allocations: 1.896 MB / 453.9 MB, free: 75.45 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001643/0.2049, allocations: 311.1 kB / 454.2 MB, free: 75.34 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.745e-05/0.205, allocations: 55.17 kB / 454.3 MB, free: 75.33 MB / 410.7 MB Notification: Performance of SimCode: time 5.61e-07/0.205, allocations: 2.531 kB / 454.3 MB, free: 75.33 MB / 410.7 MB Notification: Performance of Templates: time 0.008524/0.2135, allocations: 11.98 MB / 466.3 MB, free: 73.71 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f PNlib_PNlib.Examples.DisTest.PDtoTD.makefile [Timeout 660] 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 -DOMC_BUILD -DUSE_THREAD -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. -I"." -I"." -I"/var/lib/jenkins/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 564 | _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' 599 | _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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/Core/Math/Array.h:722:20: note: candidate function not viable: no known conversion from 'int' to 'const vector' (aka 'const vector') for 1st argument 722 | virtual const T& operator()(const vector& idx) const | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/Core/Math/Array.h:731:14: note: candidate function not viable: no known conversion from 'int' to 'const vector' (aka 'const vector') for 1st argument 731 | virtual T& operator()(const vector& idx) | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~ 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' 599 | _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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/Core/Math/Array.h:722:20: note: candidate function not viable: no known conversion from 'int' to 'const vector' (aka 'const vector') for 1st argument 722 | virtual const T& operator()(const vector& idx) const | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/Core/Math/Array.h:731:14: note: candidate function not viable: no known conversion from 'int' to 'const vector' (aka 'const vector') for 1st argument 731 | virtual T& operator()(const vector& idx) | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~ 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 160 | _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 [Calling os._exit(0), Time elapsed: 2.8135190242901444] Failed to read output from testmodel.py, exit status != 0: 0.21815700363367796 0.22548016599999995 0.21387199399999995 Calling exit ...