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.001124/0.001124, allocations: 80.75 kB / 19.94 MB, free: 4.547 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.001314/0.001314, allocations: 181 kB / 23.36 MB, free: 1.133 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.056/1.056, allocations: 177.1 MB / 203.8 MB, free: 5.48 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.1082/0.1082, allocations: 24.16 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.883e-06/1.883e-06, allocations: 0 / 308.4 MB, free: 8.789 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.203e-05/2.391e-05, allocations: 3.297 kB / 308.4 MB, free: 8.785 MB / 282.7 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChain): time 0.004933/0.004957, allocations: 5.303 MB / 313.7 MB, free: 3.488 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008627/0.005819, allocations: 0.6545 MB / 314.4 MB, free: 2.84 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001797/0.005999, allocations: 15.88 kB / 314.4 MB, free: 2.824 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001875/0.006187, allocations: 79.27 kB / 314.5 MB, free: 2.746 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001587/0.006345, allocations: 83.22 kB / 314.5 MB, free: 2.664 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003919/0.006737, allocations: 179.5 kB / 314.7 MB, free: 2.488 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003441/0.007081, allocations: 474.3 kB / 315.2 MB, free: 2.027 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002066/0.007288, allocations: 162 kB / 315.3 MB, free: 1.867 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000252/0.00754, allocations: 303.3 kB / 315.6 MB, free: 1.57 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001727/0.007713, allocations: 135.6 kB / 315.8 MB, free: 1.438 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.143e-05/0.007754, allocations: 44 kB / 315.8 MB, free: 1.395 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.746e-05/0.007842, allocations: 48 kB / 315.9 MB, free: 1.348 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 7.784e-05/0.007919, allocations: 107.6 kB / 316 MB, free: 1.242 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 8.76e-05/0.008007, allocations: 135.7 kB / 316.1 MB, free: 1.109 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002999/0.008307, allocations: 298.8 kB / 316.4 MB, free: 0.8164 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.864e-06/0.008309, allocations: 0 / 316.4 MB, free: 0.8164 MB / 282.7 MB Notification: Performance of FrontEnd: time 8.71e-07/0.00831, allocations: 0 / 316.4 MB, free: 0.8164 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.468e-06/0.008314, allocations: 0 / 316.4 MB, free: 0.8164 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.0006133/0.008927, allocations: 0.5819 MB / 317 MB, free: 220 kB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.417e-05/0.008962, allocations: 12.75 kB / 317 MB, free: 208 kB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002008/0.009162, allocations: 88.84 kB / 317.1 MB, free: 120 kB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003042/0.009467, allocations: 260.7 kB / 317.3 MB, free: 15.84 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.444e-05/0.009501, allocations: 33.38 kB / 317.4 MB, free: 15.8 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.565e-05/0.009547, allocations: 48.38 kB / 317.4 MB, free: 15.75 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003322/0.009879, allocations: 387.6 kB / 317.8 MB, free: 15.33 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.21e-05/0.009891, allocations: 0 / 317.8 MB, free: 15.33 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.081e-05/0.009912, allocations: 20 kB / 317.8 MB, free: 15.31 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.656e-06/0.00992, allocations: 8 kB / 317.8 MB, free: 15.3 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000118/0.01004, allocations: 102.8 kB / 317.9 MB, free: 15.2 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001011/0.01105, allocations: 1.229 MB / 319.1 MB, free: 13.93 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001604/0.01121, allocations: 146.4 kB / 319.3 MB, free: 13.75 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.986e-05/0.01128, allocations: 71.41 kB / 319.4 MB, free: 13.67 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.05e-05/0.01129, allocations: 4 kB / 319.4 MB, free: 13.66 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.403e-05/0.01131, allocations: 42.5 kB / 319.4 MB, free: 13.61 MB / 298.7 MB Notification: Performance of pre-optimization done (n=25): time 1.413e-06/0.01132, allocations: 0 / 319.4 MB, free: 13.61 MB / 298.7 MB Notification: Performance of matching and sorting (n=25): time 0.0002562/0.01157, allocations: 154 kB / 319.5 MB, free: 13.46 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.381e-05/0.01163, allocations: 158.2 kB / 319.7 MB, free: 13.27 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001661/0.01179, allocations: 260.7 kB / 320 MB, free: 13 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.213e-05/0.01182, allocations: 41.69 kB / 320 MB, free: 12.95 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.626e-05/0.01192, allocations: 218.7 kB / 320.2 MB, free: 12.74 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.373e-05/0.01196, allocations: 91.28 kB / 320.3 MB, free: 12.65 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.743e-05/0.01205, allocations: 106.1 kB / 320.4 MB, free: 12.54 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.936e-05/0.01214, allocations: 342.7 kB / 320.7 MB, free: 12.2 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.919e-05/0.01222, allocations: 48.97 kB / 320.8 MB, free: 12.15 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001633/0.01238, allocations: 202 kB / 321 MB, free: 11.89 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001843/0.01257, allocations: 247.3 kB / 321.2 MB, free: 11.59 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/0.01257, allocations: 8 kB / 321.2 MB, free: 11.59 MB / 298.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0002389/0.01281, allocations: 256.4 kB / 321.5 MB, free: 11.33 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.182e-05/0.01282, allocations: 12.06 kB / 321.5 MB, free: 11.32 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.144e-06/0.01283, allocations: 4 kB / 321.5 MB, free: 11.32 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.687e-05/0.01285, allocations: 15.92 kB / 321.5 MB, free: 11.3 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001309/0.01298, allocations: 63.84 kB / 321.6 MB, free: 11.24 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.246e-06/0.01299, allocations: 15.88 kB / 321.6 MB, free: 11.22 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.018e-05/0.01308, allocations: 47.62 kB / 321.6 MB, free: 11.18 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.866e-05/0.01309, allocations: 16 kB / 321.7 MB, free: 11.16 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.0001096/0.0132, allocations: 165.8 kB / 321.8 MB, free: 10.99 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.113e-05/0.01326, allocations: 23.98 kB / 321.8 MB, free: 10.96 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.745e-05/0.0133, allocations: 30.27 kB / 321.9 MB, free: 10.93 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.056e-06/0.01331, allocations: 8 kB / 321.9 MB, free: 10.92 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.266e-06/0.01331, allocations: 4 kB / 321.9 MB, free: 10.92 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.408e-06/0.01331, allocations: 3.938 kB / 321.9 MB, free: 10.91 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006864/0.014, allocations: 0.7418 MB / 322.6 MB, free: 10.11 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.265e-06/0.014, allocations: 4 kB / 322.6 MB, free: 10.11 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001039/0.01411, allocations: 40.23 kB / 322.7 MB, free: 10.07 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.068e-06/0.01411, allocations: 4 kB / 322.7 MB, free: 10.06 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.609e-05/0.01413, allocations: 8 kB / 322.7 MB, free: 10.05 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.817e-06/0.01413, allocations: 4 kB / 322.7 MB, free: 10.05 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.627e-06/0.01413, allocations: 7.938 kB / 322.7 MB, free: 10.04 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000223/0.01436, allocations: 327.2 kB / 323 MB, free: 9.68 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.74e-05/0.0144, allocations: 39.75 kB / 323.1 MB, free: 9.641 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.453e-05/0.01443, allocations: 11.98 kB / 323.1 MB, free: 9.629 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.708e-05/0.0145, allocations: 8 kB / 323.1 MB, free: 9.621 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.1e-05/0.01455, allocations: 27.91 kB / 323.1 MB, free: 9.594 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.838e-06/0.01456, allocations: 11.98 kB / 323.1 MB, free: 9.582 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.933e-05/0.01461, allocations: 78.77 kB / 323.2 MB, free: 9.5 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01461, allocations: 0 / 323.2 MB, free: 9.5 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002209/0.01483, allocations: 87.78 kB / 323.3 MB, free: 9.414 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 9.53e-05/0.01492, allocations: 109.1 kB / 323.4 MB, free: 9.305 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002187/0.01514, allocations: 189.6 kB / 323.6 MB, free: 9.117 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 7.254e-06/0.01515, allocations: 4 kB / 323.6 MB, free: 9.113 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 7.091e-05/0.01522, allocations: 76.62 kB / 323.6 MB, free: 9.035 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002917/0.01551, allocations: 88.33 kB / 323.7 MB, free: 8.957 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000745/0.01626, allocations: 0.6308 MB / 324.4 MB, free: 8.266 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.146e-05/0.01632, allocations: 101.7 kB / 324.5 MB, free: 8.148 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001094/0.01643, allocations: 51.25 kB / 324.5 MB, free: 8.094 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001415/0.01657, allocations: 115.3 kB / 324.6 MB, free: 7.98 MB / 298.7 MB Notification: Performance of SimCode: time 1.032e-06/0.01657, allocations: 0 / 324.6 MB, free: 7.98 MB / 298.7 MB Notification: Performance of Templates: time 0.006029/0.0226, allocations: 3.698 MB / 328.3 MB, free: 4.379 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 -s gbode -gbm=radauIIA3 -lv LOG_STATS > BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 2.9160743951797485]