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.001366/0.001366, 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.001615/0.001615, allocations: 212.8 kB / 22.25 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.462/1.462, allocations: 230.6 MB / 256 MB, free: 7.789 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.2848/0.2848, allocations: 31.55 MB / 344 MB, free: 3.762 MB / 270.1 MB " [Timeout remaining time 179] 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.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.002025/0.002025, allocations: 59.91 kB / 480.7 MB, free: 15.57 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3292/0.3312, allocations: 60.71 MB / 0.5287 GB, free: 7.543 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChain): time 0.005852/0.3371, allocations: 5.095 MB / 0.5337 GB, free: 4.098 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001291/0.3384, allocations: 0.6048 MB / 0.5343 GB, free: 3.66 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002389/0.3386, allocations: 11.94 kB / 0.5343 GB, free: 3.656 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000263/0.3389, allocations: 80.14 kB / 0.5344 GB, free: 3.613 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001932/0.3391, allocations: 75.91 kB / 0.5345 GB, free: 3.555 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005427/0.3396, allocations: 192.3 kB / 0.5347 GB, free: 3.441 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004876/0.3401, allocations: 455.6 kB / 0.5351 GB, free: 3.219 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002689/0.3404, allocations: 150.3 kB / 0.5352 GB, free: 3.133 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002259/0.3406, allocations: 198.6 kB / 0.5354 GB, free: 3.031 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002382/0.3408, allocations: 169 kB / 0.5356 GB, free: 2.949 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.176e-05/0.3409, allocations: 45.41 kB / 0.5356 GB, free: 2.949 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001136/0.341, allocations: 53.92 kB / 0.5357 GB, free: 2.945 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001087/0.3411, allocations: 102.5 kB / 0.5358 GB, free: 2.879 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001716/0.3413, allocations: 176.3 kB / 0.5359 GB, free: 2.773 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005582/0.3419, allocations: 470.3 kB / 0.5364 GB, free: 2.555 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.64e-06/0.3419, allocations: 2.141 kB / 0.5364 GB, free: 2.555 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.3419, allocations: 0 / 0.5364 GB, free: 2.555 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.385e-05/0.3419, allocations: 0 / 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.001031/0.3429, allocations: 0.6167 MB / 0.537 GB, free: 2.102 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.618e-05/0.3429, allocations: 10.34 kB / 0.537 GB, free: 2.102 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.736e-05/0.343, allocations: 89.3 kB / 0.5371 GB, free: 2.027 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002832/0.3433, allocations: 65.91 kB / 0.5372 GB, free: 2.004 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003981/0.3437, allocations: 268.8 kB / 0.5374 GB, free: 1.793 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.722e-05/0.3437, allocations: 40.16 kB / 0.5374 GB, free: 1.773 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.027e-05/0.3438, allocations: 47.38 kB / 0.5375 GB, free: 1.758 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000611/0.3444, allocations: 470.1 kB / 0.5379 GB, free: 1.434 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.544e-05/0.3444, allocations: 3.984 kB / 0.5379 GB, free: 1.43 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.06e-05/0.3445, allocations: 28.47 kB / 0.538 GB, free: 1.406 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.458e-05/0.3445, allocations: 9.656 kB / 0.538 GB, free: 1.406 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004784/0.3449, allocations: 241.8 kB / 0.5382 GB, free: 1.297 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001587/0.3465, allocations: 1.47 MB / 0.5396 GB, free: 16 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005905/0.3471, allocations: 249 kB / 0.5399 GB, free: 15.83 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002778/0.3474, allocations: 148.8 kB / 0.54 GB, free: 15.73 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.03e-05/0.3474, allocations: 9.219 kB / 0.54 GB, free: 15.73 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.256e-05/0.3475, allocations: 37.31 kB / 0.5401 GB, free: 15.69 MB / 398.1 MB Notification: Performance of pre-optimization done (n=28): time 1.483e-06/0.3475, allocations: 1.438 kB / 0.5401 GB, free: 15.69 MB / 398.1 MB Notification: Performance of matching and sorting (n=28): time 0.0008128/0.3483, allocations: 349.8 kB / 0.5404 GB, free: 15.5 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.746e-05/0.3484, allocations: 158.5 kB / 0.5406 GB, free: 15.32 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000304/0.3487, allocations: 276.5 kB / 0.5408 GB, free: 15.12 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.559e-05/0.3487, allocations: 39.14 kB / 0.5409 GB, free: 15.08 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000171/0.3489, allocations: 222.7 kB / 0.5411 GB, free: 14.88 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.476e-05/0.349, allocations: 82.7 kB / 0.5411 GB, free: 14.81 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001641/0.3491, allocations: 102.5 kB / 0.5412 GB, free: 14.75 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001609/0.3493, allocations: 342 kB / 0.5416 GB, free: 14.41 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003163/0.3496, allocations: 142.6 kB / 0.5417 GB, free: 14.34 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004102/0.35, allocations: 277.2 kB / 0.542 GB, free: 14.11 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005809/0.3506, allocations: 348.2 kB / 0.5423 GB, free: 13.86 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.037e-06/0.3506, allocations: 1.375 kB / 0.5423 GB, free: 13.86 MB / 398.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0008545/0.3515, allocations: 444.6 kB / 0.5427 GB, free: 13.63 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.735e-05/0.3515, allocations: 6.125 kB / 0.5427 GB, free: 13.63 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.403e-05/0.3515, allocations: 8.984 kB / 0.5427 GB, free: 13.63 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.071e-05/0.3515, allocations: 12.47 kB / 0.5428 GB, free: 13.62 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002479/0.3518, allocations: 61.64 kB / 0.5428 GB, free: 13.6 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.395e-05/0.3518, allocations: 10.34 kB / 0.5428 GB, free: 13.6 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002775/0.3521, allocations: 56.73 kB / 0.5429 GB, free: 13.56 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.513e-05/0.3521, allocations: 22.58 kB / 0.5429 GB, free: 13.55 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.0002137/0.3523, allocations: 189.1 kB / 0.5431 GB, free: 13.39 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.991e-05/0.3524, allocations: 32.94 kB / 0.5431 GB, free: 13.37 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.666e-05/0.3525, allocations: 33.48 kB / 0.5431 GB, free: 13.34 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.382e-06/0.3525, allocations: 7.031 kB / 0.5431 GB, free: 13.33 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.292e-06/0.3525, allocations: 5.5 kB / 0.5432 GB, free: 13.33 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.937e-06/0.3525, allocations: 9.469 kB / 0.5432 GB, free: 13.32 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001652/0.3542, allocations: 1.113 MB / 0.5442 GB, free: 12.38 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.008e-06/0.3542, allocations: 2.25 kB / 0.5443 GB, free: 12.38 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001941/0.3544, allocations: 43.03 kB / 0.5443 GB, free: 12.36 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.142e-06/0.3544, allocations: 4.406 kB / 0.5443 GB, free: 12.36 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.644e-05/0.3544, allocations: 15.56 kB / 0.5443 GB, free: 12.35 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.2e-05/0.3544, allocations: 16.39 kB / 0.5443 GB, free: 12.34 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/0.3544, allocations: 8.312 kB / 0.5443 GB, free: 12.34 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008397/0.3552, allocations: 0.5262 MB / 0.5448 GB, free: 11.93 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001225/0.3554, allocations: 59.69 kB / 0.5449 GB, free: 11.89 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.608e-05/0.3554, allocations: 11.19 kB / 0.5449 GB, free: 11.89 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000197/0.3556, allocations: 17.58 kB / 0.5449 GB, free: 11.88 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.969e-05/0.3557, allocations: 44.8 kB / 0.545 GB, free: 11.85 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.877e-05/0.3557, allocations: 9.094 kB / 0.545 GB, free: 11.85 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002034/0.3559, allocations: 180.2 kB / 0.5452 GB, free: 11.73 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3559, allocations: 1 kB / 0.5452 GB, free: 11.73 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004315/0.3563, allocations: 98.98 kB / 0.5453 GB, free: 11.7 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.001127/0.3575, allocations: 1.093 MB / 0.5463 GB, free: 10.74 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006499/0.3581, allocations: 310.7 kB / 0.5466 GB, free: 10.61 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.3581, allocations: 0.8125 kB / 0.5466 GB, free: 10.61 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002802/0.3584, allocations: 137.3 kB / 0.5467 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.0005684/0.359, allocations: 89.89 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.004665/0.3636, allocations: 3.377 MB / 0.5501 GB, free: 7.879 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00022/0.3639, allocations: 193 kB / 0.5503 GB, free: 7.746 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002062/0.3641, allocations: 56.23 kB / 0.5504 GB, free: 7.719 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001918/0.3643, allocations: 118.3 kB / 0.5505 GB, free: 7.625 MB / 398.1 MB Notification: Performance of SimCode: time 3.1e-07/0.3643, allocations: 0 / 0.5505 GB, free: 7.625 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03705/0.4013, allocations: 7.33 MB / 0.5576 GB, free: 2.723 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.4/11.81, allocations: 0 / 0.5576 GB, free: 2.723 MB / 398.1 MB " [Timeout remaining time 648] (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: 14.813379646744579] Failed to read output from testmodel.py, exit status != 0: 11.920926778111607 11.953637609 11.60607192 Calling exit ...