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.00188/0.00188, allocations: 100.3 kB / 19.7 MB, free: 2.012 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.002388/0.002388, allocations: 221.8 kB / 23 MB, free: 4.918 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.476/1.476, allocations: 230.6 MB / 256.8 MB, free: 7.809 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.2159/0.2159, allocations: 31.54 MB / 344.7 MB, free: 3.797 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.002064/0.002064, allocations: 67.84 kB / 482 MB, free: 15.06 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3647/0.3667, allocations: 60.71 MB / 0.53 GB, free: 7.859 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChain): time 0.006511/0.3732, allocations: 5.087 MB / 0.5349 GB, free: 4.422 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00138/0.3746, allocations: 0.6085 MB / 0.5355 GB, free: 3.98 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002312/0.3748, allocations: 15.75 kB / 0.5355 GB, free: 3.973 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002809/0.3751, allocations: 79.95 kB / 0.5356 GB, free: 3.93 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001987/0.3753, allocations: 76.08 kB / 0.5357 GB, free: 3.871 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005634/0.3759, allocations: 189.7 kB / 0.5359 GB, free: 3.766 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004716/0.3764, allocations: 462.2 kB / 0.5363 GB, free: 3.535 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002789/0.3766, allocations: 148.8 kB / 0.5365 GB, free: 3.453 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002288/0.3769, allocations: 194.5 kB / 0.5366 GB, free: 3.355 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000247/0.3771, allocations: 173.2 kB / 0.5368 GB, free: 3.27 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.818e-05/0.3772, allocations: 44.38 kB / 0.5369 GB, free: 3.27 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001124/0.3773, allocations: 54.81 kB / 0.5369 GB, free: 3.266 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001071/0.3774, allocations: 102.5 kB / 0.537 GB, free: 3.199 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001603/0.3776, allocations: 175.7 kB / 0.5372 GB, free: 3.094 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005653/0.3781, allocations: 466.1 kB / 0.5376 GB, free: 2.883 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.3781, allocations: 4.969 kB / 0.5376 GB, free: 2.879 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.3781, allocations: 0 / 0.5376 GB, free: 2.879 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.737e-06/0.3781, allocations: 0 / 0.5376 GB, free: 2.879 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.001075/0.3792, allocations: 0.619 MB / 0.5382 GB, free: 2.395 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.852e-05/0.3793, allocations: 11.44 kB / 0.5382 GB, free: 2.395 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003031/0.3796, allocations: 68.78 kB / 0.5383 GB, free: 2.359 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003862/0.3799, allocations: 273.3 kB / 0.5386 GB, free: 2.113 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.824e-05/0.38, allocations: 36.47 kB / 0.5386 GB, free: 2.098 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.094e-05/0.3801, allocations: 58.55 kB / 0.5387 GB, free: 2.07 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006218/0.3807, allocations: 463.4 kB / 0.5391 GB, free: 1.734 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.617e-05/0.3807, allocations: 7.938 kB / 0.5391 GB, free: 1.727 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.289e-05/0.3807, allocations: 16.28 kB / 0.5391 GB, free: 1.715 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.218e-05/0.3807, allocations: 9.75 kB / 0.5391 GB, free: 1.715 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000484/0.3812, allocations: 246.1 kB / 0.5394 GB, free: 1.602 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00161/0.3828, allocations: 1.404 MB / 0.5407 GB, free: 388 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005204/0.3833, allocations: 248.7 kB / 0.541 GB, free: 196 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002399/0.3836, allocations: 150.7 kB / 0.5411 GB, free: 100 kB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.615e-05/0.3836, allocations: 6.969 kB / 0.5411 GB, free: 96 kB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.95e-05/0.3836, allocations: 38.16 kB / 0.5412 GB, free: 52 kB / 382.1 MB Notification: Performance of pre-optimization done (n=28): time 2.435e-06/0.3836, allocations: 5.922 kB / 0.5412 GB, free: 48 kB / 382.1 MB Notification: Performance of matching and sorting (n=28): time 0.0008339/0.3845, allocations: 344.4 kB / 0.5415 GB, free: 15.87 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001267/0.3846, allocations: 158.3 kB / 0.5416 GB, free: 15.68 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002929/0.3849, allocations: 252.8 kB / 0.5419 GB, free: 15.5 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.248e-05/0.3849, allocations: 51.19 kB / 0.5419 GB, free: 15.45 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000177/0.3851, allocations: 214.6 kB / 0.5421 GB, free: 15.25 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.557e-05/0.3852, allocations: 90.31 kB / 0.5422 GB, free: 15.18 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001479/0.3854, allocations: 102 kB / 0.5423 GB, free: 15.11 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001752/0.3855, allocations: 339.1 kB / 0.5426 GB, free: 14.78 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003418/0.3859, allocations: 134 kB / 0.5428 GB, free: 14.71 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004538/0.3863, allocations: 281.8 kB / 0.543 GB, free: 14.48 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006271/0.387, allocations: 348.3 kB / 0.5434 GB, free: 14.23 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.28e-06/0.387, allocations: 1.188 kB / 0.5434 GB, free: 14.23 MB / 398.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0008728/0.3878, allocations: 451.1 kB / 0.5438 GB, free: 14 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.116e-05/0.3879, allocations: 10.53 kB / 0.5438 GB, free: 13.99 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.005e-06/0.3879, allocations: 3.344 kB / 0.5438 GB, free: 13.99 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.401e-05/0.3879, allocations: 5.438 kB / 0.5438 GB, free: 13.99 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002639/0.3882, allocations: 61.95 kB / 0.5439 GB, free: 13.97 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.659e-05/0.3882, allocations: 14.03 kB / 0.5439 GB, free: 13.96 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002777/0.3885, allocations: 57.67 kB / 0.5439 GB, free: 13.93 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.613e-05/0.3885, allocations: 17.66 kB / 0.544 GB, free: 13.92 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.0002415/0.3887, allocations: 177.4 kB / 0.5441 GB, free: 13.77 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001074/0.3888, allocations: 32.22 kB / 0.5442 GB, free: 13.75 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.13e-05/0.3889, allocations: 40.16 kB / 0.5442 GB, free: 13.71 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.791e-06/0.3889, allocations: 3.938 kB / 0.5442 GB, free: 13.71 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.334e-05/0.3889, allocations: 4.75 kB / 0.5442 GB, free: 13.71 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.013e-06/0.3889, allocations: 6.328 kB / 0.5442 GB, free: 13.7 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001693/0.3906, allocations: 1.061 MB / 0.5453 GB, free: 12.8 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.468e-06/0.3906, allocations: 2.969 kB / 0.5453 GB, free: 12.8 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000192/0.3908, allocations: 39.34 kB / 0.5453 GB, free: 12.79 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.842e-06/0.3908, allocations: 3.938 kB / 0.5453 GB, free: 12.79 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.143e-05/0.3909, allocations: 14.8 kB / 0.5453 GB, free: 12.79 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.195e-06/0.3909, allocations: 8.219 kB / 0.5453 GB, free: 12.78 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.115e-06/0.3909, allocations: 8.062 kB / 0.5453 GB, free: 12.78 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009175/0.3918, allocations: 0.5374 MB / 0.5459 GB, free: 12.36 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000131/0.3919, allocations: 55.62 kB / 0.5459 GB, free: 12.32 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.754e-05/0.392, allocations: 15.28 kB / 0.5459 GB, free: 12.32 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002009/0.3922, allocations: 16.77 kB / 0.5459 GB, free: 12.31 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001014/0.3923, allocations: 33.67 kB / 0.546 GB, free: 12.29 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.284e-05/0.3923, allocations: 13.56 kB / 0.546 GB, free: 12.29 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002097/0.3925, allocations: 168.4 kB / 0.5461 GB, free: 12.16 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3925, allocations: 0 / 0.5461 GB, free: 12.16 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004835/0.393, allocations: 96.22 kB / 0.5462 GB, free: 12.14 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.0001467/0.3931, allocations: 126.2 kB / 0.5464 GB, free: 12.03 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007353/0.3939, allocations: 310 kB / 0.5466 GB, free: 11.89 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.779e-06/0.3939, allocations: 1.656 kB / 0.5467 GB, free: 11.89 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002738/0.3942, allocations: 129 kB / 0.5468 GB, free: 11.83 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005928/0.3948, allocations: 93.45 kB / 0.5469 GB, free: 11.78 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001311/0.3961, allocations: 0.7656 MB / 0.5476 GB, free: 11.19 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002068/0.3963, allocations: 189.3 kB / 0.5478 GB, free: 11.06 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000112/0.3964, allocations: 30.53 kB / 0.5478 GB, free: 11.05 MB / 398.1 MB Notification: Performance of SimCode: time 3.31e-07/0.3964, allocations: 5.062 kB / 0.5478 GB, free: 11.05 MB / 398.1 MB Notification: Performance of Templates: time 0.008141/0.4045, allocations: 4.379 MB / 0.5521 GB, free: 8.719 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: 7.6647579609416425] Failed to read output from testmodel.py, exit status != 0: 0.4133356111124158 0.42904412000000003 0.047648853000000005 Calling exit ...