Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain.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.001265/0.001265, allocations: 110.5 kB / 19.69 MB, free: 2.254 MB / 14.72 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.001401/0.001401, allocations: 213 kB / 23.01 MB, free: 4.566 MB / 14.72 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 1.421/1.421, allocations: 230.6 MB / 256.8 MB, free: 8.027 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0/package.mo): time 0.264/0.264, allocations: 31.56 MB / 344.8 MB, free: 3.988 MB / 270.1 MB " [Timeout remaining time 179] Using package BusinessSimulation with version 2.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0/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(BusinessSimulation.Examples.SimpleProductionChain,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain") translateModel(BusinessSimulation.Examples.SimpleProductionChain,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain") [Timeout 660] "Notification: BusinessSimulation requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002027/0.002027, allocations: 63.91 kB / 482.1 MB, free: 15.28 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3754/0.3775, allocations: 60.72 MB / 0.5301 GB, free: 7.879 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChain): time 0.006971/0.3844, allocations: 5.502 MB / 0.5354 GB, free: 4 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001353/0.3858, allocations: 0.6163 MB / 0.536 GB, free: 3.547 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002472/0.386, allocations: 15.53 kB / 0.5361 GB, free: 3.539 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003015/0.3863, allocations: 80.59 kB / 0.5361 GB, free: 3.496 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000211/0.3866, allocations: 76.27 kB / 0.5362 GB, free: 3.438 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005845/0.3871, allocations: 187.6 kB / 0.5364 GB, free: 3.328 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005558/0.3877, allocations: 458.4 kB / 0.5368 GB, free: 3.102 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003184/0.388, allocations: 169.2 kB / 0.537 GB, free: 3 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002356/0.3883, allocations: 194.2 kB / 0.5372 GB, free: 2.902 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002743/0.3885, allocations: 196.1 kB / 0.5374 GB, free: 2.793 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.195e-05/0.3886, allocations: 48.81 kB / 0.5374 GB, free: 2.789 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000119/0.3887, allocations: 51.86 kB / 0.5374 GB, free: 2.789 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001203/0.3888, allocations: 110.4 kB / 0.5376 GB, free: 2.715 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000188/0.389, allocations: 211.9 kB / 0.5378 GB, free: 2.574 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006151/0.3896, allocations: 461 kB / 0.5382 GB, free: 2.363 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.3896, allocations: 0 / 0.5382 GB, free: 2.363 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.3896, allocations: 0.9062 kB / 0.5382 GB, free: 2.363 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.977e-06/0.3897, allocations: 0 / 0.5382 GB, free: 2.363 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.001163/0.3908, allocations: 0.6251 MB / 0.5388 GB, free: 1.883 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.244e-05/0.3909, allocations: 9.906 kB / 0.5388 GB, free: 1.883 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003072/0.3912, allocations: 69.47 kB / 0.5389 GB, free: 1.848 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003863/0.3916, allocations: 277.9 kB / 0.5391 GB, free: 1.598 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.2e-05/0.3916, allocations: 36.22 kB / 0.5392 GB, free: 1.582 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.528e-05/0.3917, allocations: 55.48 kB / 0.5392 GB, free: 1.559 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006391/0.3923, allocations: 416.2 kB / 0.5396 GB, free: 1.277 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.622e-05/0.3923, allocations: 3.375 kB / 0.5396 GB, free: 1.277 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.101e-05/0.3924, allocations: 14.69 kB / 0.5396 GB, free: 1.266 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.191e-05/0.3924, allocations: 9.969 kB / 0.5397 GB, free: 1.266 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005005/0.3929, allocations: 252.8 kB / 0.5399 GB, free: 1.145 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001904/0.3948, allocations: 1.609 MB / 0.5415 GB, free: 15.71 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006155/0.3954, allocations: 256.1 kB / 0.5417 GB, free: 15.52 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003047/0.3957, allocations: 153.3 kB / 0.5419 GB, free: 15.42 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.025e-05/0.3957, allocations: 4.125 kB / 0.5419 GB, free: 15.42 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.753e-05/0.3958, allocations: 37.31 kB / 0.5419 GB, free: 15.38 MB / 398.1 MB Notification: Performance of pre-optimization done (n=28): time 3.847e-06/0.3958, allocations: 3.984 kB / 0.5419 GB, free: 15.38 MB / 398.1 MB Notification: Performance of matching and sorting (n=28): time 0.0008536/0.3966, allocations: 346.8 kB / 0.5422 GB, free: 15.2 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001224/0.3967, allocations: 162.3 kB / 0.5424 GB, free: 15 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003273/0.3971, allocations: 272 kB / 0.5426 GB, free: 14.81 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.928e-05/0.3971, allocations: 38.95 kB / 0.5427 GB, free: 14.77 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000205/0.3973, allocations: 225 kB / 0.5429 GB, free: 14.57 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.518e-05/0.3974, allocations: 83.75 kB / 0.543 GB, free: 14.5 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001623/0.3976, allocations: 101.4 kB / 0.5431 GB, free: 14.43 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001867/0.3977, allocations: 346.3 kB / 0.5434 GB, free: 14.09 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003226/0.3981, allocations: 139.1 kB / 0.5435 GB, free: 14.03 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004147/0.3985, allocations: 244.3 kB / 0.5438 GB, free: 13.82 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006166/0.3991, allocations: 347 kB / 0.5441 GB, free: 13.57 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.3991, allocations: 0 / 0.5441 GB, free: 13.57 MB / 398.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0008759/0.4, allocations: 453.3 kB / 0.5445 GB, free: 13.34 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.084e-05/0.4, allocations: 6.062 kB / 0.5445 GB, free: 13.34 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.141e-05/0.4, allocations: 6.797 kB / 0.5445 GB, free: 13.34 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.304e-05/0.4, allocations: 6.719 kB / 0.5446 GB, free: 13.34 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002747/0.4003, allocations: 65.5 kB / 0.5446 GB, free: 13.32 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.588e-05/0.4003, allocations: 13.42 kB / 0.5446 GB, free: 13.31 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002604/0.4006, allocations: 45.81 kB / 0.5447 GB, free: 13.28 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.075e-05/0.4006, allocations: 22.92 kB / 0.5447 GB, free: 13.27 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 36 ($PRE.inventory.inflow.stopInflow,$PRE.inventory.outflow.stopInflow,$PRE.producing.cloud.massPort.stopInflow,$PRE.producing.cloud.massPort.stopOutflow,$PRE.installedBase.inflow.stopInflow,$PRE.installedBase.inflow.stopOutflow,$PRE.cloud1.massPort.stopInflow,$PRE.cloud1.massPort.stopOutflow,cloud1.massPort.stopOutflow,cloud1.massPort.stopInflow,installedBase.inflow.stopInflow,producing.cloud.massPort.stopOutflow,inventory.inflow.stopInflow,installedBase.inflow.stopOutflow,producing.cloud.massPort.stopInflow,inventory.outflow.stopInflow,shipping.portA.stopInflow,producing.growing.portA.stopInflow,shipping.portB.stopOutflow,producing.growing.useB_rate,$PRE.producing.growing.useB_rate,producing.growing.useA_rate,$PRE.producing.growing.useA_rate,producing.growing.portB.stopOutflow,producing.growing.portB.stopInflow,producing.growing.portA.stopOutflow,shipping.useB_rate,$PRE.shipping.useB_rate,shipping.useA_rate,$PRE.shipping.useA_rate,shipping.portB.stopInflow,shipping.portA.stopOutflow,inventory.outflow.stopOutflow,$PRE.inventory.outflow.stopOutflow,inventory.inflow.stopOutflow,$PRE.inventory.inflow.stopOutflow) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (60): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * 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.0002194/0.4008, allocations: 188.3 kB / 0.5449 GB, free: 13.11 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001155/0.401, allocations: 28.84 kB / 0.5449 GB, free: 13.09 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.764e-05/0.401, allocations: 36.94 kB / 0.5449 GB, free: 13.06 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.138e-05/0.4011, allocations: 8.438 kB / 0.5449 GB, free: 13.05 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.987e-06/0.4011, allocations: 5.156 kB / 0.545 GB, free: 13.05 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.042e-06/0.4011, allocations: 1.125 kB / 0.545 GB, free: 13.05 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001767/0.4028, allocations: 1.157 MB / 0.5461 GB, free: 12.05 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.041e-06/0.4028, allocations: 3.844 kB / 0.5461 GB, free: 12.05 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002018/0.403, allocations: 42.31 kB / 0.5461 GB, free: 12.04 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.103e-06/0.4031, allocations: 8.312 kB / 0.5461 GB, free: 12.04 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.96e-05/0.4031, allocations: 15.56 kB / 0.5461 GB, free: 12.03 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.472e-06/0.4031, allocations: 4 kB / 0.5462 GB, free: 12.03 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.29e-06/0.4031, allocations: 4 kB / 0.5462 GB, free: 12.03 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009017/0.404, allocations: 0.5402 MB / 0.5467 GB, free: 11.61 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001181/0.4041, allocations: 56.42 kB / 0.5467 GB, free: 11.57 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.645e-05/0.4042, allocations: 13.95 kB / 0.5468 GB, free: 11.56 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002025/0.4044, allocations: 21.45 kB / 0.5468 GB, free: 11.55 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.184e-05/0.4045, allocations: 40.3 kB / 0.5468 GB, free: 11.52 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.071e-05/0.4045, allocations: 13.53 kB / 0.5468 GB, free: 11.52 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001999/0.4047, allocations: 180.2 kB / 0.547 GB, free: 11.39 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4047, allocations: 0 / 0.547 GB, free: 11.39 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004491/0.4051, allocations: 91.81 kB / 0.5471 GB, free: 11.37 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 5 (inventory.x,installedBase.x_hidden[1],installedBase.x_hidden[2],installedBase.x_hidden[3],installedBase.x_hidden[4]) * Number of discrete variables: 14 (inventory.outflow.stopOutflow,producing.growing.portB.stopOutflow,inventory.inflow.stopOutflow,shipping.portA.stopOutflow,shipping.useA_rate,shipping.portA.stopInflow,producing.growing.portA.stopInflow,shipping.portB.stopOutflow,producing.growing.useB_rate,producing.growing.portB.stopInflow,producing.growing.portA.stopOutflow,shipping.useB_rate,shipping.portB.stopInflow,producing.growing.useA_rate) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.0001435/0.4053, allocations: 118.3 kB / 0.5472 GB, free: 11.27 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006947/0.406, allocations: 309.6 kB / 0.5475 GB, free: 11.13 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.217e-06/0.406, allocations: 1.469 kB / 0.5475 GB, free: 11.13 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000273/0.4062, allocations: 135.4 kB / 0.5476 GB, free: 11.07 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000569/0.4068, allocations: 84.11 kB / 0.5477 GB, free: 11.03 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001318/0.4081, allocations: 0.7712 MB / 0.5485 GB, free: 10.42 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004757/0.4086, allocations: 0.7936 MB / 0.5492 GB, free: 9.676 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001076/0.4087, allocations: 35.62 kB / 0.5493 GB, free: 9.664 MB / 398.1 MB Notification: Performance of SimCode: time 3.11e-07/0.4087, allocations: 0 / 0.5493 GB, free: 9.664 MB / 398.1 MB Notification: Performance of Templates: time 0.00776/0.4165, allocations: 4.343 MB / 0.5535 GB, free: 7.371 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain.makefile [Timeout 660] (rm -f BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain.pipe ; mkfifo BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain.pipe ; head -c 1048576 < BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain.pipe >> ../files/BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain.sim & ./BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain -abortSlowSimulation -alarm=480 -lv LOG_STATS > BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 7.879773159977049] Failed to read output from testmodel.py, exit status != 0: 0.4255626369267702 0.440543322 0.047799475 Calling exit ...