Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BusinessSimulation_dev_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.001574/0.001574, allocations: 79.34 kB / 19.76 MB, free: 2.031 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.001675/0.001675, allocations: 164.8 kB / 23.02 MB, free: 4.941 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.343/1.343, allocations: 177.2 MB / 203.4 MB, free: 9.254 MB / 190.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation main/package.mo): time 0.1643/0.1643, allocations: 24.13 MB / 283.9 MB, free: 9.086 MB / 270.1 MB " [Timeout remaining time 180] Using package BusinessSimulation with version 2.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation main/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_dev_BusinessSimulation.Examples.SimpleProductionChainII") translateModel(BusinessSimulation.Examples.SimpleProductionChainII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="BusinessSimulation_dev_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.002277/0.002277, allocations: 71.84 kB / 421.2 MB, free: 12.76 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2416/0.2439, allocations: 60.69 MB / 481.9 MB, free: 12.68 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChainII): time 0.008018/0.2519, allocations: 6.359 MB / 488.2 MB, free: 7.75 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002166/0.2541, allocations: 0.9953 MB / 489.2 MB, free: 6.93 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005333/0.2546, allocations: 29.59 kB / 489.2 MB, free: 6.914 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003497/0.255, allocations: 103.1 kB / 489.3 MB, free: 6.82 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003073/0.2553, allocations: 84.39 kB / 489.4 MB, free: 6.746 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006831/0.256, allocations: 229.1 kB / 489.6 MB, free: 6.555 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006943/0.2567, allocations: 0.5624 MB / 490.2 MB, free: 6.129 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003722/0.257, allocations: 204.6 kB / 490.4 MB, free: 5.926 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004626/0.2575, allocations: 362.9 kB / 490.8 MB, free: 5.57 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003041/0.2578, allocations: 210.8 kB / 491 MB, free: 5.363 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.866e-05/0.2579, allocations: 56 kB / 491 MB, free: 5.309 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001244/0.258, allocations: 68 kB / 491.1 MB, free: 5.242 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001386/0.2581, allocations: 131.6 kB / 491.2 MB, free: 5.113 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002201/0.2584, allocations: 211 kB / 491.4 MB, free: 4.906 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006616/0.259, allocations: 0.5795 MB / 492 MB, free: 4.324 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.259, allocations: 0 / 492 MB, free: 4.324 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.259, allocations: 0 / 492 MB, free: 4.324 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.027e-05/0.259, allocations: 0 / 492 MB, free: 4.324 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.001374/0.2604, allocations: 0.7273 MB / 492.7 MB, free: 3.562 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.96e-05/0.2605, allocations: 8.75 kB / 492.7 MB, free: 3.555 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000341/0.2608, allocations: 84.52 kB / 492.8 MB, free: 3.473 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006023/0.2614, allocations: 334.1 kB / 493.1 MB, free: 3.125 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.406e-05/0.2615, allocations: 53.3 kB / 493.2 MB, free: 3.074 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.094e-05/0.2615, allocations: 59.94 kB / 493.3 MB, free: 3.016 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009125/0.2625, allocations: 0.5455 MB / 493.8 MB, free: 2.43 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.423e-05/0.2625, allocations: 0 / 493.8 MB, free: 2.43 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.875e-05/0.2625, allocations: 24 kB / 493.8 MB, free: 2.406 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.828e-05/0.2625, allocations: 12 kB / 493.8 MB, free: 2.395 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006932/0.2632, allocations: 315.7 kB / 494.1 MB, free: 2.086 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002412/0.2656, allocations: 1.56 MB / 495.7 MB, free: 472 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007388/0.2664, allocations: 295.9 kB / 496 MB, free: 140 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003402/0.2667, allocations: 171.8 kB / 496.2 MB, free: 15.96 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.521e-05/0.2668, allocations: 4.234 kB / 496.2 MB, free: 15.95 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.396e-05/0.2668, allocations: 38.8 kB / 496.2 MB, free: 15.91 MB / 398.1 MB Notification: Performance of pre-optimization done (n=31): time 1.734e-06/0.2668, allocations: 0 / 496.2 MB, free: 15.91 MB / 398.1 MB Notification: Performance of matching and sorting (n=31): time 0.0009512/0.2677, allocations: 399.3 kB / 496.6 MB, free: 15.51 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001221/0.2679, allocations: 162.2 kB / 496.8 MB, free: 15.32 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003639/0.2682, allocations: 288.4 kB / 497 MB, free: 15.03 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.602e-05/0.2683, allocations: 45.64 kB / 497.1 MB, free: 14.98 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002187/0.2685, allocations: 265 kB / 497.3 MB, free: 14.71 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.862e-05/0.2686, allocations: 99.16 kB / 497.4 MB, free: 14.62 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001619/0.2688, allocations: 110.3 kB / 497.5 MB, free: 14.5 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001622/0.2689, allocations: 343.1 kB / 497.9 MB, free: 14.16 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003398/0.2693, allocations: 145.2 kB / 498 MB, free: 14.02 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004395/0.2697, allocations: 288.7 kB / 498.3 MB, free: 13.69 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000653/0.2703, allocations: 371.8 kB / 498.7 MB, free: 13.28 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-06/0.2703, allocations: 0 / 498.7 MB, free: 13.28 MB / 398.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.0008905/0.2712, allocations: 473 kB / 499.1 MB, free: 12.81 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.662e-05/0.2713, allocations: 8 kB / 499.1 MB, free: 12.8 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.001e-05/0.2713, allocations: 7.938 kB / 499.1 MB, free: 12.8 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.627e-05/0.2713, allocations: 4 kB / 499.1 MB, free: 12.79 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002815/0.2716, allocations: 76.23 kB / 499.2 MB, free: 12.72 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.152e-05/0.2716, allocations: 8 kB / 499.2 MB, free: 12.71 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002663/0.2718, allocations: 59.66 kB / 499.3 MB, free: 12.65 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.464e-05/0.2719, allocations: 16 kB / 499.3 MB, free: 12.64 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.0002244/0.2721, allocations: 202.9 kB / 499.5 MB, free: 12.43 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001105/0.2722, allocations: 31.81 kB / 499.5 MB, free: 12.4 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.236e-05/0.2723, allocations: 47.02 kB / 499.6 MB, free: 12.35 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.779e-06/0.2723, allocations: 4 kB / 499.6 MB, free: 12.35 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.2723, allocations: 0 / 499.6 MB, free: 12.35 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.228e-06/0.2723, allocations: 4 kB / 499.6 MB, free: 12.34 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001602/0.2739, allocations: 1.083 MB / 0.4889 GB, free: 11.18 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.2739, allocations: 7.875 kB / 0.4889 GB, free: 11.18 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002274/0.2741, allocations: 48.19 kB / 0.489 GB, free: 11.13 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.33e-06/0.2742, allocations: 8 kB / 0.489 GB, free: 11.12 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.635e-05/0.2742, allocations: 8 kB / 0.489 GB, free: 11.11 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.336e-06/0.2742, allocations: 7.938 kB / 0.489 GB, free: 11.11 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.2742, allocations: 4 kB / 0.489 GB, free: 11.1 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009105/0.2751, allocations: 0.5545 MB / 0.4896 GB, free: 10.5 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000121/0.2752, allocations: 55.78 kB / 0.4896 GB, free: 10.45 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.159e-05/0.2753, allocations: 8 kB / 0.4896 GB, free: 10.44 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002134/0.2755, allocations: 23.98 kB / 0.4896 GB, free: 10.42 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.36e-05/0.2756, allocations: 35.89 kB / 0.4897 GB, free: 10.38 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.766e-05/0.2756, allocations: 15.98 kB / 0.4897 GB, free: 10.37 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001994/0.2758, allocations: 187.1 kB / 0.4899 GB, free: 10.19 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2758, allocations: 0 / 0.4899 GB, free: 10.19 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004219/0.2762, allocations: 115.6 kB / 0.49 GB, free: 10.07 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.0001223/0.2763, allocations: 113.7 kB / 0.4901 GB, free: 9.953 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007273/0.2771, allocations: 342.7 kB / 0.4904 GB, free: 9.617 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.2771, allocations: 0 / 0.4904 GB, free: 9.617 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003186/0.2774, allocations: 152.9 kB / 0.4906 GB, free: 9.469 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006357/0.278, allocations: 113.8 kB / 0.4907 GB, free: 9.363 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001345/0.2794, allocations: 0.8329 MB / 0.4915 GB, free: 8.473 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000232/0.2796, allocations: 227.9 kB / 0.4917 GB, free: 8.227 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001923/0.2798, allocations: 55.25 kB / 0.4918 GB, free: 8.168 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.771e-05/0.2799, allocations: 32.5 kB / 0.4918 GB, free: 8.137 MB / 398.1 MB Notification: Performance of SimCode: time 4.51e-07/0.2799, allocations: 4 kB / 0.4918 GB, free: 8.133 MB / 398.1 MB Notification: Performance of Templates: time 0.009398/0.2893, allocations: 4.473 MB / 0.4962 GB, free: 3.754 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII.makefile [Timeout 660] (rm -f BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII.pipe ; mkfifo BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII.pipe ; head -c 1048576 < BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII.pipe >> ../files/BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII.sim & ./BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII -abortSlowSimulation -alarm=480 -s gbode -gbnls=internal -gberr=embedded -gbm=radauIIA3 -lv LOG_STATS > BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.414238824043423] Failed to read output from testmodel.py, exit status != 0: 0.29844231298193336 0.311654647 0.049620991 Calling exit ...