Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BusinessSimulation_dev_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.001033/0.001033, allocations: 92.2 kB / 20.19 MB, free: 4.359 MB / 18.57 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.0012/0.0012, allocations: 173 kB / 23.49 MB, free: 1.059 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 0.9898/0.9898, allocations: 177.1 MB / 203.8 MB, free: 5.648 MB / 186.7 MB " [Timeout remaining time 179] 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.1205/0.1205, allocations: 24.13 MB / 284.4 MB, free: 5.332 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.SimpleProductionChain,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain") translateModel(BusinessSimulation.Examples.SimpleProductionChain,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.182e-06/1.182e-06, allocations: 3.938 kB / 361.2 MB, free: 4.207 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.349e-05/2.468e-05, allocations: 6.312 kB / 361.2 MB, free: 4.199 MB / 330.7 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChain): time 0.005047/0.005071, allocations: 5.264 MB / 366.5 MB, free: 14.91 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001101/0.006172, allocations: 0.6115 MB / 367.1 MB, free: 14.29 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002325/0.006405, allocations: 15.88 kB / 367.1 MB, free: 14.28 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002347/0.006639, allocations: 83.25 kB / 367.2 MB, free: 14.2 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001739/0.006813, allocations: 71.31 kB / 367.2 MB, free: 14.12 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004885/0.007302, allocations: 187.5 kB / 367.4 MB, free: 13.94 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.000415/0.007717, allocations: 467 kB / 367.9 MB, free: 13.48 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002423/0.007959, allocations: 162.8 kB / 368 MB, free: 13.33 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002702/0.008229, allocations: 291.4 kB / 368.3 MB, free: 13.04 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001954/0.008425, allocations: 143.5 kB / 368.5 MB, free: 12.9 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 5.199e-05/0.008477, allocations: 44 kB / 368.5 MB, free: 12.86 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.451e-05/0.008561, allocations: 59.92 kB / 368.6 MB, free: 12.8 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 9.268e-05/0.008654, allocations: 107.6 kB / 368.7 MB, free: 12.7 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000115/0.008769, allocations: 147.6 kB / 368.8 MB, free: 12.55 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003629/0.009132, allocations: 310.8 kB / 369.1 MB, free: 12.25 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.009135, allocations: 0 / 369.1 MB, free: 12.25 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.002e-06/0.009136, allocations: 0 / 369.1 MB, free: 12.25 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.663e-06/0.009143, allocations: 0 / 369.1 MB, free: 12.25 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.000767/0.00991, allocations: 0.7143 MB / 369.8 MB, free: 11.5 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.865e-05/0.009949, allocations: 12.75 kB / 369.8 MB, free: 11.48 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002352/0.01018, allocations: 92.62 kB / 369.9 MB, free: 11.39 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003166/0.0105, allocations: 287.6 kB / 370.2 MB, free: 11.09 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.857e-05/0.01054, allocations: 41.36 kB / 370.3 MB, free: 11.04 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.953e-05/0.01059, allocations: 44.38 kB / 370.3 MB, free: 11 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004697/0.01106, allocations: 430.3 kB / 370.7 MB, free: 10.53 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.123e-05/0.01107, allocations: 0 / 370.7 MB, free: 10.53 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.796e-05/0.0111, allocations: 20 kB / 370.7 MB, free: 10.51 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.155e-05/0.01111, allocations: 8 kB / 370.7 MB, free: 10.5 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002081/0.01132, allocations: 133.8 kB / 370.9 MB, free: 10.37 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001731/0.01305, allocations: 1.759 MB / 372.6 MB, free: 8.539 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003491/0.0134, allocations: 224.2 kB / 372.9 MB, free: 8.27 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001104/0.01351, allocations: 111.1 kB / 373 MB, free: 8.145 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.318e-05/0.01352, allocations: 7.984 kB / 373 MB, free: 8.137 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.479e-05/0.01355, allocations: 45.33 kB / 373 MB, free: 8.082 MB / 346.7 MB Notification: Performance of pre-optimization done (n=28): time 1.482e-06/0.01355, allocations: 0 / 373 MB, free: 8.082 MB / 346.7 MB Notification: Performance of matching and sorting (n=28): time 0.0003995/0.01395, allocations: 222.6 kB / 373.2 MB, free: 7.859 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.703e-05/0.014, allocations: 162.2 kB / 373.4 MB, free: 7.664 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001995/0.0142, allocations: 304.1 kB / 373.7 MB, free: 7.352 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.983e-05/0.01423, allocations: 42.08 kB / 373.7 MB, free: 7.305 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001137/0.01435, allocations: 267.3 kB / 374 MB, free: 7.039 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.254e-05/0.0144, allocations: 87.27 kB / 374.1 MB, free: 6.953 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001005/0.0145, allocations: 107.8 kB / 374.2 MB, free: 6.84 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001173/0.01462, allocations: 0.5157 MB / 374.7 MB, free: 6.312 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001228/0.01474, allocations: 68.94 kB / 374.8 MB, free: 6.242 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002645/0.015, allocations: 234.6 kB / 375 MB, free: 5.949 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002467/0.01525, allocations: 274.4 kB / 375.3 MB, free: 5.621 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.01525, allocations: 0 / 375.3 MB, free: 5.621 MB / 346.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.000365/0.01562, allocations: 345.7 kB / 375.6 MB, free: 5.277 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.837e-05/0.01564, allocations: 10.66 kB / 375.6 MB, free: 5.27 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.101e-06/0.01564, allocations: 4 kB / 375.6 MB, free: 5.266 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.362e-05/0.01566, allocations: 4 kB / 375.6 MB, free: 5.262 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000138/0.01579, allocations: 60.25 kB / 375.7 MB, free: 5.203 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.147e-06/0.0158, allocations: 12 kB / 375.7 MB, free: 5.191 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00011/0.01591, allocations: 47.66 kB / 375.7 MB, free: 5.145 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.173e-05/0.01594, allocations: 20 kB / 375.7 MB, free: 5.125 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.0001187/0.01605, allocations: 201.6 kB / 375.9 MB, free: 4.918 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.875e-05/0.01612, allocations: 43.8 kB / 376 MB, free: 4.875 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.206e-05/0.01616, allocations: 34.27 kB / 376 MB, free: 4.844 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.467e-06/0.01617, allocations: 4 kB / 376 MB, free: 4.84 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.593e-06/0.01617, allocations: 4 kB / 376 MB, free: 4.836 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/0.01618, allocations: 0 / 376 MB, free: 4.836 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008587/0.01704, allocations: 1.165 MB / 377.2 MB, free: 3.566 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.367e-06/0.01704, allocations: 4 kB / 377.2 MB, free: 3.562 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001057/0.01715, allocations: 31.92 kB / 377.2 MB, free: 3.531 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.829e-06/0.01715, allocations: 4 kB / 377.2 MB, free: 3.527 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.55e-05/0.01718, allocations: 16.39 kB / 377.3 MB, free: 3.512 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.049e-06/0.01718, allocations: 11.94 kB / 377.3 MB, free: 3.5 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.955e-06/0.01718, allocations: 4 kB / 377.3 MB, free: 3.496 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003761/0.01756, allocations: 0.4951 MB / 377.8 MB, free: 2.926 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.851e-05/0.01763, allocations: 55.72 kB / 377.8 MB, free: 2.871 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.052e-05/0.01766, allocations: 12 kB / 377.8 MB, free: 2.859 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.56e-05/0.01776, allocations: 11.98 kB / 377.8 MB, free: 2.848 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.669e-05/0.01782, allocations: 39.83 kB / 377.9 MB, free: 2.809 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.117e-05/0.01783, allocations: 12 kB / 377.9 MB, free: 2.797 MB / 346.7 MB Notification: Performance of sorting global known variables: time 9.612e-05/0.01793, allocations: 193.1 kB / 378.1 MB, free: 2.605 MB / 346.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01793, allocations: 0 / 378.1 MB, free: 2.605 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002638/0.01819, allocations: 95.78 kB / 378.2 MB, free: 2.512 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.0002806/0.01847, allocations: 113.2 kB / 378.3 MB, free: 2.395 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002984/0.01877, allocations: 221.3 kB / 378.5 MB, free: 2.176 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.467e-06/0.01878, allocations: 4 kB / 378.5 MB, free: 2.172 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 9.978e-05/0.01888, allocations: 94.55 kB / 378.6 MB, free: 2.078 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003678/0.01924, allocations: 85.19 kB / 378.7 MB, free: 2 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007972/0.02004, allocations: 0.7015 MB / 379.4 MB, free: 1.211 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.247e-05/0.0201, allocations: 100.8 kB / 379.5 MB, free: 1.094 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001083/0.02021, allocations: 47.25 kB / 379.5 MB, free: 1.047 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.522e-05/0.02028, allocations: 36.5 kB / 379.6 MB, free: 1.012 MB / 346.7 MB Notification: Performance of SimCode: time 1.123e-06/0.02028, allocations: 0 / 379.6 MB, free: 1.012 MB / 346.7 MB Notification: Performance of Templates: time 0.006057/0.02633, allocations: 3.924 MB / 383.5 MB, free: 13.18 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain.makefile [Timeout 660] (rm -f BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain.pipe ; mkfifo BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain.pipe ; head -c 1048576 < BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain.pipe >> ../files/BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain.sim & ./BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain -abortSlowSimulation -alarm=240 -lv LOG_STATS > BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.2333239540457726]