Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BusinessSimulation_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.001324/0.001324, allocations: 114.8 kB / 18.89 MB, free: 2.898 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.00139/0.00139, allocations: 202.2 kB / 22.18 MB, free: 5.211 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.398/1.398, allocations: 225.6 MB / 250.9 MB, free: 13.26 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0/package.mo): time 0.286/0.286, allocations: 31.55 MB / 337.7 MB, free: 9.605 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/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_BusinessSimulation.Examples.SimpleProductionChain") translateModel(BusinessSimulation.Examples.SimpleProductionChain,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00194/0.00194, allocations: 71.88 kB / 472.6 MB, free: 6.137 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3442/0.3461, allocations: 59.49 MB / 0.5196 GB, free: 8.961 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChain): time 0.00537/0.3515, allocations: 5.457 MB / 0.5249 GB, free: 5.113 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001129/0.3526, allocations: 0.6101 MB / 0.5255 GB, free: 4.668 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002041/0.3528, allocations: 11.84 kB / 0.5255 GB, free: 4.664 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002278/0.3531, allocations: 80.61 kB / 0.5256 GB, free: 4.621 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001761/0.3532, allocations: 65.97 kB / 0.5257 GB, free: 4.57 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005262/0.3538, allocations: 192.5 kB / 0.5258 GB, free: 4.457 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004507/0.3542, allocations: 464.4 kB / 0.5263 GB, free: 4.227 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002516/0.3545, allocations: 166.9 kB / 0.5264 GB, free: 4.133 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002089/0.3547, allocations: 190.1 kB / 0.5266 GB, free: 4.035 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002324/0.3549, allocations: 199.8 kB / 0.5268 GB, free: 3.926 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.756e-05/0.355, allocations: 44.94 kB / 0.5269 GB, free: 3.926 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001018/0.3551, allocations: 55.03 kB / 0.5269 GB, free: 3.922 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000106/0.3552, allocations: 102.8 kB / 0.527 GB, free: 3.855 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001573/0.3553, allocations: 211.9 kB / 0.5272 GB, free: 3.715 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000531/0.3559, allocations: 463.1 kB / 0.5276 GB, free: 3.5 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.3559, allocations: 1.406 kB / 0.5276 GB, free: 3.5 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.3559, allocations: 0 / 0.5276 GB, free: 3.5 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.052e-05/0.3559, allocations: 4 kB / 0.5277 GB, free: 3.496 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.00113/0.357, allocations: 0.6966 MB / 0.5283 GB, free: 2.945 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.572e-05/0.357, allocations: 8.469 kB / 0.5283 GB, free: 2.945 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003355/0.3574, allocations: 65.92 kB / 0.5284 GB, free: 2.922 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003938/0.3578, allocations: 337 kB / 0.5287 GB, free: 2.637 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.369e-05/0.3578, allocations: 37.53 kB / 0.5288 GB, free: 2.621 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.248e-05/0.3579, allocations: 51.12 kB / 0.5288 GB, free: 2.602 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006685/0.3586, allocations: 418.1 kB / 0.5292 GB, free: 2.383 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.508e-05/0.3586, allocations: 0.6875 kB / 0.5292 GB, free: 2.383 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.514e-05/0.3586, allocations: 16.59 kB / 0.5292 GB, free: 2.371 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.499e-05/0.3586, allocations: 13.98 kB / 0.5292 GB, free: 2.367 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005287/0.3592, allocations: 250.2 kB / 0.5295 GB, free: 2.281 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001752/0.3609, allocations: 1.648 MB / 0.5311 GB, free: 1.031 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005227/0.3614, allocations: 250.3 kB / 0.5313 GB, free: 0.8672 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002661/0.3617, allocations: 146.6 kB / 0.5315 GB, free: 0.793 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.578e-05/0.3617, allocations: 18.94 kB / 0.5315 GB, free: 0.7773 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.869e-05/0.3617, allocations: 39.48 kB / 0.5315 GB, free: 0.7344 MB / 382.1 MB Notification: Performance of pre-optimization done (n=28): time 1.433e-06/0.3617, allocations: 0 / 0.5315 GB, free: 0.7344 MB / 382.1 MB Notification: Performance of matching and sorting (n=28): time 0.0007551/0.3625, allocations: 354.5 kB / 0.5319 GB, free: 0.582 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.877e-05/0.3625, allocations: 166.9 kB / 0.532 GB, free: 396 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002683/0.3628, allocations: 267 kB / 0.5323 GB, free: 232 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.689e-05/0.3628, allocations: 44.98 kB / 0.5323 GB, free: 188 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001112/0.363, allocations: 219.3 kB / 0.5325 GB, free: 0 / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001114/0.3631, allocations: 89.61 kB / 0.5326 GB, free: 15.93 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001505/0.3632, allocations: 100.5 kB / 0.5327 GB, free: 15.87 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000158/0.3634, allocations: 344 kB / 0.533 GB, free: 15.54 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003478/0.3637, allocations: 135.8 kB / 0.5332 GB, free: 15.5 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004546/0.3642, allocations: 249.4 kB / 0.5334 GB, free: 15.32 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006797/0.3649, allocations: 343.5 kB / 0.5337 GB, free: 15.09 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.358e-06/0.3649, allocations: 1.5 kB / 0.5337 GB, free: 15.09 MB / 398.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0009767/0.3658, allocations: 453.9 kB / 0.5342 GB, free: 14.9 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.911e-05/0.3659, allocations: 7.375 kB / 0.5342 GB, free: 14.9 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.147e-06/0.3659, allocations: 9.453 kB / 0.5342 GB, free: 14.9 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.223e-05/0.3659, allocations: 5.281 kB / 0.5342 GB, free: 14.9 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002607/0.3661, allocations: 67.42 kB / 0.5342 GB, free: 14.89 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.147e-05/0.3662, allocations: 5.953 kB / 0.5343 GB, free: 14.89 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002751/0.3664, allocations: 56.33 kB / 0.5343 GB, free: 14.86 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.63e-05/0.3665, allocations: 18.89 kB / 0.5343 GB, free: 14.85 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.0002184/0.3667, allocations: 195.3 kB / 0.5345 GB, free: 14.68 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001084/0.3668, allocations: 29.84 kB / 0.5345 GB, free: 14.67 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.288e-05/0.3669, allocations: 35.92 kB / 0.5346 GB, free: 14.64 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.153e-06/0.3669, allocations: 8.016 kB / 0.5346 GB, free: 14.64 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.378e-06/0.3669, allocations: 0.9375 kB / 0.5346 GB, free: 14.64 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.652e-06/0.3669, allocations: 2.219 kB / 0.5346 GB, free: 14.64 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001835/0.3687, allocations: 1.183 MB / 0.5357 GB, free: 13.73 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.229e-06/0.3687, allocations: 2.406 kB / 0.5357 GB, free: 13.73 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002178/0.369, allocations: 39.42 kB / 0.5358 GB, free: 13.73 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.085e-06/0.369, allocations: 7.875 kB / 0.5358 GB, free: 13.72 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.088e-05/0.369, allocations: 14.48 kB / 0.5358 GB, free: 13.71 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.73e-06/0.369, allocations: 6.016 kB / 0.5358 GB, free: 13.71 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.037e-06/0.369, allocations: 4.688 kB / 0.5358 GB, free: 13.71 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000884/0.3699, allocations: 0.5373 MB / 0.5363 GB, free: 13.33 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001559/0.37, allocations: 136 kB / 0.5365 GB, free: 13.2 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.061e-05/0.3701, allocations: 11.97 kB / 0.5365 GB, free: 13.2 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000204/0.3703, allocations: 22.42 kB / 0.5365 GB, free: 13.19 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.18e-05/0.3704, allocations: 34.91 kB / 0.5365 GB, free: 13.18 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.783e-05/0.3704, allocations: 8.844 kB / 0.5365 GB, free: 13.18 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000198/0.3706, allocations: 182.9 kB / 0.5367 GB, free: 13.07 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3706, allocations: 1.062 kB / 0.5367 GB, free: 13.07 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004204/0.371, allocations: 99.23 kB / 0.5368 GB, free: 13.04 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.0001321/0.3712, allocations: 117 kB / 0.5369 GB, free: 12.94 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006763/0.3718, allocations: 308.1 kB / 0.5372 GB, free: 12.84 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.3718, allocations: 0 / 0.5372 GB, free: 12.84 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002868/0.3721, allocations: 146.5 kB / 0.5374 GB, free: 12.79 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005749/0.3727, allocations: 88.08 kB / 0.5374 GB, free: 12.75 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001542/0.3742, allocations: 0.7336 MB / 0.5382 GB, free: 12.24 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005477/0.3748, allocations: 0.7914 MB / 0.5389 GB, free: 11.54 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001945/0.375, allocations: 56.14 kB / 0.539 GB, free: 11.53 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.807e-05/0.3751, allocations: 29.94 kB / 0.539 GB, free: 11.52 MB / 398.1 MB Notification: Performance of SimCode: time 4.71e-07/0.3751, allocations: 5.125 kB / 0.539 GB, free: 11.52 MB / 398.1 MB Notification: Performance of Templates: time 0.008994/0.3841, allocations: 3.881 MB / 0.5428 GB, free: 10.5 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain.makefile [Timeout 660] (rm -f BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain.pipe ; mkfifo BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain.pipe ; head -c 1048576 < BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain.pipe >> ../files/BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain.sim & ./BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.851328580174595] Failed to read output from testmodel.py, exit status != 0: 0.3920210120268166 0.40593894999999997 0.047123960000000006 Calling exit ...