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.001429/0.001429, allocations: 88.72 kB / 19.44 MB, free: 352 kB / 13.93 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.001742/0.001742, allocations: 157.7 kB / 22.75 MB, free: 1.68 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.526/1.526, allocations: 177.1 MB / 203.1 MB, free: 5.594 MB / 186.7 MB " [Timeout remaining time 178] 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.1768/0.1768, allocations: 24.11 MB / 283.7 MB, free: 5.285 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 3.056e-06/3.056e-06, allocations: 0 / 360.4 MB, free: 4.367 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.926e-05/4.232e-05, allocations: 2.312 kB / 360.4 MB, free: 4.363 MB / 330.7 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChainII): time 0.01635/0.01639, allocations: 6.357 MB / 366.8 MB, free: 13.97 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.004438/0.02083, allocations: 1.001 MB / 367.8 MB, free: 12.97 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008927/0.02172, allocations: 31.75 kB / 367.8 MB, free: 12.94 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007174/0.02244, allocations: 107 kB / 367.9 MB, free: 12.83 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006561/0.0231, allocations: 83.17 kB / 368 MB, free: 12.75 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00136/0.02446, allocations: 231.4 kB / 368.2 MB, free: 12.52 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.001453/0.02591, allocations: 0.5891 MB / 368.8 MB, free: 11.93 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006433/0.02655, allocations: 197.9 kB / 369 MB, free: 11.74 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007904/0.02734, allocations: 343.2 kB / 369.4 MB, free: 11.41 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003822/0.02772, allocations: 171.5 kB / 369.5 MB, free: 11.24 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001262/0.02785, allocations: 60 kB / 369.6 MB, free: 11.18 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001521/0.028, allocations: 63.98 kB / 369.6 MB, free: 11.12 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001815/0.02818, allocations: 139.5 kB / 369.8 MB, free: 10.98 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002448/0.02843, allocations: 167.6 kB / 369.9 MB, free: 10.82 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009369/0.02937, allocations: 0.584 MB / 370.5 MB, free: 10.23 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.344e-06/0.02937, allocations: 7.938 kB / 370.5 MB, free: 10.22 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.02937, allocations: 0 / 370.5 MB, free: 10.22 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.038e-05/0.0294, allocations: 3.984 kB / 370.5 MB, free: 10.22 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.001757/0.03115, allocations: 0.7156 MB / 371.3 MB, free: 9.473 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.272e-05/0.03121, allocations: 12.75 kB / 371.3 MB, free: 9.461 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004513/0.03166, allocations: 116.5 kB / 371.4 MB, free: 9.348 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007122/0.03237, allocations: 353.3 kB / 371.7 MB, free: 8.98 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.553e-05/0.03243, allocations: 45.38 kB / 371.8 MB, free: 8.934 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001131/0.03255, allocations: 56.38 kB / 371.8 MB, free: 8.879 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001142/0.03369, allocations: 0.5458 MB / 372.4 MB, free: 8.293 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.714e-05/0.03371, allocations: 3.938 kB / 372.4 MB, free: 8.289 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.14e-05/0.03376, allocations: 24 kB / 372.4 MB, free: 8.266 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.482e-05/0.03377, allocations: 16 kB / 372.4 MB, free: 8.25 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008735/0.03465, allocations: 303.8 kB / 372.7 MB, free: 7.953 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002832/0.03748, allocations: 1.587 MB / 374.3 MB, free: 6.305 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00083/0.03831, allocations: 291.2 kB / 374.6 MB, free: 5.984 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004284/0.03874, allocations: 171.5 kB / 374.7 MB, free: 5.809 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.246e-05/0.03877, allocations: 8.234 kB / 374.8 MB, free: 5.801 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.182e-05/0.03882, allocations: 46.73 kB / 374.8 MB, free: 5.746 MB / 346.7 MB Notification: Performance of pre-optimization done (n=31): time 1.754e-06/0.03882, allocations: 0 / 374.8 MB, free: 5.746 MB / 346.7 MB Notification: Performance of matching and sorting (n=31): time 0.001109/0.03993, allocations: 391.3 kB / 375.2 MB, free: 5.359 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001374/0.04007, allocations: 166.1 kB / 375.3 MB, free: 5.16 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004004/0.04047, allocations: 292.4 kB / 375.6 MB, free: 4.867 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.829e-05/0.04053, allocations: 42.08 kB / 375.7 MB, free: 4.82 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002576/0.04078, allocations: 272.9 kB / 375.9 MB, free: 4.547 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001174/0.0409, allocations: 99.17 kB / 376 MB, free: 4.449 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001803/0.04108, allocations: 98.33 kB / 376.1 MB, free: 4.348 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002275/0.04131, allocations: 346.8 kB / 376.5 MB, free: 4 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003937/0.0417, allocations: 145.2 kB / 376.6 MB, free: 3.859 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000523/0.04223, allocations: 288.6 kB / 376.9 MB, free: 3.523 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007402/0.04297, allocations: 363.8 kB / 377.2 MB, free: 3.129 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/0.04297, allocations: 4 kB / 377.3 MB, free: 3.125 MB / 346.7 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001042/0.04401, allocations: 497 kB / 377.7 MB, free: 2.629 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.881e-05/0.04403, allocations: 8.406 kB / 377.7 MB, free: 2.621 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.897e-06/0.04404, allocations: 8 kB / 377.8 MB, free: 2.613 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.18e-05/0.04406, allocations: 4 kB / 377.8 MB, free: 2.609 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003085/0.04437, allocations: 75.81 kB / 377.8 MB, free: 2.535 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.642e-05/0.04439, allocations: 11.92 kB / 377.8 MB, free: 2.523 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002867/0.04467, allocations: 55.61 kB / 377.9 MB, free: 2.469 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.348e-05/0.04472, allocations: 27.97 kB / 377.9 MB, free: 2.441 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.000253/0.04497, allocations: 191 kB / 378.1 MB, free: 2.246 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001269/0.0451, allocations: 43.81 kB / 378.2 MB, free: 2.203 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.448e-05/0.04519, allocations: 39.08 kB / 378.2 MB, free: 2.164 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.55e-06/0.0452, allocations: 4 kB / 378.2 MB, free: 2.16 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.514e-06/0.0452, allocations: 3.938 kB / 378.2 MB, free: 2.156 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.013e-06/0.04521, allocations: 4 kB / 378.2 MB, free: 2.152 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001866/0.04708, allocations: 1.096 MB / 379.3 MB, free: 0.9805 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.671e-06/0.04708, allocations: 4 kB / 379.3 MB, free: 0.9766 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002585/0.04734, allocations: 43.91 kB / 379.3 MB, free: 0.9336 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.334e-06/0.04735, allocations: 4 kB / 379.3 MB, free: 0.9297 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.648e-05/0.04738, allocations: 8 kB / 379.4 MB, free: 0.9219 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.159e-05/0.04739, allocations: 11.92 kB / 379.4 MB, free: 0.9102 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.268e-06/0.04739, allocations: 4 kB / 379.4 MB, free: 0.9062 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00103/0.04842, allocations: 0.5584 MB / 379.9 MB, free: 312 kB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001268/0.04855, allocations: 59.78 kB / 380 MB, free: 252 kB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.798e-05/0.0486, allocations: 12 kB / 380 MB, free: 240 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002119/0.04881, allocations: 19.92 kB / 380 MB, free: 220 kB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001007/0.04891, allocations: 35.88 kB / 380.1 MB, free: 184 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.235e-05/0.04893, allocations: 12 kB / 380.1 MB, free: 172 kB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002542/0.04919, allocations: 191.2 kB / 380.3 MB, free: 15.98 MB / 362.7 MB Notification: Performance of sort global known variables: time 7e-08/0.04919, allocations: 0 / 380.3 MB, free: 15.98 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004598/0.04965, allocations: 115.6 kB / 380.4 MB, free: 15.87 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.0001485/0.04979, allocations: 118.7 kB / 380.5 MB, free: 15.75 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0007962/0.05059, allocations: 335 kB / 380.8 MB, free: 15.42 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.05059, allocations: 0.8125 kB / 380.8 MB, free: 15.42 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003406/0.05093, allocations: 154.9 kB / 381 MB, free: 15.27 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006459/0.05158, allocations: 104.8 kB / 381.1 MB, free: 15.17 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001562/0.05314, allocations: 0.8086 MB / 381.9 MB, free: 14.3 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002912/0.05343, allocations: 223.9 kB / 382.1 MB, free: 14.06 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002207/0.05365, allocations: 59.25 kB / 382.2 MB, free: 14 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001084/0.05376, allocations: 36.48 kB / 382.2 MB, free: 13.97 MB / 362.7 MB Notification: Performance of SimCode: time 4.91e-07/0.05376, allocations: 0 / 382.2 MB, free: 13.97 MB / 362.7 MB Notification: Performance of Templates: time 0.0105/0.06426, allocations: 4.491 MB / 386.7 MB, free: 9.602 MB / 362.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=480 -lv LOG_STATS > BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.951883819070645]