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.001346/0.001346, allocations: 104.4 kB / 19.7 MB, free: 2.125 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.001683/0.001683, allocations: 217.5 kB / 22.99 MB, free: 4.945 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.464/1.464, allocations: 230.6 MB / 256.8 MB, free: 7.809 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.2243/0.2243, allocations: 31.54 MB / 344.7 MB, free: 3.777 MB / 270.1 MB " [Timeout remaining time 180] 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.002105/0.002105, allocations: 67.89 kB / 482 MB, free: 15.07 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3572/0.3593, allocations: 60.73 MB / 0.53 GB, free: 7.844 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChain): time 0.007059/0.3663, allocations: 5.087 MB / 0.5349 GB, free: 4.406 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001757/0.3681, allocations: 0.6087 MB / 0.5355 GB, free: 3.965 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002632/0.3683, allocations: 11.84 kB / 0.5356 GB, free: 3.961 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003611/0.3687, allocations: 78.42 kB / 0.5356 GB, free: 3.918 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002594/0.369, allocations: 72.88 kB / 0.5357 GB, free: 3.863 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006768/0.3696, allocations: 188.9 kB / 0.5359 GB, free: 3.754 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005492/0.3702, allocations: 458.6 kB / 0.5363 GB, free: 3.527 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000331/0.3705, allocations: 154.7 kB / 0.5365 GB, free: 3.441 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002603/0.3708, allocations: 192.3 kB / 0.5366 GB, free: 3.344 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002686/0.371, allocations: 169 kB / 0.5368 GB, free: 3.262 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.279e-05/0.3711, allocations: 44.97 kB / 0.5368 GB, free: 3.262 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001223/0.3713, allocations: 55.03 kB / 0.5369 GB, free: 3.258 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000114/0.3714, allocations: 114.5 kB / 0.537 GB, free: 3.18 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001623/0.3715, allocations: 172 kB / 0.5372 GB, free: 3.078 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005795/0.3721, allocations: 462.6 kB / 0.5376 GB, free: 2.871 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.3721, allocations: 0 / 0.5376 GB, free: 2.871 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.3721, allocations: 0 / 0.5376 GB, free: 2.871 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.483e-05/0.3721, allocations: 0 / 0.5376 GB, free: 2.871 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.001029/0.3732, allocations: 0.6306 MB / 0.5382 GB, free: 2.383 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.723e-05/0.3732, allocations: 9.312 kB / 0.5382 GB, free: 2.383 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002949/0.3735, allocations: 68.64 kB / 0.5383 GB, free: 2.348 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003886/0.3739, allocations: 266.6 kB / 0.5386 GB, free: 2.109 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.357e-05/0.3739, allocations: 45.33 kB / 0.5386 GB, free: 2.086 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.385e-05/0.374, allocations: 49.41 kB / 0.5387 GB, free: 2.066 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006367/0.3746, allocations: 474.6 kB / 0.5391 GB, free: 1.719 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.678e-05/0.3746, allocations: 1.375 kB / 0.5391 GB, free: 1.719 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.103e-05/0.3747, allocations: 16.12 kB / 0.5391 GB, free: 1.707 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.275e-05/0.3747, allocations: 9.625 kB / 0.5391 GB, free: 1.707 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004903/0.3752, allocations: 245.5 kB / 0.5394 GB, free: 1.594 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00157/0.3767, allocations: 1.406 MB / 0.5407 GB, free: 380 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000509/0.3773, allocations: 243.5 kB / 0.541 GB, free: 192 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002451/0.3775, allocations: 156.3 kB / 0.5411 GB, free: 92 kB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.873e-05/0.3775, allocations: 8.109 kB / 0.5411 GB, free: 88 kB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.937e-05/0.3775, allocations: 46.61 kB / 0.5412 GB, free: 36 kB / 382.1 MB Notification: Performance of pre-optimization done (n=28): time 1.633e-06/0.3775, allocations: 0 / 0.5412 GB, free: 36 kB / 382.1 MB Notification: Performance of matching and sorting (n=28): time 0.0008311/0.3784, allocations: 341.8 kB / 0.5415 GB, free: 15.86 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001105/0.3785, allocations: 166.3 kB / 0.5417 GB, free: 15.66 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002734/0.3788, allocations: 252.4 kB / 0.5419 GB, free: 15.48 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.567e-05/0.3788, allocations: 39.2 kB / 0.5419 GB, free: 15.44 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001646/0.379, allocations: 222.5 kB / 0.5421 GB, free: 15.24 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.984e-05/0.379, allocations: 83.7 kB / 0.5422 GB, free: 15.17 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001444/0.3792, allocations: 106 kB / 0.5423 GB, free: 15.1 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001592/0.3793, allocations: 337.7 kB / 0.5426 GB, free: 14.77 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003141/0.3797, allocations: 134.3 kB / 0.5428 GB, free: 14.71 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004402/0.3801, allocations: 277.8 kB / 0.543 GB, free: 14.47 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006172/0.3807, allocations: 347.5 kB / 0.5434 GB, free: 14.22 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.497e-06/0.3807, allocations: 1.375 kB / 0.5434 GB, free: 14.22 MB / 398.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.000868/0.3816, allocations: 444.4 kB / 0.5438 GB, free: 14 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.896e-05/0.3816, allocations: 6.562 kB / 0.5438 GB, free: 14 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.079e-05/0.3816, allocations: 7.547 kB / 0.5438 GB, free: 14 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.295e-05/0.3816, allocations: 5.625 kB / 0.5438 GB, free: 14 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000257/0.3819, allocations: 65.97 kB / 0.5439 GB, free: 13.97 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.723e-05/0.3819, allocations: 12.91 kB / 0.5439 GB, free: 13.96 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002726/0.3822, allocations: 57.7 kB / 0.5439 GB, free: 13.93 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.626e-05/0.3822, allocations: 26.16 kB / 0.544 GB, free: 13.91 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.0002209/0.3824, allocations: 176.3 kB / 0.5441 GB, free: 13.76 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001071/0.3826, allocations: 32.61 kB / 0.5442 GB, free: 13.74 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.531e-05/0.3826, allocations: 33.33 kB / 0.5442 GB, free: 13.71 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.16e-06/0.3826, allocations: 2.781 kB / 0.5442 GB, free: 13.71 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.163e-05/0.3826, allocations: 5.594 kB / 0.5442 GB, free: 13.71 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.139e-06/0.3827, allocations: 5.469 kB / 0.5442 GB, free: 13.7 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001637/0.3843, allocations: 1.063 MB / 0.5453 GB, free: 12.8 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.502e-06/0.3843, allocations: 3.969 kB / 0.5453 GB, free: 12.8 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001953/0.3845, allocations: 42.5 kB / 0.5453 GB, free: 12.79 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.384e-06/0.3845, allocations: 4 kB / 0.5453 GB, free: 12.79 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.972e-05/0.3845, allocations: 10.75 kB / 0.5453 GB, free: 12.78 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.887e-06/0.3845, allocations: 12.19 kB / 0.5453 GB, free: 12.77 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.113e-06/0.3845, allocations: 8.844 kB / 0.5453 GB, free: 12.77 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008739/0.3854, allocations: 0.5295 MB / 0.5458 GB, free: 12.36 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001149/0.3855, allocations: 50.5 kB / 0.5459 GB, free: 12.33 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.069e-05/0.3856, allocations: 19.7 kB / 0.5459 GB, free: 12.32 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001966/0.3858, allocations: 21.52 kB / 0.5459 GB, free: 12.3 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.709e-05/0.3859, allocations: 37.23 kB / 0.546 GB, free: 12.28 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.999e-05/0.3859, allocations: 17.19 kB / 0.546 GB, free: 12.27 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000196/0.3861, allocations: 159.9 kB / 0.5461 GB, free: 12.16 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3861, allocations: 0 / 0.5461 GB, free: 12.16 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004484/0.3865, allocations: 99.75 kB / 0.5462 GB, free: 12.13 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.0001474/0.3867, allocations: 126.5 kB / 0.5464 GB, free: 12.02 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006758/0.3874, allocations: 306.2 kB / 0.5466 GB, free: 11.89 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.3874, allocations: 1.594 kB / 0.5467 GB, free: 11.89 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002603/0.3876, allocations: 131.8 kB / 0.5468 GB, free: 11.83 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005763/0.3882, allocations: 86.41 kB / 0.5469 GB, free: 11.79 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001287/0.3895, allocations: 0.76 MB / 0.5476 GB, free: 11.2 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002116/0.3897, allocations: 201 kB / 0.5478 GB, free: 11.06 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001093/0.3898, allocations: 35.48 kB / 0.5478 GB, free: 11.05 MB / 398.1 MB Notification: Performance of SimCode: time 3.2e-07/0.3898, allocations: 0 / 0.5478 GB, free: 11.05 MB / 398.1 MB Notification: Performance of Templates: time 0.007545/0.3974, allocations: 4.387 MB / 0.5521 GB, free: 8.715 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.720746912993491] Failed to read output from testmodel.py, exit status != 0: 0.4060726431198418 0.42029326100000003 0.045080738 Calling exit ...