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.0009734/0.0009734, allocations: 92.2 kB / 20.19 MB, free: 4.363 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.001226/0.001226, allocations: 173 kB / 23.5 MB, free: 1.055 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.022/1.022, allocations: 177.1 MB / 203.8 MB, free: 5.625 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.1054/0.1054, allocations: 24.14 MB / 284.4 MB, free: 5.328 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.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 2.003e-06/2.003e-06, allocations: 0 / 361.2 MB, free: 4.258 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.011e-05/3.211e-05, allocations: 6.312 kB / 361.2 MB, free: 4.25 MB / 330.7 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChainII): time 0.008343/0.008375, allocations: 6.563 MB / 367.8 MB, free: 13.66 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002026/0.0104, allocations: 0.997 MB / 368.7 MB, free: 12.66 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004732/0.01087, allocations: 31.75 kB / 368.8 MB, free: 12.62 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004163/0.01129, allocations: 106.9 kB / 368.9 MB, free: 12.52 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003851/0.01168, allocations: 75.25 kB / 369 MB, free: 12.45 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007312/0.01241, allocations: 239.3 kB / 369.2 MB, free: 12.21 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005742/0.01298, allocations: 0.589 MB / 369.8 MB, free: 11.62 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000331/0.01331, allocations: 201.9 kB / 370 MB, free: 11.43 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003989/0.01371, allocations: 347.2 kB / 370.3 MB, free: 11.09 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000231/0.01394, allocations: 171.4 kB / 370.5 MB, free: 10.92 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 5.9e-05/0.014, allocations: 56 kB / 370.5 MB, free: 10.86 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.253e-05/0.01409, allocations: 67.98 kB / 370.6 MB, free: 10.8 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001081/0.0142, allocations: 139.5 kB / 370.7 MB, free: 10.66 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001317/0.01433, allocations: 171.5 kB / 370.9 MB, free: 10.49 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004647/0.0148, allocations: 386.4 kB / 371.3 MB, free: 10.11 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.0148, allocations: 0 / 371.3 MB, free: 10.11 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.0148, allocations: 0 / 371.3 MB, free: 10.11 MB / 346.7 MB Notification: Performance of Transformations before backend: time 7.695e-06/0.01481, allocations: 4 kB / 371.3 MB, free: 10.11 MB / 346.7 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.0009296/0.01574, allocations: 0.8036 MB / 372.1 MB, free: 9.27 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.195e-05/0.01578, allocations: 12.75 kB / 372.1 MB, free: 9.258 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002732/0.01606, allocations: 120.5 kB / 372.2 MB, free: 9.141 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00046/0.01652, allocations: 352 kB / 372.6 MB, free: 8.773 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.61e-05/0.01656, allocations: 45.38 kB / 372.6 MB, free: 8.727 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.236e-05/0.01662, allocations: 60.38 kB / 372.7 MB, free: 8.668 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005233/0.01715, allocations: 490.3 kB / 373.2 MB, free: 8.137 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.238e-05/0.01716, allocations: 0 / 373.2 MB, free: 8.137 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.142e-05/0.0172, allocations: 20 kB / 373.2 MB, free: 8.117 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.514e-05/0.01722, allocations: 23.92 kB / 373.2 MB, free: 8.094 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00036/0.01758, allocations: 169.8 kB / 373.4 MB, free: 7.93 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002175/0.01975, allocations: 1.933 MB / 375.3 MB, free: 5.922 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005109/0.02026, allocations: 261.1 kB / 375.5 MB, free: 5.617 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001766/0.02044, allocations: 117.9 kB / 375.7 MB, free: 5.488 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.392e-05/0.02046, allocations: 8.234 kB / 375.7 MB, free: 5.48 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.738e-05/0.0205, allocations: 45.62 kB / 375.7 MB, free: 5.426 MB / 346.7 MB Notification: Performance of pre-optimization done (n=31): time 2.706e-06/0.0205, allocations: 0 / 375.7 MB, free: 5.426 MB / 346.7 MB Notification: Performance of matching and sorting (n=31): time 0.0005749/0.02108, allocations: 259.3 kB / 376 MB, free: 5.168 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001246/0.0212, allocations: 166.2 kB / 376.1 MB, free: 4.969 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00032/0.02152, allocations: 334.2 kB / 376.5 MB, free: 4.621 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.637e-05/0.02157, allocations: 41.7 kB / 376.5 MB, free: 4.574 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000188/0.02176, allocations: 307.8 kB / 376.8 MB, free: 4.266 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.349e-05/0.02184, allocations: 103.2 kB / 376.9 MB, free: 4.164 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001459/0.02199, allocations: 108 kB / 377 MB, free: 4.051 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001843/0.02217, allocations: 0.5157 MB / 377.5 MB, free: 3.523 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001862/0.02236, allocations: 73.64 kB / 377.6 MB, free: 3.453 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002661/0.02262, allocations: 252.2 kB / 377.8 MB, free: 3.141 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003858/0.02301, allocations: 291.5 kB / 378.1 MB, free: 2.801 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.21e-06/0.02301, allocations: 0 / 378.1 MB, free: 2.801 MB / 346.7 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.0005923/0.02361, allocations: 365.3 kB / 378.5 MB, free: 2.434 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.893e-05/0.02362, allocations: 8 kB / 378.5 MB, free: 2.426 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.828e-06/0.02363, allocations: 4 kB / 378.5 MB, free: 2.422 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.951e-05/0.02365, allocations: 4 kB / 378.5 MB, free: 2.418 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002095/0.02386, allocations: 71.83 kB / 378.6 MB, free: 2.348 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.17e-05/0.02388, allocations: 7.938 kB / 378.6 MB, free: 2.34 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001932/0.02407, allocations: 55.61 kB / 378.6 MB, free: 2.285 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.071e-05/0.0241, allocations: 19.94 kB / 378.6 MB, free: 2.266 MB / 346.7 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.0001831/0.02428, allocations: 209.8 kB / 378.9 MB, free: 2.051 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001124/0.02439, allocations: 39.81 kB / 378.9 MB, free: 2.012 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.404e-05/0.02447, allocations: 39.08 kB / 378.9 MB, free: 1.977 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.193e-06/0.02448, allocations: 4 kB / 378.9 MB, free: 1.973 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.176e-05/0.02449, allocations: 11.92 kB / 378.9 MB, free: 1.961 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.029e-06/0.02449, allocations: 0 / 378.9 MB, free: 1.961 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001315/0.02581, allocations: 1.175 MB / 380.1 MB, free: 0.6953 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.95e-06/0.02581, allocations: 3.984 kB / 380.1 MB, free: 0.6914 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001709/0.02598, allocations: 35.92 kB / 380.2 MB, free: 0.6562 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.203e-06/0.02599, allocations: 4 kB / 380.2 MB, free: 0.6523 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.568e-05/0.02603, allocations: 16 kB / 380.2 MB, free: 0.6367 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.738e-06/0.02604, allocations: 7.984 kB / 380.2 MB, free: 0.6289 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.386e-06/0.02604, allocations: 0 / 380.2 MB, free: 0.6289 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005765/0.02662, allocations: 493.4 kB / 380.7 MB, free: 92 kB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001124/0.02673, allocations: 55.72 kB / 380.7 MB, free: 36 kB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.639e-05/0.02678, allocations: 11.98 kB / 380.7 MB, free: 24 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001421/0.02692, allocations: 12 kB / 380.7 MB, free: 12 kB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001319/0.02705, allocations: 40.02 kB / 380.8 MB, free: 15.97 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.006e-05/0.02707, allocations: 12 kB / 380.8 MB, free: 15.96 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001678/0.02724, allocations: 211 kB / 381 MB, free: 15.75 MB / 362.7 MB Notification: Performance of sort global known variables: time 9e-08/0.02724, allocations: 0 / 381 MB, free: 15.75 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004492/0.02769, allocations: 115.6 kB / 381.1 MB, free: 15.64 MB / 362.7 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.0001384/0.02783, allocations: 132.9 kB / 381.2 MB, free: 15.5 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004552/0.02828, allocations: 235.6 kB / 381.5 MB, free: 15.27 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.02828, allocations: 0 / 381.5 MB, free: 15.27 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001566/0.02844, allocations: 107.6 kB / 381.6 MB, free: 15.16 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005689/0.02901, allocations: 100.9 kB / 381.7 MB, free: 15.06 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001336/0.03035, allocations: 0.7644 MB / 382.4 MB, free: 14.23 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.56e-05/0.03044, allocations: 113.3 kB / 382.6 MB, free: 14.09 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001864/0.03063, allocations: 55.23 kB / 382.6 MB, free: 14.04 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.358e-05/0.03072, allocations: 40.5 kB / 382.6 MB, free: 14 MB / 362.7 MB Notification: Performance of SimCode: time 1.453e-06/0.03072, allocations: 0 / 382.6 MB, free: 14 MB / 362.7 MB Notification: Performance of Templates: time 0.008992/0.03971, allocations: 4.484 MB / 387.1 MB, free: 9.625 MB / 362.7 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=240 -lv LOG_STATS > BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.0581043059937656]