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.001013/0.001013, 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.001031/0.001031, allocations: 177 kB / 23.49 MB, free: 1.059 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 0.9734/0.9734, allocations: 177.1 MB / 203.8 MB, free: 5.293 MB / 186.7 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.1037/0.1037, allocations: 24.13 MB / 284.4 MB, free: 5.184 MB / 266.7 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: Performance of FrontEnd - loaded program: time 1.814e-06/1.814e-06, allocations: 0 / 361.2 MB, free: 3.164 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.474e-05/1.655e-05, allocations: 2.312 kB / 361.2 MB, free: 3.16 MB / 282.7 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChainII): time 0.005519/0.005536, allocations: 6.556 MB / 367.8 MB, free: 12.57 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00118/0.006715, allocations: 0.9854 MB / 368.7 MB, free: 11.59 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000251/0.006966, allocations: 31.75 kB / 368.8 MB, free: 11.55 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002213/0.007188, allocations: 114.9 kB / 368.9 MB, free: 11.44 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001514/0.007339, allocations: 83.22 kB / 369 MB, free: 11.36 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004266/0.007766, allocations: 231.4 kB / 369.2 MB, free: 11.13 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004063/0.008172, allocations: 0.5817 MB / 369.8 MB, free: 10.55 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002565/0.008428, allocations: 193.9 kB / 370 MB, free: 10.35 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002567/0.008685, allocations: 351.2 kB / 370.3 MB, free: 10.01 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001725/0.008858, allocations: 171.4 kB / 370.5 MB, free: 9.84 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.214e-05/0.00891, allocations: 60 kB / 370.5 MB, free: 9.781 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.808e-05/0.008988, allocations: 67.98 kB / 370.6 MB, free: 9.715 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.034e-05/0.009078, allocations: 131.5 kB / 370.7 MB, free: 9.586 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001142/0.009192, allocations: 171.5 kB / 370.9 MB, free: 9.418 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003451/0.009537, allocations: 394.4 kB / 371.3 MB, free: 9.031 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.284e-06/0.00954, allocations: 0 / 371.3 MB, free: 9.031 MB / 298.7 MB Notification: Performance of FrontEnd: time 6.51e-07/0.00954, allocations: 0 / 371.3 MB, free: 9.031 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.639e-06/0.009545, allocations: 0 / 371.3 MB, free: 9.031 MB / 298.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.0008196/0.01036, allocations: 0.8152 MB / 372.1 MB, free: 8.18 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.37e-05/0.01041, allocations: 8.75 kB / 372.1 MB, free: 8.172 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002549/0.01066, allocations: 120.5 kB / 372.2 MB, free: 8.055 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003937/0.01106, allocations: 360 kB / 372.6 MB, free: 7.68 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.174e-05/0.0111, allocations: 49.38 kB / 372.6 MB, free: 7.629 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.85e-05/0.01116, allocations: 60.36 kB / 372.7 MB, free: 7.57 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005063/0.01166, allocations: 490.3 kB / 373.2 MB, free: 7.039 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.34e-05/0.01168, allocations: 0 / 373.2 MB, free: 7.039 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.212e-05/0.01171, allocations: 24 kB / 373.2 MB, free: 7.016 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.298e-05/0.01172, allocations: 12 kB / 373.2 MB, free: 7.004 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002494/0.01197, allocations: 177.7 kB / 373.4 MB, free: 6.832 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001686/0.01366, allocations: 1.922 MB / 375.3 MB, free: 4.84 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003585/0.01402, allocations: 261 kB / 375.5 MB, free: 4.539 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001279/0.01414, allocations: 116.5 kB / 375.7 MB, free: 4.41 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.865e-05/0.01416, allocations: 8.172 kB / 375.7 MB, free: 4.402 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.904e-05/0.01419, allocations: 45.61 kB / 375.7 MB, free: 4.348 MB / 298.7 MB Notification: Performance of pre-optimization done (n=31): time 1.613e-06/0.01419, allocations: 0 / 375.7 MB, free: 4.348 MB / 298.7 MB Notification: Performance of matching and sorting (n=31): time 0.0004005/0.01459, allocations: 256.4 kB / 376 MB, free: 4.094 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.19e-05/0.01466, allocations: 166.1 kB / 376.1 MB, free: 3.895 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002336/0.01489, allocations: 330.2 kB / 376.4 MB, free: 3.551 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.555e-05/0.01492, allocations: 45.7 kB / 376.5 MB, free: 3.5 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001433/0.01507, allocations: 311.7 kB / 376.8 MB, free: 3.191 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.799e-05/0.01513, allocations: 99.17 kB / 376.9 MB, free: 3.094 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001053/0.01523, allocations: 108 kB / 377 MB, free: 2.98 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001304/0.01536, allocations: 0.5157 MB / 377.5 MB, free: 2.453 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001266/0.01549, allocations: 73.27 kB / 377.6 MB, free: 2.383 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001858/0.01567, allocations: 256.3 kB / 377.8 MB, free: 2.07 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002684/0.01594, allocations: 291.5 kB / 378.1 MB, free: 1.727 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-06/0.01595, allocations: 0 / 378.1 MB, free: 1.727 MB / 298.7 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.0004005/0.01635, allocations: 365.5 kB / 378.5 MB, free: 1.363 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.551e-05/0.01636, allocations: 8 kB / 378.5 MB, free: 1.355 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.239e-06/0.01637, allocations: 0 / 378.5 MB, free: 1.355 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.5e-05/0.01638, allocations: 8 kB / 378.5 MB, free: 1.348 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001404/0.01652, allocations: 67.83 kB / 378.6 MB, free: 1.281 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.041e-05/0.01653, allocations: 11.94 kB / 378.6 MB, free: 1.27 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001147/0.01665, allocations: 51.61 kB / 378.6 MB, free: 1.219 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.261e-05/0.01667, allocations: 20 kB / 378.6 MB, free: 1.199 MB / 298.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.0001377/0.01681, allocations: 217.6 kB / 378.8 MB, free: 0.9766 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.804e-05/0.01688, allocations: 43.8 kB / 378.9 MB, free: 0.9336 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.468e-05/0.01693, allocations: 39.08 kB / 378.9 MB, free: 0.8906 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.567e-06/0.01693, allocations: 4 kB / 378.9 MB, free: 0.8867 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.93e-06/0.01694, allocations: 3.938 kB / 378.9 MB, free: 0.8828 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.917e-06/0.01694, allocations: 0 / 378.9 MB, free: 0.8828 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009613/0.0179, allocations: 1.169 MB / 380.1 MB, free: 15.62 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/0.01791, allocations: 11.97 kB / 380.1 MB, free: 15.61 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001148/0.01802, allocations: 39.92 kB / 380.2 MB, free: 15.57 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.659e-06/0.01803, allocations: 4 kB / 380.2 MB, free: 15.57 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.152e-05/0.01805, allocations: 11.98 kB / 380.2 MB, free: 15.55 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.386e-06/0.01805, allocations: 4 kB / 380.2 MB, free: 15.55 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/0.01806, allocations: 7.984 kB / 380.2 MB, free: 15.54 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003919/0.01845, allocations: 497.1 kB / 380.7 MB, free: 15 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.181e-05/0.01852, allocations: 63.72 kB / 380.7 MB, free: 14.94 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.913e-05/0.01855, allocations: 15.98 kB / 380.7 MB, free: 14.92 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.735e-05/0.01864, allocations: 12 kB / 380.8 MB, free: 14.91 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.913e-05/0.0187, allocations: 39.81 kB / 380.8 MB, free: 14.87 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.192e-05/0.01872, allocations: 12 kB / 380.8 MB, free: 14.86 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001125/0.01883, allocations: 211 kB / 381 MB, free: 14.66 MB / 314.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01883, allocations: 0 / 381 MB, free: 14.66 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005045/0.01933, allocations: 115.6 kB / 381.1 MB, free: 14.54 MB / 314.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 9.352e-05/0.01943, allocations: 120.3 kB / 381.2 MB, free: 14.42 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0003104/0.01974, allocations: 235.6 kB / 381.5 MB, free: 14.19 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.01974, allocations: 0 / 381.5 MB, free: 14.19 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001055/0.01984, allocations: 100.6 kB / 381.6 MB, free: 14.09 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003738/0.02022, allocations: 109 kB / 381.7 MB, free: 13.98 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008219/0.02104, allocations: 0.7613 MB / 382.4 MB, free: 13.15 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.075e-05/0.02111, allocations: 109.3 kB / 382.5 MB, free: 13.02 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001242/0.02124, allocations: 59.23 kB / 382.6 MB, free: 12.96 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.08e-05/0.02131, allocations: 40.48 kB / 382.6 MB, free: 12.93 MB / 314.7 MB Notification: Performance of SimCode: time 7.42e-07/0.02131, allocations: 0 / 382.6 MB, free: 12.93 MB / 314.7 MB Notification: Performance of Templates: time 0.006247/0.02755, allocations: 4.485 MB / 387.1 MB, free: 8.559 MB / 314.7 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=240 -lv LOG_STATS > BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.000513826031238]