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.0009552/0.0009552, allocations: 73.09 kB / 20.66 MB, free: 3.844 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.0009779/0.0009779, allocations: 169 kB / 24.06 MB, free: 456 kB / 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.9293/0.9293, allocations: 177.1 MB / 204.5 MB, free: 5.508 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.1032/0.1032, allocations: 24.14 MB / 285.2 MB, free: 5.102 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.203e-06/1.203e-06, allocations: 0 / 362.4 MB, free: 3.738 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.326e-05/1.446e-05, allocations: 5.547 kB / 362.4 MB, free: 3.734 MB / 330.7 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChain): time 0.004314/0.004328, allocations: 5.234 MB / 367.6 MB, free: 14.47 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001023/0.005352, allocations: 0.6192 MB / 368.3 MB, free: 13.85 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000201/0.005553, allocations: 15.88 kB / 368.3 MB, free: 13.84 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002059/0.005759, allocations: 79.31 kB / 368.4 MB, free: 13.76 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001517/0.005911, allocations: 67.31 kB / 368.4 MB, free: 13.69 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004309/0.006341, allocations: 203.4 kB / 368.6 MB, free: 13.49 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.000385/0.006726, allocations: 466.9 kB / 369.1 MB, free: 13.04 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002202/0.006947, allocations: 154.9 kB / 369.2 MB, free: 12.89 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003008/0.007247, allocations: 303.2 kB / 369.5 MB, free: 12.59 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001675/0.007415, allocations: 139.5 kB / 369.7 MB, free: 12.45 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 4.217e-05/0.007457, allocations: 40 kB / 369.7 MB, free: 12.41 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.22e-05/0.007529, allocations: 51.94 kB / 369.7 MB, free: 12.36 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 7.562e-05/0.007605, allocations: 103.6 kB / 369.8 MB, free: 12.26 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 8.905e-05/0.007694, allocations: 135.7 kB / 370 MB, free: 12.13 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002934/0.007987, allocations: 302.8 kB / 370.3 MB, free: 11.83 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.505e-06/0.00799, allocations: 8 kB / 370.3 MB, free: 11.82 MB / 346.7 MB Notification: Performance of FrontEnd: time 5.31e-07/0.00799, allocations: 0 / 370.3 MB, free: 11.82 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.38e-06/0.007996, allocations: 0 / 370.3 MB, free: 11.82 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.0006498/0.008646, allocations: 0.6986 MB / 371 MB, free: 11.09 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.298e-05/0.008679, allocations: 8.75 kB / 371 MB, free: 11.08 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001987/0.008877, allocations: 100.6 kB / 371.1 MB, free: 10.98 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002917/0.009169, allocations: 298.2 kB / 371.4 MB, free: 10.66 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.282e-05/0.009202, allocations: 37.38 kB / 371.4 MB, free: 10.62 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.516e-05/0.009247, allocations: 48.38 kB / 371.5 MB, free: 10.58 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00032/0.009567, allocations: 398.3 kB / 371.9 MB, free: 10.14 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.034e-05/0.009577, allocations: 0 / 371.9 MB, free: 10.14 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.075e-05/0.009598, allocations: 16 kB / 371.9 MB, free: 10.12 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.368e-06/0.009607, allocations: 12 kB / 371.9 MB, free: 10.11 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001167/0.009724, allocations: 110.8 kB / 372 MB, free: 10 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00108/0.0108, allocations: 1.744 MB / 373.7 MB, free: 8.191 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001664/0.01097, allocations: 192.7 kB / 373.9 MB, free: 7.953 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.624e-05/0.01104, allocations: 81.53 kB / 374 MB, free: 7.859 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.238e-05/0.01105, allocations: 7.938 kB / 374 MB, free: 7.852 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.294e-05/0.01107, allocations: 49.38 kB / 374.1 MB, free: 7.793 MB / 346.7 MB Notification: Performance of pre-optimization done (n=25): time 1.031e-06/0.01107, allocations: 0 / 374.1 MB, free: 7.793 MB / 346.7 MB Notification: Performance of matching and sorting (n=25): time 0.0002503/0.01132, allocations: 189.2 kB / 374.2 MB, free: 7.602 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.76e-05/0.01137, allocations: 158.6 kB / 374.4 MB, free: 7.41 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000149/0.01152, allocations: 320 kB / 374.7 MB, free: 7.082 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.786e-05/0.01155, allocations: 37.7 kB / 374.7 MB, free: 7.039 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001102/0.01166, allocations: 279.2 kB / 375 MB, free: 6.762 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.749e-05/0.01171, allocations: 79.34 kB / 375.1 MB, free: 6.684 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.806e-05/0.01179, allocations: 107.7 kB / 375.2 MB, free: 6.57 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001258/0.01192, allocations: 0.5157 MB / 375.7 MB, free: 6.043 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.458e-05/0.01199, allocations: 52.95 kB / 375.8 MB, free: 5.988 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001377/0.01213, allocations: 263.5 kB / 376 MB, free: 5.656 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001915/0.01232, allocations: 298 kB / 376.3 MB, free: 5.289 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.01233, allocations: 4 kB / 376.3 MB, free: 5.285 MB / 346.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0002847/0.01261, allocations: 317.2 kB / 376.6 MB, free: 4.969 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.261e-05/0.01262, allocations: 15.92 kB / 376.6 MB, free: 4.953 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.01263, allocations: 4 kB / 376.7 MB, free: 4.949 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.101e-05/0.01264, allocations: 8 kB / 376.7 MB, free: 4.941 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001132/0.01275, allocations: 59.84 kB / 376.7 MB, free: 4.883 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.243e-06/0.01276, allocations: 11.94 kB / 376.7 MB, free: 4.871 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001049/0.01287, allocations: 47.62 kB / 376.8 MB, free: 4.824 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.967e-05/0.01289, allocations: 16 kB / 376.8 MB, free: 4.809 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,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.0001169/0.013, allocations: 217.9 kB / 377 MB, free: 4.586 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.239e-05/0.01307, allocations: 31.8 kB / 377 MB, free: 4.555 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.535e-05/0.0131, allocations: 34.28 kB / 377.1 MB, free: 4.523 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.825e-06/0.0131, allocations: 7.922 kB / 377.1 MB, free: 4.516 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.224e-06/0.01311, allocations: 4 kB / 377.1 MB, free: 4.512 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.407e-06/0.01311, allocations: 0 / 377.1 MB, free: 4.512 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006854/0.01379, allocations: 1.029 MB / 378.1 MB, free: 3.402 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.0138, allocations: 0 / 378.1 MB, free: 3.402 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.798e-05/0.01389, allocations: 35.92 kB / 378.1 MB, free: 3.367 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.266e-06/0.0139, allocations: 4 kB / 378.1 MB, free: 3.363 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.647e-05/0.01391, allocations: 15.98 kB / 378.2 MB, free: 3.348 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.629e-06/0.01392, allocations: 11.88 kB / 378.2 MB, free: 3.336 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.01392, allocations: 4 kB / 378.2 MB, free: 3.332 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002638/0.01418, allocations: 441.1 kB / 378.6 MB, free: 2.84 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.772e-05/0.01423, allocations: 43.72 kB / 378.7 MB, free: 2.797 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.188e-05/0.01425, allocations: 15.94 kB / 378.7 MB, free: 2.781 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.512e-05/0.01432, allocations: 8 kB / 378.7 MB, free: 2.773 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.511e-05/0.01436, allocations: 27.94 kB / 378.7 MB, free: 2.746 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.857e-06/0.01437, allocations: 12 kB / 378.7 MB, free: 2.734 MB / 346.7 MB Notification: Performance of sorting global known variables: time 7.116e-05/0.01444, allocations: 193.1 kB / 378.9 MB, free: 2.543 MB / 346.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01444, allocations: 0 / 378.9 MB, free: 2.543 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000235/0.01468, allocations: 91.72 kB / 379 MB, free: 2.453 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 7.457e-05/0.01475, allocations: 121.1 kB / 379.1 MB, free: 2.328 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002158/0.01497, allocations: 192.2 kB / 379.3 MB, free: 2.137 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.402e-06/0.01497, allocations: 0 / 379.3 MB, free: 2.137 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 6.882e-05/0.01504, allocations: 89.16 kB / 379.4 MB, free: 2.047 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002843/0.01532, allocations: 68.58 kB / 379.5 MB, free: 1.98 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006195/0.01594, allocations: 0.652 MB / 380.1 MB, free: 1.25 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.578e-05/0.016, allocations: 104.6 kB / 380.2 MB, free: 1.129 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001026/0.0161, allocations: 43.25 kB / 380.3 MB, free: 1.086 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001407/0.01624, allocations: 142.2 kB / 380.4 MB, free: 0.9453 MB / 346.7 MB Notification: Performance of SimCode: time 5.41e-07/0.01624, allocations: 0 / 380.4 MB, free: 0.9453 MB / 346.7 MB Notification: Performance of Templates: time 0.005391/0.02163, allocations: 3.805 MB / 384.2 MB, free: 13.24 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: 2.860393875744194]