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.001417/0.001417, allocations: 110.2 kB / 19.69 MB, free: 2.254 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.001674/0.001674, allocations: 216.2 kB / 23.01 MB, free: 4.566 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.503/1.503, allocations: 230.6 MB / 256.8 MB, free: 8.027 MB / 206.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.1776/0.1776, allocations: 31.55 MB / 344.7 MB, free: 3.98 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.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: BusinessSimulation requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002188/0.002188, allocations: 63.91 kB / 482.1 MB, free: 15.27 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3436/0.3458, allocations: 60.72 MB / 0.5301 GB, free: 7.902 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChainII): time 0.009009/0.3548, allocations: 6.941 MB / 0.5368 GB, free: 3 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002518/0.3573, allocations: 1.007 MB / 0.5378 GB, free: 2.254 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009263/0.3582, allocations: 29.53 kB / 0.5378 GB, free: 2.238 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005377/0.3588, allocations: 104.3 kB / 0.5379 GB, free: 2.18 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004711/0.3592, allocations: 76.39 kB / 0.538 GB, free: 2.121 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009281/0.3602, allocations: 251.7 kB / 0.5383 GB, free: 1.965 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000946/0.3611, allocations: 0.565 MB / 0.5388 GB, free: 1.672 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004534/0.3616, allocations: 213.4 kB / 0.539 GB, free: 1.555 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003954/0.362, allocations: 235.7 kB / 0.5392 GB, free: 1.43 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004038/0.3624, allocations: 243.3 kB / 0.5395 GB, free: 1.285 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001457/0.3625, allocations: 55.97 kB / 0.5395 GB, free: 1.285 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001694/0.3627, allocations: 65.7 kB / 0.5396 GB, free: 1.281 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001362/0.3628, allocations: 136.3 kB / 0.5397 GB, free: 1.168 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002366/0.363, allocations: 258.5 kB / 0.54 GB, free: 0.9727 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006865/0.3637, allocations: 0.5822 MB / 0.5405 GB, free: 0.5195 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.3637, allocations: 0 / 0.5405 GB, free: 0.5195 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.3637, allocations: 0 / 0.5405 GB, free: 0.5195 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.719e-05/0.3638, allocations: 0 / 0.5405 GB, free: 0.5195 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: 125 * Number of variables: 125 Notification: Performance of Generate backend data structure: time 0.001431/0.3652, allocations: 0.7183 MB / 0.5412 GB, free: 15.93 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.955e-05/0.3652, allocations: 11 kB / 0.5412 GB, free: 15.93 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003614/0.3656, allocations: 86.89 kB / 0.5413 GB, free: 15.88 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006722/0.3663, allocations: 340.7 kB / 0.5417 GB, free: 15.6 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.811e-05/0.3663, allocations: 52.44 kB / 0.5417 GB, free: 15.57 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.281e-05/0.3664, allocations: 58.53 kB / 0.5418 GB, free: 15.55 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008808/0.3673, allocations: 497 kB / 0.5422 GB, free: 15.23 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.707e-05/0.3673, allocations: 7.938 kB / 0.5422 GB, free: 15.22 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.275e-05/0.3673, allocations: 21.34 kB / 0.5423 GB, free: 15.21 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.272e-05/0.3674, allocations: 12.34 kB / 0.5423 GB, free: 15.21 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007037/0.3681, allocations: 306 kB / 0.5426 GB, free: 15.07 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002756/0.3708, allocations: 1.816 MB / 0.5443 GB, free: 13.48 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007139/0.3715, allocations: 298.3 kB / 0.5446 GB, free: 13.27 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003249/0.3719, allocations: 163.4 kB / 0.5448 GB, free: 13.18 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.842e-05/0.3719, allocations: 7.734 kB / 0.5448 GB, free: 13.17 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.002e-05/0.3719, allocations: 45.77 kB / 0.5448 GB, free: 13.12 MB / 398.1 MB Notification: Performance of pre-optimization done (n=31): time 1.783e-06/0.3719, allocations: 1.312 kB / 0.5448 GB, free: 13.12 MB / 398.1 MB Notification: Performance of matching and sorting (n=31): time 0.0009673/0.3729, allocations: 391 kB / 0.5452 GB, free: 12.92 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001249/0.373, allocations: 163.2 kB / 0.5454 GB, free: 12.73 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000404/0.3734, allocations: 315.1 kB / 0.5457 GB, free: 12.52 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.347e-05/0.3735, allocations: 39.27 kB / 0.5457 GB, free: 12.48 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002414/0.3737, allocations: 272.1 kB / 0.546 GB, free: 12.24 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.905e-05/0.3738, allocations: 92.91 kB / 0.546 GB, free: 12.16 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001883/0.374, allocations: 103.4 kB / 0.5461 GB, free: 12.09 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001882/0.3742, allocations: 348 kB / 0.5465 GB, free: 11.75 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003559/0.3746, allocations: 151.3 kB / 0.5466 GB, free: 11.68 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004443/0.375, allocations: 259.8 kB / 0.5469 GB, free: 11.47 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006722/0.3757, allocations: 367 kB / 0.5472 GB, free: 11.21 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.494e-06/0.3757, allocations: 1 kB / 0.5472 GB, free: 11.21 MB / 398.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.0009766/0.3767, allocations: 477.4 kB / 0.5477 GB, free: 10.97 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.291e-05/0.3767, allocations: 11.12 kB / 0.5477 GB, free: 10.97 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.102e-05/0.3767, allocations: 2.875 kB / 0.5477 GB, free: 10.97 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.382e-05/0.3767, allocations: 6 kB / 0.5477 GB, free: 10.97 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002765/0.377, allocations: 74.61 kB / 0.5478 GB, free: 10.94 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.676e-05/0.377, allocations: 8.594 kB / 0.5478 GB, free: 10.94 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003041/0.3773, allocations: 62.22 kB / 0.5478 GB, free: 10.89 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.829e-05/0.3774, allocations: 19.09 kB / 0.5478 GB, free: 10.89 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 (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.0002677/0.3776, allocations: 209.1 kB / 0.548 GB, free: 10.71 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001233/0.3777, allocations: 40.2 kB / 0.5481 GB, free: 10.69 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.522e-05/0.3778, allocations: 44.14 kB / 0.5481 GB, free: 10.65 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.991e-06/0.3778, allocations: 4.656 kB / 0.5481 GB, free: 10.65 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.476e-06/0.3779, allocations: 0 / 0.5481 GB, free: 10.65 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.554e-06/0.3779, allocations: 5.266 kB / 0.5481 GB, free: 10.65 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001916/0.3798, allocations: 1.182 MB / 0.5493 GB, free: 9.656 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.706e-06/0.3798, allocations: 6.922 kB / 0.5493 GB, free: 9.652 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002339/0.38, allocations: 41.58 kB / 0.5493 GB, free: 9.641 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.114e-05/0.38, allocations: 7.703 kB / 0.5493 GB, free: 9.637 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.096e-05/0.3801, allocations: 13.97 kB / 0.5494 GB, free: 9.629 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.097e-06/0.3801, allocations: 7.656 kB / 0.5494 GB, free: 9.625 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.607e-06/0.3801, allocations: 2.5 kB / 0.5494 GB, free: 9.625 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009563/0.381, allocations: 0.5555 MB / 0.5499 GB, free: 9.223 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001511/0.3812, allocations: 64.39 kB / 0.55 GB, free: 9.176 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.905e-05/0.3812, allocations: 14.64 kB / 0.55 GB, free: 9.168 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002143/0.3815, allocations: 27.92 kB / 0.55 GB, free: 9.148 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.187e-05/0.3815, allocations: 31.7 kB / 0.55 GB, free: 9.129 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.235e-05/0.3816, allocations: 12.28 kB / 0.5501 GB, free: 9.125 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002724/0.3818, allocations: 214.7 kB / 0.5503 GB, free: 8.984 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3818, allocations: 0 / 0.5503 GB, free: 8.984 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004772/0.3823, allocations: 108.1 kB / 0.5504 GB, free: 8.953 MB / 398.1 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 0.0001643/0.3825, allocations: 130.4 kB / 0.5505 GB, free: 8.836 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008083/0.3833, allocations: 333.6 kB / 0.5508 GB, free: 8.691 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.007e-06/0.3833, allocations: 0.8125 kB / 0.5508 GB, free: 8.691 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003248/0.3836, allocations: 145.1 kB / 0.5509 GB, free: 8.629 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006699/0.3843, allocations: 111.2 kB / 0.5511 GB, free: 8.566 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001684/0.386, allocations: 0.8518 MB / 0.5519 GB, free: 7.934 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005517/0.3865, allocations: 0.831 MB / 0.5527 GB, free: 7.168 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001375/0.3867, allocations: 39.2 kB / 0.5527 GB, free: 7.156 MB / 398.1 MB Notification: Performance of SimCode: time 4.71e-07/0.3867, allocations: 1.281 kB / 0.5527 GB, free: 7.156 MB / 398.1 MB Notification: Performance of Templates: time 0.01179/0.3985, allocations: 5.264 MB / 0.5579 GB, free: 4.102 MB / 398.1 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 sys.exit(0), Time elapsed: 7.879285171162337] Failed to read output from testmodel.py, exit status != 0: 0.4079520341474563 0.42349395300000003 0.056504692 Calling exit ...