Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII.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.001287/0.001287, allocations: 113.9 kB / 18.94 MB, free: 2.789 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.001312/0.001312, allocations: 190.3 kB / 22.23 MB, free: 5.223 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.426/1.426, allocations: 225.6 MB / 251 MB, free: 13.02 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.1758/0.1758, allocations: 31.57 MB / 337.8 MB, free: 9.461 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.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.SimpleProductionChainII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII")
translateModel(BusinessSimulation.Examples.SimpleProductionChainII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.002057/0.002057, allocations: 67.89 kB / 472.8 MB, free: 5.961 MB / 334.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.3687/0.3708, allocations: 59.53 MB / 0.5199 GB, free: 8.824 MB / 382.1 MB
Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChainII): time 0.007/0.3778, allocations: 6.891 MB / 0.5266 GB, free: 3.957 MB / 382.1 MB
Notification: Performance of NFInst.instExpressions: time 0.002431/0.3802, allocations: 1.003 MB / 0.5276 GB, free: 3.215 MB / 382.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0004661/0.3807, allocations: 33.91 kB / 0.5276 GB, free: 3.195 MB / 382.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.000373/0.381, allocations: 103.6 kB / 0.5277 GB, free: 3.137 MB / 382.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0002455/0.3813, allocations: 80.62 kB / 0.5278 GB, free: 3.074 MB / 382.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0007036/0.382, allocations: 239.3 kB / 0.528 GB, free: 2.93 MB / 382.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0006391/0.3826, allocations: 0.573 MB / 0.5286 GB, free: 2.633 MB / 382.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0003971/0.383, allocations: 224.7 kB / 0.5288 GB, free: 2.504 MB / 382.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0002989/0.3833, allocations: 231.7 kB / 0.529 GB, free: 2.383 MB / 382.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0002731/0.3836, allocations: 237.9 kB / 0.5292 GB, free: 2.246 MB / 382.1 MB
Notification: Performance of NFPackage.collectConstants: time 9.49e-05/0.3837, allocations: 56.12 kB / 0.5293 GB, free: 2.246 MB / 382.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.0001324/0.3838, allocations: 72.33 kB / 0.5294 GB, free: 2.238 MB / 382.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.0001392/0.384, allocations: 132.3 kB / 0.5295 GB, free: 2.148 MB / 382.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.000208/0.3842, allocations: 265 kB / 0.5297 GB, free: 1.965 MB / 382.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0007381/0.3849, allocations: 0.5721 MB / 0.5303 GB, free: 1.691 MB / 382.1 MB
Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.3849, allocations: 0 / 0.5303 GB, free: 1.691 MB / 382.1 MB
Notification: Performance of FrontEnd: time 1.172e-06/0.3849, allocations: 4 kB / 0.5303 GB, free: 1.688 MB / 382.1 MB
Notification: Performance of Transformations before backend: time 1.046e-05/0.3849, allocations: 0 / 0.5303 GB, free: 1.688 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: 125
 * Number of variables: 125
Notification: Performance of Generate backend data structure: time 0.001267/0.3862, allocations: 0.728 MB / 0.531 GB, free: 1.16 MB / 382.1 MB
Notification: Performance of prepare preOptimizeDAE: time 3.901e-05/0.3862, allocations: 9.953 kB / 0.531 GB, free: 1.16 MB / 382.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003269/0.3865, allocations: 80.59 kB / 0.5311 GB, free: 1.129 MB / 382.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005557/0.3871, allocations: 339.9 kB / 0.5314 GB, free: 0.8828 MB / 382.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.44e-05/0.3871, allocations: 44.66 kB / 0.5315 GB, free: 0.8633 MB / 382.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 8.477e-05/0.3872, allocations: 62.44 kB / 0.5315 GB, free: 0.8398 MB / 382.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008506/0.3881, allocations: 0.4893 MB / 0.532 GB, free: 0.5898 MB / 382.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.646e-05/0.3881, allocations: 1.094 kB / 0.532 GB, free: 0.5898 MB / 382.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.127e-05/0.3881, allocations: 21.22 kB / 0.532 GB, free: 0.5742 MB / 382.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.423e-05/0.3882, allocations: 24.61 kB / 0.532 GB, free: 0.5625 MB / 382.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006998/0.3889, allocations: 308.3 kB / 0.5323 GB, free: 472 kB / 382.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002729/0.3916, allocations: 1.813 MB / 0.5341 GB, free: 15.14 MB / 398.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0007746/0.3924, allocations: 289.1 kB / 0.5344 GB, free: 14.96 MB / 398.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0003875/0.3927, allocations: 172 kB / 0.5345 GB, free: 14.88 MB / 398.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 2.329e-05/0.3928, allocations: 4.266 kB / 0.5345 GB, free: 14.88 MB / 398.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.801e-05/0.3928, allocations: 46.86 kB / 0.5346 GB, free: 14.82 MB / 398.1 MB
Notification: Performance of pre-optimization done (n=31): time 4.468e-06/0.3928, allocations: 3.984 kB / 0.5346 GB, free: 14.82 MB / 398.1 MB
Notification: Performance of matching and sorting (n=31): time 0.001002/0.3938, allocations: 381.1 kB / 0.535 GB, free: 14.67 MB / 398.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 0.00012/0.3939, allocations: 158.8 kB / 0.5351 GB, free: 14.48 MB / 398.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004297/0.3944, allocations: 322.6 kB / 0.5354 GB, free: 14.3 MB / 398.1 MB
Notification: Performance of collectPreVariables (initialization): time 6.592e-05/0.3944, allocations: 40.14 kB / 0.5355 GB, free: 14.27 MB / 398.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.000243/0.3947, allocations: 260 kB / 0.5357 GB, free: 14.06 MB / 398.1 MB
Notification: Performance of collectInitialBindings (initialization): time 0.0001143/0.3948, allocations: 104.1 kB / 0.5358 GB, free: 13.98 MB / 398.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001742/0.395, allocations: 103 kB / 0.5359 GB, free: 13.92 MB / 398.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001964/0.3952, allocations: 351.9 kB / 0.5362 GB, free: 13.59 MB / 398.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003758/0.3955, allocations: 149.2 kB / 0.5364 GB, free: 13.54 MB / 398.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.000498/0.396, allocations: 261.5 kB / 0.5366 GB, free: 13.36 MB / 398.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0007042/0.3967, allocations: 365.9 kB / 0.537 GB, free: 13.12 MB / 398.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.318e-06/0.3967, allocations: 1.281 kB / 0.537 GB, free: 13.12 MB / 398.1 MB
Notification: Performance of matching and sorting (n=63) (initialization): time 0.000999/0.3977, allocations: 481.1 kB / 0.5374 GB, free: 12.92 MB / 398.1 MB
Notification: Performance of prepare postOptimizeDAE: time 2.115e-05/0.3978, allocations: 11 kB / 0.5374 GB, free: 12.92 MB / 398.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.204e-05/0.3978, allocations: 6.781 kB / 0.5375 GB, free: 12.91 MB / 398.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 2.051e-05/0.3978, allocations: 7.688 kB / 0.5375 GB, free: 12.91 MB / 398.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003045/0.3981, allocations: 69 kB / 0.5375 GB, free: 12.9 MB / 398.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.336e-05/0.3981, allocations: 10.2 kB / 0.5375 GB, free: 12.9 MB / 398.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003346/0.3984, allocations: 61.94 kB / 0.5376 GB, free: 12.86 MB / 398.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.13e-05/0.3985, allocations: 20.11 kB / 0.5376 GB, free: 12.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 (63):
 * Single equations (assignments): 63
 * 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.0002845/0.3988, allocations: 194.6 kB / 0.5378 GB, free: 12.7 MB / 398.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001263/0.3989, allocations: 39.17 kB / 0.5378 GB, free: 12.67 MB / 398.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001122/0.399, allocations: 49.48 kB / 0.5379 GB, free: 12.64 MB / 398.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.55e-06/0.399, allocations: 4.844 kB / 0.5379 GB, free: 12.64 MB / 398.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 1.006e-05/0.399, allocations: 5.469 kB / 0.5379 GB, free: 12.63 MB / 398.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.813e-06/0.399, allocations: 2.844 kB / 0.5379 GB, free: 12.63 MB / 398.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001989/0.401, allocations: 1.181 MB / 0.5391 GB, free: 11.78 MB / 398.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.41e-06/0.401, allocations: 2.875 kB / 0.5391 GB, free: 11.78 MB / 398.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002337/0.4013, allocations: 41.56 kB / 0.5391 GB, free: 11.77 MB / 398.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 6.332e-06/0.4013, allocations: 3.625 kB / 0.5391 GB, free: 11.77 MB / 398.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.148e-05/0.4013, allocations: 11.36 kB / 0.5391 GB, free: 11.77 MB / 398.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.396e-06/0.4013, allocations: 7.594 kB / 0.5391 GB, free: 11.77 MB / 398.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.4013, allocations: 14.66 kB / 0.5391 GB, free: 11.75 MB / 398.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00101/0.4023, allocations: 0.5536 MB / 0.5397 GB, free: 11.39 MB / 398.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 0.0001561/0.4025, allocations: 64.55 kB / 0.5397 GB, free: 11.36 MB / 398.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.515e-05/0.4025, allocations: 11.12 kB / 0.5397 GB, free: 11.35 MB / 398.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000223/0.4028, allocations: 26.11 kB / 0.5398 GB, free: 11.34 MB / 398.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 9.955e-05/0.4029, allocations: 36.53 kB / 0.5398 GB, free: 11.33 MB / 398.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.166e-05/0.4029, allocations: 9.328 kB / 0.5398 GB, free: 11.33 MB / 398.1 MB
Notification: Performance of sorting global known variables: time 0.0002804/0.4032, allocations: 209.7 kB / 0.54 GB, free: 11.21 MB / 398.1 MB
Notification: Performance of sort global known variables: time 1e-07/0.4032, allocations: 0 / 0.54 GB, free: 11.21 MB / 398.1 MB
Notification: Performance of remove unused functions: time 0.0004955/0.4036, allocations: 108.4 kB / 0.5401 GB, free: 11.18 MB / 398.1 MB
Notification: Model statistics after passing the back-end for simulation:
 * Number of independent subsystems: 10
 * 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,producing.growing.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)
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for simulation (31):
 * Single equations (assignments): 31
 * 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.0001468/0.4038, allocations: 127.3 kB / 0.5402 GB, free: 11.07 MB / 398.1 MB
Notification: Performance of simCode: created initialization part: time 0.0008225/0.4046, allocations: 340.3 kB / 0.5406 GB, free: 10.96 MB / 398.1 MB
Notification: Performance of simCode: created event and clocks part: time 3.848e-06/0.4046, allocations: 1.344 kB / 0.5406 GB, free: 10.96 MB / 398.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0003529/0.405, allocations: 149.2 kB / 0.5407 GB, free: 10.91 MB / 398.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006624/0.4056, allocations: 95.72 kB / 0.5408 GB, free: 10.88 MB / 398.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001657/0.4073, allocations: 0.8331 MB / 0.5416 GB, free: 10.32 MB / 398.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005592/0.4079, allocations: 0.8295 MB / 0.5424 GB, free: 9.617 MB / 398.1 MB
Notification: Performance of simCode: alias equations: time 0.0002528/0.4081, allocations: 62.61 kB / 0.5425 GB, free: 9.602 MB / 398.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001093/0.4082, allocations: 35.39 kB / 0.5425 GB, free: 9.594 MB / 398.1 MB
Notification: Performance of SimCode: time 6.11e-07/0.4082, allocations: 4 kB / 0.5425 GB, free: 9.59 MB / 398.1 MB
Notification: Performance of Templates: time 0.01099/0.4192, allocations: 4.586 MB / 0.547 GB, free: 7.82 MB / 398.1 MB
"
[Timeout remaining time 660]
make -j1 -f BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII.makefile [Timeout 660]
(rm -f BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII.pipe ; mkfifo BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII.pipe ; head -c 1048576 < BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII.pipe >> ../files/BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII.sim & ./BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII  -abortSlowSimulation -alarm=480 -lv LOG_STATS > BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII.pipe 2>&1) [Timeout 480]
[Calling sys.exit(0), Time elapsed: 5.128231544047594]
Failed to read output from testmodel.py, exit status != 0:
0.42845131549984217 0.44378630500000005 0.055473937
Calling exit ...
<OMPython.OMCSessionZMQ object at 0x7fe85e6bd7b0>