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.0009891/0.0009891, allocations: 80.81 kB / 19.94 MB, free: 4.539 MB / 18.57 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.001212/0.001212, allocations: 181 kB / 23.36 MB, free: 1.125 MB / 18.57 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.031/1.031, allocations: 177.2 MB / 203.8 MB, free: 5.473 MB / 186.7 MB " [Timeout remaining time 179] 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.1164/0.1164, allocations: 24.15 MB / 284.4 MB, free: 5.133 MB / 266.7 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: Performance of FrontEnd - loaded program: time 1.844e-06/1.844e-06, allocations: 0 / 308.4 MB, free: 8.824 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.462e-05/2.646e-05, allocations: 3.859 kB / 308.4 MB, free: 8.82 MB / 282.7 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChain): time 0.005017/0.005043, allocations: 5.255 MB / 313.6 MB, free: 3.562 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001306/0.006349, allocations: 0.6526 MB / 314.3 MB, free: 2.914 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002095/0.006559, allocations: 14.5 kB / 314.3 MB, free: 2.902 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002009/0.00676, allocations: 75.33 kB / 314.4 MB, free: 2.828 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001843/0.006944, allocations: 83.17 kB / 314.4 MB, free: 2.746 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005043/0.007448, allocations: 188.4 kB / 314.6 MB, free: 2.562 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004559/0.007904, allocations: 478.2 kB / 315.1 MB, free: 2.098 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002232/0.008127, allocations: 161.9 kB / 315.3 MB, free: 1.938 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002868/0.008414, allocations: 296.1 kB / 315.5 MB, free: 1.648 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001741/0.008588, allocations: 143.5 kB / 315.7 MB, free: 1.508 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.471e-05/0.008633, allocations: 44 kB / 315.7 MB, free: 1.465 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.029e-05/0.008703, allocations: 48 kB / 315.8 MB, free: 1.418 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 7.847e-05/0.008782, allocations: 107.6 kB / 315.9 MB, free: 1.312 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 9.862e-05/0.00888, allocations: 135.7 kB / 316 MB, free: 1.18 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003148/0.009195, allocations: 302.8 kB / 316.3 MB, free: 0.8828 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.806e-06/0.009198, allocations: 0 / 316.3 MB, free: 0.8828 MB / 282.7 MB Notification: Performance of FrontEnd: time 8.52e-07/0.009199, allocations: 0 / 316.3 MB, free: 0.8828 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.719e-06/0.009204, allocations: 0 / 316.3 MB, free: 0.8828 MB / 282.7 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.0006072/0.009811, allocations: 0.5857 MB / 316.9 MB, free: 284 kB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.418e-05/0.009845, allocations: 8.75 kB / 316.9 MB, free: 276 kB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00019/0.01004, allocations: 84.84 kB / 317 MB, free: 192 kB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003006/0.01034, allocations: 245 kB / 317.2 MB, free: 15.92 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.758e-05/0.01037, allocations: 37.38 kB / 317.3 MB, free: 15.88 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.805e-05/0.01042, allocations: 52.38 kB / 317.3 MB, free: 15.83 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003327/0.01075, allocations: 387.6 kB / 317.7 MB, free: 15.41 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.083e-05/0.01076, allocations: 0 / 317.7 MB, free: 15.41 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.074e-05/0.01079, allocations: 16 kB / 317.7 MB, free: 15.39 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.288e-05/0.0108, allocations: 12 kB / 317.7 MB, free: 15.38 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001134/0.01091, allocations: 102.8 kB / 317.8 MB, free: 15.28 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001056/0.01197, allocations: 1.233 MB / 319 MB, free: 14 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000158/0.01213, allocations: 142.4 kB / 319.2 MB, free: 13.83 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.273e-05/0.01219, allocations: 77.73 kB / 319.3 MB, free: 13.74 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.26e-05/0.0122, allocations: 8 kB / 319.3 MB, free: 13.73 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.159e-05/0.01222, allocations: 38.56 kB / 319.3 MB, free: 13.69 MB / 298.7 MB Notification: Performance of pre-optimization done (n=25): time 1.353e-06/0.01222, allocations: 0 / 319.3 MB, free: 13.69 MB / 298.7 MB Notification: Performance of matching and sorting (n=25): time 0.0002293/0.01245, allocations: 157 kB / 319.5 MB, free: 13.53 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.816e-05/0.01251, allocations: 166.2 kB / 319.6 MB, free: 13.33 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001412/0.01265, allocations: 256.7 kB / 319.9 MB, free: 13.07 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.868e-05/0.01268, allocations: 41.7 kB / 319.9 MB, free: 13.02 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.645e-05/0.01278, allocations: 226.3 kB / 320.1 MB, free: 12.8 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.077e-05/0.01282, allocations: 75.3 kB / 320.2 MB, free: 12.73 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.642e-05/0.01291, allocations: 106.5 kB / 320.3 MB, free: 12.62 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.904e-05/0.01299, allocations: 346.8 kB / 320.7 MB, free: 12.27 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.001e-05/0.01306, allocations: 48.91 kB / 320.7 MB, free: 12.22 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001294/0.01319, allocations: 210.1 kB / 320.9 MB, free: 11.96 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001908/0.01338, allocations: 243.3 kB / 321.1 MB, free: 11.66 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/0.01339, allocations: 0 / 321.1 MB, free: 11.66 MB / 298.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0002426/0.01363, allocations: 264 kB / 321.4 MB, free: 11.4 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.495e-05/0.01365, allocations: 8 kB / 321.4 MB, free: 11.39 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.793e-06/0.01365, allocations: 4.531 kB / 321.4 MB, free: 11.39 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.65e-05/0.01367, allocations: 11.94 kB / 321.4 MB, free: 11.38 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001259/0.01379, allocations: 59.91 kB / 321.5 MB, free: 11.32 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.025e-06/0.0138, allocations: 11.88 kB / 321.5 MB, free: 11.31 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.515e-05/0.0139, allocations: 51.62 kB / 321.5 MB, free: 11.26 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.902e-05/0.01392, allocations: 15.98 kB / 321.6 MB, free: 11.24 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * 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,inventory.outflow.stopInflow,producing.cloud.massPort.stopInflow,installedBase.inflow.stopOutflow,inventory.inflow.stopInflow,producing.cloud.massPort.stopOutflow,installedBase.inflow.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,cloud1.massPort.stopInflow,cloud1.massPort.stopOutflow) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (62): * Single equations (assignments): 62 * 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.0001099/0.01403, allocations: 161.8 kB / 321.7 MB, free: 11.07 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.236e-05/0.01408, allocations: 19.98 kB / 321.7 MB, free: 11.05 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.897e-05/0.01412, allocations: 38.27 kB / 321.8 MB, free: 11.01 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.517e-06/0.01412, allocations: 3.984 kB / 321.8 MB, free: 11.01 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.01412, allocations: 4 kB / 321.8 MB, free: 11 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.732e-06/0.01413, allocations: 15.86 kB / 321.8 MB, free: 10.99 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006454/0.01478, allocations: 0.7457 MB / 322.5 MB, free: 10.18 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.305e-06/0.01478, allocations: 0 / 322.5 MB, free: 10.18 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.31e-05/0.01487, allocations: 31.92 kB / 322.6 MB, free: 10.15 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.188e-06/0.01488, allocations: 4 kB / 322.6 MB, free: 10.14 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.565e-05/0.01489, allocations: 12.31 kB / 322.6 MB, free: 10.13 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.44e-06/0.0149, allocations: 11.92 kB / 322.6 MB, free: 10.12 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.0149, allocations: 0 / 322.6 MB, free: 10.12 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002353/0.01513, allocations: 327.3 kB / 322.9 MB, free: 9.758 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.908e-05/0.01518, allocations: 31.75 kB / 323 MB, free: 9.727 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.605e-05/0.01521, allocations: 15.98 kB / 323 MB, free: 9.711 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.63e-05/0.01528, allocations: 8 kB / 323 MB, free: 9.703 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.305e-05/0.01533, allocations: 31.83 kB / 323 MB, free: 9.672 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.828e-06/0.01534, allocations: 12 kB / 323 MB, free: 9.66 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.196e-05/0.01539, allocations: 74.77 kB / 323.1 MB, free: 9.582 MB / 298.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01539, allocations: 0 / 323.1 MB, free: 9.582 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002425/0.01563, allocations: 91.78 kB / 323.2 MB, free: 9.492 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * 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.inflow.stopOutflow,producing.growing.portB.stopOutflow,inventory.outflow.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 (25): * Single equations (assignments): 25 * 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.0001037/0.01574, allocations: 102.3 kB / 323.3 MB, free: 9.387 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002125/0.01595, allocations: 194.3 kB / 323.5 MB, free: 9.195 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 8.866e-06/0.01596, allocations: 4 kB / 323.5 MB, free: 9.191 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 6.499e-05/0.01602, allocations: 70.89 kB / 323.5 MB, free: 9.121 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002594/0.01628, allocations: 75.53 kB / 323.6 MB, free: 9.051 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007003/0.01698, allocations: 0.6425 MB / 324.3 MB, free: 8.348 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.906e-05/0.01704, allocations: 97.8 kB / 324.4 MB, free: 8.234 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001095/0.01715, allocations: 43.27 kB / 324.4 MB, free: 8.188 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001349/0.01729, allocations: 119.3 kB / 324.5 MB, free: 8.07 MB / 298.7 MB Notification: Performance of SimCode: time 9.92e-07/0.01729, allocations: 0 / 324.5 MB, free: 8.07 MB / 298.7 MB Notification: Performance of Templates: time 0.005841/0.02313, allocations: 3.713 MB / 328.2 MB, free: 4.457 MB / 298.7 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=240 -lv LOG_STATS > BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 2.8601438561454415]