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.0009976/0.0009976, allocations: 93.06 kB / 19.65 MB, free: 272 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.002418/0.002418, allocations: 169 kB / 23.02 MB, free: 1.539 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.049/1.049, allocations: 177.1 MB / 203.4 MB, free: 5.625 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.123/0.123, allocations: 24.14 MB / 284.1 MB, free: 5.262 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.433e-06/1.433e-06, allocations: 0 / 361.2 MB, free: 4.039 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.778e-05/1.922e-05, allocations: 5.406 kB / 361.2 MB, free: 4.035 MB / 330.7 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChain): time 0.005113/0.005132, allocations: 5.277 MB / 366.5 MB, free: 14.73 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.00128/0.006412, allocations: 0.6154 MB / 367.1 MB, free: 14.11 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002204/0.006632, allocations: 15.88 kB / 367.1 MB, free: 14.09 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002338/0.006866, allocations: 83.25 kB / 367.2 MB, free: 14.01 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001977/0.007064, allocations: 75.25 kB / 367.3 MB, free: 13.94 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006247/0.007689, allocations: 187.5 kB / 367.4 MB, free: 13.75 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.00047/0.008159, allocations: 471 kB / 367.9 MB, free: 13.29 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002624/0.008421, allocations: 158.8 kB / 368 MB, free: 13.14 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002825/0.008703, allocations: 299.3 kB / 368.3 MB, free: 12.85 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002043/0.008908, allocations: 139.6 kB / 368.5 MB, free: 12.71 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 4.997e-05/0.008958, allocations: 40 kB / 368.5 MB, free: 12.67 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.556e-05/0.009043, allocations: 51.94 kB / 368.6 MB, free: 12.62 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 8.903e-05/0.009132, allocations: 107.6 kB / 368.7 MB, free: 12.52 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000113/0.009245, allocations: 131.7 kB / 368.8 MB, free: 12.39 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003498/0.009595, allocations: 306.7 kB / 369.1 MB, free: 12.09 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.444e-06/0.009598, allocations: 0 / 369.1 MB, free: 12.09 MB / 346.7 MB Notification: Performance of FrontEnd: time 7.32e-07/0.009598, allocations: 4 kB / 369.1 MB, free: 12.08 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.701e-06/0.009604, allocations: 4 kB / 369.1 MB, free: 12.08 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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.0007897/0.01039, allocations: 0.6987 MB / 369.8 MB, free: 11.34 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.934e-05/0.01043, allocations: 12.75 kB / 369.8 MB, free: 11.33 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002237/0.01066, allocations: 92.62 kB / 369.9 MB, free: 11.24 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000346/0.011, allocations: 302.2 kB / 370.2 MB, free: 10.92 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.174e-05/0.01104, allocations: 33.38 kB / 370.2 MB, free: 10.88 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.97e-05/0.0111, allocations: 48.38 kB / 370.3 MB, free: 10.84 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004708/0.01157, allocations: 422.3 kB / 370.7 MB, free: 10.37 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.042e-05/0.01159, allocations: 0 / 370.7 MB, free: 10.37 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.524e-05/0.01161, allocations: 16 kB / 370.7 MB, free: 10.36 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.235e-05/0.01162, allocations: 12 kB / 370.7 MB, free: 10.34 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002076/0.01183, allocations: 145.8 kB / 370.9 MB, free: 10.2 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001858/0.01369, allocations: 1.794 MB / 372.7 MB, free: 8.336 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003099/0.014, allocations: 196.7 kB / 372.9 MB, free: 8.094 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001492/0.01415, allocations: 98.66 kB / 372.9 MB, free: 7.98 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.581e-05/0.01416, allocations: 4 kB / 373 MB, free: 7.977 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.652e-05/0.0142, allocations: 45.33 kB / 373 MB, free: 7.922 MB / 346.7 MB Notification: Performance of pre-optimization done (n=25): time 1.973e-06/0.0142, allocations: 0 / 373 MB, free: 7.922 MB / 346.7 MB Notification: Performance of matching and sorting (n=25): time 0.0004572/0.01466, allocations: 197.3 kB / 373.2 MB, free: 7.723 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.783e-05/0.01474, allocations: 162.2 kB / 373.3 MB, free: 7.527 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000251/0.01499, allocations: 308.1 kB / 373.7 MB, free: 7.211 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.167e-05/0.01503, allocations: 46.06 kB / 373.7 MB, free: 7.16 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001732/0.0152, allocations: 287.1 kB / 374 MB, free: 6.875 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.977e-05/0.01527, allocations: 79.38 kB / 374.1 MB, free: 6.797 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001164/0.01539, allocations: 107.8 kB / 374.2 MB, free: 6.684 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001432/0.01553, allocations: 0.5118 MB / 374.7 MB, free: 6.16 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001242/0.01566, allocations: 64.95 kB / 374.7 MB, free: 6.094 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002078/0.01586, allocations: 277 kB / 375 MB, free: 5.746 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002924/0.01616, allocations: 306 kB / 375.3 MB, free: 5.371 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.31e-06/0.01616, allocations: 4 kB / 375.3 MB, free: 5.367 MB / 346.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.000386/0.01655, allocations: 357.4 kB / 375.7 MB, free: 5.012 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.848e-05/0.01657, allocations: 14.02 kB / 375.7 MB, free: 5 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.984e-06/0.01657, allocations: 4 kB / 375.7 MB, free: 4.996 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.569e-05/0.01659, allocations: 4 kB / 375.7 MB, free: 4.992 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001452/0.01673, allocations: 67.84 kB / 375.7 MB, free: 4.926 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.488e-06/0.01674, allocations: 7.984 kB / 375.8 MB, free: 4.918 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001045/0.01685, allocations: 55.61 kB / 375.8 MB, free: 4.863 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.127e-05/0.01687, allocations: 20 kB / 375.8 MB, free: 4.844 MB / 346.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,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 (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.0001393/0.01701, allocations: 205.6 kB / 376 MB, free: 4.633 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.112e-05/0.01707, allocations: 39.8 kB / 376.1 MB, free: 4.594 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.579e-05/0.01711, allocations: 34.27 kB / 376.1 MB, free: 4.562 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.606e-06/0.01711, allocations: 4 kB / 376.1 MB, free: 4.559 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.01711, allocations: 4 kB / 376.1 MB, free: 4.555 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/0.01712, allocations: 0 / 376.1 MB, free: 4.555 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008294/0.01795, allocations: 1.095 MB / 377.2 MB, free: 3.371 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.307e-06/0.01795, allocations: 8.312 kB / 377.2 MB, free: 3.363 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001087/0.01806, allocations: 27.97 kB / 377.2 MB, free: 3.336 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.731e-06/0.01806, allocations: 7.938 kB / 377.2 MB, free: 3.328 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.101e-05/0.01809, allocations: 11.94 kB / 377.3 MB, free: 3.316 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.285e-06/0.01809, allocations: 4 kB / 377.3 MB, free: 3.312 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.875e-06/0.01809, allocations: 4 kB / 377.3 MB, free: 3.309 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003445/0.01844, allocations: 468.9 kB / 377.7 MB, free: 2.789 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.219e-05/0.01849, allocations: 43.73 kB / 377.8 MB, free: 2.746 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.792e-05/0.01852, allocations: 19.98 kB / 377.8 MB, free: 2.727 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.888e-05/0.01858, allocations: 8 kB / 377.8 MB, free: 2.719 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.741e-05/0.01865, allocations: 31.89 kB / 377.8 MB, free: 2.688 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.021e-05/0.01866, allocations: 12 kB / 377.8 MB, free: 2.676 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001011/0.01876, allocations: 197.1 kB / 378 MB, free: 2.48 MB / 346.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01876, allocations: 0 / 378 MB, free: 2.48 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002656/0.01903, allocations: 91.78 kB / 378.1 MB, free: 2.391 MB / 346.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 8.316e-05/0.01911, allocations: 113.1 kB / 378.2 MB, free: 2.273 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002926/0.0194, allocations: 216.3 kB / 378.4 MB, free: 2.059 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.794e-06/0.01941, allocations: 0 / 378.4 MB, free: 2.059 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 8.559e-05/0.01949, allocations: 89.05 kB / 378.5 MB, free: 1.969 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003163/0.01981, allocations: 74.67 kB / 378.6 MB, free: 1.906 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007456/0.02055, allocations: 0.6599 MB / 379.3 MB, free: 1.168 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.658e-05/0.02062, allocations: 100.6 kB / 379.4 MB, free: 1.051 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001168/0.02074, allocations: 59.17 kB / 379.4 MB, free: 0.9922 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.264e-05/0.0208, allocations: 28.5 kB / 379.4 MB, free: 0.9648 MB / 346.7 MB Notification: Performance of SimCode: time 8.21e-07/0.0208, allocations: 0 / 379.4 MB, free: 0.9648 MB / 346.7 MB Notification: Performance of Templates: time 0.005753/0.02655, allocations: 3.61 MB / 383.1 MB, free: 13.43 MB / 362.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 -lv LOG_STATS > BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.0135466582141817]