Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BusinessSimulation_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.00148/0.00148, 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.00179/0.00179, allocations: 209.3 kB / 22.24 MB, free: 5.262 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.541/1.541, allocations: 230.6 MB / 256 MB, free: 7.738 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.1816/0.1816, allocations: 31.55 MB / 344 MB, free: 3.77 MB / 270.1 MB " [Timeout remaining time 180] 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.SimpleProductionChainII,fileNamePrefix="BusinessSimulation_BusinessSimulation_Examples_SimpleProductionChainII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BusinessSimulation.Examples.SimpleProductionChainII,fileNamePrefix="BusinessSimulation_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.002335/0.002335, allocations: 67.91 kB / 480.7 MB, free: 15.55 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3867/0.389, allocations: 60.71 MB / 0.5288 GB, free: 7.562 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChainII): time 0.0078/0.3968, allocations: 6.353 MB / 0.535 GB, free: 3.285 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002233/0.3991, allocations: 0.9949 MB / 0.5359 GB, free: 2.559 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000436/0.3995, allocations: 28.75 kB / 0.536 GB, free: 2.543 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003172/0.3998, allocations: 108.8 kB / 0.5361 GB, free: 2.48 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002262/0.4, allocations: 76.67 kB / 0.5361 GB, free: 2.422 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006394/0.4007, allocations: 227.8 kB / 0.5364 GB, free: 2.289 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005888/0.4013, allocations: 0.5724 MB / 0.5369 GB, free: 1.992 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003764/0.4017, allocations: 204 kB / 0.5371 GB, free: 1.883 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002457/0.4019, allocations: 232.8 kB / 0.5373 GB, free: 1.762 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002562/0.4022, allocations: 205.9 kB / 0.5375 GB, free: 1.656 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.28e-05/0.4022, allocations: 56.19 kB / 0.5376 GB, free: 1.656 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001183/0.4024, allocations: 70.77 kB / 0.5377 GB, free: 1.648 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001119/0.4025, allocations: 132.9 kB / 0.5378 GB, free: 1.559 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001682/0.4026, allocations: 210.3 kB / 0.538 GB, free: 1.43 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005491/0.4032, allocations: 0.5836 MB / 0.5386 GB, free: 1.008 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.4032, allocations: 0 / 0.5386 GB, free: 1.008 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.4032, allocations: 5.094 kB / 0.5386 GB, free: 1.004 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.541e-05/0.4032, allocations: 4 kB / 0.5386 GB, free: 1 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: 125 * Number of variables: 125 Notification: Performance of Generate backend data structure: time 0.001147/0.4044, allocations: 0.7224 MB / 0.5393 GB, free: 416 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.682e-05/0.4044, allocations: 10.72 kB / 0.5393 GB, free: 416 kB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.327e-05/0.4045, allocations: 90.55 kB / 0.5394 GB, free: 332 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003023/0.4048, allocations: 79.81 kB / 0.5394 GB, free: 292 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005232/0.4053, allocations: 337.5 kB / 0.5398 GB, free: 4 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.524e-05/0.4054, allocations: 48.55 kB / 0.5398 GB, free: 15.98 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.864e-05/0.4055, allocations: 57.38 kB / 0.5399 GB, free: 15.96 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009097/0.4064, allocations: 0.5494 MB / 0.5404 GB, free: 15.57 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.698e-05/0.4064, allocations: 1.375 kB / 0.5404 GB, free: 15.57 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.395e-05/0.4064, allocations: 25.5 kB / 0.5404 GB, free: 15.55 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.565e-05/0.4065, allocations: 12.38 kB / 0.5404 GB, free: 15.55 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006697/0.4071, allocations: 308.6 kB / 0.5407 GB, free: 15.4 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002381/0.4095, allocations: 1.644 MB / 0.5423 GB, free: 14 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006831/0.4102, allocations: 288.7 kB / 0.5426 GB, free: 13.8 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003341/0.4105, allocations: 171.9 kB / 0.5428 GB, free: 13.69 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.317e-05/0.4106, allocations: 3.578 kB / 0.5428 GB, free: 13.69 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.882e-05/0.4106, allocations: 43.23 kB / 0.5428 GB, free: 13.64 MB / 398.1 MB Notification: Performance of pre-optimization done (n=31): time 1.533e-06/0.4106, allocations: 0 / 0.5428 GB, free: 13.64 MB / 398.1 MB Notification: Performance of matching and sorting (n=31): time 0.0009647/0.4116, allocations: 388.8 kB / 0.5432 GB, free: 13.45 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001146/0.4117, allocations: 166.5 kB / 0.5433 GB, free: 13.25 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004069/0.4121, allocations: 320.5 kB / 0.5437 GB, free: 13.04 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.191e-05/0.4121, allocations: 47.41 kB / 0.5437 GB, free: 12.99 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002031/0.4123, allocations: 260.1 kB / 0.5439 GB, free: 12.76 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.579e-05/0.4124, allocations: 101.2 kB / 0.544 GB, free: 12.68 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001544/0.4126, allocations: 107.7 kB / 0.5441 GB, free: 12.6 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001753/0.4128, allocations: 347.5 kB / 0.5445 GB, free: 12.26 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003513/0.4131, allocations: 147.2 kB / 0.5446 GB, free: 12.19 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004813/0.4136, allocations: 292.7 kB / 0.5449 GB, free: 11.95 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006599/0.4143, allocations: 369.7 kB / 0.5452 GB, free: 11.69 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.508e-06/0.4143, allocations: 1.156 kB / 0.5453 GB, free: 11.69 MB / 398.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.0009259/0.4152, allocations: 481.2 kB / 0.5457 GB, free: 11.45 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.83e-05/0.4152, allocations: 6.812 kB / 0.5457 GB, free: 11.45 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.147e-06/0.4152, allocations: 3.219 kB / 0.5457 GB, free: 11.45 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.286e-05/0.4152, allocations: 5.719 kB / 0.5457 GB, free: 11.45 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002847/0.4155, allocations: 69.77 kB / 0.5458 GB, free: 11.43 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.277e-05/0.4155, allocations: 6.031 kB / 0.5458 GB, free: 11.43 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003034/0.4158, allocations: 66.12 kB / 0.5459 GB, free: 11.38 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.526e-05/0.4159, allocations: 22.72 kB / 0.5459 GB, free: 11.37 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.0002564/0.4161, allocations: 197.4 kB / 0.5461 GB, free: 11.2 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001231/0.4163, allocations: 40.48 kB / 0.5461 GB, free: 11.18 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.534e-05/0.4164, allocations: 44.17 kB / 0.5462 GB, free: 11.14 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.581e-06/0.4164, allocations: 4.281 kB / 0.5462 GB, free: 11.14 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.656e-06/0.4164, allocations: 1.438 kB / 0.5462 GB, free: 11.14 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.979e-06/0.4164, allocations: 1.75 kB / 0.5462 GB, free: 11.14 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00192/0.4183, allocations: 1.145 MB / 0.5473 GB, free: 10.19 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.683e-06/0.4183, allocations: 6.641 kB / 0.5473 GB, free: 10.18 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002197/0.4185, allocations: 37.02 kB / 0.5473 GB, free: 10.18 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.608e-06/0.4185, allocations: 7.641 kB / 0.5473 GB, free: 10.17 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.818e-05/0.4186, allocations: 9.531 kB / 0.5473 GB, free: 10.17 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.546e-06/0.4186, allocations: 12 kB / 0.5473 GB, free: 10.16 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.107e-06/0.4186, allocations: 3.312 kB / 0.5473 GB, free: 10.16 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00106/0.4196, allocations: 0.5551 MB / 0.5479 GB, free: 9.762 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001458/0.4198, allocations: 56.53 kB / 0.5479 GB, free: 9.723 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.988e-05/0.4198, allocations: 17.61 kB / 0.548 GB, free: 9.711 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002258/0.4201, allocations: 25.5 kB / 0.548 GB, free: 9.695 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001085/0.4202, allocations: 31.98 kB / 0.548 GB, free: 9.676 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.863e-05/0.4202, allocations: 12.41 kB / 0.548 GB, free: 9.672 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002927/0.4205, allocations: 210.8 kB / 0.5482 GB, free: 9.535 MB / 398.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.4205, allocations: 0 / 0.5482 GB, free: 9.535 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005743/0.4211, allocations: 111.8 kB / 0.5483 GB, free: 9.5 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.001562/0.4226, allocations: 1.135 MB / 0.5494 GB, free: 8.535 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000837/0.4235, allocations: 328.6 kB / 0.5498 GB, free: 8.395 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.128e-06/0.4235, allocations: 1.125 kB / 0.5498 GB, free: 8.395 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003437/0.4238, allocations: 154.3 kB / 0.5499 GB, free: 8.324 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000669/0.4245, allocations: 114.6 kB / 0.55 GB, free: 8.262 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007059/0.4315, allocations: 3.635 MB / 0.5536 GB, free: 5.562 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004031/0.4319, allocations: 221.3 kB / 0.5538 GB, free: 5.414 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003177/0.4323, allocations: 60.05 kB / 0.5538 GB, free: 5.387 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003053/0.4326, allocations: 162.8 kB / 0.554 GB, free: 5.254 MB / 398.1 MB Notification: Performance of SimCode: time 1.693e-06/0.4326, allocations: 0 / 0.554 GB, free: 5.254 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04244/0.475, allocations: 8.364 MB / 0.5622 GB, free: 14.11 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.5/11.98, allocations: 14.56 kB / 0.5622 GB, free: 14.09 MB / 414.1 MB " [Timeout remaining time 648] (rm -f BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII.pipe ; mkfifo BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII.pipe ; head -c 1048576 < BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII.pipe >> ../files/BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII.sim & python3 -m fmpy simulate --output-file BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII_res.csv --start-time 0 --stop-time 60 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.12 BusinessSimulation_BusinessSimulation_Examples_SimpleProductionChainII.fmu > BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.989039798732847] Failed to read output from testmodel.py, exit status != 0: 12.09240422770381 12.111502654 11.704658604 Calling exit ...