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.001306/0.001306, allocations: 108.7 kB / 16.46 MB, free: 6.453 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.002019/0.002019, allocations: 216.2 kB / 19.43 MB, free: 3.625 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.631/1.631, allocations: 230.6 MB / 252.8 MB, free: 8.977 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/package.mo): time 0.2551/0.2551, allocations: 31.59 MB / 340.4 MB, free: 5.289 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-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.SimpleProductionChain,fileNamePrefix="BusinessSimulation_dev_BusinessSimulation_Examples_SimpleProductionChain",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BusinessSimulation.Examples.SimpleProductionChain,fileNamePrefix="BusinessSimulation_dev_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.002041/0.002041, allocations: 63.89 kB / 475.7 MB, free: 2.238 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4038/0.4058, allocations: 60.67 MB / 0.5238 GB, free: 6.941 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChain): time 0.006611/0.4124, allocations: 5.48 MB / 0.5291 GB, free: 3.051 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001413/0.4139, allocations: 0.6134 MB / 0.5297 GB, free: 2.602 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002512/0.4141, allocations: 15.69 kB / 0.5297 GB, free: 2.594 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002935/0.4144, allocations: 83.59 kB / 0.5298 GB, free: 2.547 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002138/0.4146, allocations: 68.91 kB / 0.5299 GB, free: 2.496 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006672/0.4153, allocations: 191 kB / 0.5301 GB, free: 2.383 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007067/0.416, allocations: 460.3 kB / 0.5305 GB, free: 2.16 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003698/0.4164, allocations: 159.4 kB / 0.5307 GB, free: 2.07 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003234/0.4167, allocations: 193.5 kB / 0.5308 GB, free: 1.973 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003132/0.417, allocations: 200 kB / 0.531 GB, free: 1.863 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.762e-05/0.4171, allocations: 44.06 kB / 0.5311 GB, free: 1.863 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001201/0.4172, allocations: 51.05 kB / 0.5311 GB, free: 1.863 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001324/0.4173, allocations: 107.2 kB / 0.5312 GB, free: 1.793 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001984/0.4175, allocations: 216.6 kB / 0.5314 GB, free: 1.648 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007626/0.4183, allocations: 462.5 kB / 0.5319 GB, free: 1.434 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/0.4183, allocations: 1.625 kB / 0.5319 GB, free: 1.434 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.4183, allocations: 0 / 0.5319 GB, free: 1.434 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.045e-05/0.4183, allocations: 0 / 0.5319 GB, free: 1.434 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.001309/0.4196, allocations: 0.6954 MB / 0.5326 GB, free: 0.8828 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.606e-05/0.4197, allocations: 13.41 kB / 0.5326 GB, free: 0.8789 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.639e-05/0.4197, allocations: 76.78 kB / 0.5326 GB, free: 0.8164 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00034/0.4201, allocations: 67.56 kB / 0.5327 GB, free: 0.793 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004626/0.4206, allocations: 335.9 kB / 0.533 GB, free: 0.5078 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.627e-05/0.4206, allocations: 40.34 kB / 0.5331 GB, free: 496 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.796e-05/0.4207, allocations: 47.91 kB / 0.5331 GB, free: 480 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007515/0.4214, allocations: 415.2 kB / 0.5335 GB, free: 256 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.542e-05/0.4215, allocations: 0 / 0.5335 GB, free: 256 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.365e-05/0.4215, allocations: 16.47 kB / 0.5335 GB, free: 244 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.605e-05/0.4215, allocations: 13.97 kB / 0.5335 GB, free: 240 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000577/0.4221, allocations: 249.5 kB / 0.5338 GB, free: 156 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00249/0.4246, allocations: 1.664 MB / 0.5354 GB, free: 14.89 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006659/0.4252, allocations: 246.4 kB / 0.5356 GB, free: 14.73 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000333/0.4256, allocations: 150.2 kB / 0.5358 GB, free: 14.65 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.228e-05/0.4256, allocations: 4.281 kB / 0.5358 GB, free: 14.65 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.342e-05/0.4256, allocations: 41.62 kB / 0.5358 GB, free: 14.6 MB / 398.1 MB Notification: Performance of pre-optimization done (n=28): time 1.954e-06/0.4256, allocations: 0 / 0.5358 GB, free: 14.6 MB / 398.1 MB Notification: Performance of matching and sorting (n=28): time 0.001009/0.4266, allocations: 347.3 kB / 0.5361 GB, free: 14.46 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001341/0.4268, allocations: 162.3 kB / 0.5363 GB, free: 14.27 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004177/0.4272, allocations: 267.5 kB / 0.5366 GB, free: 14.11 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.919e-05/0.4273, allocations: 45.47 kB / 0.5366 GB, free: 14.06 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001989/0.4275, allocations: 225.6 kB / 0.5368 GB, free: 13.88 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001076/0.4276, allocations: 85.95 kB / 0.5369 GB, free: 13.81 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001788/0.4277, allocations: 101.3 kB / 0.537 GB, free: 13.75 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002033/0.4279, allocations: 343.7 kB / 0.5373 GB, free: 13.43 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003647/0.4283, allocations: 136.1 kB / 0.5375 GB, free: 13.38 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004635/0.4288, allocations: 246.3 kB / 0.5377 GB, free: 13.19 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006727/0.4294, allocations: 350 kB / 0.538 GB, free: 12.93 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.607e-06/0.4294, allocations: 0 / 0.538 GB, free: 12.93 MB / 398.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0009472/0.4304, allocations: 452.8 kB / 0.5385 GB, free: 12.7 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.225e-05/0.4304, allocations: 7 kB / 0.5385 GB, free: 12.7 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.186e-05/0.4304, allocations: 7.25 kB / 0.5385 GB, free: 12.7 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.93e-05/0.4305, allocations: 13.55 kB / 0.5385 GB, free: 12.69 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002821/0.4307, allocations: 61.62 kB / 0.5385 GB, free: 12.67 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.124e-05/0.4308, allocations: 5.312 kB / 0.5385 GB, free: 12.67 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003063/0.4311, allocations: 58.48 kB / 0.5386 GB, free: 12.63 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.251e-05/0.4311, allocations: 17.81 kB / 0.5386 GB, free: 12.63 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.0002492/0.4314, allocations: 189.3 kB / 0.5388 GB, free: 12.46 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001167/0.4315, allocations: 28.97 kB / 0.5388 GB, free: 12.45 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.084e-05/0.4316, allocations: 40.92 kB / 0.5389 GB, free: 12.41 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.603e-06/0.4316, allocations: 4.219 kB / 0.5389 GB, free: 12.41 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.668e-06/0.4316, allocations: 1.062 kB / 0.5389 GB, free: 12.41 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.079e-06/0.4316, allocations: 1.031 kB / 0.5389 GB, free: 12.41 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001743/0.4333, allocations: 1.192 MB / 0.54 GB, free: 11.38 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.491e-06/0.4333, allocations: 2.656 kB / 0.54 GB, free: 11.38 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002032/0.4335, allocations: 35.42 kB / 0.5401 GB, free: 11.37 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.287e-06/0.4335, allocations: 8.344 kB / 0.5401 GB, free: 11.36 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.744e-05/0.4336, allocations: 14.3 kB / 0.5401 GB, free: 11.36 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.671e-06/0.4336, allocations: 8.25 kB / 0.5401 GB, free: 11.35 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.71e-06/0.4336, allocations: 8.281 kB / 0.5401 GB, free: 11.35 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009029/0.4345, allocations: 0.5397 MB / 0.5406 GB, free: 10.93 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000147/0.4346, allocations: 133.3 kB / 0.5408 GB, free: 10.79 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.933e-05/0.4347, allocations: 14.42 kB / 0.5408 GB, free: 10.79 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002091/0.4349, allocations: 20.92 kB / 0.5408 GB, free: 10.77 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.698e-05/0.435, allocations: 29.75 kB / 0.5408 GB, free: 10.76 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.191e-05/0.435, allocations: 17.47 kB / 0.5408 GB, free: 10.75 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002084/0.4352, allocations: 185.7 kB / 0.541 GB, free: 10.62 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4352, allocations: 0 / 0.541 GB, free: 10.62 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004824/0.4357, allocations: 95.19 kB / 0.5411 GB, free: 10.59 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.00133/0.437, allocations: 1.083 MB / 0.5422 GB, free: 9.648 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007492/0.4378, allocations: 321.9 kB / 0.5425 GB, free: 9.5 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.4378, allocations: 1.344 kB / 0.5425 GB, free: 9.5 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003046/0.4381, allocations: 133.9 kB / 0.5426 GB, free: 9.441 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005893/0.4387, allocations: 85.48 kB / 0.5427 GB, free: 9.398 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005421/0.4441, allocations: 3.374 MB / 0.546 GB, free: 6.77 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005411/0.4446, allocations: 0.793 MB / 0.5468 GB, free: 6.023 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002335/0.4449, allocations: 47.42 kB / 0.5468 GB, free: 6.004 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000216/0.4451, allocations: 118.1 kB / 0.5469 GB, free: 5.91 MB / 398.1 MB Notification: Performance of SimCode: time 1.011e-06/0.4451, allocations: 0 / 0.5469 GB, free: 5.91 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03545/0.4805, allocations: 6.441 MB / 0.5532 GB, free: 2.75 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.367/8.847, allocations: 14.17 kB / 0.5532 GB, free: 2.738 MB / 398.1 MB " [Timeout remaining time 651] (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 & python3 -m fmpy simulate --output-file BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain_res.csv --start-time 0 --stop-time 60 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.12 BusinessSimulation_dev_BusinessSimulation_Examples_SimpleProductionChain.fmu > BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.972972054034472] Failed to read output from testmodel.py, exit status != 0: 8.92258943291381 8.950057442 8.526443603 Calling exit ...