Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PNlib_PNlib.Examples.DisTest.PDtoTDfunction.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.0007646/0.0007646, allocations: 76.5 kB / 19.93 MB, free: 4.629 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.0007646/0.0007646, allocations: 173.9 kB / 23.21 MB, free: 1.352 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.8952/0.8952, allocations: 177.1 MB / 203.5 MB, free: 5.738 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.04595/0.04595, allocations: 12.65 MB / 272.6 MB, free: 0.707 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.PDtoTDfunction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="P1.t|T1.active|T1.fire|time",fileNamePrefix="PNlib_PNlib.Examples.DisTest.PDtoTDfunction") translateModel(PNlib.Examples.DisTest.PDtoTDfunction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="P1.t|T1.active|T1.fire|time",fileNamePrefix="PNlib_PNlib.Examples.DisTest.PDtoTDfunction") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.525e-06/2.525e-06, allocations: 0 / 403.5 MB, free: 10.16 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.029e-05/3.281e-05, allocations: 2.281 kB / 403.5 MB, free: 10.15 MB / 378.7 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.DisTest.PDtoTDfunction): time 0.002587/0.00262, allocations: 1.735 MB / 405.2 MB, free: 8.406 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.002547/0.005167, allocations: 1.862 MB / 407.1 MB, free: 6.543 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002757/0.005442, allocations: 11.94 kB / 407.1 MB, free: 6.531 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000302/0.005744, allocations: 119 kB / 407.2 MB, free: 6.414 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003268/0.006071, allocations: 139 kB / 407.4 MB, free: 6.277 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001477/0.007548, allocations: 0.9422 MB / 408.3 MB, free: 5.336 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.001317/0.008864, allocations: 1.349 MB / 409.7 MB, free: 3.984 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001857/0.00905, allocations: 69.23 kB / 409.7 MB, free: 3.91 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007993/0.009849, allocations: 0.7605 MB / 410.5 MB, free: 3.148 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004858/0.01034, allocations: 319 kB / 410.8 MB, free: 2.836 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001052/0.01044, allocations: 88 kB / 410.9 MB, free: 2.75 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007289/0.01117, allocations: 0.6161 MB / 411.5 MB, free: 2.133 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001532/0.01132, allocations: 151.3 kB / 411.7 MB, free: 1.984 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002551/0.01158, allocations: 287.3 kB / 411.9 MB, free: 1.703 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001741/0.01332, allocations: 1.356 MB / 413.3 MB, free: 352 kB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.01332, allocations: 0 / 413.3 MB, free: 352 kB / 378.7 MB Notification: Performance of FrontEnd: time 1.944e-06/0.01332, allocations: 0 / 413.3 MB, free: 352 kB / 378.7 MB Notification: Performance of Transformations before backend: time 1.942e-05/0.01334, allocations: 0 / 413.3 MB, free: 352 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.001509/0.01485, allocations: 1.202 MB / 414.5 MB, free: 15.05 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.779e-05/0.01489, allocations: 11.97 kB / 414.5 MB, free: 15.04 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002374/0.01513, allocations: 100.4 kB / 414.6 MB, free: 14.94 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004278/0.01556, allocations: 372.8 kB / 415 MB, free: 14.55 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.729e-05/0.01565, allocations: 113 kB / 415.1 MB, free: 14.42 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.679e-05/0.01574, allocations: 83.97 kB / 415.2 MB, free: 14.34 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001646/0.01739, allocations: 1.785 MB / 416.9 MB, free: 12.41 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.69e-05/0.0174, allocations: 0 / 416.9 MB, free: 12.41 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.194e-05/0.01746, allocations: 39.98 kB / 417 MB, free: 12.37 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.909e-05/0.01754, allocations: 52.95 kB / 417 MB, free: 12.31 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001247/0.01879, allocations: 1.258 MB / 418.3 MB, free: 11.01 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002662/0.02145, allocations: 2.915 MB / 421.2 MB, free: 7.988 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009438/0.0224, allocations: 1.057 MB / 422.3 MB, free: 6.867 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000787/0.02318, allocations: 0.9412 MB / 423.2 MB, free: 5.863 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.217e-05/0.02324, allocations: 12 kB / 423.2 MB, free: 5.852 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00114/0.02438, allocations: 1.3 MB / 424.5 MB, free: 4.457 MB / 394.7 MB Notification: Performance of pre-optimization done (n=77): time 1.823e-06/0.02438, allocations: 7.938 kB / 424.5 MB, free: 4.449 MB / 394.7 MB Notification: Performance of matching and sorting (n=77): time 0.003198/0.02758, allocations: 3.439 MB / 428 MB, free: 0.8633 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002267/0.0278, allocations: 0.5386 MB / 428.5 MB, free: 232 kB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003091/0.02811, allocations: 372 kB / 428.9 MB, free: 15.86 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 6.217e-05/0.02817, allocations: 73.69 kB / 428.9 MB, free: 15.78 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000149/0.02832, allocations: 257 kB / 429.2 MB, free: 15.52 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000122/0.02844, allocations: 210.5 kB / 429.4 MB, free: 15.32 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002024/0.02865, allocations: 226.6 kB / 429.6 MB, free: 15.09 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000112/0.02876, allocations: 374.8 kB / 430 MB, free: 14.71 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005455/0.0293, allocations: 0.7491 MB / 430.7 MB, free: 13.91 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007213/0.03003, allocations: 1.194 MB / 431.9 MB, free: 12.46 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002195/0.03222, allocations: 2.566 MB / 434.5 MB, free: 9.566 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.799e-06/0.03223, allocations: 4 kB / 434.5 MB, free: 9.562 MB / 410.7 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.001764/0.034, allocations: 2.174 MB / 436.7 MB, free: 7.258 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001392/0.03413, allocations: 332.9 kB / 437 MB, free: 6.871 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.736e-05/0.03415, allocations: 15.94 kB / 437 MB, free: 6.855 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.587e-05/0.03418, allocations: 16.25 kB / 437 MB, free: 6.84 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002153/0.03439, allocations: 119.7 kB / 437.1 MB, free: 6.723 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.008e-05/0.03441, allocations: 27.92 kB / 437.2 MB, free: 6.695 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002987/0.03471, allocations: 119.4 kB / 437.3 MB, free: 6.578 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.935e-05/0.03477, allocations: 55.98 kB / 437.3 MB, free: 6.523 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: 51 * 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.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.enableOut.arcWeight[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 (134): * Single equations (assignments): 123 * 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.0006954/0.03547, allocations: 0.7465 MB / 438.1 MB, free: 5.711 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001042/0.03557, allocations: 75.66 kB / 438.2 MB, free: 5.637 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002306/0.03788, allocations: 2.386 MB / 440.5 MB, free: 3.172 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.72e-05/0.03789, allocations: 7.984 kB / 440.6 MB, free: 3.164 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.242e-06/0.0379, allocations: 3.938 kB / 440.6 MB, free: 3.16 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.21e-06/0.03791, allocations: 0 / 440.6 MB, free: 3.16 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1535/0.1914, allocations: 3.142 MB / 443.7 MB, free: 80.31 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.505e-06/0.1914, allocations: 0 / 443.7 MB, free: 80.31 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001233/0.1916, allocations: 31.58 kB / 443.7 MB, free: 80.31 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.33e-06/0.1916, allocations: 0 / 443.7 MB, free: 80.31 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002393/0.1918, allocations: 45.2 kB / 443.8 MB, free: 80.31 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.709e-06/0.1918, allocations: 7.719 kB / 443.8 MB, free: 80.31 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.1918, allocations: 4.172 kB / 443.8 MB, free: 80.31 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002107/0.1939, allocations: 2.849 MB / 446.6 MB, free: 79.51 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.432e-05/0.194, allocations: 49.34 kB / 446.7 MB, free: 79.51 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000123/0.1941, allocations: 74.44 kB / 446.8 MB, free: 79.49 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002318/0.1943, allocations: 81.56 kB / 446.8 MB, free: 79.48 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003467/0.1947, allocations: 328.2 kB / 447.2 MB, free: 79.39 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.006e-05/0.1947, allocations: 48.94 kB / 447.2 MB, free: 79.38 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001195/0.1949, allocations: 205.7 kB / 447.4 MB, free: 79.27 MB / 410.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1949, allocations: 0 / 447.4 MB, free: 79.27 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0007589/0.1956, allocations: 342.8 kB / 447.7 MB, free: 79.24 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: 69 ($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.arcWeight[1],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 (39): * Single equations (assignments): 26 * 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.000505/0.1961, allocations: 417 kB / 448.1 MB, free: 79.11 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001609/0.1977, allocations: 2.633 MB / 450.8 MB, free: 77.35 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.1977, allocations: 2.719 kB / 450.8 MB, free: 77.35 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008482/0.1986, allocations: 1.601 MB / 452.4 MB, free: 76.22 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003328/0.1989, allocations: 82.5 kB / 452.5 MB, free: 76.2 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001838/0.2008, allocations: 1.995 MB / 454.5 MB, free: 75.13 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001693/0.2009, allocations: 317.9 kB / 454.8 MB, free: 75.02 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.222e-05/0.201, allocations: 48.88 kB / 454.8 MB, free: 75.01 MB / 410.7 MB Notification: Performance of SimCode: time 1.442e-06/0.201, allocations: 0 / 454.8 MB, free: 75.01 MB / 410.7 MB Notification: Performance of Templates: time 0.009997/0.211, allocations: 12 MB / 466.8 MB, free: 73.38 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f PNlib_PNlib.Examples.DisTest.PDtoTDfunction.makefile [Timeout 660] make -j1 -f PNlib_PNlib.Examples.DisTest.PDtoTDfunction.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.PDtoTDfunctionCalcHelperMain.o OMCppPNlib_PNlib.Examples.DisTest.PDtoTDfunctionCalcHelperMain.cpp In file included from OMCppPNlib_PNlib.Examples.DisTest.PDtoTDfunctionCalcHelperMain.cpp:29: ./OMCppPNlib_PNlib.Examples.DisTest.PDtoTDfunctionInitialize.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.PDtoTDfunctionInitialize.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.PDtoTDfunctionCalcHelperMain.cpp:29: ./OMCppPNlib_PNlib.Examples.DisTest.PDtoTDfunctionInitialize.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.PDtoTDfunctionCalcHelperMain.cpp:33: ./OMCppPNlib_PNlib.Examples.DisTest.PDtoTDfunction.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.PDtoTDfunctionCalcHelperMain.o] Error 1 [Calling os._exit(0), Time elapsed: 2.7638415582478046] Failed to read output from testmodel.py, exit status != 0: 0.2168471086770296 0.224452113 0.20928932800000002 Calling exit ...