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.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.001406/0.001406, allocations: 102.1 kB / 19.7 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.001775/0.001775, allocations: 222.6 kB / 23.01 MB, free: 4.609 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.475/1.475, allocations: 230.6 MB / 256.8 MB, free: 8.051 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.1773/0.1773, allocations: 31.57 MB / 344.8 MB, free: 4 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.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: 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.002275/0.002275, allocations: 67.89 kB / 482.1 MB, free: 15.27 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3983/0.4006, allocations: 60.71 MB / 0.5301 GB, free: 7.891 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChainII): time 0.008298/0.4089, allocations: 6.938 MB / 0.5368 GB, free: 2.988 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003122/0.412, allocations: 1.011 MB / 0.5378 GB, free: 2.238 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007235/0.4127, allocations: 29.72 kB / 0.5379 GB, free: 2.223 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004223/0.4131, allocations: 107.6 kB / 0.538 GB, free: 2.16 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002725/0.4134, allocations: 77.27 kB / 0.538 GB, free: 2.102 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00083/0.4142, allocations: 238.2 kB / 0.5383 GB, free: 1.957 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006921/0.4149, allocations: 0.5666 MB / 0.5388 GB, free: 1.664 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004095/0.4153, allocations: 220.6 kB / 0.539 GB, free: 1.539 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002868/0.4156, allocations: 232.5 kB / 0.5392 GB, free: 1.418 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003275/0.4159, allocations: 242.1 kB / 0.5395 GB, free: 1.27 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.289e-05/0.416, allocations: 60.69 kB / 0.5395 GB, free: 1.266 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001487/0.4162, allocations: 70.39 kB / 0.5396 GB, free: 1.258 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001417/0.4163, allocations: 127.6 kB / 0.5397 GB, free: 1.152 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002431/0.4166, allocations: 260.4 kB / 0.54 GB, free: 0.957 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007917/0.4174, allocations: 0.5755 MB / 0.5405 GB, free: 0.5078 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.553e-06/0.4174, allocations: 0 / 0.5405 GB, free: 0.5078 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.866e-06/0.4174, allocations: 4 kB / 0.5405 GB, free: 0.5039 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.341e-05/0.4174, allocations: 1.75 kB / 0.5405 GB, free: 0.5039 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.001586/0.419, allocations: 0.7211 MB / 0.5412 GB, free: 15.91 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.306e-05/0.419, allocations: 10.81 kB / 0.5413 GB, free: 15.91 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004032/0.4194, allocations: 78.28 kB / 0.5413 GB, free: 15.87 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007323/0.4202, allocations: 341.6 kB / 0.5417 GB, free: 15.59 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.768e-05/0.4203, allocations: 45.72 kB / 0.5417 GB, free: 15.57 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001087/0.4204, allocations: 62.25 kB / 0.5418 GB, free: 15.54 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009628/0.4213, allocations: 0.489 MB / 0.5422 GB, free: 15.22 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.838e-05/0.4213, allocations: 0 / 0.5422 GB, free: 15.22 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.915e-05/0.4214, allocations: 25.75 kB / 0.5423 GB, free: 15.2 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.769e-05/0.4214, allocations: 13.16 kB / 0.5423 GB, free: 15.2 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007168/0.4221, allocations: 308 kB / 0.5426 GB, free: 15.05 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002729/0.4249, allocations: 1.816 MB / 0.5443 GB, free: 13.47 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008187/0.4257, allocations: 303.5 kB / 0.5446 GB, free: 13.25 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003526/0.426, allocations: 166.5 kB / 0.5448 GB, free: 13.16 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.356e-05/0.4261, allocations: 8.188 kB / 0.5448 GB, free: 13.15 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.894e-05/0.4261, allocations: 49.7 kB / 0.5448 GB, free: 13.1 MB / 398.1 MB Notification: Performance of pre-optimization done (n=31): time 2.184e-06/0.4261, allocations: 0 / 0.5448 GB, free: 13.1 MB / 398.1 MB Notification: Performance of matching and sorting (n=31): time 0.00105/0.4272, allocations: 388 kB / 0.5452 GB, free: 12.9 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001534/0.4273, allocations: 162.7 kB / 0.5454 GB, free: 12.71 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004614/0.4278, allocations: 323 kB / 0.5457 GB, free: 12.49 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.491e-05/0.4278, allocations: 39.77 kB / 0.5457 GB, free: 12.45 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002505/0.4281, allocations: 256.4 kB / 0.546 GB, free: 12.23 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001135/0.4282, allocations: 105.4 kB / 0.5461 GB, free: 12.14 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001889/0.4284, allocations: 98.98 kB / 0.5462 GB, free: 12.07 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002039/0.4286, allocations: 346.9 kB / 0.5465 GB, free: 11.73 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003549/0.429, allocations: 149 kB / 0.5466 GB, free: 11.66 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004579/0.4294, allocations: 258.8 kB / 0.5469 GB, free: 11.45 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007114/0.4301, allocations: 368.2 kB / 0.5472 GB, free: 11.2 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.416e-06/0.4301, allocations: 0 / 0.5472 GB, free: 11.2 MB / 398.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.0009823/0.4311, allocations: 482.1 kB / 0.5477 GB, free: 10.95 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.134e-05/0.4311, allocations: 5.844 kB / 0.5477 GB, free: 10.95 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.929e-06/0.4311, allocations: 2.688 kB / 0.5477 GB, free: 10.95 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.627e-05/0.4312, allocations: 9.469 kB / 0.5477 GB, free: 10.95 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000296/0.4315, allocations: 75.89 kB / 0.5478 GB, free: 10.92 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.416e-05/0.4315, allocations: 5.562 kB / 0.5478 GB, free: 10.92 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003126/0.4318, allocations: 62.11 kB / 0.5478 GB, free: 10.88 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.916e-05/0.4318, allocations: 18.16 kB / 0.5479 GB, free: 10.88 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.0002819/0.4321, allocations: 205.7 kB / 0.548 GB, free: 10.7 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001179/0.4322, allocations: 34.89 kB / 0.5481 GB, free: 10.68 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.867e-05/0.4323, allocations: 44.73 kB / 0.5481 GB, free: 10.64 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.17e-05/0.4323, allocations: 12.19 kB / 0.5481 GB, free: 10.64 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.16e-05/0.4323, allocations: 1.406 kB / 0.5481 GB, free: 10.64 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.317e-06/0.4324, allocations: 5.203 kB / 0.5481 GB, free: 10.63 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001886/0.4342, allocations: 1.179 MB / 0.5493 GB, free: 9.641 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.33e-06/0.4342, allocations: 3.094 kB / 0.5493 GB, free: 9.641 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00022/0.4345, allocations: 41.06 kB / 0.5493 GB, free: 9.629 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.143e-06/0.4345, allocations: 8.469 kB / 0.5493 GB, free: 9.625 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.99e-05/0.4345, allocations: 13.17 kB / 0.5494 GB, free: 9.617 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.548e-06/0.4345, allocations: 3.312 kB / 0.5494 GB, free: 9.617 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/0.4345, allocations: 6.562 kB / 0.5494 GB, free: 9.613 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009855/0.4355, allocations: 0.5647 MB / 0.5499 GB, free: 9.203 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001378/0.4356, allocations: 63.8 kB / 0.55 GB, free: 9.156 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.701e-05/0.4357, allocations: 18 kB / 0.55 GB, free: 9.145 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002037/0.4359, allocations: 25.05 kB / 0.55 GB, free: 9.129 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001079/0.436, allocations: 38.55 kB / 0.5501 GB, free: 9.102 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.142e-05/0.436, allocations: 8.5 kB / 0.5501 GB, free: 9.102 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000273/0.4363, allocations: 210.6 kB / 0.5503 GB, free: 8.965 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4363, allocations: 1.125 kB / 0.5503 GB, free: 8.965 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004818/0.4368, allocations: 111.2 kB / 0.5504 GB, free: 8.93 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.000176/0.437, allocations: 136.8 kB / 0.5505 GB, free: 8.809 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007987/0.4378, allocations: 333.2 kB / 0.5508 GB, free: 8.664 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.466e-06/0.4378, allocations: 1.219 kB / 0.5508 GB, free: 8.664 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003287/0.4381, allocations: 142.1 kB / 0.551 GB, free: 8.602 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006743/0.4388, allocations: 103.7 kB / 0.5511 GB, free: 8.551 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001637/0.4404, allocations: 0.8554 MB / 0.5519 GB, free: 7.914 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005474/0.4409, allocations: 0.8275 MB / 0.5527 GB, free: 7.152 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001248/0.4411, allocations: 40.42 kB / 0.5527 GB, free: 7.141 MB / 398.1 MB Notification: Performance of SimCode: time 6.41e-07/0.4411, allocations: 0 / 0.5527 GB, free: 7.141 MB / 398.1 MB Notification: Performance of Templates: time 0.01123/0.4523, allocations: 5.266 MB / 0.5579 GB, free: 4.051 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: 7.9364770299289376] Failed to read output from testmodel.py, exit status != 0: 0.4621977999340743 0.47669166399999996 0.056028890000000005 Calling exit ...