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.001376/0.001376, allocations: 103 kB / 16.45 MB, free: 6.449 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.001452/0.001452, allocations: 208.9 kB / 19.42 MB, free: 3.641 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.465/1.465, allocations: 230.6 MB / 252.8 MB, free: 8.969 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.2342/0.2342, allocations: 31.55 MB / 340.4 MB, free: 5.16 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.002005/0.002005, allocations: 63.91 kB / 475.6 MB, free: 2.168 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3444/0.3464, allocations: 60.68 MB / 0.5237 GB, free: 6.98 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChainII): time 0.007/0.3534, allocations: 6.881 MB / 0.5305 GB, free: 2.098 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002377/0.3557, allocations: 1.003 MB / 0.5314 GB, free: 1.359 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004676/0.3562, allocations: 30.72 kB / 0.5315 GB, free: 1.344 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003427/0.3566, allocations: 104.2 kB / 0.5316 GB, free: 1.285 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002383/0.3568, allocations: 78.72 kB / 0.5316 GB, free: 1.223 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006667/0.3575, allocations: 235.4 kB / 0.5319 GB, free: 1.082 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005571/0.358, allocations: 0.566 MB / 0.5324 GB, free: 0.793 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003357/0.3584, allocations: 207.8 kB / 0.5326 GB, free: 0.6797 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002729/0.3586, allocations: 236.8 kB / 0.5328 GB, free: 0.5547 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003078/0.3589, allocations: 243 kB / 0.5331 GB, free: 424 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.768e-05/0.359, allocations: 57.56 kB / 0.5331 GB, free: 424 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001292/0.3592, allocations: 63.31 kB / 0.5332 GB, free: 424 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001413/0.3593, allocations: 136.9 kB / 0.5333 GB, free: 328 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001986/0.3595, allocations: 253.7 kB / 0.5336 GB, free: 152 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007732/0.3603, allocations: 0.5773 MB / 0.5341 GB, free: 15.87 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.449e-06/0.3603, allocations: 0 / 0.5341 GB, free: 15.87 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.3603, allocations: 1.312 kB / 0.5341 GB, free: 15.87 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.108e-05/0.3603, allocations: 3.938 kB / 0.5341 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.001495/0.3618, allocations: 0.8019 MB / 0.5349 GB, free: 15.25 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.272e-05/0.3618, allocations: 14 kB / 0.5349 GB, free: 15.24 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001115/0.3619, allocations: 90.03 kB / 0.535 GB, free: 15.17 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003504/0.3623, allocations: 85.55 kB / 0.5351 GB, free: 15.14 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006399/0.3629, allocations: 408.5 kB / 0.5355 GB, free: 14.82 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.078e-05/0.363, allocations: 48.97 kB / 0.5355 GB, free: 14.8 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.181e-05/0.3631, allocations: 62.03 kB / 0.5356 GB, free: 14.77 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009375/0.364, allocations: 0.4945 MB / 0.5361 GB, free: 14.52 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.435e-05/0.364, allocations: 0 / 0.5361 GB, free: 14.52 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.834e-05/0.3641, allocations: 21.28 kB / 0.5361 GB, free: 14.5 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.501e-05/0.3641, allocations: 13.25 kB / 0.5361 GB, free: 14.5 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007124/0.3648, allocations: 308 kB / 0.5364 GB, free: 14.4 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003081/0.3679, allocations: 1.855 MB / 0.5382 GB, free: 12.88 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009221/0.3688, allocations: 295.4 kB / 0.5385 GB, free: 12.67 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000434/0.3692, allocations: 168.3 kB / 0.5387 GB, free: 12.57 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.349e-05/0.3693, allocations: 7.641 kB / 0.5387 GB, free: 12.57 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.818e-05/0.3693, allocations: 46.08 kB / 0.5387 GB, free: 12.52 MB / 398.1 MB Notification: Performance of pre-optimization done (n=31): time 2.245e-06/0.3693, allocations: 0 / 0.5387 GB, free: 12.52 MB / 398.1 MB Notification: Performance of matching and sorting (n=31): time 0.001309/0.3706, allocations: 387 kB / 0.5391 GB, free: 12.32 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001237/0.3708, allocations: 165.7 kB / 0.5392 GB, free: 12.12 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004945/0.3713, allocations: 321.2 kB / 0.5395 GB, free: 11.9 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.321e-05/0.3713, allocations: 39.08 kB / 0.5396 GB, free: 11.86 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002841/0.3716, allocations: 265.7 kB / 0.5398 GB, free: 11.63 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001351/0.3717, allocations: 99.2 kB / 0.5399 GB, free: 11.54 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002146/0.372, allocations: 104.6 kB / 0.54 GB, free: 11.48 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001997/0.3722, allocations: 346.8 kB / 0.5404 GB, free: 11.14 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000476/0.3726, allocations: 147.4 kB / 0.5405 GB, free: 11.06 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006076/0.3732, allocations: 263.9 kB / 0.5407 GB, free: 10.86 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009113/0.3742, allocations: 366.1 kB / 0.5411 GB, free: 10.6 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.61e-06/0.3742, allocations: 5.375 kB / 0.5411 GB, free: 10.59 MB / 398.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001348/0.3755, allocations: 477.5 kB / 0.5416 GB, free: 10.36 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.646e-05/0.3755, allocations: 10.92 kB / 0.5416 GB, free: 10.35 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.025e-05/0.3755, allocations: 6.5 kB / 0.5416 GB, free: 10.35 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.579e-05/0.3756, allocations: 5.875 kB / 0.5416 GB, free: 10.35 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003356/0.3759, allocations: 70.3 kB / 0.5416 GB, free: 10.32 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.092e-05/0.3759, allocations: 5.625 kB / 0.5417 GB, free: 10.32 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000298/0.3762, allocations: 59.11 kB / 0.5417 GB, free: 10.29 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.543e-05/0.3762, allocations: 21.27 kB / 0.5417 GB, free: 10.28 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.0002453/0.3765, allocations: 206.7 kB / 0.5419 GB, free: 10.1 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001165/0.3766, allocations: 38.92 kB / 0.542 GB, free: 10.08 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.366e-05/0.3767, allocations: 49.42 kB / 0.542 GB, free: 10.04 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.835e-06/0.3767, allocations: 3.188 kB / 0.542 GB, free: 10.04 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.396e-06/0.3767, allocations: 1.438 kB / 0.542 GB, free: 10.04 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.139e-05/0.3767, allocations: 5.672 kB / 0.542 GB, free: 10.04 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001847/0.3786, allocations: 1.216 MB / 0.5432 GB, free: 9 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.406e-06/0.3786, allocations: 1.375 kB / 0.5432 GB, free: 9 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002688/0.3789, allocations: 42.44 kB / 0.5432 GB, free: 8.988 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.254e-06/0.3789, allocations: 8.125 kB / 0.5433 GB, free: 8.984 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.493e-05/0.3789, allocations: 13.44 kB / 0.5433 GB, free: 8.977 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.388e-06/0.3789, allocations: 8.062 kB / 0.5433 GB, free: 8.973 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.637e-06/0.3789, allocations: 2.75 kB / 0.5433 GB, free: 8.973 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001317/0.3802, allocations: 0.5631 MB / 0.5438 GB, free: 8.562 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002198/0.3804, allocations: 137.5 kB / 0.544 GB, free: 8.426 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.039e-05/0.3805, allocations: 16.75 kB / 0.544 GB, free: 8.414 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003228/0.3808, allocations: 17.58 kB / 0.544 GB, free: 8.406 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001174/0.381, allocations: 37.36 kB / 0.544 GB, free: 8.383 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.871e-05/0.381, allocations: 12.19 kB / 0.544 GB, free: 8.379 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003554/0.3813, allocations: 210.8 kB / 0.5442 GB, free: 8.242 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3813, allocations: 0 / 0.5442 GB, free: 8.242 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0007201/0.3821, allocations: 116.9 kB / 0.5444 GB, free: 8.203 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.001747/0.3838, allocations: 1.109 MB / 0.5454 GB, free: 7.258 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001102/0.3849, allocations: 337.3 kB / 0.5458 GB, free: 7.109 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.13e-06/0.3849, allocations: 1.25 kB / 0.5458 GB, free: 7.109 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004641/0.3854, allocations: 145 kB / 0.5459 GB, free: 7.047 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009273/0.3863, allocations: 117.2 kB / 0.546 GB, free: 6.98 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007462/0.3938, allocations: 3.632 MB / 0.5496 GB, free: 4.262 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006557/0.3944, allocations: 0.8271 MB / 0.5504 GB, free: 3.5 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003662/0.3948, allocations: 56.72 kB / 0.5504 GB, free: 3.477 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003472/0.3951, allocations: 158.2 kB / 0.5506 GB, free: 3.348 MB / 398.1 MB Notification: Performance of SimCode: time 9.11e-07/0.3951, allocations: 0 / 0.5506 GB, free: 3.348 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03554/0.4307, allocations: 7.427 MB / 0.5578 GB, free: 14.71 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.264/8.694, allocations: 6.516 kB / 0.5578 GB, free: 14.71 MB / 414.1 MB " [Timeout remaining time 651] (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: 11.500030761002563] Failed to read output from testmodel.py, exit status != 0: 8.76848848600639 8.784754662 8.421050362999999 Calling exit ...