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.001329/0.001329, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.001536/0.001536, allocations: 218.6 kB / 22.26 MB, free: 5.121 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.493/1.493, allocations: 230.6 MB / 256 MB, free: 7.957 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.1842/0.1842, allocations: 31.54 MB / 344 MB, free: 3.926 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: "" <> buildModelFMU(BusinessSimulation.Examples.SimpleProductionChainII,fileNamePrefix="BusinessSimulation_dev_BusinessSimulation_Examples_SimpleProductionChainII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BusinessSimulation.Examples.SimpleProductionChainII,fileNamePrefix="BusinessSimulation_dev_BusinessSimulation_Examples_SimpleProductionChainII",fmuType="me",version="2.0",platforms={"static"}) [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.002166/0.002166, allocations: 71.89 kB / 480.8 MB, free: 15.7 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3556/0.3578, allocations: 60.71 MB / 0.5288 GB, free: 7.641 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChainII): time 0.008396/0.3662, allocations: 6.937 MB / 0.5356 GB, free: 2.742 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002155/0.3684, allocations: 1.007 MB / 0.5366 GB, free: 1.996 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000397/0.3688, allocations: 33.81 kB / 0.5366 GB, free: 1.977 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003281/0.3691, allocations: 108.2 kB / 0.5367 GB, free: 1.914 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002314/0.3693, allocations: 71.31 kB / 0.5368 GB, free: 1.859 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007184/0.37, allocations: 243.5 kB / 0.537 GB, free: 1.711 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006309/0.3707, allocations: 0.5648 MB / 0.5376 GB, free: 1.418 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004038/0.3711, allocations: 216.6 kB / 0.5378 GB, free: 1.297 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003058/0.3714, allocations: 239.9 kB / 0.538 GB, free: 1.168 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003169/0.3717, allocations: 246 kB / 0.5383 GB, free: 1.023 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.314e-05/0.3718, allocations: 56.28 kB / 0.5383 GB, free: 1.023 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00016/0.3719, allocations: 62.52 kB / 0.5384 GB, free: 1.023 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001566/0.3721, allocations: 132.9 kB / 0.5385 GB, free: 0.9336 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002423/0.3723, allocations: 258.2 kB / 0.5387 GB, free: 0.7578 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006363/0.373, allocations: 0.5759 MB / 0.5393 GB, free: 376 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.373, allocations: 0 / 0.5393 GB, free: 376 kB / 382.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.373, allocations: 0 / 0.5393 GB, free: 376 kB / 382.1 MB Notification: Performance of Transformations before backend: time 1.039e-05/0.373, allocations: 3.469 kB / 0.5393 GB, free: 376 kB / 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.001283/0.3743, allocations: 0.7279 MB / 0.54 GB, free: 15.77 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.139e-05/0.3743, allocations: 10.25 kB / 0.54 GB, free: 15.77 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001121/0.3744, allocations: 91.33 kB / 0.5401 GB, free: 15.68 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003296/0.3748, allocations: 78.38 kB / 0.5402 GB, free: 15.64 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005977/0.3754, allocations: 345.2 kB / 0.5405 GB, free: 15.36 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.748e-05/0.3754, allocations: 50.12 kB / 0.5406 GB, free: 15.33 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.781e-05/0.3755, allocations: 56.94 kB / 0.5406 GB, free: 15.31 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009112/0.3764, allocations: 0.4886 MB / 0.5411 GB, free: 14.99 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.67e-05/0.3764, allocations: 9.281 kB / 0.5411 GB, free: 14.98 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.822e-05/0.3765, allocations: 21.5 kB / 0.5411 GB, free: 14.96 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.68e-05/0.3765, allocations: 11.69 kB / 0.5411 GB, free: 14.96 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000727/0.3772, allocations: 309.8 kB / 0.5414 GB, free: 14.82 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002807/0.38, allocations: 1.812 MB / 0.5432 GB, free: 13.24 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007789/0.3808, allocations: 295.7 kB / 0.5435 GB, free: 13.03 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003433/0.3812, allocations: 172.8 kB / 0.5436 GB, free: 12.93 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.103e-05/0.3812, allocations: 6.922 kB / 0.5437 GB, free: 12.92 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.492e-05/0.3813, allocations: 46.8 kB / 0.5437 GB, free: 12.87 MB / 398.1 MB Notification: Performance of pre-optimization done (n=31): time 2.706e-06/0.3813, allocations: 4 kB / 0.5437 GB, free: 12.87 MB / 398.1 MB Notification: Performance of matching and sorting (n=31): time 0.0009686/0.3822, allocations: 387.2 kB / 0.5441 GB, free: 12.67 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001351/0.3824, allocations: 159 kB / 0.5442 GB, free: 12.48 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004103/0.3828, allocations: 319.5 kB / 0.5445 GB, free: 12.27 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.162e-05/0.3828, allocations: 39.2 kB / 0.5446 GB, free: 12.23 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002324/0.3831, allocations: 272.9 kB / 0.5448 GB, free: 11.99 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001129/0.3832, allocations: 96.25 kB / 0.5449 GB, free: 11.91 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001661/0.3833, allocations: 103.4 kB / 0.545 GB, free: 11.84 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002046/0.3836, allocations: 347.5 kB / 0.5453 GB, free: 11.5 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003589/0.3839, allocations: 143.2 kB / 0.5455 GB, free: 11.43 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004724/0.3844, allocations: 268.2 kB / 0.5457 GB, free: 11.21 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006683/0.3851, allocations: 370.8 kB / 0.5461 GB, free: 10.95 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.827e-06/0.3851, allocations: 1.438 kB / 0.5461 GB, free: 10.95 MB / 398.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.0009748/0.386, allocations: 477.3 kB / 0.5466 GB, free: 10.71 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.305e-05/0.3861, allocations: 5.688 kB / 0.5466 GB, free: 10.71 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.075e-05/0.3861, allocations: 3.531 kB / 0.5466 GB, free: 10.71 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.626e-05/0.3861, allocations: 5.938 kB / 0.5466 GB, free: 10.71 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002919/0.3864, allocations: 69.61 kB / 0.5466 GB, free: 10.69 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.503e-05/0.3864, allocations: 9.938 kB / 0.5466 GB, free: 10.69 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002869/0.3867, allocations: 67.09 kB / 0.5467 GB, free: 10.64 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.614e-05/0.3867, allocations: 18.22 kB / 0.5467 GB, free: 10.64 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.0002428/0.387, allocations: 197.6 kB / 0.5469 GB, free: 10.47 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001122/0.3871, allocations: 44.39 kB / 0.547 GB, free: 10.44 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.513e-05/0.3872, allocations: 47.41 kB / 0.547 GB, free: 10.4 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.294e-06/0.3872, allocations: 4.281 kB / 0.547 GB, free: 10.4 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.508e-06/0.3872, allocations: 1.125 kB / 0.547 GB, free: 10.4 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.613e-06/0.3872, allocations: 5.594 kB / 0.547 GB, free: 10.4 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001901/0.3891, allocations: 1.186 MB / 0.5482 GB, free: 9.402 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.04e-06/0.3891, allocations: 2.375 kB / 0.5482 GB, free: 9.402 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002295/0.3893, allocations: 41.03 kB / 0.5482 GB, free: 9.391 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.121e-06/0.3893, allocations: 4.656 kB / 0.5482 GB, free: 9.391 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.14e-05/0.3894, allocations: 9.594 kB / 0.5482 GB, free: 9.387 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.173e-06/0.3894, allocations: 10.69 kB / 0.5482 GB, free: 9.379 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.326e-06/0.3894, allocations: 6.516 kB / 0.5482 GB, free: 9.375 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009524/0.3903, allocations: 0.5636 MB / 0.5488 GB, free: 8.965 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001429/0.3905, allocations: 65.53 kB / 0.5489 GB, free: 8.918 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.139e-05/0.3905, allocations: 15.38 kB / 0.5489 GB, free: 8.91 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000201/0.3907, allocations: 14.58 kB / 0.5489 GB, free: 8.902 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.766e-05/0.3908, allocations: 44.91 kB / 0.5489 GB, free: 8.871 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.573e-05/0.3908, allocations: 6.938 kB / 0.5489 GB, free: 8.871 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002537/0.3911, allocations: 211.6 kB / 0.5491 GB, free: 8.734 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3911, allocations: 0 / 0.5491 GB, free: 8.734 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004731/0.3916, allocations: 111.7 kB / 0.5492 GB, free: 8.699 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.001397/0.393, allocations: 1.12 MB / 0.5503 GB, free: 7.742 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007457/0.3937, allocations: 329.9 kB / 0.5506 GB, free: 7.602 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.977e-06/0.3937, allocations: 4.938 kB / 0.5507 GB, free: 7.598 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003399/0.3941, allocations: 151.6 kB / 0.5508 GB, free: 7.527 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006326/0.3947, allocations: 103.3 kB / 0.5509 GB, free: 7.477 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005703/0.4004, allocations: 3.643 MB / 0.5545 GB, free: 4.754 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005729/0.401, allocations: 0.819 MB / 0.5553 GB, free: 4 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002544/0.4012, allocations: 72.23 kB / 0.5553 GB, free: 3.957 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002474/0.4015, allocations: 158.6 kB / 0.5555 GB, free: 3.828 MB / 398.1 MB Notification: Performance of SimCode: time 5.61e-07/0.4015, allocations: 0 / 0.5555 GB, free: 3.828 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0427/0.4442, allocations: 7.75 MB / 0.563 GB, free: 13.49 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.44/11.88, allocations: 10.14 kB / 0.563 GB, free: 13.48 MB / 414.1 MB " [Timeout remaining time 648] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BusinessSimulation_dev_BusinessSimulation_Examples_SimpleProductionChainII_fmu --startTime=0 --stopTime=60 --stepSize=0.12 --timeout=50 --tolerance=1e-06 BusinessSimulation_dev_BusinessSimulation_Examples_SimpleProductionChainII.fmu > BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.673865374876186] Failed to read output from testmodel.py, exit status != 0: 11.997806241037324 12.025146381 11.646445704 Calling exit ...