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.0007586/0.0007586, allocations: 76.5 kB / 19.93 MB, free: 4.629 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.0007767/0.0007767, 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.8573/0.8573, allocations: 177.1 MB / 203.5 MB, free: 5.742 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.09607/0.09607, 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.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.563e-06/1.563e-06, allocations: 0 / 421.3 MB, free: 8.039 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.223e-05/2.38e-05, allocations: 2.281 kB / 421.3 MB, free: 8.035 MB / 394.7 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChain): time 0.004327/0.004351, allocations: 5.101 MB / 426.4 MB, free: 2.91 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.001042/0.005392, allocations: 0.6033 MB / 427 MB, free: 2.305 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001764/0.005569, allocations: 7.938 kB / 427 MB, free: 2.297 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002005/0.005769, allocations: 91.19 kB / 427.1 MB, free: 2.207 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001495/0.005918, allocations: 71.36 kB / 427.2 MB, free: 2.137 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004147/0.006333, allocations: 195.4 kB / 427.4 MB, free: 1.945 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.00035/0.006683, allocations: 467.1 kB / 427.8 MB, free: 1.488 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002175/0.006901, allocations: 142.9 kB / 428 MB, free: 1.344 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000214/0.007115, allocations: 283.4 kB / 428.2 MB, free: 1.066 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001595/0.007274, allocations: 147.5 kB / 428.4 MB, free: 0.9219 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 4.185e-05/0.007316, allocations: 51.88 kB / 428.4 MB, free: 0.8711 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.093e-05/0.007387, allocations: 52 kB / 428.5 MB, free: 0.8203 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 8.22e-05/0.007469, allocations: 119.6 kB / 428.6 MB, free: 0.7031 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 9.137e-05/0.00756, allocations: 139.7 kB / 428.7 MB, free: 0.5664 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003573/0.007918, allocations: 474.5 kB / 429.2 MB, free: 104 kB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.024e-06/0.00792, allocations: 0 / 429.2 MB, free: 104 kB / 394.7 MB Notification: Performance of FrontEnd: time 9.32e-07/0.007921, allocations: 0 / 429.2 MB, free: 104 kB / 394.7 MB Notification: Performance of Transformations before backend: time 5.32e-06/0.007926, allocations: 0 / 429.2 MB, free: 104 kB / 394.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.000726/0.008652, allocations: 0.6186 MB / 429.8 MB, free: 15.45 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.614e-05/0.008688, allocations: 8.75 kB / 429.8 MB, free: 15.44 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000187/0.008875, allocations: 76.58 kB / 429.9 MB, free: 15.37 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003161/0.009191, allocations: 265 kB / 430.2 MB, free: 15.08 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.755e-05/0.009219, allocations: 41.3 kB / 430.2 MB, free: 15.04 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.739e-05/0.009266, allocations: 48.38 kB / 430.3 MB, free: 15 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004524/0.009719, allocations: 467.1 kB / 430.7 MB, free: 14.5 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.035e-06/0.009727, allocations: 3.938 kB / 430.7 MB, free: 14.5 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.098e-05/0.009748, allocations: 16 kB / 430.7 MB, free: 14.48 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.665e-06/0.009755, allocations: 12 kB / 430.7 MB, free: 14.47 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003121/0.01007, allocations: 247.8 kB / 431 MB, free: 14.23 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001206/0.01127, allocations: 1.401 MB / 432.4 MB, free: 12.77 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003684/0.01164, allocations: 250.3 kB / 432.6 MB, free: 12.49 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001581/0.0118, allocations: 151.2 kB / 432.8 MB, free: 12.33 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.114e-05/0.01181, allocations: 4 kB / 432.8 MB, free: 12.32 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.318e-05/0.01183, allocations: 38.56 kB / 432.8 MB, free: 12.28 MB / 410.7 MB Notification: Performance of pre-optimization done (n=28): time 1.342e-06/0.01184, allocations: 0 / 432.8 MB, free: 12.28 MB / 410.7 MB Notification: Performance of matching and sorting (n=28): time 0.000489/0.01232, allocations: 342 kB / 433.2 MB, free: 11.94 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.445e-05/0.01239, allocations: 162.2 kB / 433.3 MB, free: 11.74 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000182/0.01257, allocations: 249.8 kB / 433.6 MB, free: 11.48 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.984e-05/0.0126, allocations: 41.7 kB / 433.6 MB, free: 11.44 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001087/0.01271, allocations: 224.5 kB / 433.8 MB, free: 11.21 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.015e-05/0.01276, allocations: 87.27 kB / 433.9 MB, free: 11.13 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004028/0.01316, allocations: 102.1 kB / 434 MB, free: 11.02 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 8.862e-05/0.01325, allocations: 342.8 kB / 434.3 MB, free: 10.68 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001832/0.01343, allocations: 145 kB / 434.5 MB, free: 10.54 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002268/0.01366, allocations: 271 kB / 434.7 MB, free: 10.22 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003451/0.01401, allocations: 346.7 kB / 435.1 MB, free: 9.84 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.125e-06/0.01401, allocations: 0 / 435.1 MB, free: 9.84 MB / 410.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0004816/0.01449, allocations: 449.7 kB / 435.5 MB, free: 9.395 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.573e-05/0.01451, allocations: 8 kB / 435.5 MB, free: 9.387 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.01451, allocations: 3.938 kB / 435.5 MB, free: 9.383 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.843e-05/0.01453, allocations: 15.94 kB / 435.5 MB, free: 9.367 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001261/0.01466, allocations: 59.84 kB / 435.6 MB, free: 9.309 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.847e-06/0.01467, allocations: 12.39 kB / 435.6 MB, free: 9.297 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001206/0.01479, allocations: 51.72 kB / 435.7 MB, free: 9.246 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.443e-05/0.01481, allocations: 23.98 kB / 435.7 MB, free: 9.223 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 (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.0001385/0.01495, allocations: 190.8 kB / 435.9 MB, free: 9.027 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.052e-05/0.015, allocations: 23.86 kB / 435.9 MB, free: 9.004 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.428e-05/0.01504, allocations: 34.27 kB / 435.9 MB, free: 8.969 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.845e-06/0.01505, allocations: 4 kB / 435.9 MB, free: 8.965 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.041e-06/0.01505, allocations: 0 / 435.9 MB, free: 8.965 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.168e-06/0.01506, allocations: 0 / 435.9 MB, free: 8.965 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009354/0.01599, allocations: 1.068 MB / 437 MB, free: 7.812 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.036e-06/0.016, allocations: 4 kB / 437 MB, free: 7.809 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001051/0.0161, allocations: 44.31 kB / 437.1 MB, free: 7.766 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.609e-06/0.01611, allocations: 8 kB / 437.1 MB, free: 7.758 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.16e-05/0.01613, allocations: 12 kB / 437.1 MB, free: 7.746 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.136e-06/0.01613, allocations: 7.938 kB / 437.1 MB, free: 7.738 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.424e-06/0.01613, allocations: 4 kB / 437.1 MB, free: 7.734 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004753/0.01661, allocations: 0.533 MB / 437.6 MB, free: 7.145 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.466e-05/0.01667, allocations: 47.84 kB / 437.7 MB, free: 7.098 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.464e-05/0.0167, allocations: 15.98 kB / 437.7 MB, free: 7.082 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.63e-05/0.01679, allocations: 24.11 kB / 437.7 MB, free: 7.059 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.972e-05/0.01686, allocations: 35.83 kB / 437.7 MB, free: 7.023 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.061e-05/0.01687, allocations: 12 kB / 437.7 MB, free: 7.012 MB / 410.7 MB Notification: Performance of sorting global known variables: time 9.811e-05/0.01697, allocations: 161.2 kB / 437.9 MB, free: 6.855 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01697, allocations: 0 / 437.9 MB, free: 6.855 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002473/0.01722, allocations: 99.73 kB / 438 MB, free: 6.758 MB / 410.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 8.881e-05/0.01731, allocations: 129 kB / 438.1 MB, free: 6.625 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0003871/0.01769, allocations: 311.9 kB / 438.4 MB, free: 6.32 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.684e-06/0.0177, allocations: 0 / 438.4 MB, free: 6.32 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001507/0.01785, allocations: 129.4 kB / 438.6 MB, free: 6.195 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003545/0.0182, allocations: 98.25 kB / 438.7 MB, free: 6.105 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000783/0.01898, allocations: 0.7235 MB / 439.4 MB, free: 5.309 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001235/0.01911, allocations: 186.8 kB / 439.6 MB, free: 5.105 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.166e-05/0.01918, allocations: 32.5 kB / 439.6 MB, free: 5.07 MB / 410.7 MB Notification: Performance of SimCode: time 6.72e-07/0.01918, allocations: 0 / 439.6 MB, free: 5.07 MB / 410.7 MB Notification: Performance of Templates: time 0.004635/0.02382, allocations: 4.446 MB / 444 MB, free: 0.6289 MB / 410.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=480 -lv LOG_STATS > BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain.pipe 2>&1) [Timeout 480] [Calling os._exit(0), Time elapsed: 5.675172181800008] Failed to read output from testmodel.py, exit status != 0: 0.19997727312147617 0.20636639299999995 0.19696340499999995 Calling exit ...