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.001405/0.001405, 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.00142/0.00142, allocations: 215.6 kB / 22.25 MB, free: 5.254 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.407/1.407, allocations: 230.6 MB / 256 MB, free: 7.793 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.2208/0.2208, allocations: 31.54 MB / 344 MB, free: 3.762 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.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: 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.002054/0.002054, allocations: 67.91 kB / 481.2 MB, free: 15.06 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3256/0.3277, allocations: 60.72 MB / 0.5292 GB, free: 7.801 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChain): time 0.00592/0.3336, allocations: 5.086 MB / 0.5342 GB, free: 4.371 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001163/0.3348, allocations: 0.6118 MB / 0.5348 GB, free: 3.926 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002088/0.335, allocations: 12.19 kB / 0.5348 GB, free: 3.922 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002399/0.3352, allocations: 80.47 kB / 0.5349 GB, free: 3.879 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001805/0.3354, allocations: 75.67 kB / 0.535 GB, free: 3.82 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005009/0.3359, allocations: 188.4 kB / 0.5351 GB, free: 3.711 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004549/0.3363, allocations: 460.1 kB / 0.5356 GB, free: 3.484 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002649/0.3366, allocations: 148.3 kB / 0.5357 GB, free: 3.402 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001972/0.3368, allocations: 197.9 kB / 0.5359 GB, free: 3.301 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002273/0.337, allocations: 173.7 kB / 0.5361 GB, free: 3.215 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.453e-05/0.3371, allocations: 45.16 kB / 0.5361 GB, free: 3.215 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001056/0.3372, allocations: 49.69 kB / 0.5362 GB, free: 3.215 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001009/0.3373, allocations: 106.8 kB / 0.5363 GB, free: 3.145 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001443/0.3375, allocations: 180.5 kB / 0.5364 GB, free: 3.035 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005047/0.338, allocations: 461.8 kB / 0.5369 GB, free: 2.828 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.338, allocations: 0 / 0.5369 GB, free: 2.828 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.384e-06/0.338, allocations: 1.094 kB / 0.5369 GB, free: 2.828 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.327e-05/0.338, allocations: 0 / 0.5369 GB, free: 2.828 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.001084/0.3391, allocations: 0.621 MB / 0.5375 GB, free: 2.355 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.476e-05/0.3391, allocations: 14.69 kB / 0.5375 GB, free: 2.352 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003003/0.3394, allocations: 71.98 kB / 0.5376 GB, free: 2.312 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003848/0.3398, allocations: 266 kB / 0.5378 GB, free: 2.074 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.253e-05/0.3398, allocations: 37.66 kB / 0.5379 GB, free: 2.059 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.516e-05/0.3399, allocations: 50.84 kB / 0.5379 GB, free: 2.039 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006566/0.3406, allocations: 474.2 kB / 0.5384 GB, free: 1.691 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.666e-05/0.3406, allocations: 0 / 0.5384 GB, free: 1.691 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.324e-05/0.3406, allocations: 17.59 kB / 0.5384 GB, free: 1.68 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.04e-05/0.3406, allocations: 9.031 kB / 0.5384 GB, free: 1.68 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004713/0.3411, allocations: 247.7 kB / 0.5386 GB, free: 1.566 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00158/0.3427, allocations: 1.407 MB / 0.54 GB, free: 348 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005092/0.3432, allocations: 248.2 kB / 0.5402 GB, free: 156 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000242/0.3434, allocations: 149.7 kB / 0.5404 GB, free: 60 kB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.638e-05/0.3434, allocations: 3.438 kB / 0.5404 GB, free: 60 kB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.158e-05/0.3435, allocations: 46.73 kB / 0.5404 GB, free: 8 kB / 382.1 MB Notification: Performance of pre-optimization done (n=28): time 1.413e-06/0.3435, allocations: 0 / 0.5404 GB, free: 8 kB / 382.1 MB Notification: Performance of matching and sorting (n=28): time 0.0008254/0.3443, allocations: 338 kB / 0.5408 GB, free: 15.83 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.679e-05/0.3444, allocations: 166.9 kB / 0.5409 GB, free: 15.64 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002722/0.3447, allocations: 256.6 kB / 0.5412 GB, free: 15.45 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.354e-05/0.3447, allocations: 39.2 kB / 0.5412 GB, free: 15.41 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001703/0.3449, allocations: 217.2 kB / 0.5414 GB, free: 15.21 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.335e-05/0.345, allocations: 87.61 kB / 0.5415 GB, free: 15.14 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001404/0.3451, allocations: 109.9 kB / 0.5416 GB, free: 15.07 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001596/0.3453, allocations: 337.7 kB / 0.5419 GB, free: 14.73 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002963/0.3456, allocations: 135 kB / 0.542 GB, free: 14.67 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004017/0.346, allocations: 277.7 kB / 0.5423 GB, free: 14.44 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005931/0.3466, allocations: 347.5 kB / 0.5426 GB, free: 14.19 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.3466, allocations: 5.062 kB / 0.5426 GB, free: 14.18 MB / 398.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0008202/0.3474, allocations: 445.5 kB / 0.5431 GB, free: 13.96 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.89e-05/0.3474, allocations: 5.344 kB / 0.5431 GB, free: 13.96 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.062e-05/0.3474, allocations: 7.797 kB / 0.5431 GB, free: 13.96 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.106e-05/0.3474, allocations: 5.25 kB / 0.5431 GB, free: 13.96 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000252/0.3477, allocations: 62.16 kB / 0.5431 GB, free: 13.94 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.678e-05/0.3477, allocations: 13.83 kB / 0.5432 GB, free: 13.93 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002484/0.3479, allocations: 56.61 kB / 0.5432 GB, free: 13.89 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.674e-05/0.348, allocations: 22.16 kB / 0.5432 GB, free: 13.88 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.000218/0.3482, allocations: 189 kB / 0.5434 GB, free: 13.72 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.762e-05/0.3483, allocations: 29.25 kB / 0.5434 GB, free: 13.7 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.03e-05/0.3484, allocations: 35.64 kB / 0.5435 GB, free: 13.67 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.58e-06/0.3484, allocations: 4.406 kB / 0.5435 GB, free: 13.67 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.337e-06/0.3484, allocations: 5.062 kB / 0.5435 GB, free: 13.66 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.49e-06/0.3484, allocations: 1.094 kB / 0.5435 GB, free: 13.66 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001517/0.3499, allocations: 1.063 MB / 0.5445 GB, free: 12.76 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.359e-06/0.3499, allocations: 2.719 kB / 0.5445 GB, free: 12.76 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001846/0.3501, allocations: 42.28 kB / 0.5446 GB, free: 12.75 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.801e-06/0.3501, allocations: 5.562 kB / 0.5446 GB, free: 12.75 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.478e-05/0.3501, allocations: 9.812 kB / 0.5446 GB, free: 12.74 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.641e-06/0.3501, allocations: 6 kB / 0.5446 GB, free: 12.74 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.648e-06/0.3501, allocations: 14.69 kB / 0.5446 GB, free: 12.73 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008234/0.351, allocations: 0.5298 MB / 0.5451 GB, free: 12.32 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000125/0.3511, allocations: 55.97 kB / 0.5452 GB, free: 12.29 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.574e-05/0.3511, allocations: 18.67 kB / 0.5452 GB, free: 12.27 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001875/0.3513, allocations: 17.98 kB / 0.5452 GB, free: 12.27 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.709e-05/0.3514, allocations: 37.11 kB / 0.5452 GB, free: 12.24 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.867e-05/0.3514, allocations: 12.06 kB / 0.5452 GB, free: 12.24 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000161/0.3516, allocations: 164.3 kB / 0.5454 GB, free: 12.12 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3516, allocations: 0 / 0.5454 GB, free: 12.12 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004094/0.352, allocations: 100.1 kB / 0.5455 GB, free: 12.09 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.0001447/0.3521, allocations: 129.2 kB / 0.5456 GB, free: 11.98 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006661/0.3528, allocations: 306.2 kB / 0.5459 GB, free: 11.85 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.135e-06/0.3528, allocations: 1.219 kB / 0.5459 GB, free: 11.85 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002672/0.3531, allocations: 137.9 kB / 0.546 GB, free: 11.79 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000552/0.3536, allocations: 86.8 kB / 0.5461 GB, free: 11.74 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001292/0.3549, allocations: 0.7272 MB / 0.5468 GB, free: 11.18 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002163/0.3551, allocations: 189.2 kB / 0.547 GB, free: 11.06 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000197/0.3553, allocations: 59.23 kB / 0.5471 GB, free: 11.03 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.873e-05/0.3554, allocations: 28.81 kB / 0.5471 GB, free: 11.02 MB / 398.1 MB Notification: Performance of SimCode: time 3.11e-07/0.3554, allocations: 0 / 0.5471 GB, free: 11.02 MB / 398.1 MB Notification: Performance of Templates: time 0.009264/0.3647, allocations: 4.2 MB / 0.5512 GB, free: 8.902 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 -lv LOG_STATS > BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.843646561726928] Failed to read output from testmodel.py, exit status != 0: 0.37309304252266884 0.38757354000000005 0.046553598 Calling exit ...