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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001818/0.001818, allocations: 115.5 kB / 18.88 MB, free: 3.062 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001531/0.001531, allocations: 194.3 kB / 22.17 MB, free: 5.656 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.47/1.47, allocations: 225.6 MB / 250.9 MB, free: 13.29 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/package.mo): time 0.3192/0.3192, allocations: 31.6 MB / 337.7 MB, free: 9.766 MB / 270.1 MB " [Timeout remaining time 179] Using package BusinessSimulation with version 2.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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 0.002073/0.002073, allocations: 63.89 kB / 472.6 MB, free: 6.262 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3363/0.3384, allocations: 59.49 MB / 0.5196 GB, free: 8.898 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChain): time 0.005926/0.3443, allocations: 5.453 MB / 0.5249 GB, free: 5.055 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001168/0.3454, allocations: 0.6143 MB / 0.5255 GB, free: 4.605 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002117/0.3457, allocations: 12 kB / 0.5256 GB, free: 4.602 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002393/0.3459, allocations: 78.5 kB / 0.5256 GB, free: 4.559 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001915/0.3461, allocations: 67.95 kB / 0.5257 GB, free: 4.508 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005461/0.3466, allocations: 187.6 kB / 0.5259 GB, free: 4.398 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004853/0.3471, allocations: 465 kB / 0.5263 GB, free: 4.168 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002793/0.3474, allocations: 163.6 kB / 0.5265 GB, free: 4.078 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002161/0.3476, allocations: 193.2 kB / 0.5267 GB, free: 3.977 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002641/0.3479, allocations: 202.2 kB / 0.5269 GB, free: 3.863 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.94e-05/0.348, allocations: 45.84 kB / 0.5269 GB, free: 3.863 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001139/0.3481, allocations: 55.25 kB / 0.5269 GB, free: 3.859 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001056/0.3482, allocations: 106.3 kB / 0.5271 GB, free: 3.789 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000164/0.3483, allocations: 205.1 kB / 0.5272 GB, free: 3.656 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005865/0.3489, allocations: 466.3 kB / 0.5277 GB, free: 3.438 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.3489, allocations: 1.156 kB / 0.5277 GB, free: 3.438 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.3489, allocations: 0 / 0.5277 GB, free: 3.438 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.666e-06/0.3489, allocations: 3.938 kB / 0.5277 GB, free: 3.434 MB / 382.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.001165/0.3501, allocations: 0.6998 MB / 0.5284 GB, free: 2.879 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.005e-05/0.3501, allocations: 10.19 kB / 0.5284 GB, free: 2.879 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003217/0.3505, allocations: 65.84 kB / 0.5285 GB, free: 2.855 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004148/0.3509, allocations: 333.3 kB / 0.5288 GB, free: 2.574 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.856e-05/0.3509, allocations: 35.56 kB / 0.5288 GB, free: 2.559 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.464e-05/0.351, allocations: 52.52 kB / 0.5289 GB, free: 2.539 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006573/0.3516, allocations: 422 kB / 0.5293 GB, free: 2.316 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.709e-05/0.3517, allocations: 4.438 kB / 0.5293 GB, free: 2.312 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.373e-05/0.3517, allocations: 16.89 kB / 0.5293 GB, free: 2.301 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.814e-05/0.3517, allocations: 10.56 kB / 0.5293 GB, free: 2.301 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005688/0.3523, allocations: 244.9 kB / 0.5295 GB, free: 2.219 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001856/0.3541, allocations: 1.657 MB / 0.5311 GB, free: 0.9609 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005702/0.3547, allocations: 246 kB / 0.5314 GB, free: 0.8008 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002607/0.355, allocations: 149.7 kB / 0.5315 GB, free: 0.7227 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.969e-05/0.355, allocations: 12.09 kB / 0.5315 GB, free: 0.7148 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2e-05/0.355, allocations: 38.7 kB / 0.5316 GB, free: 0.6719 MB / 382.1 MB Notification: Performance of pre-optimization done (n=28): time 1.513e-06/0.355, allocations: 0 / 0.5316 GB, free: 0.6719 MB / 382.1 MB Notification: Performance of matching and sorting (n=28): time 0.0008057/0.3558, allocations: 351.2 kB / 0.5319 GB, free: 0.5234 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.022e-05/0.3559, allocations: 170.3 kB / 0.5321 GB, free: 332 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002706/0.3561, allocations: 272.8 kB / 0.5323 GB, free: 164 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.581e-05/0.3562, allocations: 38.56 kB / 0.5324 GB, free: 124 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001536/0.3563, allocations: 218.2 kB / 0.5326 GB, free: 15.93 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.357e-05/0.3564, allocations: 86.7 kB / 0.5326 GB, free: 15.87 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000155/0.3566, allocations: 101.6 kB / 0.5327 GB, free: 15.82 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001924/0.3568, allocations: 339.4 kB / 0.5331 GB, free: 15.49 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003544/0.3571, allocations: 140.1 kB / 0.5332 GB, free: 15.45 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00045/0.3576, allocations: 252.4 kB / 0.5334 GB, free: 15.26 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006936/0.3582, allocations: 346.1 kB / 0.5338 GB, free: 15.04 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.428e-06/0.3583, allocations: 5.125 kB / 0.5338 GB, free: 15.03 MB / 398.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001001/0.3593, allocations: 452.1 kB / 0.5342 GB, free: 14.84 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.773e-05/0.3593, allocations: 7.578 kB / 0.5342 GB, free: 14.84 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.446e-06/0.3593, allocations: 7.406 kB / 0.5342 GB, free: 14.84 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.09e-05/0.3593, allocations: 6.125 kB / 0.5342 GB, free: 14.84 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002728/0.3596, allocations: 65.09 kB / 0.5343 GB, free: 14.82 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.429e-05/0.3596, allocations: 9.406 kB / 0.5343 GB, free: 14.82 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002929/0.3599, allocations: 56.88 kB / 0.5344 GB, free: 14.79 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.704e-05/0.3599, allocations: 18.42 kB / 0.5344 GB, free: 14.79 MB / 398.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.0002337/0.3602, allocations: 191.8 kB / 0.5346 GB, free: 14.62 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001134/0.3603, allocations: 37.53 kB / 0.5346 GB, free: 14.6 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.377e-05/0.3603, allocations: 31.06 kB / 0.5346 GB, free: 14.57 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.278e-06/0.3603, allocations: 9.594 kB / 0.5346 GB, free: 14.57 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.445e-06/0.3604, allocations: 1.156 kB / 0.5346 GB, free: 14.57 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.982e-06/0.3604, allocations: 1.875 kB / 0.5346 GB, free: 14.57 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001841/0.3622, allocations: 1.182 MB / 0.5358 GB, free: 13.67 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.13e-06/0.3622, allocations: 3.438 kB / 0.5358 GB, free: 13.67 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002166/0.3624, allocations: 41.28 kB / 0.5358 GB, free: 13.66 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.911e-06/0.3624, allocations: 4.531 kB / 0.5358 GB, free: 13.66 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.997e-05/0.3625, allocations: 16.08 kB / 0.5358 GB, free: 13.65 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.266e-06/0.3625, allocations: 9.344 kB / 0.5359 GB, free: 13.65 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.487e-06/0.3625, allocations: 3.406 kB / 0.5359 GB, free: 13.65 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009357/0.3634, allocations: 0.534 MB / 0.5364 GB, free: 13.27 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000158/0.3636, allocations: 131.9 kB / 0.5365 GB, free: 13.14 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.948e-05/0.3636, allocations: 16.16 kB / 0.5365 GB, free: 13.14 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002162/0.3638, allocations: 21.88 kB / 0.5365 GB, free: 13.13 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001035/0.3639, allocations: 38.08 kB / 0.5366 GB, free: 13.11 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.098e-05/0.364, allocations: 14.11 kB / 0.5366 GB, free: 13.11 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002065/0.3642, allocations: 175.9 kB / 0.5368 GB, free: 13.01 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3642, allocations: 0 / 0.5368 GB, free: 13.01 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004637/0.3646, allocations: 100.1 kB / 0.5369 GB, free: 12.98 MB / 398.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.0001424/0.3648, allocations: 126.2 kB / 0.537 GB, free: 12.87 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007022/0.3655, allocations: 305.8 kB / 0.5373 GB, free: 12.77 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.3655, allocations: 2.25 kB / 0.5373 GB, free: 12.77 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002985/0.3658, allocations: 137.5 kB / 0.5374 GB, free: 12.72 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006037/0.3664, allocations: 86.28 kB / 0.5375 GB, free: 12.68 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001301/0.3677, allocations: 0.7334 MB / 0.5382 GB, free: 12.17 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004747/0.3682, allocations: 0.7964 MB / 0.539 GB, free: 11.46 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002168/0.3684, allocations: 51.8 kB / 0.539 GB, free: 11.46 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.385e-05/0.3685, allocations: 31.33 kB / 0.5391 GB, free: 11.45 MB / 398.1 MB Notification: Performance of SimCode: time 4.51e-07/0.3685, allocations: 4 kB / 0.5391 GB, free: 11.45 MB / 398.1 MB Notification: Performance of Templates: time 0.009187/0.3777, allocations: 3.885 MB / 0.5429 GB, free: 10.46 MB / 398.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 -s gbode -lv LOG_STATS > BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.070945698302239] Failed to read output from testmodel.py, exit status != 0: 0.38751919101923704 0.40221711200000004 0.050038905 Calling exit ...