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.001367/0.001367, allocations: 114.3 kB / 18.94 MB, free: 2.934 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.001619/0.001619, allocations: 215.2 kB / 22.25 MB, free: 5.082 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.568/1.568, allocations: 230.6 MB / 256 MB, free: 8.023 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.1774/0.1774, allocations: 31.57 MB / 344 MB, free: 3.988 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.002718/0.002718, allocations: 66.23 kB / 480.8 MB, free: 15.77 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3353/0.338, allocations: 60.71 MB / 0.5288 GB, free: 7.645 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChainII): time 0.007321/0.3454, allocations: 6.934 MB / 0.5356 GB, free: 2.746 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002838/0.3482, allocations: 1.007 MB / 0.5366 GB, free: 2 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000699/0.3489, allocations: 33.62 kB / 0.5366 GB, free: 1.98 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004307/0.3493, allocations: 109 kB / 0.5367 GB, free: 1.918 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002926/0.3496, allocations: 74.61 kB / 0.5368 GB, free: 1.859 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008029/0.3504, allocations: 247.8 kB / 0.537 GB, free: 1.707 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007047/0.3511, allocations: 0.5651 MB / 0.5376 GB, free: 1.414 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003652/0.3515, allocations: 208.3 kB / 0.5378 GB, free: 1.301 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002882/0.3518, allocations: 235.9 kB / 0.538 GB, free: 1.176 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002647/0.352, allocations: 245.9 kB / 0.5382 GB, free: 1.031 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.702e-05/0.3521, allocations: 56.5 kB / 0.5383 GB, free: 1.031 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001166/0.3522, allocations: 67.48 kB / 0.5384 GB, free: 1.027 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001134/0.3524, allocations: 132.6 kB / 0.5385 GB, free: 0.9375 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001848/0.3525, allocations: 257.6 kB / 0.5387 GB, free: 0.7617 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006652/0.3532, allocations: 0.5818 MB / 0.5393 GB, free: 388 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.511e-06/0.3532, allocations: 0 / 0.5393 GB, free: 388 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.3532, allocations: 1.25 kB / 0.5393 GB, free: 388 kB / 382.1 MB Notification: Performance of Transformations before backend: time 1.076e-05/0.3532, allocations: 0 / 0.5393 GB, free: 388 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.001278/0.3545, allocations: 0.7252 MB / 0.54 GB, free: 15.79 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.623e-05/0.3545, allocations: 13.84 kB / 0.54 GB, free: 15.78 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001088/0.3547, allocations: 90.86 kB / 0.5401 GB, free: 15.7 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003088/0.355, allocations: 79.59 kB / 0.5402 GB, free: 15.66 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006214/0.3556, allocations: 344.3 kB / 0.5405 GB, free: 15.37 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.905e-05/0.3556, allocations: 49.88 kB / 0.5406 GB, free: 15.35 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.279e-05/0.3557, allocations: 57.06 kB / 0.5406 GB, free: 15.33 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009004/0.3566, allocations: 0.4941 MB / 0.5411 GB, free: 15 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.611e-05/0.3566, allocations: 0 / 0.5411 GB, free: 15 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.051e-05/0.3567, allocations: 17.31 kB / 0.5411 GB, free: 14.99 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.37e-05/0.3567, allocations: 12.03 kB / 0.5411 GB, free: 14.99 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007165/0.3574, allocations: 317.8 kB / 0.5414 GB, free: 14.84 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002506/0.3599, allocations: 1.807 MB / 0.5432 GB, free: 13.26 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006656/0.3606, allocations: 301 kB / 0.5435 GB, free: 13.05 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003217/0.3609, allocations: 163.9 kB / 0.5436 GB, free: 12.95 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.802e-05/0.3609, allocations: 19.28 kB / 0.5437 GB, free: 12.93 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.924e-05/0.361, allocations: 45.84 kB / 0.5437 GB, free: 12.88 MB / 398.1 MB Notification: Performance of pre-optimization done (n=31): time 1.623e-06/0.361, allocations: 0 / 0.5437 GB, free: 12.88 MB / 398.1 MB Notification: Performance of matching and sorting (n=31): time 0.0008633/0.3618, allocations: 384.9 kB / 0.5441 GB, free: 12.69 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001157/0.362, allocations: 166.2 kB / 0.5442 GB, free: 12.49 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003934/0.3624, allocations: 318.8 kB / 0.5445 GB, free: 12.28 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.776e-05/0.3624, allocations: 39.23 kB / 0.5446 GB, free: 12.24 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002186/0.3626, allocations: 260.7 kB / 0.5448 GB, free: 12.01 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.789e-05/0.3627, allocations: 100.5 kB / 0.5449 GB, free: 11.93 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001553/0.3629, allocations: 103.3 kB / 0.545 GB, free: 11.86 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001673/0.363, allocations: 347.7 kB / 0.5453 GB, free: 11.52 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003501/0.3634, allocations: 152.4 kB / 0.5455 GB, free: 11.44 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000428/0.3638, allocations: 255.8 kB / 0.5457 GB, free: 11.24 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006255/0.3644, allocations: 370.8 kB / 0.5461 GB, free: 10.98 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.546e-06/0.3644, allocations: 1.25 kB / 0.5461 GB, free: 10.98 MB / 398.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.0009239/0.3654, allocations: 484.8 kB / 0.5466 GB, free: 10.73 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.83e-05/0.3654, allocations: 5.875 kB / 0.5466 GB, free: 10.73 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.716e-06/0.3654, allocations: 4.5 kB / 0.5466 GB, free: 10.73 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.127e-05/0.3654, allocations: 9.906 kB / 0.5466 GB, free: 10.73 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002819/0.3657, allocations: 69.67 kB / 0.5466 GB, free: 10.7 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.276e-05/0.3657, allocations: 9.453 kB / 0.5466 GB, free: 10.7 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002892/0.366, allocations: 62.97 kB / 0.5467 GB, free: 10.66 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.534e-05/0.366, allocations: 18.53 kB / 0.5467 GB, free: 10.65 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.0002622/0.3663, allocations: 196.5 kB / 0.5469 GB, free: 10.48 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001175/0.3664, allocations: 44.73 kB / 0.547 GB, free: 10.46 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.733e-05/0.3665, allocations: 44.11 kB / 0.547 GB, free: 10.42 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.935e-06/0.3665, allocations: 7.609 kB / 0.547 GB, free: 10.42 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.548e-06/0.3665, allocations: 1.656 kB / 0.547 GB, free: 10.42 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.811e-06/0.3665, allocations: 1.406 kB / 0.547 GB, free: 10.42 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001804/0.3683, allocations: 1.188 MB / 0.5482 GB, free: 9.422 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.631e-06/0.3683, allocations: 4 kB / 0.5482 GB, free: 9.418 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002311/0.3686, allocations: 43 kB / 0.5482 GB, free: 9.406 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.302e-06/0.3686, allocations: 7.312 kB / 0.5482 GB, free: 9.402 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.089e-05/0.3686, allocations: 13.3 kB / 0.5482 GB, free: 9.395 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.215e-06/0.3686, allocations: 16.34 kB / 0.5482 GB, free: 9.383 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.587e-06/0.3686, allocations: 2.438 kB / 0.5482 GB, free: 9.383 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009397/0.3696, allocations: 0.5558 MB / 0.5488 GB, free: 8.98 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001369/0.3697, allocations: 60.67 kB / 0.5488 GB, free: 8.938 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.312e-05/0.3698, allocations: 21.17 kB / 0.5489 GB, free: 8.922 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002043/0.37, allocations: 16.98 kB / 0.5489 GB, free: 8.914 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.102e-05/0.37, allocations: 31.98 kB / 0.5489 GB, free: 8.895 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.826e-05/0.3701, allocations: 8.312 kB / 0.5489 GB, free: 8.895 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002365/0.3703, allocations: 214.5 kB / 0.5491 GB, free: 8.754 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3703, allocations: 0 / 0.5491 GB, free: 8.754 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000488/0.3708, allocations: 116.7 kB / 0.5492 GB, free: 8.715 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.001215/0.372, allocations: 1.122 MB / 0.5503 GB, free: 7.758 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007539/0.3728, allocations: 329.8 kB / 0.5506 GB, free: 7.617 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.826e-06/0.3728, allocations: 3.938 kB / 0.5507 GB, free: 7.613 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003104/0.3731, allocations: 154.5 kB / 0.5508 GB, free: 7.543 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006084/0.3737, allocations: 101.9 kB / 0.5509 GB, free: 7.492 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005154/0.3788, allocations: 3.645 MB / 0.5545 GB, free: 4.77 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005005/0.3793, allocations: 0.8271 MB / 0.5553 GB, free: 4.008 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002321/0.3796, allocations: 56.09 kB / 0.5553 GB, free: 3.98 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002313/0.3798, allocations: 158.6 kB / 0.5555 GB, free: 3.852 MB / 398.1 MB Notification: Performance of SimCode: time 5.01e-07/0.3798, allocations: 0 / 0.5555 GB, free: 3.852 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04138/0.4212, allocations: 7.756 MB / 0.563 GB, free: 13.54 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.24/11.66, allocations: 7.125 kB / 0.5631 GB, free: 13.53 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.713205372005177] Failed to read output from testmodel.py, exit status != 0: 11.773951852999744 11.794646272 11.438252348 Calling exit ...