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.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.00128/0.00128, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.001577/0.001577, allocations: 207.3 kB / 22.24 MB, free: 5.262 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.488/1.488, allocations: 230.6 MB / 256 MB, free: 7.797 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.2274/0.2274, allocations: 31.54 MB / 344 MB, free: 3.773 MB / 270.1 MB " [Timeout remaining time 180] 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.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_BusinessSimulation.Examples.SimpleProductionChain") translateModel(BusinessSimulation.Examples.SimpleProductionChain,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain") [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.002318/0.002318, allocations: 71.89 kB / 481.2 MB, free: 15.07 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3363/0.3386, allocations: 60.71 MB / 0.5292 GB, free: 7.73 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChain): time 0.006243/0.3449, allocations: 5.096 MB / 0.5342 GB, free: 4.289 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001144/0.346, allocations: 0.6081 MB / 0.5348 GB, free: 3.848 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002025/0.3462, allocations: 12.25 kB / 0.5348 GB, free: 3.844 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002625/0.3465, allocations: 78.45 kB / 0.5349 GB, free: 3.801 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001872/0.3467, allocations: 72.73 kB / 0.535 GB, free: 3.746 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005489/0.3472, allocations: 184.7 kB / 0.5351 GB, free: 3.641 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004584/0.3477, allocations: 466.5 kB / 0.5356 GB, free: 3.406 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002656/0.348, allocations: 146.2 kB / 0.5357 GB, free: 3.328 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002092/0.3482, allocations: 197 kB / 0.5359 GB, free: 3.227 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002542/0.3484, allocations: 174.4 kB / 0.5361 GB, free: 3.141 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.258e-05/0.3485, allocations: 44.47 kB / 0.5361 GB, free: 3.141 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001124/0.3486, allocations: 58.83 kB / 0.5362 GB, free: 3.133 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001043/0.3487, allocations: 106 kB / 0.5363 GB, free: 3.062 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001485/0.3489, allocations: 172.3 kB / 0.5364 GB, free: 2.961 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005258/0.3494, allocations: 466.2 kB / 0.5369 GB, free: 2.75 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.276e-06/0.3494, allocations: 0 / 0.5369 GB, free: 2.75 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.3494, allocations: 0 / 0.5369 GB, free: 2.75 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.46e-05/0.3494, allocations: 0 / 0.5369 GB, free: 2.75 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.0009701/0.3504, allocations: 0.6261 MB / 0.5375 GB, free: 2.25 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.919e-05/0.3504, allocations: 10.81 kB / 0.5375 GB, free: 2.25 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002789/0.3507, allocations: 68.48 kB / 0.5376 GB, free: 2.215 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003904/0.3511, allocations: 266.5 kB / 0.5378 GB, free: 1.977 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.214e-05/0.3511, allocations: 36.84 kB / 0.5379 GB, free: 1.961 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.605e-05/0.3512, allocations: 50.38 kB / 0.5379 GB, free: 1.941 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006139/0.3518, allocations: 474.6 kB / 0.5384 GB, free: 1.594 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.551e-05/0.3518, allocations: 0 / 0.5384 GB, free: 1.594 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.274e-05/0.3519, allocations: 17.59 kB / 0.5384 GB, free: 1.582 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.62e-05/0.3519, allocations: 9.219 kB / 0.5384 GB, free: 1.582 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004734/0.3523, allocations: 249.6 kB / 0.5386 GB, free: 1.465 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001487/0.3538, allocations: 1.405 MB / 0.54 GB, free: 248 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004843/0.3543, allocations: 245 kB / 0.5402 GB, free: 60 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003069/0.3546, allocations: 149.5 kB / 0.5404 GB, free: 15.96 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.247e-05/0.3546, allocations: 12.06 kB / 0.5404 GB, free: 15.95 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.141e-05/0.3547, allocations: 38.62 kB / 0.5404 GB, free: 15.91 MB / 398.1 MB Notification: Performance of pre-optimization done (n=28): time 1.653e-06/0.3547, allocations: 0 / 0.5404 GB, free: 15.91 MB / 398.1 MB Notification: Performance of matching and sorting (n=28): time 0.0009105/0.3556, allocations: 352.9 kB / 0.5408 GB, free: 15.73 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001266/0.3557, allocations: 166.5 kB / 0.5409 GB, free: 15.53 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003438/0.3561, allocations: 253.1 kB / 0.5412 GB, free: 15.34 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.286e-05/0.3561, allocations: 43.3 kB / 0.5412 GB, free: 15.3 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002008/0.3563, allocations: 213.1 kB / 0.5414 GB, free: 15.11 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.353e-05/0.3564, allocations: 92.06 kB / 0.5415 GB, free: 15.03 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001518/0.3566, allocations: 101.4 kB / 0.5416 GB, free: 14.96 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001573/0.3567, allocations: 338.4 kB / 0.5419 GB, free: 14.63 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003105/0.357, allocations: 135.4 kB / 0.542 GB, free: 14.57 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004078/0.3575, allocations: 276.7 kB / 0.5423 GB, free: 14.34 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005779/0.358, allocations: 348.8 kB / 0.5426 GB, free: 14.09 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/0.358, allocations: 0 / 0.5426 GB, free: 14.09 MB / 398.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0008278/0.3589, allocations: 445 kB / 0.5431 GB, free: 13.86 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.641e-05/0.3589, allocations: 5.688 kB / 0.5431 GB, free: 13.86 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.476e-06/0.3589, allocations: 3.406 kB / 0.5431 GB, free: 13.86 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.128e-05/0.3589, allocations: 5.875 kB / 0.5431 GB, free: 13.86 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002394/0.3592, allocations: 66.17 kB / 0.5431 GB, free: 13.84 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.664e-05/0.3592, allocations: 13.44 kB / 0.5432 GB, free: 13.83 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002561/0.3594, allocations: 56.64 kB / 0.5432 GB, free: 13.79 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.435e-05/0.3595, allocations: 22.81 kB / 0.5432 GB, free: 13.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.0002066/0.3597, allocations: 180.2 kB / 0.5434 GB, free: 13.63 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.947e-05/0.3598, allocations: 33.11 kB / 0.5434 GB, free: 13.61 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.006e-05/0.3598, allocations: 32.03 kB / 0.5435 GB, free: 13.58 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.6e-06/0.3598, allocations: 4.156 kB / 0.5435 GB, free: 13.58 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.969e-06/0.3599, allocations: 5.25 kB / 0.5435 GB, free: 13.57 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.044e-06/0.3599, allocations: 9.172 kB / 0.5435 GB, free: 13.57 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001515/0.3614, allocations: 1.066 MB / 0.5445 GB, free: 12.66 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.909e-06/0.3614, allocations: 3.219 kB / 0.5445 GB, free: 12.66 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001863/0.3616, allocations: 34.2 kB / 0.5446 GB, free: 12.66 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.929e-06/0.3616, allocations: 9.141 kB / 0.5446 GB, free: 12.65 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.881e-05/0.3616, allocations: 14.11 kB / 0.5446 GB, free: 12.64 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.688e-06/0.3616, allocations: 8.938 kB / 0.5446 GB, free: 12.64 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.342e-06/0.3616, allocations: 11.31 kB / 0.5446 GB, free: 12.63 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008397/0.3625, allocations: 0.5341 MB / 0.5451 GB, free: 12.22 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001177/0.3626, allocations: 56.31 kB / 0.5452 GB, free: 12.18 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.33e-05/0.3626, allocations: 13.5 kB / 0.5452 GB, free: 12.18 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001921/0.3628, allocations: 22.94 kB / 0.5452 GB, free: 12.16 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.882e-05/0.3629, allocations: 32.81 kB / 0.5452 GB, free: 12.14 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.244e-05/0.3629, allocations: 17.17 kB / 0.5453 GB, free: 12.14 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001638/0.3631, allocations: 167.3 kB / 0.5454 GB, free: 12.02 MB / 398.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3631, allocations: 0 / 0.5454 GB, free: 12.02 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004177/0.3635, allocations: 96.59 kB / 0.5455 GB, free: 11.99 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.0001305/0.3636, allocations: 122.1 kB / 0.5456 GB, free: 11.89 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006595/0.3643, allocations: 307.6 kB / 0.5459 GB, free: 11.75 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.3643, allocations: 0 / 0.5459 GB, free: 11.75 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002672/0.3646, allocations: 137.5 kB / 0.546 GB, free: 11.69 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005644/0.3651, allocations: 88.94 kB / 0.5461 GB, free: 11.64 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001188/0.3663, allocations: 0.7263 MB / 0.5468 GB, free: 11.09 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000209/0.3665, allocations: 193.5 kB / 0.547 GB, free: 10.96 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001831/0.3667, allocations: 58.34 kB / 0.5471 GB, free: 10.93 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.384e-05/0.3668, allocations: 33.16 kB / 0.5471 GB, free: 10.92 MB / 398.1 MB Notification: Performance of SimCode: time 3.2e-07/0.3668, allocations: 1.562 kB / 0.5471 GB, free: 10.92 MB / 398.1 MB Notification: Performance of Templates: time 0.009424/0.3762, allocations: 4.181 MB / 0.5512 GB, free: 8.812 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 -lv LOG_STATS > BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.017912412062287] Failed to read output from testmodel.py, exit status != 0: 0.38492588698863983 0.39812779600000003 0.045842524 Calling exit ...