Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BusinessSimulation_dev_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.001654/0.001654, allocations: 80.59 kB / 19.76 MB, free: 1.898 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.001733/0.001733, allocations: 161.7 kB / 23.01 MB, free: 4.574 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.344/1.344, allocations: 177.2 MB / 203.4 MB, free: 9.27 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.2404/0.2404, allocations: 24.14 MB / 283.9 MB, free: 9.113 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.SimpleProductionChain,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain") translateModel(BusinessSimulation.Examples.SimpleProductionChain,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain") [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.002225/0.002225, allocations: 67.91 kB / 421.2 MB, free: 12.77 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2427/0.2449, allocations: 60.69 MB / 481.8 MB, free: 12.68 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChain): time 0.006299/0.2512, allocations: 5.072 MB / 486.9 MB, free: 8.746 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001141/0.2523, allocations: 0.6182 MB / 487.5 MB, free: 8.234 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001734/0.2525, allocations: 11.94 kB / 487.5 MB, free: 8.23 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000236/0.2527, allocations: 82.17 kB / 487.6 MB, free: 8.156 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002/0.2529, allocations: 75.84 kB / 487.7 MB, free: 8.09 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005417/0.2535, allocations: 181.3 kB / 487.9 MB, free: 7.941 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005397/0.254, allocations: 464.4 kB / 488.3 MB, free: 7.66 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002823/0.2543, allocations: 146 kB / 488.5 MB, free: 7.562 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003453/0.2547, allocations: 301 kB / 488.8 MB, free: 7.359 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002459/0.2549, allocations: 169.7 kB / 488.9 MB, free: 7.238 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.657e-05/0.255, allocations: 49.31 kB / 489 MB, free: 7.234 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.991e-05/0.2551, allocations: 49.84 kB / 489 MB, free: 7.234 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001206/0.2552, allocations: 117.2 kB / 489.1 MB, free: 7.137 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001749/0.2554, allocations: 171 kB / 489.3 MB, free: 7.012 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005197/0.2559, allocations: 466.1 kB / 489.8 MB, free: 6.555 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.2559, allocations: 0 / 489.8 MB, free: 6.555 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.2559, allocations: 0 / 489.8 MB, free: 6.555 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.893e-06/0.2559, allocations: 0 / 489.8 MB, free: 6.555 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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.001136/0.257, allocations: 0.6341 MB / 490.4 MB, free: 5.891 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.331e-05/0.2571, allocations: 8.75 kB / 490.4 MB, free: 5.883 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003051/0.2574, allocations: 64.62 kB / 490.5 MB, free: 5.82 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004483/0.2578, allocations: 269.5 kB / 490.7 MB, free: 5.531 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.287e-05/0.2579, allocations: 41.38 kB / 490.8 MB, free: 5.492 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.21e-05/0.2579, allocations: 59.91 kB / 490.8 MB, free: 5.434 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007409/0.2587, allocations: 462.7 kB / 491.3 MB, free: 4.941 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.176e-05/0.2587, allocations: 0 / 491.3 MB, free: 4.941 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.651e-05/0.2587, allocations: 20 kB / 491.3 MB, free: 4.922 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.939e-06/0.2587, allocations: 8 kB / 491.3 MB, free: 4.914 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005449/0.2593, allocations: 247.7 kB / 491.6 MB, free: 4.672 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001961/0.2612, allocations: 1.405 MB / 493 MB, free: 3.207 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005638/0.2618, allocations: 246.3 kB / 493.2 MB, free: 2.93 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002801/0.2621, allocations: 155.3 kB / 493.4 MB, free: 2.766 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.562e-05/0.2621, allocations: 4 kB / 493.4 MB, free: 2.762 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.255e-05/0.2621, allocations: 46.48 kB / 493.4 MB, free: 2.707 MB / 382.1 MB Notification: Performance of pre-optimization done (n=28): time 1.543e-06/0.2621, allocations: 0 / 493.4 MB, free: 2.707 MB / 382.1 MB Notification: Performance of matching and sorting (n=28): time 0.0008019/0.2629, allocations: 345.9 kB / 493.7 MB, free: 2.363 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.086e-05/0.263, allocations: 158.2 kB / 493.9 MB, free: 2.172 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002757/0.2633, allocations: 257.7 kB / 494.1 MB, free: 1.91 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.404e-05/0.2634, allocations: 37.7 kB / 494.2 MB, free: 1.867 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001615/0.2635, allocations: 224.5 kB / 494.4 MB, free: 1.645 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.603e-05/0.2636, allocations: 83.33 kB / 494.5 MB, free: 1.562 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001476/0.2637, allocations: 102.1 kB / 494.6 MB, free: 1.457 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001532/0.2639, allocations: 342.8 kB / 494.9 MB, free: 1.113 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003163/0.2642, allocations: 137 kB / 495.1 MB, free: 0.9805 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004113/0.2646, allocations: 274.9 kB / 495.3 MB, free: 0.6602 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005863/0.2652, allocations: 350.7 kB / 495.7 MB, free: 280 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/0.2652, allocations: 0 / 495.7 MB, free: 280 kB / 382.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.000857/0.2661, allocations: 449.8 kB / 496.1 MB, free: 15.82 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.391e-05/0.2661, allocations: 4 kB / 496.1 MB, free: 15.82 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.566e-06/0.2661, allocations: 4 kB / 496.1 MB, free: 15.82 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.811e-05/0.2661, allocations: 8 kB / 496.1 MB, free: 15.81 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002492/0.2664, allocations: 63.83 kB / 496.2 MB, free: 15.75 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.433e-05/0.2664, allocations: 11.88 kB / 496.2 MB, free: 15.73 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002503/0.2666, allocations: 60 kB / 496.3 MB, free: 15.68 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.384e-05/0.2667, allocations: 15.98 kB / 496.3 MB, free: 15.66 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 (60): * Single equations (assignments): 60 * 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.0001948/0.2668, allocations: 183 kB / 496.4 MB, free: 15.47 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001016/0.267, allocations: 27.81 kB / 496.5 MB, free: 15.45 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.708e-05/0.267, allocations: 38.2 kB / 496.5 MB, free: 15.41 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.267, allocations: 0 / 496.5 MB, free: 15.41 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.343e-06/0.267, allocations: 7.938 kB / 496.5 MB, free: 15.4 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.478e-06/0.267, allocations: 0 / 496.5 MB, free: 15.4 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001536/0.2686, allocations: 1.074 MB / 497.6 MB, free: 14.24 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.412e-06/0.2686, allocations: 4 kB / 497.6 MB, free: 14.24 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002014/0.2688, allocations: 39.91 kB / 497.6 MB, free: 14.2 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.56e-06/0.2688, allocations: 8.406 kB / 497.6 MB, free: 14.19 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.66e-05/0.2688, allocations: 12 kB / 497.7 MB, free: 14.18 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.915e-06/0.2688, allocations: 7.938 kB / 497.7 MB, free: 14.17 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.17e-06/0.2688, allocations: 7.938 kB / 497.7 MB, free: 14.16 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008382/0.2697, allocations: 0.5343 MB / 498.2 MB, free: 13.57 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001102/0.2698, allocations: 51.78 kB / 498.3 MB, free: 13.52 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.334e-05/0.2698, allocations: 15.94 kB / 498.3 MB, free: 13.51 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002786/0.2701, allocations: 19.98 kB / 498.3 MB, free: 13.49 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.002e-05/0.2702, allocations: 39.89 kB / 498.3 MB, free: 13.45 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.965e-05/0.2702, allocations: 12 kB / 498.3 MB, free: 13.44 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001672/0.2704, allocations: 161.2 kB / 498.5 MB, free: 13.28 MB / 398.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.2704, allocations: 0 / 498.5 MB, free: 13.28 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004216/0.2708, allocations: 99.72 kB / 498.6 MB, free: 13.18 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * 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,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 (28): * Single equations (assignments): 28 * 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.0001169/0.2709, allocations: 117.1 kB / 498.7 MB, free: 13.06 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006591/0.2716, allocations: 319.8 kB / 499 MB, free: 12.75 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.2716, allocations: 0 / 499 MB, free: 12.75 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002831/0.2719, allocations: 133.4 kB / 499.2 MB, free: 12.62 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005515/0.2724, allocations: 99.52 kB / 499.3 MB, free: 12.52 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001138/0.2736, allocations: 0.7384 MB / 500 MB, free: 11.72 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001855/0.2737, allocations: 186.8 kB / 0.4884 GB, free: 11.52 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001704/0.2739, allocations: 51.25 kB / 0.4885 GB, free: 11.47 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.59e-05/0.274, allocations: 28.5 kB / 0.4885 GB, free: 11.44 MB / 398.1 MB Notification: Performance of SimCode: time 2.9e-07/0.274, allocations: 0 / 0.4885 GB, free: 11.44 MB / 398.1 MB Notification: Performance of Templates: time 0.008314/0.2823, allocations: 3.931 MB / 0.4924 GB, free: 7.598 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain.makefile [Timeout 660] (rm -f BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain.pipe ; mkfifo BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain.pipe ; head -c 1048576 < BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain.pipe >> ../files/BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain.sim & ./BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain -abortSlowSimulation -alarm=480 -s gbode -gbnls=internal -gberr=embedded -gbm=radauIIA3 -lv LOG_STATS > BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.446730216033757] Failed to read output from testmodel.py, exit status != 0: 0.2903985381126404 0.30375099599999994 0.04500837199999994 Calling exit ...