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.00136/0.00136, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.001631/0.001631, allocations: 211.3 kB / 22.25 MB, free: 5.125 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.525/1.525, allocations: 230.6 MB / 256 MB, free: 7.969 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.1803/0.1803, allocations: 31.56 MB / 344 MB, free: 3.918 MB / 270.1 MB " [Timeout remaining time 180] 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.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.002079/0.002079, allocations: 67.89 kB / 480.8 MB, free: 15.71 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3369/0.3389, allocations: 60.71 MB / 0.5288 GB, free: 7.617 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChainII): time 0.007736/0.3467, allocations: 6.943 MB / 0.5356 GB, free: 2.711 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002143/0.3488, allocations: 1.007 MB / 0.5366 GB, free: 1.965 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005057/0.3493, allocations: 29.59 kB / 0.5366 GB, free: 1.949 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003747/0.3497, allocations: 109.1 kB / 0.5367 GB, free: 1.887 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002547/0.35, allocations: 74.89 kB / 0.5368 GB, free: 1.828 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007229/0.3507, allocations: 243.1 kB / 0.537 GB, free: 1.68 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006028/0.3513, allocations: 0.5653 MB / 0.5376 GB, free: 1.387 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003502/0.3516, allocations: 216.5 kB / 0.5378 GB, free: 1.266 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002557/0.3519, allocations: 231.3 kB / 0.538 GB, free: 1.145 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002787/0.3522, allocations: 242 kB / 0.5382 GB, free: 1.004 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.028e-05/0.3523, allocations: 56.5 kB / 0.5383 GB, free: 1.004 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001168/0.3524, allocations: 67.91 kB / 0.5384 GB, free: 1 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000116/0.3525, allocations: 132 kB / 0.5385 GB, free: 0.9102 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001829/0.3527, allocations: 269.6 kB / 0.5387 GB, free: 0.7227 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005643/0.3532, allocations: 0.5767 MB / 0.5393 GB, free: 344 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.3532, allocations: 0 / 0.5393 GB, free: 344 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.893e-06/0.3532, allocations: 1.125 kB / 0.5393 GB, free: 344 kB / 382.1 MB Notification: Performance of Transformations before backend: time 9.959e-06/0.3532, allocations: 0 / 0.5393 GB, free: 344 kB / 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.001215/0.3545, allocations: 0.723 MB / 0.54 GB, free: 15.74 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.556e-05/0.3545, allocations: 9.656 kB / 0.54 GB, free: 15.74 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001068/0.3546, allocations: 86.92 kB / 0.5401 GB, free: 15.66 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003028/0.3549, allocations: 90.77 kB / 0.5402 GB, free: 15.61 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005934/0.3555, allocations: 340.7 kB / 0.5405 GB, free: 15.33 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.444e-05/0.3555, allocations: 50.06 kB / 0.5406 GB, free: 15.3 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.056e-05/0.3556, allocations: 58.78 kB / 0.5406 GB, free: 15.29 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008831/0.3565, allocations: 0.4955 MB / 0.5411 GB, free: 14.95 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.696e-05/0.3565, allocations: 1.312 kB / 0.5411 GB, free: 14.95 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.324e-05/0.3566, allocations: 20.16 kB / 0.5411 GB, free: 14.94 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.268e-05/0.3566, allocations: 12.91 kB / 0.5411 GB, free: 14.94 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007175/0.3573, allocations: 305.6 kB / 0.5414 GB, free: 14.8 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002615/0.3599, allocations: 1.815 MB / 0.5432 GB, free: 13.21 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007066/0.3606, allocations: 295.8 kB / 0.5435 GB, free: 13 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003293/0.361, allocations: 175 kB / 0.5437 GB, free: 12.9 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.863e-05/0.361, allocations: 16.23 kB / 0.5437 GB, free: 12.89 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.727e-05/0.361, allocations: 41.48 kB / 0.5437 GB, free: 12.84 MB / 398.1 MB Notification: Performance of pre-optimization done (n=31): time 2.134e-06/0.361, allocations: 0 / 0.5437 GB, free: 12.84 MB / 398.1 MB Notification: Performance of matching and sorting (n=31): time 0.0009852/0.362, allocations: 392.7 kB / 0.5441 GB, free: 12.64 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001124/0.3621, allocations: 158.2 kB / 0.5442 GB, free: 12.45 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003887/0.3625, allocations: 314.8 kB / 0.5445 GB, free: 12.24 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.294e-05/0.3626, allocations: 44.42 kB / 0.5446 GB, free: 12.2 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002118/0.3628, allocations: 259.9 kB / 0.5448 GB, free: 11.97 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.424e-05/0.3629, allocations: 100.2 kB / 0.5449 GB, free: 11.88 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001588/0.363, allocations: 103.3 kB / 0.545 GB, free: 11.81 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001815/0.3632, allocations: 351.8 kB / 0.5454 GB, free: 11.47 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003449/0.3636, allocations: 143.6 kB / 0.5455 GB, free: 11.4 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004439/0.364, allocations: 268.1 kB / 0.5457 GB, free: 11.19 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000637/0.3646, allocations: 362.5 kB / 0.5461 GB, free: 10.93 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.297e-06/0.3646, allocations: 1.312 kB / 0.5461 GB, free: 10.93 MB / 398.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.0009531/0.3656, allocations: 477.6 kB / 0.5465 GB, free: 10.7 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.459e-05/0.3656, allocations: 15.39 kB / 0.5466 GB, free: 10.69 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.151e-05/0.3656, allocations: 10.84 kB / 0.5466 GB, free: 10.68 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.106e-05/0.3656, allocations: 5.062 kB / 0.5466 GB, free: 10.68 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003148/0.366, allocations: 66.11 kB / 0.5466 GB, free: 10.66 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.759e-05/0.366, allocations: 10.5 kB / 0.5467 GB, free: 10.66 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003216/0.3663, allocations: 57.17 kB / 0.5467 GB, free: 10.62 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.856e-05/0.3663, allocations: 23.33 kB / 0.5467 GB, free: 10.61 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.0002609/0.3666, allocations: 201.2 kB / 0.5469 GB, free: 10.44 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001229/0.3667, allocations: 39.73 kB / 0.547 GB, free: 10.41 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001051/0.3668, allocations: 40.2 kB / 0.547 GB, free: 10.38 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.362e-06/0.3668, allocations: 4 kB / 0.547 GB, free: 10.38 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.285e-06/0.3668, allocations: 1.281 kB / 0.547 GB, free: 10.38 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.136e-06/0.3669, allocations: 9.297 kB / 0.547 GB, free: 10.38 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001826/0.3687, allocations: 1.184 MB / 0.5482 GB, free: 9.379 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-06/0.3687, allocations: 1.375 kB / 0.5482 GB, free: 9.379 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002241/0.3689, allocations: 50.88 kB / 0.5482 GB, free: 9.359 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.49e-06/0.3689, allocations: 4.031 kB / 0.5482 GB, free: 9.359 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.751e-05/0.3689, allocations: 9.469 kB / 0.5482 GB, free: 9.355 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.432e-06/0.3689, allocations: 11.03 kB / 0.5482 GB, free: 9.348 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.336e-06/0.3689, allocations: 2.625 kB / 0.5482 GB, free: 9.348 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009224/0.3699, allocations: 0.5562 MB / 0.5488 GB, free: 8.945 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001327/0.37, allocations: 68.2 kB / 0.5488 GB, free: 8.895 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.356e-05/0.3701, allocations: 13.38 kB / 0.5489 GB, free: 8.887 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002124/0.3703, allocations: 22.2 kB / 0.5489 GB, free: 8.875 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.691e-05/0.3704, allocations: 31.2 kB / 0.5489 GB, free: 8.855 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.246e-05/0.3704, allocations: 16.23 kB / 0.5489 GB, free: 8.848 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002385/0.3706, allocations: 209.7 kB / 0.5491 GB, free: 8.711 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3706, allocations: 5.125 kB / 0.5491 GB, free: 8.707 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004651/0.3711, allocations: 112 kB / 0.5492 GB, free: 8.672 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.001281/0.3724, allocations: 1.118 MB / 0.5503 GB, free: 7.719 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008024/0.3732, allocations: 332.7 kB / 0.5506 GB, free: 7.578 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.3732, allocations: 1.125 kB / 0.5506 GB, free: 7.578 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003316/0.3735, allocations: 152.9 kB / 0.5508 GB, free: 7.508 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006484/0.3741, allocations: 99.2 kB / 0.5509 GB, free: 7.457 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005486/0.3796, allocations: 3.647 MB / 0.5545 GB, free: 4.73 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005486/0.3802, allocations: 0.8271 MB / 0.5553 GB, free: 3.969 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002453/0.3804, allocations: 64.31 kB / 0.5553 GB, free: 3.934 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002433/0.3807, allocations: 154.3 kB / 0.5555 GB, free: 3.809 MB / 398.1 MB Notification: Performance of SimCode: time 6.22e-07/0.3807, allocations: 4 kB / 0.5555 GB, free: 3.805 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03785/0.4185, allocations: 7.753 MB / 0.563 GB, free: 13.5 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.7/12.12, allocations: 22.8 kB / 0.5631 GB, free: 13.48 MB / 414.1 MB " [Timeout remaining time 648] (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: 15.024939301001723] Failed to read output from testmodel.py, exit status != 0: 12.235620518003998 12.264731925 11.90610295 Calling exit ...