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.0007413/0.0007413, allocations: 76.5 kB / 19.93 MB, free: 4.633 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.0007835/0.0007835, allocations: 173.9 kB / 23.21 MB, free: 1.352 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.8503/0.8503, allocations: 177.1 MB / 203.5 MB, free: 5.738 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.09572/0.09572, allocations: 24.12 MB / 284.1 MB, free: 5.461 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.703e-06/1.703e-06, allocations: 0 / 421.3 MB, free: 8.043 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.174e-05/3.344e-05, allocations: 6.219 kB / 421.3 MB, free: 8.035 MB / 394.7 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChainII): time 0.005869/0.005903, allocations: 6.378 MB / 427.7 MB, free: 1.629 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.001768/0.00767, allocations: 0.9931 MB / 428.7 MB, free: 0.6328 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000367/0.008037, allocations: 31.75 kB / 428.7 MB, free: 0.6016 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002656/0.008303, allocations: 107 kB / 428.8 MB, free: 0.4961 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002007/0.008503, allocations: 79.25 kB / 428.9 MB, free: 428 kB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00057/0.009073, allocations: 235.4 kB / 429.1 MB, free: 192 kB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004417/0.009515, allocations: 0.5736 MB / 429.7 MB, free: 15.61 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002705/0.009786, allocations: 205.7 kB / 429.9 MB, free: 15.4 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002613/0.01005, allocations: 343.3 kB / 430.2 MB, free: 15.07 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001868/0.01023, allocations: 171.4 kB / 430.4 MB, free: 14.9 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 5.284e-05/0.01029, allocations: 64 kB / 430.4 MB, free: 14.84 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.063e-05/0.01037, allocations: 60 kB / 430.5 MB, free: 14.78 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 9.594e-05/0.01046, allocations: 135.5 kB / 430.6 MB, free: 14.64 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000109/0.01057, allocations: 175.5 kB / 430.8 MB, free: 14.47 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004759/0.01105, allocations: 0.5879 MB / 431.4 MB, free: 13.88 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.016e-06/0.01105, allocations: 0 / 431.4 MB, free: 13.88 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.122e-06/0.01105, allocations: 0 / 431.4 MB, free: 13.88 MB / 410.7 MB Notification: Performance of Transformations before backend: time 6.973e-06/0.01106, allocations: 0 / 431.4 MB, free: 13.88 MB / 410.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.0008664/0.01193, allocations: 0.7156 MB / 432.1 MB, free: 13.14 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.579e-05/0.01197, allocations: 12.75 kB / 432.1 MB, free: 13.12 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002343/0.01221, allocations: 72.58 kB / 432.2 MB, free: 13.05 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004432/0.01265, allocations: 345.2 kB / 432.5 MB, free: 12.69 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.528e-05/0.01268, allocations: 45.38 kB / 432.6 MB, free: 12.65 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.959e-05/0.01274, allocations: 64.27 kB / 432.6 MB, free: 12.59 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000568/0.01331, allocations: 0.542 MB / 433.2 MB, free: 12 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.49e-05/0.01333, allocations: 3.938 kB / 433.2 MB, free: 12 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.833e-05/0.01335, allocations: 20 kB / 433.2 MB, free: 11.98 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.618e-06/0.01336, allocations: 12 kB / 433.2 MB, free: 11.97 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006766/0.01404, allocations: 307.8 kB / 433.5 MB, free: 11.67 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001351/0.01539, allocations: 1.576 MB / 435.1 MB, free: 10.03 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004133/0.01581, allocations: 295.1 kB / 435.4 MB, free: 9.703 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001799/0.01599, allocations: 171 kB / 435.6 MB, free: 9.527 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.753e-05/0.016, allocations: 4.234 kB / 435.6 MB, free: 9.523 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.355e-05/0.01603, allocations: 42.73 kB / 435.6 MB, free: 9.473 MB / 410.7 MB Notification: Performance of pre-optimization done (n=31): time 1.453e-06/0.01603, allocations: 4 kB / 435.6 MB, free: 9.469 MB / 410.7 MB Notification: Performance of matching and sorting (n=31): time 0.0005308/0.01656, allocations: 379.3 kB / 436 MB, free: 9.094 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.264e-05/0.01662, allocations: 162.2 kB / 436.1 MB, free: 8.898 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002087/0.01683, allocations: 292.4 kB / 436.4 MB, free: 8.605 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.941e-05/0.01686, allocations: 41.7 kB / 436.5 MB, free: 8.559 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001245/0.01698, allocations: 268.9 kB / 436.7 MB, free: 8.293 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.54e-05/0.01704, allocations: 99.59 kB / 436.8 MB, free: 8.195 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.904e-05/0.01714, allocations: 110.3 kB / 436.9 MB, free: 8.082 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 9.557e-05/0.01723, allocations: 342.8 kB / 437.3 MB, free: 7.738 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001948/0.01743, allocations: 149.2 kB / 437.4 MB, free: 7.59 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002415/0.01767, allocations: 284.6 kB / 437.7 MB, free: 7.27 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003651/0.01804, allocations: 363.8 kB / 438 MB, free: 6.871 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.496e-06/0.01804, allocations: 4 kB / 438 MB, free: 6.867 MB / 410.7 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.0005085/0.01855, allocations: 477 kB / 438.5 MB, free: 6.395 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.525e-05/0.01856, allocations: 4 kB / 438.5 MB, free: 6.391 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.204e-06/0.01857, allocations: 4 kB / 438.5 MB, free: 6.387 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.647e-05/0.01859, allocations: 8.391 kB / 438.5 MB, free: 6.379 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001382/0.01872, allocations: 71.84 kB / 438.6 MB, free: 6.309 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.299e-05/0.01874, allocations: 15.86 kB / 438.6 MB, free: 6.293 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001241/0.01886, allocations: 51.72 kB / 438.7 MB, free: 6.242 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.264e-05/0.01888, allocations: 23.98 kB / 438.7 MB, free: 6.219 MB / 410.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 (63): * Single equations (assignments): 63 * 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.000151/0.01904, allocations: 191 kB / 438.9 MB, free: 6.023 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.751e-05/0.01909, allocations: 39.7 kB / 438.9 MB, free: 5.984 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.225e-05/0.01914, allocations: 39.08 kB / 438.9 MB, free: 5.941 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.938e-06/0.01915, allocations: 8 kB / 439 MB, free: 5.934 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.66e-06/0.01915, allocations: 3.938 kB / 439 MB, free: 5.93 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.943e-06/0.01916, allocations: 7.984 kB / 439 MB, free: 5.922 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009756/0.02014, allocations: 1.08 MB / 440 MB, free: 4.766 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.362e-06/0.02014, allocations: 4.281 kB / 440 MB, free: 4.762 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001171/0.02026, allocations: 43.91 kB / 440.1 MB, free: 4.719 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.811e-06/0.02027, allocations: 4 kB / 440.1 MB, free: 4.715 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.999e-05/0.02029, allocations: 15.98 kB / 440.1 MB, free: 4.699 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.549e-06/0.02029, allocations: 8 kB / 440.1 MB, free: 4.691 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.02029, allocations: 4 kB / 440.1 MB, free: 4.688 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008182/0.02111, allocations: 0.5429 MB / 440.7 MB, free: 4.102 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.421e-05/0.02119, allocations: 71.66 kB / 440.7 MB, free: 4.031 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.572e-05/0.02121, allocations: 8 kB / 440.7 MB, free: 4.023 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.458e-05/0.02131, allocations: 19.98 kB / 440.8 MB, free: 4.004 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.044e-05/0.02138, allocations: 39.81 kB / 440.8 MB, free: 3.965 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.267e-05/0.02139, allocations: 12 kB / 440.8 MB, free: 3.953 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001189/0.02151, allocations: 187.1 kB / 441 MB, free: 3.77 MB / 410.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02151, allocations: 0 / 441 MB, free: 3.77 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002571/0.02176, allocations: 111.7 kB / 441.1 MB, free: 3.66 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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,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 (31): * Single equations (assignments): 31 * 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.619e-05/0.02186, allocations: 129.6 kB / 441.2 MB, free: 3.523 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0004273/0.02229, allocations: 326.8 kB / 441.6 MB, free: 3.199 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.02229, allocations: 4 kB / 441.6 MB, free: 3.195 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001715/0.02246, allocations: 145.1 kB / 441.7 MB, free: 3.055 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003842/0.02285, allocations: 105.7 kB / 441.8 MB, free: 2.961 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009045/0.02375, allocations: 0.8219 MB / 442.6 MB, free: 2.078 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001492/0.0239, allocations: 223.9 kB / 442.8 MB, free: 1.836 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.18e-05/0.02398, allocations: 36.5 kB / 442.9 MB, free: 1.801 MB / 410.7 MB Notification: Performance of SimCode: time 7.11e-07/0.02398, allocations: 0 / 442.9 MB, free: 1.801 MB / 410.7 MB Notification: Performance of Templates: time 0.1568/0.1808, allocations: 5.364 MB / 448.2 MB, free: 64.06 MB / 410.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=480 -lv LOG_STATS > BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII.pipe 2>&1) [Timeout 480] [Calling os._exit(0), Time elapsed: 6.617397362366319] Failed to read output from testmodel.py, exit status != 0: 0.18652956001460552 0.19238340499999995 0.17998828299999994 Calling exit ...