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.001808/0.001808, allocations: 97.31 kB / 19.73 MB, free: 2.117 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.001851/0.001851, allocations: 220.1 kB / 23.03 MB, free: 4.922 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.567/1.567, allocations: 230.6 MB / 256.8 MB, free: 7.801 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.1758/0.1758, allocations: 31.54 MB / 344.8 MB, free: 3.801 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(BusinessSimulation.Examples.SimpleProductionChainII,fileNamePrefix="BusinessSimulation_BusinessSimulation_Examples_SimpleProductionChainII",fmuType="cs",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.002035/0.002035, allocations: 63.89 kB / 481.5 MB, free: 15.6 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3334/0.3354, allocations: 60.71 MB / 0.5295 GB, free: 7.578 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChainII): time 0.006658/0.3421, allocations: 6.35 MB / 0.5357 GB, free: 3.297 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001763/0.3438, allocations: 0.992 MB / 0.5367 GB, free: 2.566 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003297/0.3441, allocations: 30.66 kB / 0.5367 GB, free: 2.551 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002876/0.3444, allocations: 108.4 kB / 0.5368 GB, free: 2.488 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002139/0.3447, allocations: 76.09 kB / 0.5369 GB, free: 2.43 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005859/0.3452, allocations: 231.4 kB / 0.5371 GB, free: 2.297 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005313/0.3458, allocations: 0.5695 MB / 0.5377 GB, free: 2.004 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003312/0.3461, allocations: 220.1 kB / 0.5379 GB, free: 1.879 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002315/0.3463, allocations: 240.1 kB / 0.5381 GB, free: 1.75 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002466/0.3466, allocations: 241 kB / 0.5383 GB, free: 1.609 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.251e-05/0.3467, allocations: 57.41 kB / 0.5384 GB, free: 1.609 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001138/0.3468, allocations: 67.17 kB / 0.5385 GB, free: 1.605 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001145/0.3469, allocations: 128.9 kB / 0.5386 GB, free: 1.52 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001614/0.3471, allocations: 213 kB / 0.5388 GB, free: 1.391 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004924/0.3476, allocations: 0.5796 MB / 0.5393 GB, free: 0.9688 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.3476, allocations: 0 / 0.5393 GB, free: 0.9688 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.3476, allocations: 0 / 0.5393 GB, free: 0.9688 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.115e-06/0.3476, allocations: 0 / 0.5393 GB, free: 0.9688 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: 125 * Number of variables: 125 Notification: Performance of Generate backend data structure: time 0.001057/0.3486, allocations: 0.7275 MB / 0.5401 GB, free: 380 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.659e-05/0.3487, allocations: 12.5 kB / 0.5401 GB, free: 380 kB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.447e-05/0.3487, allocations: 11.41 kB / 0.5401 GB, free: 380 kB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.632e-05/0.3487, allocations: 91.05 kB / 0.5402 GB, free: 296 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003033/0.3491, allocations: 83.02 kB / 0.5402 GB, free: 252 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004878/0.3495, allocations: 336.9 kB / 0.5406 GB, free: 15.96 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.479e-05/0.3496, allocations: 53.48 kB / 0.5406 GB, free: 15.93 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.376e-05/0.3497, allocations: 57.28 kB / 0.5407 GB, free: 15.91 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009487/0.3506, allocations: 0.55 MB / 0.5412 GB, free: 15.52 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.407e-05/0.3506, allocations: 0 / 0.5412 GB, free: 15.52 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.361e-05/0.3507, allocations: 22.09 kB / 0.5412 GB, free: 15.5 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.211e-05/0.3507, allocations: 12.88 kB / 0.5412 GB, free: 15.5 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006776/0.3514, allocations: 304.8 kB / 0.5415 GB, free: 15.36 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002376/0.3538, allocations: 1.643 MB / 0.5431 GB, free: 13.96 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006987/0.3544, allocations: 296.8 kB / 0.5434 GB, free: 13.75 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003455/0.3548, allocations: 168.3 kB / 0.5436 GB, free: 13.65 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.233e-05/0.3548, allocations: 11.59 kB / 0.5436 GB, free: 13.64 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.062e-05/0.3549, allocations: 46.89 kB / 0.5436 GB, free: 13.59 MB / 398.1 MB Notification: Performance of pre-optimization done (n=31): time 2.235e-06/0.3549, allocations: 1.094 kB / 0.5436 GB, free: 13.59 MB / 398.1 MB Notification: Performance of matching and sorting (n=31): time 0.0009564/0.3558, allocations: 383.5 kB / 0.544 GB, free: 13.4 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001036/0.3559, allocations: 167.7 kB / 0.5442 GB, free: 13.2 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003901/0.3563, allocations: 319 kB / 0.5445 GB, free: 12.99 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.179e-05/0.3564, allocations: 39.73 kB / 0.5445 GB, free: 12.95 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002195/0.3566, allocations: 260.4 kB / 0.5448 GB, free: 12.72 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001017/0.3567, allocations: 96.34 kB / 0.5448 GB, free: 12.64 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001849/0.3569, allocations: 108.2 kB / 0.545 GB, free: 12.57 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001711/0.357, allocations: 347.5 kB / 0.5453 GB, free: 12.23 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003624/0.3574, allocations: 148.2 kB / 0.5454 GB, free: 12.16 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004893/0.3579, allocations: 291.4 kB / 0.5457 GB, free: 11.91 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007083/0.3586, allocations: 370.3 kB / 0.5461 GB, free: 11.66 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.658e-06/0.3586, allocations: 1.75 kB / 0.5461 GB, free: 11.66 MB / 398.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.000952/0.3596, allocations: 480.9 kB / 0.5465 GB, free: 11.41 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.984e-05/0.3596, allocations: 5.531 kB / 0.5465 GB, free: 11.41 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.388e-06/0.3596, allocations: 4.25 kB / 0.5465 GB, free: 11.41 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.234e-05/0.3596, allocations: 5.375 kB / 0.5465 GB, free: 11.41 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002994/0.3599, allocations: 69.58 kB / 0.5466 GB, free: 11.39 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.264e-05/0.3599, allocations: 6.469 kB / 0.5466 GB, free: 11.39 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003061/0.3602, allocations: 61.88 kB / 0.5467 GB, free: 11.35 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.952e-05/0.3603, allocations: 23.91 kB / 0.5467 GB, free: 11.34 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.0002554/0.3605, allocations: 200.7 kB / 0.5469 GB, free: 11.17 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001256/0.3607, allocations: 43.45 kB / 0.5469 GB, free: 11.14 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000103/0.3608, allocations: 44.33 kB / 0.547 GB, free: 11.11 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.372e-06/0.3608, allocations: 4.5 kB / 0.547 GB, free: 11.11 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.343e-05/0.3608, allocations: 1.406 kB / 0.547 GB, free: 11.11 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.234e-06/0.3608, allocations: 5.266 kB / 0.547 GB, free: 11.1 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001809/0.3626, allocations: 1.145 MB / 0.5481 GB, free: 10.14 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.617e-06/0.3626, allocations: 3.188 kB / 0.5481 GB, free: 10.14 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002227/0.3628, allocations: 40.75 kB / 0.5481 GB, free: 10.13 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.041e-06/0.3628, allocations: 8.438 kB / 0.5481 GB, free: 10.13 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.108e-05/0.3629, allocations: 17.28 kB / 0.5482 GB, free: 10.12 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.917e-06/0.3629, allocations: 2.969 kB / 0.5482 GB, free: 10.12 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.016e-06/0.3629, allocations: 4 kB / 0.5482 GB, free: 10.12 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008999/0.3638, allocations: 0.5576 MB / 0.5487 GB, free: 9.719 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001276/0.3639, allocations: 64.25 kB / 0.5488 GB, free: 9.672 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.761e-05/0.364, allocations: 13.62 kB / 0.5488 GB, free: 9.664 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002093/0.3642, allocations: 16.98 kB / 0.5488 GB, free: 9.656 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.991e-05/0.3642, allocations: 36.8 kB / 0.5488 GB, free: 9.633 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.264e-05/0.3643, allocations: 16.77 kB / 0.5488 GB, free: 9.625 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002486/0.3645, allocations: 209.9 kB / 0.549 GB, free: 9.488 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3645, allocations: 0 / 0.549 GB, free: 9.488 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004727/0.365, allocations: 113.3 kB / 0.5492 GB, free: 9.453 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.001249/0.3662, allocations: 1.122 MB / 0.5503 GB, free: 8.5 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007272/0.367, allocations: 333 kB / 0.5506 GB, free: 8.355 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.397e-06/0.367, allocations: 1.125 kB / 0.5506 GB, free: 8.355 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003084/0.3673, allocations: 149.2 kB / 0.5507 GB, free: 8.289 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006441/0.3679, allocations: 107.2 kB / 0.5508 GB, free: 8.238 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005245/0.3732, allocations: 3.643 MB / 0.5544 GB, free: 5.535 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002352/0.3734, allocations: 222.3 kB / 0.5546 GB, free: 5.387 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002294/0.3736, allocations: 68.75 kB / 0.5546 GB, free: 5.352 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000236/0.3739, allocations: 157.7 kB / 0.5548 GB, free: 5.223 MB / 398.1 MB Notification: Performance of SimCode: time 5.71e-07/0.3739, allocations: 0 / 0.5548 GB, free: 5.223 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03101/0.4049, allocations: 8.058 MB / 0.5627 GB, free: 14.45 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12/12.4, allocations: 7.625 kB / 0.5627 GB, free: 14.44 MB / 414.1 MB " [Timeout remaining time 647] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BusinessSimulation_BusinessSimulation_Examples_SimpleProductionChainII_fmu --startTime=0 --stopTime=60 --stepSize=0.12 --timeout=50 --tolerance=1e-06 BusinessSimulation_BusinessSimulation_Examples_SimpleProductionChainII.fmu > BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 15.349842804018408] Failed to read output from testmodel.py, exit status != 0: 12.573760595056228 12.604082774 12.25110093 Calling exit ...