Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain.conf.json
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001664/0.001664, allocations: 110 kB / 18.93 MB, free: 2.945 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002581/0.002581, allocations: 192.5 kB / 22.23 MB, free: 5.16 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.65/1.65, allocations: 225.6 MB / 251 MB, free: 13 MB / 206.1 MB
"
[Timeout remaining time 178]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/package.mo): time 0.2929/0.2929, allocations: 31.62 MB / 337.9 MB, free: 9.594 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-main/package.mo)
Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo)
Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo)
Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo)
Running command: translateModel(BusinessSimulation.Examples.SimpleProductionChain,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain")
translateModel(BusinessSimulation.Examples.SimpleProductionChain,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.00203/0.00203, allocations: 67.89 kB / 472.9 MB, free: 6.059 MB / 334.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.4233/0.4253, allocations: 59.53 MB / 0.5199 GB, free: 8.684 MB / 382.1 MB
Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChain): time 0.006397/0.4317, allocations: 5.452 MB / 0.5252 GB, free: 4.844 MB / 382.1 MB
Notification: Performance of NFInst.instExpressions: time 0.001451/0.4332, allocations: 0.6115 MB / 0.5258 GB, free: 4.395 MB / 382.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.000252/0.4334, allocations: 15.91 kB / 0.5258 GB, free: 4.387 MB / 382.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0002632/0.4337, allocations: 79.81 kB / 0.5259 GB, free: 4.344 MB / 382.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0001917/0.4339, allocations: 72.67 kB / 0.526 GB, free: 4.289 MB / 382.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0005276/0.4344, allocations: 186.6 kB / 0.5262 GB, free: 4.18 MB / 382.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0004635/0.4349, allocations: 468.6 kB / 0.5266 GB, free: 3.949 MB / 382.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0002626/0.4351, allocations: 163.6 kB / 0.5268 GB, free: 3.852 MB / 382.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0002039/0.4353, allocations: 196.9 kB / 0.527 GB, free: 3.75 MB / 382.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0002646/0.4356, allocations: 197.3 kB / 0.5271 GB, free: 3.641 MB / 382.1 MB
Notification: Performance of NFPackage.collectConstants: time 6.539e-05/0.4357, allocations: 45.19 kB / 0.5272 GB, free: 3.641 MB / 382.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.0001044/0.4358, allocations: 55.11 kB / 0.5272 GB, free: 3.637 MB / 382.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.0001081/0.4359, allocations: 106.5 kB / 0.5273 GB, free: 3.566 MB / 382.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0001806/0.4361, allocations: 207 kB / 0.5275 GB, free: 3.43 MB / 382.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0005997/0.4367, allocations: 470.4 kB / 0.528 GB, free: 3.211 MB / 382.1 MB
Notification: Performance of FrontEnd - DAE generated: time 6.893e-06/0.4367, allocations: 4.641 kB / 0.528 GB, free: 3.207 MB / 382.1 MB
Notification: Performance of FrontEnd: time 1.944e-06/0.4367, allocations: 0.9062 kB / 0.528 GB, free: 3.207 MB / 382.1 MB
Notification: Performance of Transformations before backend: time 8.225e-06/0.4367, allocations: 0 / 0.528 GB, free: 3.207 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.001107/0.4378, allocations: 0.6241 MB / 0.5286 GB, free: 2.746 MB / 382.1 MB
Notification: Performance of prepare preOptimizeDAE: time 3.179e-05/0.4378, allocations: 14.17 kB / 0.5286 GB, free: 2.742 MB / 382.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003076/0.4381, allocations: 67.33 kB / 0.5287 GB, free: 2.719 MB / 382.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003874/0.4385, allocations: 267.4 kB / 0.5289 GB, free: 2.508 MB / 382.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.172e-05/0.4385, allocations: 41.09 kB / 0.529 GB, free: 2.488 MB / 382.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 8.414e-05/0.4386, allocations: 50.91 kB / 0.529 GB, free: 2.469 MB / 382.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007256/0.4394, allocations: 418.6 kB / 0.5294 GB, free: 2.246 MB / 382.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.579e-05/0.4394, allocations: 0.7812 kB / 0.5294 GB, free: 2.246 MB / 382.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.34e-05/0.4394, allocations: 16.97 kB / 0.5294 GB, free: 2.234 MB / 382.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.533e-05/0.4394, allocations: 9.625 kB / 0.5295 GB, free: 2.234 MB / 382.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005377/0.44, allocations: 253.9 kB / 0.5297 GB, free: 2.148 MB / 382.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001782/0.4417, allocations: 1.606 MB / 0.5313 GB, free: 0.9297 MB / 382.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0005313/0.4423, allocations: 245 kB / 0.5315 GB, free: 0.7695 MB / 382.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0002681/0.4425, allocations: 155.1 kB / 0.5316 GB, free: 0.6875 MB / 382.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 1.771e-05/0.4426, allocations: 3.812 kB / 0.5316 GB, free: 0.6875 MB / 382.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.828e-05/0.4426, allocations: 37.8 kB / 0.5317 GB, free: 0.6445 MB / 382.1 MB
Notification: Performance of pre-optimization done (n=28): time 1.603e-06/0.4426, allocations: 0 / 0.5317 GB, free: 0.6445 MB / 382.1 MB
Notification: Performance of matching and sorting (n=28): time 0.0008062/0.4434, allocations: 353.9 kB / 0.532 GB, free: 0.4922 MB / 382.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 4.338e-05/0.4434, allocations: 167.2 kB / 0.5322 GB, free: 304 kB / 382.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000256/0.4437, allocations: 274.4 kB / 0.5324 GB, free: 136 kB / 382.1 MB
Notification: Performance of collectPreVariables (initialization): time 3.767e-05/0.4437, allocations: 40.25 kB / 0.5325 GB, free: 96 kB / 382.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0001787/0.4439, allocations: 217.2 kB / 0.5327 GB, free: 15.92 MB / 398.1 MB
Notification: Performance of collectInitialBindings (initialization): time 8.506e-05/0.444, allocations: 93.73 kB / 0.5328 GB, free: 15.84 MB / 398.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001565/0.4441, allocations: 100.7 kB / 0.5329 GB, free: 15.79 MB / 398.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001577/0.4443, allocations: 344 kB / 0.5332 GB, free: 15.46 MB / 398.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003463/0.4446, allocations: 133.9 kB / 0.5333 GB, free: 15.41 MB / 398.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004446/0.4451, allocations: 249.7 kB / 0.5336 GB, free: 15.24 MB / 398.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0006846/0.4458, allocations: 342.6 kB / 0.5339 GB, free: 15.01 MB / 398.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.408e-06/0.4458, allocations: 1.094 kB / 0.5339 GB, free: 15.01 MB / 398.1 MB
Notification: Performance of matching and sorting (n=60) (initialization): time 0.0009347/0.4467, allocations: 455.2 kB / 0.5343 GB, free: 14.82 MB / 398.1 MB
Notification: Performance of prepare postOptimizeDAE: time 1.791e-05/0.4467, allocations: 6.125 kB / 0.5343 GB, free: 14.82 MB / 398.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.196e-06/0.4467, allocations: 3.438 kB / 0.5343 GB, free: 14.82 MB / 398.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 2.127e-05/0.4468, allocations: 7.406 kB / 0.5343 GB, free: 14.82 MB / 398.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002684/0.447, allocations: 67.31 kB / 0.5344 GB, free: 14.8 MB / 398.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.241e-05/0.447, allocations: 6.312 kB / 0.5344 GB, free: 14.8 MB / 398.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000278/0.4473, allocations: 55.8 kB / 0.5345 GB, free: 14.77 MB / 398.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.465e-05/0.4474, allocations: 20.17 kB / 0.5345 GB, free: 14.77 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.0002158/0.4476, allocations: 189.3 kB / 0.5347 GB, free: 14.61 MB / 398.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001101/0.4477, allocations: 34.44 kB / 0.5347 GB, free: 14.59 MB / 398.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.33e-05/0.4478, allocations: 36.39 kB / 0.5347 GB, free: 14.55 MB / 398.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.562e-06/0.4478, allocations: 7.125 kB / 0.5347 GB, free: 14.55 MB / 398.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 7.474e-06/0.4478, allocations: 2.406 kB / 0.5347 GB, free: 14.55 MB / 398.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.272e-06/0.4478, allocations: 3.078 kB / 0.5347 GB, free: 14.55 MB / 398.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001773/0.4496, allocations: 1.144 MB / 0.5359 GB, free: 13.68 MB / 398.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.819e-06/0.4496, allocations: 7.938 kB / 0.5359 GB, free: 13.68 MB / 398.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002055/0.4498, allocations: 42.56 kB / 0.5359 GB, free: 13.67 MB / 398.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 6.782e-06/0.4498, allocations: 4.625 kB / 0.5359 GB, free: 13.67 MB / 398.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.941e-05/0.4498, allocations: 14.75 kB / 0.5359 GB, free: 13.66 MB / 398.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.02e-06/0.4498, allocations: 5.688 kB / 0.5359 GB, free: 13.66 MB / 398.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.691e-06/0.4498, allocations: 12.58 kB / 0.5359 GB, free: 13.66 MB / 398.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008904/0.4507, allocations: 0.5377 MB / 0.5365 GB, free: 13.27 MB / 398.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 0.0001213/0.4508, allocations: 59.28 kB / 0.5365 GB, free: 13.24 MB / 398.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.836e-05/0.4509, allocations: 12.31 kB / 0.5365 GB, free: 13.23 MB / 398.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002231/0.4511, allocations: 21.8 kB / 0.5366 GB, free: 13.23 MB / 398.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 9.399e-05/0.4512, allocations: 38.95 kB / 0.5366 GB, free: 13.21 MB / 398.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.94e-05/0.4512, allocations: 9.312 kB / 0.5366 GB, free: 13.21 MB / 398.1 MB
Notification: Performance of sorting global known variables: time 0.0002075/0.4514, allocations: 183.5 kB / 0.5368 GB, free: 13.1 MB / 398.1 MB
Notification: Performance of sort global known variables: time 9e-08/0.4514, allocations: 0 / 0.5368 GB, free: 13.1 MB / 398.1 MB
Notification: Performance of remove unused functions: time 0.0004301/0.4519, allocations: 96.02 kB / 0.5369 GB, free: 13.07 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.0001331/0.452, allocations: 120.8 kB / 0.537 GB, free: 12.97 MB / 398.1 MB
Notification: Performance of simCode: created initialization part: time 0.0007125/0.4527, allocations: 311 kB / 0.5373 GB, free: 12.87 MB / 398.1 MB
Notification: Performance of simCode: created event and clocks part: time 2.245e-06/0.4527, allocations: 0 / 0.5373 GB, free: 12.87 MB / 398.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0003067/0.453, allocations: 137 kB / 0.5374 GB, free: 12.82 MB / 398.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006027/0.4536, allocations: 102.7 kB / 0.5375 GB, free: 12.79 MB / 398.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001295/0.4549, allocations: 0.7382 MB / 0.5382 GB, free: 12.26 MB / 398.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004984/0.4554, allocations: 0.7911 MB / 0.539 GB, free: 11.56 MB / 398.1 MB
Notification: Performance of simCode: alias equations: time 0.0001979/0.4556, allocations: 55.83 kB / 0.5391 GB, free: 11.55 MB / 398.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 9.575e-05/0.4557, allocations: 36.38 kB / 0.5391 GB, free: 11.54 MB / 398.1 MB
Notification: Performance of SimCode: time 3.31e-07/0.4557, allocations: 0 / 0.5391 GB, free: 11.54 MB / 398.1 MB
Notification: Performance of Templates: time 0.009216/0.4649, allocations: 3.98 MB / 0.543 GB, free: 10.5 MB / 398.1 MB
"
[Timeout remaining time 660]
make -j1 -f BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain.makefile [Timeout 660]
(rm -f BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain.pipe ; mkfifo BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain.pipe ; head -c 1048576 < BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain.pipe >> ../files/BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain.sim & ./BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain  -abortSlowSimulation -alarm=480 -lv LOG_STATS > BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain.pipe 2>&1) [Timeout 480]
[Calling sys.exit(0), Time elapsed: 5.583564325235784]
Failed to read output from testmodel.py, exit status != 0:
0.4737605256959796 0.48843053399999997 0.048711877
Calling exit ...
<OMPython.OMCSessionZMQ object at 0x7f24124017b0>