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.00186/0.00186, 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.002191/0.002191, allocations: 210.4 kB / 22.24 MB, free: 5.258 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.594/1.594, allocations: 230.6 MB / 256 MB, free: 7.82 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.3007/0.3007, allocations: 31.55 MB / 344 MB, free: 3.836 MB / 270.1 MB " [Timeout remaining time 179] 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: "" <> buildModelFMU(BusinessSimulation.Examples.SimpleProductionChain,fileNamePrefix="BusinessSimulation_BusinessSimulation_Examples_SimpleProductionChain",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BusinessSimulation.Examples.SimpleProductionChain,fileNamePrefix="BusinessSimulation_BusinessSimulation_Examples_SimpleProductionChain",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.002052/0.002052, allocations: 67.84 kB / 480.7 MB, free: 15.65 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.35/0.352, allocations: 60.71 MB / 0.5288 GB, free: 7.543 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChain): time 0.00724/0.3592, allocations: 5.095 MB / 0.5337 GB, free: 4.098 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001651/0.3609, allocations: 0.6041 MB / 0.5343 GB, free: 3.66 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002904/0.3612, allocations: 16.12 kB / 0.5343 GB, free: 3.652 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003065/0.3615, allocations: 80.62 kB / 0.5344 GB, free: 3.609 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002184/0.3617, allocations: 72.14 kB / 0.5345 GB, free: 3.555 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006227/0.3623, allocations: 187.9 kB / 0.5347 GB, free: 3.445 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005158/0.3629, allocations: 459.4 kB / 0.5351 GB, free: 3.219 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003005/0.3632, allocations: 151.9 kB / 0.5352 GB, free: 3.133 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002351/0.3634, allocations: 193.6 kB / 0.5354 GB, free: 3.035 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002536/0.3636, allocations: 173.1 kB / 0.5356 GB, free: 2.949 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.494e-05/0.3637, allocations: 45.09 kB / 0.5356 GB, free: 2.949 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001203/0.3638, allocations: 50.94 kB / 0.5357 GB, free: 2.949 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001096/0.3639, allocations: 101.7 kB / 0.5358 GB, free: 2.883 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00016/0.3641, allocations: 176.6 kB / 0.5359 GB, free: 2.777 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005681/0.3647, allocations: 467.1 kB / 0.5364 GB, free: 2.562 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.3647, allocations: 7.938 kB / 0.5364 GB, free: 2.555 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.253e-06/0.3647, allocations: 0 / 0.5364 GB, free: 2.555 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.416e-06/0.3647, allocations: 1.125 kB / 0.5364 GB, free: 2.555 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.001115/0.3658, allocations: 0.6168 MB / 0.537 GB, free: 2.102 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.095e-05/0.3658, allocations: 10.03 kB / 0.537 GB, free: 2.102 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.48e-05/0.3659, allocations: 81.55 kB / 0.5371 GB, free: 2.035 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003174/0.3662, allocations: 74.41 kB / 0.5372 GB, free: 2.004 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004383/0.3667, allocations: 270.9 kB / 0.5374 GB, free: 1.789 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.687e-05/0.3667, allocations: 40.78 kB / 0.5375 GB, free: 1.77 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.84e-05/0.3668, allocations: 47.39 kB / 0.5375 GB, free: 1.754 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007047/0.3675, allocations: 466 kB / 0.5379 GB, free: 1.438 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.506e-05/0.3675, allocations: 4 kB / 0.538 GB, free: 1.434 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.443e-05/0.3676, allocations: 23.95 kB / 0.538 GB, free: 1.414 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.256e-05/0.3676, allocations: 10.25 kB / 0.538 GB, free: 1.414 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005193/0.3681, allocations: 244.5 kB / 0.5382 GB, free: 1.301 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001707/0.3698, allocations: 1.467 MB / 0.5396 GB, free: 24 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006479/0.3705, allocations: 247.6 kB / 0.5399 GB, free: 15.84 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003156/0.3708, allocations: 156 kB / 0.54 GB, free: 15.74 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.963e-05/0.3708, allocations: 4.781 kB / 0.54 GB, free: 15.74 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.297e-05/0.3708, allocations: 42.77 kB / 0.5401 GB, free: 15.69 MB / 398.1 MB Notification: Performance of pre-optimization done (n=28): time 1.593e-06/0.3708, allocations: 0 / 0.5401 GB, free: 15.69 MB / 398.1 MB Notification: Performance of matching and sorting (n=28): time 0.0008973/0.3717, allocations: 349.7 kB / 0.5404 GB, free: 15.51 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000118/0.3718, allocations: 158.4 kB / 0.5406 GB, free: 15.32 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003328/0.3722, allocations: 272.9 kB / 0.5408 GB, free: 15.13 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.894e-05/0.3722, allocations: 43.2 kB / 0.5409 GB, free: 15.09 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001794/0.3724, allocations: 219.3 kB / 0.5411 GB, free: 14.89 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.84e-05/0.3725, allocations: 86.59 kB / 0.5412 GB, free: 14.82 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000154/0.3727, allocations: 97.27 kB / 0.5412 GB, free: 14.75 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002034/0.3729, allocations: 343.5 kB / 0.5416 GB, free: 14.42 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003234/0.3732, allocations: 138.5 kB / 0.5417 GB, free: 14.35 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004422/0.3736, allocations: 280.3 kB / 0.542 GB, free: 14.11 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006129/0.3742, allocations: 353.6 kB / 0.5423 GB, free: 13.86 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.506e-06/0.3742, allocations: 0 / 0.5423 GB, free: 13.86 MB / 398.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0009623/0.3752, allocations: 441.3 kB / 0.5427 GB, free: 13.64 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.893e-05/0.3752, allocations: 10.31 kB / 0.5427 GB, free: 13.63 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.358e-05/0.3752, allocations: 3.375 kB / 0.5427 GB, free: 13.63 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.245e-05/0.3753, allocations: 10.47 kB / 0.5428 GB, free: 13.63 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002732/0.3755, allocations: 65.92 kB / 0.5428 GB, free: 13.61 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.589e-05/0.3756, allocations: 5.438 kB / 0.5428 GB, free: 13.61 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002823/0.3758, allocations: 61.03 kB / 0.5429 GB, free: 13.56 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.401e-05/0.3759, allocations: 18.47 kB / 0.5429 GB, free: 13.56 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.0002678/0.3762, allocations: 192.9 kB / 0.5431 GB, free: 13.39 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001057/0.3763, allocations: 34.14 kB / 0.5431 GB, free: 13.37 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.704e-05/0.3763, allocations: 27.75 kB / 0.5431 GB, free: 13.34 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.694e-06/0.3763, allocations: 8.5 kB / 0.5432 GB, free: 13.34 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.195e-05/0.3764, allocations: 4.891 kB / 0.5432 GB, free: 13.34 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.061e-06/0.3764, allocations: 5.156 kB / 0.5432 GB, free: 13.33 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001796/0.3782, allocations: 1.114 MB / 0.5443 GB, free: 12.38 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.13e-06/0.3782, allocations: 3.344 kB / 0.5443 GB, free: 12.38 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001972/0.3784, allocations: 38.92 kB / 0.5443 GB, free: 12.37 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.959e-06/0.3784, allocations: 8.141 kB / 0.5443 GB, free: 12.37 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.232e-05/0.3784, allocations: 19.03 kB / 0.5443 GB, free: 12.36 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.052e-06/0.3784, allocations: 4.406 kB / 0.5443 GB, free: 12.36 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.277e-05/0.3784, allocations: 8.312 kB / 0.5443 GB, free: 12.35 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008697/0.3793, allocations: 0.5305 MB / 0.5448 GB, free: 11.95 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001245/0.3794, allocations: 59.5 kB / 0.5449 GB, free: 11.9 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.858e-05/0.3795, allocations: 14.83 kB / 0.5449 GB, free: 11.89 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002043/0.3797, allocations: 18.05 kB / 0.5449 GB, free: 11.89 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.759e-05/0.3798, allocations: 40.7 kB / 0.545 GB, free: 11.86 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.108e-05/0.3798, allocations: 13.22 kB / 0.545 GB, free: 11.86 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002043/0.38, allocations: 176.5 kB / 0.5452 GB, free: 11.74 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.38, allocations: 1.188 kB / 0.5452 GB, free: 11.74 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000449/0.3804, allocations: 99.58 kB / 0.5453 GB, free: 11.71 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.001303/0.3817, allocations: 1.096 MB / 0.5463 GB, free: 10.75 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006925/0.3824, allocations: 314.8 kB / 0.5466 GB, free: 10.61 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.3824, allocations: 0 / 0.5466 GB, free: 10.61 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002947/0.3827, allocations: 145.8 kB / 0.5468 GB, free: 10.54 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005954/0.3833, allocations: 85.58 kB / 0.5468 GB, free: 10.5 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005045/0.3884, allocations: 3.369 MB / 0.5501 GB, free: 7.891 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002625/0.3886, allocations: 197.6 kB / 0.5503 GB, free: 7.754 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002222/0.3889, allocations: 52.22 kB / 0.5504 GB, free: 7.73 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002101/0.3891, allocations: 122.6 kB / 0.5505 GB, free: 7.633 MB / 398.1 MB Notification: Performance of SimCode: time 7.61e-07/0.3891, allocations: 0 / 0.5505 GB, free: 7.633 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03918/0.4283, allocations: 7.319 MB / 0.5576 GB, free: 2.762 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.27/11.7, allocations: 7.922 kB / 0.5576 GB, free: 2.754 MB / 398.1 MB " [Timeout remaining time 648] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BusinessSimulation_BusinessSimulation_Examples_SimpleProductionChain_fmu --startTime=0 --stopTime=60 --stepSize=0.12 --timeout=50 --tolerance=1e-06 BusinessSimulation_BusinessSimulation_Examples_SimpleProductionChain.fmu > BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.773241316899657] Failed to read output from testmodel.py, exit status != 0: 11.811296052765101 11.84014847 11.470155705 Calling exit ...