Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII.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.00142/0.00142, allocations: 80.88 kB / 19.94 MB, free: 4.551 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.001691/0.001691, allocations: 177.3 kB / 23.35 MB, free: 1.141 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.975/0.975, allocations: 177.1 MB / 203.8 MB, free: 5.477 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.1031/0.1031, allocations: 24.14 MB / 284.4 MB, free: 5.133 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.SimpleProductionChainII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII") translateModel(BusinessSimulation.Examples.SimpleProductionChainII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.152e-06/1.152e-06, allocations: 0 / 308.4 MB, free: 8.949 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.69e-05/1.805e-05, allocations: 4.703 kB / 308.4 MB, free: 8.945 MB / 282.7 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChainII): time 0.007564/0.007582, allocations: 6.523 MB / 314.9 MB, free: 2.422 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001911/0.009493, allocations: 1.055 MB / 315.9 MB, free: 1.371 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003473/0.00984, allocations: 27.75 kB / 316 MB, free: 1.344 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002249/0.01007, allocations: 111 kB / 316.1 MB, free: 1.234 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001911/0.01026, allocations: 79.19 kB / 316.1 MB, free: 1.156 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005541/0.01081, allocations: 240.1 kB / 316.4 MB, free: 0.9219 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004815/0.01129, allocations: 0.5793 MB / 317 MB, free: 348 kB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002674/0.01156, allocations: 209.1 kB / 317.2 MB, free: 136 kB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003349/0.01189, allocations: 359.1 kB / 317.5 MB, free: 15.78 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001879/0.01208, allocations: 163.5 kB / 317.7 MB, free: 15.62 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.257e-05/0.01213, allocations: 56.97 kB / 317.7 MB, free: 15.57 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.571e-05/0.01221, allocations: 59.98 kB / 317.8 MB, free: 15.51 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.331e-05/0.01229, allocations: 127.6 kB / 317.9 MB, free: 15.38 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001029/0.0124, allocations: 172.4 kB / 318.1 MB, free: 15.21 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000331/0.01273, allocations: 370.5 kB / 318.4 MB, free: 14.85 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.783e-06/0.01273, allocations: 4 kB / 318.5 MB, free: 14.85 MB / 298.7 MB Notification: Performance of FrontEnd: time 6.71e-07/0.01273, allocations: 0 / 318.5 MB, free: 14.85 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.568e-06/0.01273, allocations: 0 / 318.5 MB, free: 14.85 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 125 * Number of variables: 125 Notification: Performance of Generate backend data structure: time 0.0006522/0.01339, allocations: 0.6763 MB / 319.1 MB, free: 14.15 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.752e-05/0.01341, allocations: 12.75 kB / 319.1 MB, free: 14.14 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001891/0.0136, allocations: 96.84 kB / 319.2 MB, free: 14.04 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003424/0.01395, allocations: 320.2 kB / 319.5 MB, free: 13.71 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.845e-05/0.01398, allocations: 45.38 kB / 319.6 MB, free: 13.66 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.374e-05/0.01404, allocations: 60.38 kB / 319.6 MB, free: 13.61 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003791/0.01442, allocations: 443.5 kB / 320.1 MB, free: 13.12 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.239e-05/0.01443, allocations: 11.98 kB / 320.1 MB, free: 13.11 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.277e-05/0.01445, allocations: 20 kB / 320.1 MB, free: 13.09 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.001e-05/0.01446, allocations: 12 kB / 320.1 MB, free: 13.08 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00014/0.0146, allocations: 122.8 kB / 320.2 MB, free: 12.96 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001165/0.01577, allocations: 1.397 MB / 321.6 MB, free: 11.51 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001629/0.01593, allocations: 166.8 kB / 321.8 MB, free: 11.32 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.282e-05/0.016, allocations: 83.34 kB / 321.9 MB, free: 11.22 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.42e-05/0.01602, allocations: 11.98 kB / 321.9 MB, free: 11.21 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.566e-05/0.01604, allocations: 50.48 kB / 321.9 MB, free: 11.15 MB / 298.7 MB Notification: Performance of pre-optimization done (n=29): time 1.223e-06/0.01604, allocations: 0 / 321.9 MB, free: 11.15 MB / 298.7 MB Notification: Performance of matching and sorting (n=29): time 0.0002472/0.01629, allocations: 174.7 kB / 322.1 MB, free: 10.98 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.498e-05/0.01635, allocations: 158.2 kB / 322.3 MB, free: 10.79 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001576/0.0165, allocations: 286.7 kB / 322.6 MB, free: 10.5 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.243e-05/0.01654, allocations: 41.7 kB / 322.6 MB, free: 10.45 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001068/0.01664, allocations: 253.3 kB / 322.8 MB, free: 10.2 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.016e-05/0.01669, allocations: 99.17 kB / 322.9 MB, free: 10.1 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.001e-05/0.01678, allocations: 110.2 kB / 323 MB, free: 9.988 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.899e-05/0.01687, allocations: 350.7 kB / 323.4 MB, free: 9.637 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.778e-05/0.01694, allocations: 49.67 kB / 323.4 MB, free: 9.586 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001333/0.01707, allocations: 216.8 kB / 323.6 MB, free: 9.309 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001957/0.01727, allocations: 268.8 kB / 323.9 MB, free: 8.988 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.01727, allocations: 0 / 323.9 MB, free: 8.988 MB / 298.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.0002451/0.01752, allocations: 274 kB / 324.2 MB, free: 8.715 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.101e-05/0.01753, allocations: 4 kB / 324.2 MB, free: 8.711 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.222e-06/0.01753, allocations: 8 kB / 324.2 MB, free: 8.703 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.421e-05/0.01755, allocations: 8.5 kB / 324.2 MB, free: 8.695 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000128/0.01768, allocations: 75.83 kB / 324.3 MB, free: 8.621 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.204e-06/0.01768, allocations: 11.94 kB / 324.3 MB, free: 8.609 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001018/0.01779, allocations: 51.62 kB / 324.3 MB, free: 8.559 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.989e-05/0.01781, allocations: 16 kB / 324.4 MB, free: 8.543 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * 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 (65): * Single equations (assignments): 65 * 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.0001141/0.01792, allocations: 161.7 kB / 324.5 MB, free: 8.375 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.713e-05/0.01798, allocations: 31.97 kB / 324.5 MB, free: 8.344 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.44e-05/0.01802, allocations: 38.45 kB / 324.6 MB, free: 8.305 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.387e-06/0.01802, allocations: 4 kB / 324.6 MB, free: 8.301 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.475e-06/0.01803, allocations: 0 / 324.6 MB, free: 8.301 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.521e-06/0.01803, allocations: 11.86 kB / 324.6 MB, free: 8.289 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000652/0.01868, allocations: 0.7759 MB / 325.4 MB, free: 7.457 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.228e-06/0.01869, allocations: 4 kB / 325.4 MB, free: 7.453 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001101/0.0188, allocations: 39.91 kB / 325.4 MB, free: 7.414 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.777e-06/0.0188, allocations: 4 kB / 325.4 MB, free: 7.41 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.771e-05/0.01882, allocations: 11.94 kB / 325.4 MB, free: 7.398 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.657e-06/0.01882, allocations: 8.188 kB / 325.4 MB, free: 7.391 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.01883, allocations: 4 kB / 325.4 MB, free: 7.387 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000252/0.01908, allocations: 338 kB / 325.8 MB, free: 7.012 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.309e-05/0.01913, allocations: 43.69 kB / 325.8 MB, free: 6.969 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.46e-05/0.01915, allocations: 11.94 kB / 325.8 MB, free: 6.957 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.763e-05/0.01922, allocations: 8 kB / 325.8 MB, free: 6.949 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.214e-05/0.01927, allocations: 31.94 kB / 325.9 MB, free: 6.918 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.164e-05/0.01929, allocations: 12.06 kB / 325.9 MB, free: 6.906 MB / 298.7 MB Notification: Performance of sorting global known variables: time 6.256e-05/0.01935, allocations: 92.62 kB / 326 MB, free: 6.812 MB / 298.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01935, allocations: 4 kB / 326 MB, free: 6.809 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000242/0.01959, allocations: 103.7 kB / 326.1 MB, free: 6.707 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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,producing.growing.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) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (29): * Single equations (assignments): 29 * 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 9.033e-05/0.01968, allocations: 98.3 kB / 326.2 MB, free: 6.605 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000216/0.0199, allocations: 210.5 kB / 326.4 MB, free: 6.398 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 7.755e-06/0.0199, allocations: 4.375 kB / 326.4 MB, free: 6.395 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 7.438e-05/0.01998, allocations: 80.66 kB / 326.5 MB, free: 6.312 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002852/0.02026, allocations: 91.22 kB / 326.5 MB, free: 6.23 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008069/0.02107, allocations: 0.7535 MB / 327.3 MB, free: 5.422 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.862e-05/0.02114, allocations: 113.1 kB / 327.4 MB, free: 5.289 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001314/0.02127, allocations: 55.27 kB / 327.5 MB, free: 5.23 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001572/0.02143, allocations: 135.3 kB / 327.6 MB, free: 5.098 MB / 298.7 MB Notification: Performance of SimCode: time 6.71e-07/0.02143, allocations: 3.938 kB / 327.6 MB, free: 5.094 MB / 298.7 MB Notification: Performance of Templates: time 0.006461/0.02789, allocations: 4.412 MB / 332 MB, free: 0.8125 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII.makefile [Timeout 660] (rm -f BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII.pipe ; mkfifo BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII.pipe ; head -c 1048576 < BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII.pipe >> ../files/BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII.sim & ./BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII -abortSlowSimulation -alarm=240 -lv LOG_STATS > BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 2.860574181191623]