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.001535/0.001535, allocations: 80.3 kB / 19.18 MB, free: 2.516 MB / 14.72 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.00151/0.00151, allocations: 161.4 kB / 22.45 MB, free: 5.375 MB / 14.72 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.419/1.419, allocations: 177.2 MB / 202.8 MB, free: 9.172 MB / 190.1 MB " [Timeout remaining time 178] 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.2599/0.2599, allocations: 24.14 MB / 283.3 MB, free: 8.988 MB / 270.1 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.542e-06/1.542e-06, allocations: 0 / 420.5 MB, free: 12.68 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.776e-05/2.93e-05, allocations: 8.812 kB / 420.5 MB, free: 12.67 MB / 350.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChain): time 0.006703/0.006732, allocations: 5.092 MB / 425.6 MB, free: 7.547 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00145/0.008182, allocations: 0.6033 MB / 426.2 MB, free: 6.941 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002119/0.008393, allocations: 11.94 kB / 426.3 MB, free: 6.93 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002512/0.008645, allocations: 83.31 kB / 426.3 MB, free: 6.848 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002046/0.008849, allocations: 75.25 kB / 426.4 MB, free: 6.773 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005524/0.009402, allocations: 195.4 kB / 426.6 MB, free: 6.582 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005197/0.009921, allocations: 467.1 kB / 427.1 MB, free: 6.125 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002831/0.0102, allocations: 146.9 kB / 427.2 MB, free: 5.98 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003414/0.01055, allocations: 287.4 kB / 427.5 MB, free: 5.699 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002371/0.01078, allocations: 139.5 kB / 427.6 MB, free: 5.562 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.447e-05/0.01086, allocations: 48 kB / 427.7 MB, free: 5.516 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001042/0.01096, allocations: 52 kB / 427.7 MB, free: 5.465 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001224/0.01108, allocations: 111.6 kB / 427.8 MB, free: 5.355 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001539/0.01124, allocations: 147.6 kB / 428 MB, free: 5.211 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005549/0.01179, allocations: 466.5 kB / 428.4 MB, free: 4.754 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.008e-06/0.0118, allocations: 3.938 kB / 428.4 MB, free: 4.75 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.213e-06/0.0118, allocations: 0 / 428.4 MB, free: 4.75 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.885e-06/0.01181, allocations: 0 / 428.4 MB, free: 4.75 MB / 350.1 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.001212/0.01302, allocations: 0.6186 MB / 429 MB, free: 4.098 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.831e-05/0.01306, allocations: 8.75 kB / 429.1 MB, free: 4.09 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003179/0.01337, allocations: 68.62 kB / 429.1 MB, free: 4.023 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000444/0.01382, allocations: 269 kB / 429.4 MB, free: 3.734 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.867e-05/0.01387, allocations: 37.38 kB / 429.4 MB, free: 3.699 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.076e-05/0.01395, allocations: 52.31 kB / 429.5 MB, free: 3.648 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007896/0.01474, allocations: 471 kB / 429.9 MB, free: 3.148 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.687e-05/0.01475, allocations: 7.922 kB / 429.9 MB, free: 3.141 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.799e-05/0.01479, allocations: 16 kB / 430 MB, free: 3.125 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.599e-05/0.01481, allocations: 12 kB / 430 MB, free: 3.113 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005632/0.01537, allocations: 251.8 kB / 430.2 MB, free: 2.867 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002089/0.01746, allocations: 1.401 MB / 431.6 MB, free: 1.41 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000648/0.01811, allocations: 250.3 kB / 431.9 MB, free: 1.129 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002901/0.0184, allocations: 147.3 kB / 432 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.77e-05/0.01842, allocations: 4 kB / 432 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.442e-05/0.01846, allocations: 38.56 kB / 432 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 1.973e-06/0.01846, allocations: 0 / 432 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.0008634/0.01933, allocations: 343.9 kB / 432.4 MB, free: 0.582 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001119/0.01944, allocations: 158.2 kB / 432.5 MB, free: 400 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002919/0.01973, allocations: 253.8 kB / 432.8 MB, free: 136 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.113e-05/0.01979, allocations: 45.64 kB / 432.8 MB, free: 84 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001958/0.01999, allocations: 228.5 kB / 433 MB, free: 15.86 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.615e-05/0.02007, allocations: 83.28 kB / 433.1 MB, free: 15.77 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001441/0.02022, allocations: 98.17 kB / 433.2 MB, free: 15.67 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001741/0.02039, allocations: 350.7 kB / 433.6 MB, free: 15.32 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000344/0.02073, allocations: 137 kB / 433.7 MB, free: 15.18 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004339/0.02117, allocations: 274.9 kB / 434 MB, free: 14.87 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006228/0.02179, allocations: 342.7 kB / 434.3 MB, free: 14.49 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/0.0218, allocations: 0 / 434.3 MB, free: 14.49 MB / 366.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0008983/0.02269, allocations: 457.6 kB / 434.7 MB, free: 14.04 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.812e-05/0.02271, allocations: 4 kB / 434.8 MB, free: 14.03 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.727e-06/0.02272, allocations: 7.984 kB / 434.8 MB, free: 14.02 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.207e-05/0.02274, allocations: 8 kB / 434.8 MB, free: 14.02 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002626/0.02301, allocations: 59.89 kB / 434.8 MB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.334e-05/0.02303, allocations: 12.34 kB / 434.8 MB, free: 13.95 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002604/0.02329, allocations: 51.66 kB / 434.9 MB, free: 13.89 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.831e-05/0.02333, allocations: 23.98 kB / 434.9 MB, free: 13.87 MB / 366.1 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.0002228/0.02355, allocations: 187.1 kB / 435.1 MB, free: 13.68 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001169/0.02367, allocations: 23.86 kB / 435.1 MB, free: 13.66 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.314e-05/0.02374, allocations: 34.27 kB / 435.2 MB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.344e-06/0.02375, allocations: 4 kB / 435.2 MB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.761e-06/0.02375, allocations: 0 / 435.2 MB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.306e-06/0.02376, allocations: 7.984 kB / 435.2 MB, free: 13.61 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001666/0.02543, allocations: 1.07 MB / 436.2 MB, free: 12.46 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.766e-06/0.02544, allocations: 4 kB / 436.2 MB, free: 12.45 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002047/0.02564, allocations: 44.31 kB / 436.3 MB, free: 12.41 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.723e-06/0.02565, allocations: 8 kB / 436.3 MB, free: 12.4 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.63e-05/0.02567, allocations: 8 kB / 436.3 MB, free: 12.39 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.075e-05/0.02568, allocations: 11.94 kB / 436.3 MB, free: 12.38 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.02569, allocations: 0 / 436.3 MB, free: 12.38 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008622/0.02655, allocations: 0.5451 MB / 436.9 MB, free: 11.78 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.867e-05/0.02665, allocations: 51.83 kB / 436.9 MB, free: 11.73 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.308e-05/0.02669, allocations: 16 kB / 436.9 MB, free: 11.71 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002/0.02689, allocations: 15.98 kB / 436.9 MB, free: 11.7 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.774e-05/0.02699, allocations: 39.83 kB / 437 MB, free: 11.66 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.936e-05/0.02701, allocations: 12 kB / 437 MB, free: 11.65 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001747/0.02718, allocations: 165.2 kB / 437.1 MB, free: 11.49 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.02718, allocations: 0 / 437.1 MB, free: 11.49 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004274/0.02761, allocations: 95.73 kB / 437.2 MB, free: 11.39 MB / 366.1 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.0001402/0.02775, allocations: 121.1 kB / 437.4 MB, free: 11.27 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006759/0.02843, allocations: 311.9 kB / 437.7 MB, free: 10.96 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.02843, allocations: 0 / 437.7 MB, free: 10.96 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002917/0.02872, allocations: 141.3 kB / 437.8 MB, free: 10.83 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005597/0.02928, allocations: 83.81 kB / 437.9 MB, free: 10.75 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001207/0.03049, allocations: 0.7047 MB / 438.6 MB, free: 9.977 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001979/0.03069, allocations: 190.8 kB / 438.8 MB, free: 9.77 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001685/0.03085, allocations: 55.23 kB / 438.8 MB, free: 9.715 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.976e-05/0.03094, allocations: 32.44 kB / 438.9 MB, free: 9.684 MB / 366.1 MB Notification: Performance of SimCode: time 4.21e-07/0.03094, allocations: 0 / 438.9 MB, free: 9.684 MB / 366.1 MB Notification: Performance of Templates: time 0.008838/0.03978, allocations: 3.895 MB / 442.8 MB, free: 5.871 MB / 366.1 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=480 -lv LOG_STATS > BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.577523536980152] Failed to read output from testmodel.py, exit status != 0: 0.04821009188890457 0.22151663600000002 0.20729192600000002 Calling exit ...