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.001403/0.001403, allocations: 109.9 kB / 16.46 MB, free: 6.508 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.001511/0.001511, allocations: 215.2 kB / 19.43 MB, free: 3.648 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.569/1.569, allocations: 230.6 MB / 252.8 MB, free: 9.117 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.2491/0.2491, allocations: 31.6 MB / 340.5 MB, free: 5.297 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.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.002028/0.002028, allocations: 74.55 kB / 475.7 MB, free: 2.223 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4124/0.4144, allocations: 60.67 MB / 0.5238 GB, free: 7 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChainII): time 0.008051/0.4225, allocations: 6.891 MB / 0.5305 GB, free: 2.105 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002844/0.4253, allocations: 1.003 MB / 0.5315 GB, free: 1.367 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006678/0.426, allocations: 29.41 kB / 0.5315 GB, free: 1.352 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004067/0.4264, allocations: 107.6 kB / 0.5316 GB, free: 1.289 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002766/0.4267, allocations: 80.14 kB / 0.5317 GB, free: 1.227 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008218/0.4275, allocations: 228 kB / 0.5319 GB, free: 1.094 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006383/0.4281, allocations: 0.5652 MB / 0.5325 GB, free: 0.8047 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003756/0.4285, allocations: 220.5 kB / 0.5327 GB, free: 0.6797 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002734/0.4288, allocations: 228.6 kB / 0.5329 GB, free: 0.5625 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002908/0.4291, allocations: 243.6 kB / 0.5331 GB, free: 432 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.933e-05/0.4292, allocations: 56.78 kB / 0.5332 GB, free: 432 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001269/0.4293, allocations: 63.52 kB / 0.5332 GB, free: 432 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000139/0.4294, allocations: 137.3 kB / 0.5334 GB, free: 336 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002168/0.4296, allocations: 262.3 kB / 0.5336 GB, free: 152 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008994/0.4305, allocations: 0.5719 MB / 0.5342 GB, free: 15.87 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.523e-06/0.4306, allocations: 1.469 kB / 0.5342 GB, free: 15.87 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.274e-06/0.4306, allocations: 0 / 0.5342 GB, free: 15.87 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.115e-05/0.4306, allocations: 7.938 kB / 0.5342 GB, free: 15.86 MB / 398.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.001766/0.4323, allocations: 0.7951 MB / 0.535 GB, free: 15.25 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.278e-05/0.4324, allocations: 8.75 kB / 0.535 GB, free: 15.25 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001398/0.4325, allocations: 91.28 kB / 0.5351 GB, free: 15.18 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003778/0.4329, allocations: 80.64 kB / 0.5351 GB, free: 15.15 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007441/0.4336, allocations: 407.9 kB / 0.5355 GB, free: 14.84 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.955e-05/0.4337, allocations: 45.97 kB / 0.5356 GB, free: 14.82 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001219/0.4338, allocations: 57.12 kB / 0.5356 GB, free: 14.8 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00109/0.4349, allocations: 0.4954 MB / 0.5361 GB, free: 14.54 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.678e-05/0.4349, allocations: 0 / 0.5361 GB, free: 14.54 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.476e-05/0.435, allocations: 24.41 kB / 0.5361 GB, free: 14.52 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.775e-05/0.435, allocations: 17 kB / 0.5362 GB, free: 14.52 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007661/0.4358, allocations: 304.8 kB / 0.5364 GB, free: 14.42 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002825/0.4386, allocations: 1.866 MB / 0.5383 GB, free: 12.84 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007607/0.4394, allocations: 296.3 kB / 0.5385 GB, free: 12.63 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00035/0.4397, allocations: 166.9 kB / 0.5387 GB, free: 12.53 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.875e-05/0.4398, allocations: 3.328 kB / 0.5387 GB, free: 12.53 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.54e-05/0.4398, allocations: 50.23 kB / 0.5388 GB, free: 12.48 MB / 398.1 MB Notification: Performance of pre-optimization done (n=31): time 1.884e-06/0.4398, allocations: 0 / 0.5388 GB, free: 12.48 MB / 398.1 MB Notification: Performance of matching and sorting (n=31): time 0.0011/0.4409, allocations: 384.3 kB / 0.5391 GB, free: 12.28 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001424/0.4411, allocations: 165.4 kB / 0.5393 GB, free: 12.09 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000437/0.4415, allocations: 320.5 kB / 0.5396 GB, free: 11.87 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.949e-05/0.4415, allocations: 42.92 kB / 0.5396 GB, free: 11.82 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002851/0.4418, allocations: 265.4 kB / 0.5399 GB, free: 11.59 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001123/0.4419, allocations: 95.3 kB / 0.54 GB, free: 11.51 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001954/0.4421, allocations: 107.1 kB / 0.5401 GB, free: 11.44 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002165/0.4424, allocations: 352.3 kB / 0.5404 GB, free: 11.09 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000384/0.4427, allocations: 142.7 kB / 0.5405 GB, free: 11.02 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005041/0.4432, allocations: 259 kB / 0.5408 GB, free: 10.82 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007071/0.444, allocations: 371.5 kB / 0.5411 GB, free: 10.56 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.08e-06/0.444, allocations: 1.344 kB / 0.5411 GB, free: 10.56 MB / 398.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001081/0.445, allocations: 488.4 kB / 0.5416 GB, free: 10.31 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.415e-05/0.4451, allocations: 6.344 kB / 0.5416 GB, free: 10.31 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.05e-05/0.4451, allocations: 4.5 kB / 0.5416 GB, free: 10.31 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.568e-05/0.4451, allocations: 5.5 kB / 0.5416 GB, free: 10.31 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003206/0.4454, allocations: 69.42 kB / 0.5417 GB, free: 10.29 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.712e-05/0.4454, allocations: 10.09 kB / 0.5417 GB, free: 10.28 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003412/0.4458, allocations: 63.44 kB / 0.5418 GB, free: 10.24 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.088e-05/0.4458, allocations: 18.62 kB / 0.5418 GB, free: 10.23 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.0003008/0.4461, allocations: 197.5 kB / 0.542 GB, free: 10.07 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001252/0.4462, allocations: 39.11 kB / 0.542 GB, free: 10.04 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001015/0.4463, allocations: 40.2 kB / 0.542 GB, free: 10.01 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.042e-06/0.4464, allocations: 4.125 kB / 0.5421 GB, free: 10.01 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.227e-05/0.4464, allocations: 9.359 kB / 0.5421 GB, free: 10 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.402e-06/0.4464, allocations: 1.375 kB / 0.5421 GB, free: 10 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001926/0.4483, allocations: 1.224 MB / 0.5433 GB, free: 8.961 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.204e-06/0.4483, allocations: 6.75 kB / 0.5433 GB, free: 8.957 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002397/0.4485, allocations: 44.78 kB / 0.5433 GB, free: 8.941 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.342e-06/0.4485, allocations: 4.125 kB / 0.5433 GB, free: 8.941 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.274e-05/0.4486, allocations: 9.5 kB / 0.5433 GB, free: 8.938 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.595e-06/0.4486, allocations: 8.344 kB / 0.5433 GB, free: 8.934 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/0.4486, allocations: 6.75 kB / 0.5433 GB, free: 8.93 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001/0.4496, allocations: 0.5588 MB / 0.5439 GB, free: 8.523 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00017/0.4498, allocations: 137.2 kB / 0.544 GB, free: 8.387 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.339e-05/0.4498, allocations: 13.72 kB / 0.544 GB, free: 8.379 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002108/0.45, allocations: 17.11 kB / 0.544 GB, free: 8.371 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001065/0.4501, allocations: 45.89 kB / 0.5441 GB, free: 8.34 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.044e-05/0.4502, allocations: 8.594 kB / 0.5441 GB, free: 8.34 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002657/0.4504, allocations: 214.2 kB / 0.5443 GB, free: 8.199 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4504, allocations: 0 / 0.5443 GB, free: 8.199 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005315/0.451, allocations: 113.1 kB / 0.5444 GB, free: 8.164 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.001446/0.4524, allocations: 1.119 MB / 0.5455 GB, free: 7.207 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0009222/0.4533, allocations: 325.9 kB / 0.5458 GB, free: 7.07 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.866e-06/0.4533, allocations: 0 / 0.5458 GB, free: 7.07 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003424/0.4537, allocations: 153.1 kB / 0.546 GB, free: 7 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006565/0.4543, allocations: 104 kB / 0.5461 GB, free: 6.949 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005883/0.4602, allocations: 3.632 MB / 0.5496 GB, free: 4.23 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005643/0.4608, allocations: 0.8242 MB / 0.5504 GB, free: 3.473 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002992/0.4611, allocations: 64.61 kB / 0.5505 GB, free: 3.441 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002675/0.4613, allocations: 157.2 kB / 0.5506 GB, free: 3.312 MB / 398.1 MB Notification: Performance of SimCode: time 9.71e-07/0.4613, allocations: 1.031 kB / 0.5506 GB, free: 3.312 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03568/0.497, allocations: 7.426 MB / 0.5579 GB, free: 14.8 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.565/9.062, allocations: 11.92 kB / 0.5579 GB, free: 14.79 MB / 414.1 MB " [Timeout remaining time 651] (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 & python3 -m fmpy simulate --output-file BusinessSimulation_dev_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_dev_BusinessSimulation_Examples_SimpleProductionChainII.fmu > BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 12.070134493056685] Failed to read output from testmodel.py, exit status != 0: 9.140756588894874 9.169046908 8.733518532 Calling exit ...