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.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.001833/0.001833, 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.002349/0.002349, allocations: 192 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.448/1.448, 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/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.3176/0.3176, allocations: 31.57 MB / 337.8 MB, free: 9.457 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.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_BusinessSimulation.Examples.SimpleProductionChain")
translateModel(BusinessSimulation.Examples.SimpleProductionChain,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.002056/0.002056, allocations: 67.89 kB / 472.8 MB, free: 5.93 MB / 334.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.3938/0.3958, allocations: 59.53 MB / 0.5199 GB, free: 8.777 MB / 382.1 MB
Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChain): time 0.007029/0.4029, allocations: 5.461 MB / 0.5252 GB, free: 4.926 MB / 382.1 MB
Notification: Performance of NFInst.instExpressions: time 0.001612/0.4045, allocations: 0.6046 MB / 0.5258 GB, free: 4.484 MB / 382.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0003171/0.4048, allocations: 20.69 kB / 0.5258 GB, free: 4.473 MB / 382.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0003494/0.4051, allocations: 79.27 kB / 0.5259 GB, free: 4.43 MB / 382.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0002311/0.4054, allocations: 67.83 kB / 0.5259 GB, free: 4.379 MB / 382.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0006848/0.4061, allocations: 191.8 kB / 0.5261 GB, free: 4.266 MB / 382.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0005551/0.4066, allocations: 462.9 kB / 0.5266 GB, free: 4.039 MB / 382.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0003263/0.4069, allocations: 160.2 kB / 0.5267 GB, free: 3.945 MB / 382.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0002431/0.4072, allocations: 198.2 kB / 0.5269 GB, free: 3.844 MB / 382.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.000283/0.4075, allocations: 204.9 kB / 0.5271 GB, free: 3.727 MB / 382.1 MB
Notification: Performance of NFPackage.collectConstants: time 8.626e-05/0.4076, allocations: 48 kB / 0.5272 GB, free: 3.723 MB / 382.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.0001306/0.4077, allocations: 55.3 kB / 0.5272 GB, free: 3.719 MB / 382.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.0001278/0.4078, allocations: 107.5 kB / 0.5273 GB, free: 3.648 MB / 382.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0002047/0.408, allocations: 202.9 kB / 0.5275 GB, free: 3.516 MB / 382.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0007236/0.4087, allocations: 470.1 kB / 0.528 GB, free: 3.297 MB / 382.1 MB
Notification: Performance of FrontEnd - DAE generated: time 5.63e-06/0.4088, allocations: 0 / 0.528 GB, free: 3.297 MB / 382.1 MB
Notification: Performance of FrontEnd: time 2.144e-06/0.4088, allocations: 0 / 0.528 GB, free: 3.297 MB / 382.1 MB
Notification: Performance of Transformations before backend: time 1.082e-05/0.4088, allocations: 2.094 kB / 0.528 GB, free: 3.297 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.001361/0.4101, allocations: 0.6273 MB / 0.5286 GB, free: 2.832 MB / 382.1 MB
Notification: Performance of prepare preOptimizeDAE: time 4.422e-05/0.4102, allocations: 10.64 kB / 0.5286 GB, free: 2.832 MB / 382.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003642/0.4105, allocations: 66.12 kB / 0.5286 GB, free: 2.809 MB / 382.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004589/0.411, allocations: 272 kB / 0.5289 GB, free: 2.594 MB / 382.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.423e-05/0.411, allocations: 37.38 kB / 0.5289 GB, free: 2.578 MB / 382.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 8.664e-05/0.4111, allocations: 51.5 kB / 0.529 GB, free: 2.559 MB / 382.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008695/0.412, allocations: 413.8 kB / 0.5294 GB, free: 2.34 MB / 382.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.743e-05/0.412, allocations: 0.5625 kB / 0.5294 GB, free: 2.34 MB / 382.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.243e-05/0.4121, allocations: 20 kB / 0.5294 GB, free: 2.324 MB / 382.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.203e-05/0.4121, allocations: 10.67 kB / 0.5294 GB, free: 2.324 MB / 382.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006181/0.4127, allocations: 245.9 kB / 0.5296 GB, free: 2.246 MB / 382.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002153/0.4149, allocations: 1.617 MB / 0.5312 GB, free: 1.016 MB / 382.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0006108/0.4155, allocations: 247.1 kB / 0.5315 GB, free: 0.8555 MB / 382.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0002967/0.4158, allocations: 150.7 kB / 0.5316 GB, free: 0.7773 MB / 382.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 2.09e-05/0.4158, allocations: 3.156 kB / 0.5316 GB, free: 0.7773 MB / 382.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.533e-05/0.4158, allocations: 46.61 kB / 0.5317 GB, free: 0.7266 MB / 382.1 MB
Notification: Performance of pre-optimization done (n=28): time 1.483e-06/0.4158, allocations: 0 / 0.5317 GB, free: 0.7266 MB / 382.1 MB
Notification: Performance of matching and sorting (n=28): time 0.0009163/0.4167, allocations: 346.2 kB / 0.532 GB, free: 0.582 MB / 382.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 8.348e-05/0.4168, allocations: 170.2 kB / 0.5321 GB, free: 392 kB / 382.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003429/0.4172, allocations: 273.4 kB / 0.5324 GB, free: 228 kB / 382.1 MB
Notification: Performance of collectPreVariables (initialization): time 4.979e-05/0.4172, allocations: 40.52 kB / 0.5324 GB, free: 188 kB / 382.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0001778/0.4174, allocations: 211.6 kB / 0.5326 GB, free: 8 kB / 382.1 MB
Notification: Performance of collectInitialBindings (initialization): time 0.0001382/0.4175, allocations: 90.95 kB / 0.5327 GB, free: 15.93 MB / 398.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002047/0.4177, allocations: 108.2 kB / 0.5328 GB, free: 15.87 MB / 398.1 MB
Notification: Performance of setup shared object (initialization): time 0.0002001/0.4179, allocations: 340.8 kB / 0.5332 GB, free: 15.54 MB / 398.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003913/0.4183, allocations: 139.9 kB / 0.5333 GB, free: 15.5 MB / 398.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005281/0.4188, allocations: 245.6 kB / 0.5335 GB, free: 15.32 MB / 398.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0007102/0.4196, allocations: 346.2 kB / 0.5339 GB, free: 15.1 MB / 398.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.829e-06/0.4196, allocations: 1.188 kB / 0.5339 GB, free: 15.1 MB / 398.1 MB
Notification: Performance of matching and sorting (n=60) (initialization): time 0.0009851/0.4205, allocations: 453.3 kB / 0.5343 GB, free: 14.91 MB / 398.1 MB
Notification: Performance of prepare postOptimizeDAE: time 2.386e-05/0.4206, allocations: 6.438 kB / 0.5343 GB, free: 14.91 MB / 398.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.25e-05/0.4206, allocations: 3.719 kB / 0.5343 GB, free: 14.91 MB / 398.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 2.868e-05/0.4206, allocations: 14.12 kB / 0.5343 GB, free: 14.9 MB / 398.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000281/0.4209, allocations: 67.84 kB / 0.5344 GB, free: 14.89 MB / 398.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.307e-05/0.4209, allocations: 6.297 kB / 0.5344 GB, free: 14.89 MB / 398.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002962/0.4212, allocations: 52.75 kB / 0.5344 GB, free: 14.86 MB / 398.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.705e-05/0.4212, allocations: 18.3 kB / 0.5345 GB, free: 14.86 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.0002429/0.4215, allocations: 186.1 kB / 0.5346 GB, free: 14.7 MB / 398.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001128/0.4216, allocations: 30.34 kB / 0.5347 GB, free: 14.68 MB / 398.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.612e-05/0.4217, allocations: 41.14 kB / 0.5347 GB, free: 14.64 MB / 398.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.047e-06/0.4217, allocations: 6.625 kB / 0.5347 GB, free: 14.64 MB / 398.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 9.859e-06/0.4217, allocations: 2.203 kB / 0.5347 GB, free: 14.64 MB / 398.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.981e-06/0.4217, allocations: 2.516 kB / 0.5347 GB, free: 14.64 MB / 398.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001861/0.4236, allocations: 1.151 MB / 0.5358 GB, free: 13.77 MB / 398.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.472e-06/0.4236, allocations: 7.656 kB / 0.5358 GB, free: 13.77 MB / 398.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002072/0.4238, allocations: 37.42 kB / 0.5359 GB, free: 13.76 MB / 398.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 8.135e-06/0.4238, allocations: 4.391 kB / 0.5359 GB, free: 13.76 MB / 398.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.158e-05/0.4238, allocations: 15.5 kB / 0.5359 GB, free: 13.75 MB / 398.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.424e-06/0.4238, allocations: 5.703 kB / 0.5359 GB, free: 13.75 MB / 398.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.591e-06/0.4238, allocations: 4.578 kB / 0.5359 GB, free: 13.75 MB / 398.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009123/0.4247, allocations: 0.5376 MB / 0.5364 GB, free: 13.37 MB / 398.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 0.0001326/0.4249, allocations: 63 kB / 0.5365 GB, free: 13.33 MB / 398.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.251e-05/0.4249, allocations: 11.84 kB / 0.5365 GB, free: 13.33 MB / 398.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002139/0.4251, allocations: 21.72 kB / 0.5365 GB, free: 13.32 MB / 398.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001034/0.4252, allocations: 43.47 kB / 0.5366 GB, free: 13.3 MB / 398.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.06e-05/0.4253, allocations: 10.09 kB / 0.5366 GB, free: 13.3 MB / 398.1 MB
Notification: Performance of sorting global known variables: time 0.0002225/0.4255, allocations: 177.8 kB / 0.5367 GB, free: 13.2 MB / 398.1 MB
Notification: Performance of sort global known variables: time 1e-07/0.4255, allocations: 0 / 0.5367 GB, free: 13.2 MB / 398.1 MB
Notification: Performance of remove unused functions: time 0.0004976/0.426, allocations: 96.48 kB / 0.5368 GB, free: 13.17 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.000173/0.4262, allocations: 126.9 kB / 0.537 GB, free: 13.06 MB / 398.1 MB
Notification: Performance of simCode: created initialization part: time 0.0008512/0.427, allocations: 308.1 kB / 0.5372 GB, free: 12.96 MB / 398.1 MB
Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.427, allocations: 0 / 0.5372 GB, free: 12.96 MB / 398.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0003598/0.4274, allocations: 144.2 kB / 0.5374 GB, free: 12.91 MB / 398.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006622/0.428, allocations: 87.39 kB / 0.5375 GB, free: 12.88 MB / 398.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001592/0.4296, allocations: 0.7337 MB / 0.5382 GB, free: 12.36 MB / 398.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005329/0.4302, allocations: 0.7924 MB / 0.539 GB, free: 11.66 MB / 398.1 MB
Notification: Performance of simCode: alias equations: time 0.0002285/0.4304, allocations: 51.7 kB / 0.539 GB, free: 11.66 MB / 398.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001042/0.4305, allocations: 32.48 kB / 0.539 GB, free: 11.65 MB / 398.1 MB
Notification: Performance of SimCode: time 7.21e-07/0.4305, allocations: 0 / 0.539 GB, free: 11.65 MB / 398.1 MB
Notification: Performance of Templates: time 0.01054/0.441, allocations: 3.991 MB / 0.5429 GB, free: 10.59 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: 5.381082340143621]
Failed to read output from testmodel.py, exit status != 0:
0.450110724195838 0.46598782800000005 0.053760503
Calling exit ...
<OMPython.OMCSessionZMQ object at 0x7fe4b273d7b0>