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.001842/0.001842, allocations: 81.5 kB / 19.44 MB, free: 344 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.002077/0.002077, allocations: 173.2 kB / 22.76 MB, free: 1.664 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.577/1.577, allocations: 177.1 MB / 203.1 MB, free: 5.598 MB / 186.7 MB " [Timeout remaining time 178] 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.3276/0.3276, allocations: 24.13 MB / 283.7 MB, free: 5.328 MB / 266.7 MB " [Timeout remaining time 179] 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.322e-06/1.322e-06, allocations: 0 / 360.5 MB, free: 4.383 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.836e-05/2.969e-05, allocations: 5.266 kB / 360.5 MB, free: 4.379 MB / 330.7 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChain): time 0.008743/0.008772, allocations: 5.234 MB / 365.7 MB, free: 15.12 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001779/0.01055, allocations: 0.6073 MB / 366.3 MB, free: 14.51 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004574/0.01101, allocations: 15.88 kB / 366.3 MB, free: 14.49 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003522/0.01136, allocations: 79.27 kB / 366.4 MB, free: 14.41 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002839/0.01165, allocations: 75.3 kB / 366.5 MB, free: 14.34 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006579/0.0123, allocations: 179.5 kB / 366.6 MB, free: 14.16 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006698/0.01297, allocations: 483 kB / 367.1 MB, free: 13.69 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003525/0.01333, allocations: 150.9 kB / 367.3 MB, free: 13.55 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000491/0.01382, allocations: 287.3 kB / 367.5 MB, free: 13.27 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003348/0.01415, allocations: 143.5 kB / 367.7 MB, free: 13.12 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 9.811e-05/0.01425, allocations: 44 kB / 367.7 MB, free: 13.08 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001283/0.01438, allocations: 56 kB / 367.8 MB, free: 13.03 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001418/0.01452, allocations: 103.6 kB / 367.9 MB, free: 12.93 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002031/0.01472, allocations: 147.6 kB / 368 MB, free: 12.78 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007339/0.01546, allocations: 474.4 kB / 368.5 MB, free: 12.32 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.01546, allocations: 0 / 368.5 MB, free: 12.32 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.252e-06/0.01546, allocations: 7.938 kB / 368.5 MB, free: 12.31 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.545e-05/0.01548, allocations: 0 / 368.5 MB, free: 12.31 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.001398/0.01687, allocations: 0.7416 MB / 369.2 MB, free: 11.53 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.293e-05/0.01692, allocations: 8.75 kB / 369.2 MB, free: 11.52 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003958/0.01731, allocations: 96.62 kB / 369.3 MB, free: 11.43 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005555/0.01787, allocations: 283.6 kB / 369.6 MB, free: 11.12 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.593e-05/0.01792, allocations: 33.38 kB / 369.6 MB, free: 11.09 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.617e-05/0.01802, allocations: 52.36 kB / 369.7 MB, free: 11.04 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008957/0.01892, allocations: 489.6 kB / 370.2 MB, free: 10.51 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.624e-05/0.01894, allocations: 0 / 370.2 MB, free: 10.51 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.093e-05/0.01898, allocations: 16 kB / 370.2 MB, free: 10.5 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.713e-05/0.019, allocations: 12 kB / 370.2 MB, free: 10.48 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005451/0.01955, allocations: 219.8 kB / 370.4 MB, free: 10.27 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002913/0.02246, allocations: 1.853 MB / 372.3 MB, free: 8.344 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006309/0.02309, allocations: 264.2 kB / 372.5 MB, free: 8.035 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002715/0.02336, allocations: 138.7 kB / 372.7 MB, free: 7.883 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.331e-05/0.02338, allocations: 7.984 kB / 372.7 MB, free: 7.875 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.769e-05/0.02342, allocations: 37.39 kB / 372.7 MB, free: 7.828 MB / 346.7 MB Notification: Performance of pre-optimization done (n=28): time 1.473e-06/0.02342, allocations: 3.938 kB / 372.7 MB, free: 7.824 MB / 346.7 MB Notification: Performance of matching and sorting (n=28): time 0.0008322/0.02426, allocations: 302.7 kB / 373 MB, free: 7.523 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001416/0.0244, allocations: 174.1 kB / 373.2 MB, free: 7.316 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004592/0.02486, allocations: 352.2 kB / 373.5 MB, free: 6.957 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.876e-05/0.02492, allocations: 37.7 kB / 373.6 MB, free: 6.914 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002727/0.02519, allocations: 283.3 kB / 373.8 MB, free: 6.633 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001151/0.0253, allocations: 95.27 kB / 373.9 MB, free: 6.539 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002437/0.02555, allocations: 135.8 kB / 374.1 MB, free: 6.398 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0003598/0.02591, allocations: 0.5352 MB / 374.6 MB, free: 5.852 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002843/0.02619, allocations: 108.9 kB / 374.7 MB, free: 5.742 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004516/0.02664, allocations: 306.6 kB / 375 MB, free: 5.379 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006049/0.02725, allocations: 358.4 kB / 375.4 MB, free: 4.969 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.948e-06/0.02725, allocations: 0 / 375.4 MB, free: 4.969 MB / 346.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0008222/0.02807, allocations: 417.7 kB / 375.8 MB, free: 4.555 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.9e-05/0.02809, allocations: 4 kB / 375.8 MB, free: 4.551 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.189e-05/0.0281, allocations: 4.406 kB / 375.8 MB, free: 4.547 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.464e-05/0.02813, allocations: 11.98 kB / 375.8 MB, free: 4.535 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002469/0.02838, allocations: 63.84 kB / 375.8 MB, free: 4.473 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.417e-05/0.02839, allocations: 7.938 kB / 375.9 MB, free: 4.465 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002249/0.02862, allocations: 47.72 kB / 375.9 MB, free: 4.418 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.549e-05/0.02865, allocations: 16 kB / 375.9 MB, free: 4.402 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 (60): * Single equations (assignments): 60 * 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.0002584/0.02891, allocations: 237.6 kB / 376.1 MB, free: 4.16 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001157/0.02902, allocations: 39.75 kB / 376.2 MB, free: 4.121 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.043e-05/0.02911, allocations: 34.27 kB / 376.2 MB, free: 4.09 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.49e-06/0.02911, allocations: 8 kB / 376.2 MB, free: 4.082 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.488e-06/0.02912, allocations: 0 / 376.2 MB, free: 4.082 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.847e-06/0.02912, allocations: 3.984 kB / 376.2 MB, free: 4.078 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00205/0.03117, allocations: 1.302 MB / 377.5 MB, free: 2.672 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.821e-06/0.03118, allocations: 4.016 kB / 377.5 MB, free: 2.668 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001998/0.03138, allocations: 43.92 kB / 377.6 MB, free: 2.625 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.201e-06/0.03139, allocations: 4 kB / 377.6 MB, free: 2.621 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.937e-05/0.03142, allocations: 8 kB / 377.6 MB, free: 2.613 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.378e-06/0.03142, allocations: 11.94 kB / 377.6 MB, free: 2.602 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.468e-06/0.03143, allocations: 7.938 kB / 377.6 MB, free: 2.594 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008904/0.03232, allocations: 0.5962 MB / 378.2 MB, free: 1.926 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001194/0.03244, allocations: 55.72 kB / 378.3 MB, free: 1.871 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.29e-05/0.03248, allocations: 8 kB / 378.3 MB, free: 1.863 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001854/0.03267, allocations: 15.98 kB / 378.3 MB, free: 1.848 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001078/0.03277, allocations: 47.77 kB / 378.3 MB, free: 1.801 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.273e-05/0.0328, allocations: 12 kB / 378.3 MB, free: 1.789 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002218/0.03302, allocations: 213.1 kB / 378.6 MB, free: 1.578 MB / 346.7 MB Notification: Performance of sort global known variables: time 8e-08/0.03302, allocations: 0 / 378.6 MB, free: 1.578 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004197/0.03344, allocations: 95.78 kB / 378.6 MB, free: 1.484 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * 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,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 (28): * Single equations (assignments): 28 * 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.000152/0.03359, allocations: 117.2 kB / 378.8 MB, free: 1.363 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0006813/0.03427, allocations: 312.6 kB / 379.1 MB, free: 1.055 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.03428, allocations: 0 / 379.1 MB, free: 1.055 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002442/0.03452, allocations: 120.6 kB / 379.2 MB, free: 0.9336 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000603/0.03512, allocations: 107.6 kB / 379.3 MB, free: 0.832 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001291/0.03641, allocations: 0.7209 MB / 380 MB, free: 24 kB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002498/0.03666, allocations: 194.8 kB / 380.2 MB, free: 15.82 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001755/0.03684, allocations: 47.25 kB / 380.2 MB, free: 15.77 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.821e-05/0.03694, allocations: 36.5 kB / 380.3 MB, free: 15.73 MB / 362.7 MB Notification: Performance of SimCode: time 6.11e-07/0.03694, allocations: 0 / 380.3 MB, free: 15.73 MB / 362.7 MB Notification: Performance of Templates: time 0.009596/0.04653, allocations: 3.904 MB / 384.2 MB, free: 11.92 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: 5.06583298696205]