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.000978/0.000978, allocations: 72.19 kB / 9.903 MB, free: 0.7852 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001373/0.002351, allocations: 435.8 kB / 10.33 MB, free: 368 kB / 10.45 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.0009038/0.0009038, allocations: 161.1 kB / 11.23 MB, free: 2.941 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001124/0.002027, allocations: 463.6 kB / 11.68 MB, free: 2.484 MB / 13.93 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.9855/0.9855, allocations: 177.1 MB / 189.6 MB, free: 5.316 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09398/1.079, allocations: 53.65 MB / 243.2 MB, free: 15.59 MB / 250.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.1325/0.1325, allocations: 24.14 MB / 268.1 MB, free: 7.086 MB / 266.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.126/0.2585, allocations: 7.759 MB / 275.9 MB, free: 0.8438 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.333e-06/1.333e-06, allocations: 0 / 277.3 MB, free: 152 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.989e-06/1.132e-05, allocations: 6.344 kB / 277.3 MB, free: 148 kB / 266.7 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChain): time 0.009987/0.009999, allocations: 5.315 MB / 282.6 MB, free: 12.63 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.004132/0.01413, allocations: 0.6459 MB / 283.2 MB, free: 12.18 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001719/0.0143, allocations: 15.91 kB / 283.3 MB, free: 12.17 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001653/0.01447, allocations: 82.73 kB / 283.3 MB, free: 12.12 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001529/0.01462, allocations: 78.14 kB / 283.4 MB, free: 12.07 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003467/0.01497, allocations: 194.2 kB / 283.6 MB, free: 11.95 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004131/0.01538, allocations: 460.1 kB / 284.1 MB, free: 11.72 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002214/0.0156, allocations: 154.2 kB / 284.2 MB, free: 11.64 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003032/0.0159, allocations: 304.4 kB / 284.5 MB, free: 11.5 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001741/0.01608, allocations: 141.2 kB / 284.6 MB, free: 11.44 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 5.297e-05/0.01613, allocations: 43.75 kB / 284.7 MB, free: 11.44 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.991e-05/0.01623, allocations: 48.53 kB / 284.7 MB, free: 11.44 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 8.51e-05/0.01632, allocations: 81.06 kB / 284.8 MB, free: 11.42 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000122/0.01644, allocations: 111.1 kB / 284.9 MB, free: 11.41 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003287/0.01677, allocations: 270.3 kB / 285.2 MB, free: 11.3 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.105e-06/0.01678, allocations: 2.844 kB / 285.2 MB, free: 11.3 MB / 282.7 MB Notification: Performance of FrontEnd: time 8.22e-07/0.01678, allocations: 0 / 285.2 MB, free: 11.3 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.001e-05/0.01679, allocations: 0.7969 kB / 285.2 MB, free: 11.3 MB / 282.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.0007654/0.01755, allocations: 0.6696 MB / 285.9 MB, free: 10.86 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.416e-05/0.01758, allocations: 8.688 kB / 285.9 MB, free: 10.86 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000257/0.01783, allocations: 162.8 kB / 286 MB, free: 10.75 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003272/0.01816, allocations: 260.5 kB / 286.3 MB, free: 10.55 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.677e-05/0.0182, allocations: 40.5 kB / 286.3 MB, free: 10.54 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.681e-05/0.01825, allocations: 48.75 kB / 286.4 MB, free: 10.52 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004182/0.01867, allocations: 382.7 kB / 286.7 MB, free: 10.28 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.286e-05/0.01868, allocations: 0 / 286.7 MB, free: 10.28 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.531e-05/0.01871, allocations: 21.5 kB / 286.8 MB, free: 10.27 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.311e-05/0.01872, allocations: 9.594 kB / 286.8 MB, free: 10.27 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001686/0.01889, allocations: 102.1 kB / 286.9 MB, free: 10.25 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002281/0.02117, allocations: 1.229 MB / 288.1 MB, free: 9.301 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001843/0.02136, allocations: 146.5 kB / 288.2 MB, free: 9.191 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.981e-05/0.02144, allocations: 68.39 kB / 288.3 MB, free: 9.152 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.356e-05/0.02145, allocations: 4.281 kB / 288.3 MB, free: 9.152 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.949e-05/0.02148, allocations: 48.12 kB / 288.4 MB, free: 9.102 MB / 282.7 MB Notification: Performance of pre-optimization done (n=25): time 1.423e-06/0.02148, allocations: 0 / 288.4 MB, free: 9.102 MB / 282.7 MB Notification: Performance of matching and sorting (n=25): time 0.0002721/0.02175, allocations: 151.7 kB / 288.5 MB, free: 9.059 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.421e-05/0.02181, allocations: 140 kB / 288.6 MB, free: 8.895 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001898/0.022, allocations: 258.6 kB / 288.9 MB, free: 8.727 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.199e-05/0.02203, allocations: 40.2 kB / 288.9 MB, free: 8.688 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001163/0.02215, allocations: 219.8 kB / 289.2 MB, free: 8.512 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.159e-05/0.02221, allocations: 84.81 kB / 289.2 MB, free: 8.445 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002339/0.02244, allocations: 110.2 kB / 289.3 MB, free: 8.379 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.000101/0.02254, allocations: 343.4 kB / 289.7 MB, free: 8.043 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.57e-05/0.02263, allocations: 46.41 kB / 289.7 MB, free: 8.035 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001578/0.02279, allocations: 208.5 kB / 289.9 MB, free: 7.828 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000237/0.02302, allocations: 246.8 kB / 290.2 MB, free: 7.625 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.197e-06/0.02303, allocations: 1.25 kB / 290.2 MB, free: 7.625 MB / 282.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0003073/0.02333, allocations: 268.4 kB / 290.4 MB, free: 7.504 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.664e-05/0.02335, allocations: 6.531 kB / 290.4 MB, free: 7.504 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.696e-06/0.02336, allocations: 4.875 kB / 290.4 MB, free: 7.504 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.568e-05/0.02338, allocations: 7 kB / 290.4 MB, free: 7.504 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001602/0.02354, allocations: 68.38 kB / 290.5 MB, free: 7.484 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.007e-05/0.02355, allocations: 11.47 kB / 290.5 MB, free: 7.48 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.714e-05/0.02364, allocations: 51.98 kB / 290.6 MB, free: 7.441 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.05e-05/0.02366, allocations: 19.81 kB / 290.6 MB, free: 7.434 MB / 282.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,inventory.outflow.stopInflow,producing.cloud.massPort.stopInflow,installedBase.inflow.stopOutflow,inventory.inflow.stopInflow,producing.cloud.massPort.stopOutflow,installedBase.inflow.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,cloud1.massPort.stopInflow,cloud1.massPort.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.000116/0.02378, allocations: 155.3 kB / 290.7 MB, free: 7.293 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.692e-05/0.02384, allocations: 27.81 kB / 290.8 MB, free: 7.281 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.213e-05/0.02388, allocations: 33.08 kB / 290.8 MB, free: 7.254 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.767e-06/0.02388, allocations: 2.969 kB / 290.8 MB, free: 7.254 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.607e-06/0.02389, allocations: 1.531 kB / 290.8 MB, free: 7.254 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.827e-06/0.02389, allocations: 6.734 kB / 290.8 MB, free: 7.25 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006774/0.02457, allocations: 0.7515 MB / 291.6 MB, free: 6.582 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.815e-06/0.02458, allocations: 2.75 kB / 291.6 MB, free: 6.582 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001075/0.02468, allocations: 40.66 kB / 291.6 MB, free: 6.566 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.771e-05/0.02473, allocations: 33.5 kB / 291.6 MB, free: 6.547 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.22e-06/0.02474, allocations: 8.109 kB / 291.7 MB, free: 6.543 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.787e-05/0.02475, allocations: 12.06 kB / 291.7 MB, free: 6.535 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.738e-06/0.02476, allocations: 8.125 kB / 291.7 MB, free: 6.531 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/0.02476, allocations: 3.062 kB / 291.7 MB, free: 6.531 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002659/0.02503, allocations: 337 kB / 292 MB, free: 6.258 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.648e-05/0.02505, allocations: 9.5 kB / 292 MB, free: 6.254 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.848e-05/0.02512, allocations: 12.11 kB / 292 MB, free: 6.246 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.385e-05/0.02517, allocations: 29.47 kB / 292.1 MB, free: 6.227 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.07e-05/0.02519, allocations: 10.86 kB / 292.1 MB, free: 6.223 MB / 282.7 MB Notification: Performance of sorting global known variables: time 6.394e-05/0.02525, allocations: 73.28 kB / 292.1 MB, free: 6.184 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.02525, allocations: 0 / 292.1 MB, free: 6.184 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002511/0.0255, allocations: 93.61 kB / 292.2 MB, free: 6.152 MB / 282.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 0.000102/0.0256, allocations: 103.8 kB / 292.3 MB, free: 6.07 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.000236/0.02584, allocations: 182.9 kB / 292.5 MB, free: 6.008 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.297e-05/0.02585, allocations: 10.61 kB / 292.5 MB, free: 6.004 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 7.258e-05/0.02592, allocations: 70.98 kB / 292.6 MB, free: 5.973 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002825/0.02621, allocations: 95.38 kB / 292.7 MB, free: 5.934 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001005/0.02721, allocations: 0.6695 MB / 293.3 MB, free: 5.406 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.999e-05/0.02728, allocations: 99.95 kB / 293.4 MB, free: 5.316 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001106/0.02739, allocations: 46.44 kB / 293.5 MB, free: 5.293 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001407/0.02753, allocations: 117.3 kB / 293.6 MB, free: 5.234 MB / 282.7 MB Notification: Performance of SimCode: time 6.21e-07/0.02753, allocations: 0 / 293.6 MB, free: 5.234 MB / 282.7 MB Notification: Performance of Templates: time 0.006164/0.0337, allocations: 3.855 MB / 297.5 MB, free: 2.992 MB / 282.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: 2.7408324824646115]