Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BusinessSimulation_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.001351/0.001351, allocations: 93.06 kB / 19.65 MB, free: 276 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.001498/0.001498, allocations: 165 kB / 23.01 MB, free: 1.551 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.041/1.041, allocations: 177.1 MB / 203.4 MB, free: 5.652 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.1199/0.1199, allocations: 24.13 MB / 284.1 MB, free: 5.289 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.SimpleProductionChainII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII") translateModel(BusinessSimulation.Examples.SimpleProductionChainII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.463e-06/1.463e-06, allocations: 0 / 361.2 MB, free: 4.051 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.605e-05/1.751e-05, allocations: 5.547 kB / 361.2 MB, free: 4.047 MB / 330.7 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChainII): time 0.00604/0.006057, allocations: 6.564 MB / 367.7 MB, free: 13.45 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001784/0.007841, allocations: 1.009 MB / 368.8 MB, free: 12.44 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003623/0.008203, allocations: 31.75 kB / 368.8 MB, free: 12.41 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003065/0.00851, allocations: 99.05 kB / 368.9 MB, free: 12.31 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002292/0.008739, allocations: 75.25 kB / 369 MB, free: 12.24 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005628/0.009302, allocations: 243.3 kB / 369.2 MB, free: 12 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005003/0.009802, allocations: 0.589 MB / 369.8 MB, free: 11.41 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002834/0.01009, allocations: 205.9 kB / 370 MB, free: 11.21 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003151/0.0104, allocations: 343.2 kB / 370.3 MB, free: 10.88 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002195/0.01062, allocations: 171.4 kB / 370.5 MB, free: 10.71 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 5.92e-05/0.01068, allocations: 56 kB / 370.5 MB, free: 10.65 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001009/0.01078, allocations: 64 kB / 370.6 MB, free: 10.59 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 9.979e-05/0.01088, allocations: 139.5 kB / 370.7 MB, free: 10.45 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001208/0.011, allocations: 175.5 kB / 370.9 MB, free: 10.28 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004101/0.01141, allocations: 382.5 kB / 371.3 MB, free: 9.906 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.104e-06/0.01141, allocations: 0 / 371.3 MB, free: 9.906 MB / 346.7 MB Notification: Performance of FrontEnd: time 7.41e-07/0.01141, allocations: 0 / 371.3 MB, free: 9.906 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.852e-06/0.01142, allocations: 0 / 371.3 MB, free: 9.906 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.0008463/0.01227, allocations: 0.8113 MB / 372.1 MB, free: 9.059 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.542e-05/0.0123, allocations: 8.75 kB / 372.1 MB, free: 9.051 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002222/0.01252, allocations: 120.5 kB / 372.2 MB, free: 8.934 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006803/0.0132, allocations: 352.1 kB / 372.6 MB, free: 8.566 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.892e-05/0.01324, allocations: 49.31 kB / 372.6 MB, free: 8.516 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.819e-05/0.0133, allocations: 60.38 kB / 372.7 MB, free: 8.457 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005485/0.01385, allocations: 494.3 kB / 373.2 MB, free: 7.922 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.683e-05/0.01387, allocations: 7.938 kB / 373.2 MB, free: 7.914 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.082e-05/0.0139, allocations: 20 kB / 373.2 MB, free: 7.895 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.586e-05/0.01391, allocations: 12 kB / 373.2 MB, free: 7.883 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002667/0.01418, allocations: 169.8 kB / 373.4 MB, free: 7.719 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001573/0.01575, allocations: 1.933 MB / 375.3 MB, free: 5.711 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003644/0.01612, allocations: 269 kB / 375.6 MB, free: 5.398 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001248/0.01624, allocations: 115.2 kB / 375.7 MB, free: 5.27 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.16e-05/0.01626, allocations: 8.234 kB / 375.7 MB, free: 5.262 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.958e-05/0.01629, allocations: 45.56 kB / 375.7 MB, free: 5.207 MB / 346.7 MB Notification: Performance of pre-optimization done (n=31): time 1.352e-06/0.0163, allocations: 0 / 375.7 MB, free: 5.207 MB / 346.7 MB Notification: Performance of matching and sorting (n=31): time 0.0003833/0.01668, allocations: 255.3 kB / 376 MB, free: 4.953 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.573e-05/0.01673, allocations: 166.2 kB / 376.1 MB, free: 4.754 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002134/0.01695, allocations: 334.2 kB / 376.5 MB, free: 4.406 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.168e-05/0.01698, allocations: 41.7 kB / 376.5 MB, free: 4.359 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001335/0.01711, allocations: 308.1 kB / 376.8 MB, free: 4.051 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.953e-05/0.01717, allocations: 103.2 kB / 376.9 MB, free: 3.949 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001039/0.01728, allocations: 108 kB / 377 MB, free: 3.836 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001267/0.0174, allocations: 0.5157 MB / 377.5 MB, free: 3.309 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001232/0.01753, allocations: 73.25 kB / 377.6 MB, free: 3.238 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001946/0.01772, allocations: 252.2 kB / 377.8 MB, free: 2.926 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002591/0.01798, allocations: 291.5 kB / 378.1 MB, free: 2.586 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.01798, allocations: 0 / 378.1 MB, free: 2.586 MB / 346.7 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.000396/0.01838, allocations: 365 kB / 378.5 MB, free: 2.219 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.249e-05/0.01839, allocations: 8 kB / 378.5 MB, free: 2.211 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.0184, allocations: 7.938 kB / 378.5 MB, free: 2.203 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.733e-05/0.01841, allocations: 7.984 kB / 378.5 MB, free: 2.195 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001392/0.01855, allocations: 64.25 kB / 378.6 MB, free: 2.133 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.797e-06/0.01856, allocations: 15.94 kB / 378.6 MB, free: 2.117 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001254/0.01869, allocations: 55.61 kB / 378.6 MB, free: 2.062 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.265e-05/0.01871, allocations: 19.98 kB / 378.7 MB, free: 2.043 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.0001235/0.01883, allocations: 201.7 kB / 378.9 MB, free: 1.836 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.909e-05/0.0189, allocations: 39.81 kB / 378.9 MB, free: 1.797 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.878e-05/0.01895, allocations: 39.08 kB / 378.9 MB, free: 1.762 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.657e-06/0.01896, allocations: 4 kB / 378.9 MB, free: 1.758 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/0.01896, allocations: 3.938 kB / 378.9 MB, free: 1.754 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.089e-06/0.01897, allocations: 11.98 kB / 378.9 MB, free: 1.742 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001016/0.01998, allocations: 1.173 MB / 380.1 MB, free: 492 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.456e-06/0.01998, allocations: 0 / 380.1 MB, free: 492 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001107/0.0201, allocations: 43.91 kB / 380.2 MB, free: 448 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.387e-06/0.0201, allocations: 4 kB / 380.2 MB, free: 444 kB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.943e-05/0.02012, allocations: 12 kB / 380.2 MB, free: 432 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.226e-06/0.02012, allocations: 8.219 kB / 380.2 MB, free: 424 kB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.02012, allocations: 4 kB / 380.2 MB, free: 420 kB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003955/0.02052, allocations: 493.2 kB / 380.7 MB, free: 15.87 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.267e-05/0.0206, allocations: 55.72 kB / 380.7 MB, free: 15.82 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.559e-05/0.02063, allocations: 8 kB / 380.7 MB, free: 15.81 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.037e-05/0.02072, allocations: 15.98 kB / 380.8 MB, free: 15.79 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.585e-05/0.02077, allocations: 31.89 kB / 380.8 MB, free: 15.76 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.137e-05/0.02078, allocations: 12 kB / 380.8 MB, free: 15.75 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001119/0.0209, allocations: 215 kB / 381 MB, free: 15.54 MB / 362.7 MB Notification: Performance of sort global known variables: time 7e-08/0.0209, allocations: 0 / 381 MB, free: 15.54 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002628/0.02116, allocations: 115.6 kB / 381.1 MB, free: 15.43 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 8.275e-05/0.02124, allocations: 125.1 kB / 381.2 MB, free: 15.3 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003066/0.02155, allocations: 236.3 kB / 381.5 MB, free: 15.06 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.02155, allocations: 4.062 kB / 381.5 MB, free: 15.06 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001026/0.02165, allocations: 99.52 kB / 381.6 MB, free: 14.96 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003419/0.022, allocations: 95.56 kB / 381.7 MB, free: 14.86 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007826/0.02278, allocations: 0.7766 MB / 382.4 MB, free: 14.02 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.577e-05/0.02284, allocations: 109.3 kB / 382.5 MB, free: 13.89 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001266/0.02297, allocations: 63.16 kB / 382.6 MB, free: 13.83 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.848e-05/0.02304, allocations: 44.5 kB / 382.7 MB, free: 13.79 MB / 362.7 MB Notification: Performance of SimCode: time 7.71e-07/0.02304, allocations: 0 / 382.7 MB, free: 13.79 MB / 362.7 MB Notification: Performance of Templates: time 0.006521/0.02956, allocations: 4.488 MB / 387.1 MB, free: 9.406 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII.makefile [Timeout 660] (rm -f BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII.pipe ; mkfifo BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII.pipe ; head -c 1048576 < BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII.pipe >> ../files/BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII.sim & ./BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII -abortSlowSimulation -alarm=240 -lv LOG_STATS > BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.2246525660157204]