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.001687/0.001687, allocations: 95.64 kB / 18.95 MB, free: 2.691 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.002058/0.002058, allocations: 213.7 kB / 22.24 MB, free: 5.238 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.451/1.451, allocations: 230.6 MB / 256 MB, free: 7.793 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.1745/0.1745, allocations: 31.53 MB / 344 MB, free: 3.789 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.002285/0.002285, allocations: 73.77 kB / 480.7 MB, free: 15.57 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3579/0.3602, allocations: 60.71 MB / 0.5287 GB, free: 7.445 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChainII): time 0.008536/0.3687, allocations: 6.357 MB / 0.535 GB, free: 3.164 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0025/0.3712, allocations: 0.9949 MB / 0.5359 GB, free: 2.438 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007846/0.372, allocations: 29.22 kB / 0.536 GB, free: 2.422 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004152/0.3724, allocations: 108.2 kB / 0.5361 GB, free: 2.359 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003347/0.3727, allocations: 84 kB / 0.5361 GB, free: 2.293 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008655/0.3736, allocations: 228.4 kB / 0.5364 GB, free: 2.16 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007111/0.3743, allocations: 0.5683 MB / 0.5369 GB, free: 1.867 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004081/0.3747, allocations: 204.4 kB / 0.5371 GB, free: 1.758 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003551/0.3751, allocations: 232.3 kB / 0.5373 GB, free: 1.637 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003024/0.3754, allocations: 210.2 kB / 0.5375 GB, free: 1.527 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.635e-05/0.3755, allocations: 56.16 kB / 0.5376 GB, free: 1.527 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001414/0.3756, allocations: 68.22 kB / 0.5376 GB, free: 1.523 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001318/0.3757, allocations: 141 kB / 0.5378 GB, free: 1.426 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001889/0.3759, allocations: 205 kB / 0.538 GB, free: 1.301 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000674/0.3766, allocations: 0.5793 MB / 0.5385 GB, free: 0.9219 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.3766, allocations: 1.281 kB / 0.5385 GB, free: 0.9219 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.3766, allocations: 0 / 0.5385 GB, free: 0.9219 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.054e-05/0.3766, allocations: 0 / 0.5385 GB, free: 0.9219 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.00119/0.3778, allocations: 0.7314 MB / 0.5393 GB, free: 328 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.315e-05/0.3779, allocations: 10.62 kB / 0.5393 GB, free: 328 kB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.513e-05/0.3779, allocations: 89.45 kB / 0.5393 GB, free: 244 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003074/0.3783, allocations: 83.94 kB / 0.5394 GB, free: 200 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005811/0.3788, allocations: 341.6 kB / 0.5398 GB, free: 15.91 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.565e-05/0.3789, allocations: 48.5 kB / 0.5398 GB, free: 15.88 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.233e-05/0.379, allocations: 57.12 kB / 0.5399 GB, free: 15.86 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009715/0.38, allocations: 0.5378 MB / 0.5404 GB, free: 15.48 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.679e-05/0.38, allocations: 1.125 kB / 0.5404 GB, free: 15.48 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.651e-05/0.38, allocations: 21.5 kB / 0.5404 GB, free: 15.46 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.741e-05/0.38, allocations: 12.25 kB / 0.5404 GB, free: 15.46 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007086/0.3807, allocations: 313.1 kB / 0.5407 GB, free: 15.32 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002728/0.3835, allocations: 1.647 MB / 0.5423 GB, free: 13.91 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007078/0.3842, allocations: 288.9 kB / 0.5426 GB, free: 13.71 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003397/0.3845, allocations: 170.1 kB / 0.5428 GB, free: 13.61 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.476e-05/0.3845, allocations: 4.734 kB / 0.5428 GB, free: 13.61 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.021e-05/0.3846, allocations: 50.19 kB / 0.5428 GB, free: 13.55 MB / 398.1 MB Notification: Performance of pre-optimization done (n=31): time 2.264e-06/0.3846, allocations: 0 / 0.5428 GB, free: 13.55 MB / 398.1 MB Notification: Performance of matching and sorting (n=31): time 0.0009662/0.3856, allocations: 385.2 kB / 0.5432 GB, free: 13.36 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001103/0.3857, allocations: 162.1 kB / 0.5433 GB, free: 13.16 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004012/0.3861, allocations: 319.7 kB / 0.5436 GB, free: 12.95 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.721e-05/0.3861, allocations: 47.09 kB / 0.5437 GB, free: 12.91 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002254/0.3864, allocations: 264.6 kB / 0.5439 GB, free: 12.68 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.658e-05/0.3865, allocations: 96.39 kB / 0.544 GB, free: 12.59 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001759/0.3866, allocations: 109.1 kB / 0.5441 GB, free: 12.52 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001987/0.3868, allocations: 355.6 kB / 0.5445 GB, free: 12.17 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000352/0.3872, allocations: 146.9 kB / 0.5446 GB, free: 12.1 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000457/0.3876, allocations: 288.2 kB / 0.5449 GB, free: 11.86 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006534/0.3883, allocations: 365.7 kB / 0.5452 GB, free: 11.61 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.777e-06/0.3883, allocations: 1.406 kB / 0.5452 GB, free: 11.61 MB / 398.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.0009824/0.3893, allocations: 485.3 kB / 0.5457 GB, free: 11.36 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.995e-05/0.3893, allocations: 6.75 kB / 0.5457 GB, free: 11.36 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.101e-05/0.3893, allocations: 3.125 kB / 0.5457 GB, free: 11.36 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.458e-05/0.3893, allocations: 5.594 kB / 0.5457 GB, free: 11.36 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002987/0.3896, allocations: 74.17 kB / 0.5458 GB, free: 11.34 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.557e-05/0.3896, allocations: 5.625 kB / 0.5458 GB, free: 11.34 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003277/0.39, allocations: 67.05 kB / 0.5459 GB, free: 11.29 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.787e-05/0.39, allocations: 18.38 kB / 0.5459 GB, free: 11.29 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.0002831/0.3903, allocations: 197.8 kB / 0.5461 GB, free: 11.12 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001187/0.3904, allocations: 35.94 kB / 0.5461 GB, free: 11.1 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.554e-05/0.3905, allocations: 39.8 kB / 0.5461 GB, free: 11.07 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.562e-06/0.3905, allocations: 4 kB / 0.5461 GB, free: 11.07 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.468e-06/0.3905, allocations: 5.219 kB / 0.5461 GB, free: 11.06 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.681e-06/0.3905, allocations: 1.156 kB / 0.5461 GB, free: 11.06 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002132/0.3927, allocations: 1.15 MB / 0.5473 GB, free: 10.1 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.643e-06/0.3927, allocations: 3.219 kB / 0.5473 GB, free: 10.1 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002496/0.3929, allocations: 49.22 kB / 0.5473 GB, free: 10.08 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.718e-06/0.3929, allocations: 3.25 kB / 0.5473 GB, free: 10.08 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.149e-05/0.393, allocations: 10.25 kB / 0.5473 GB, free: 10.08 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.018e-05/0.393, allocations: 11.06 kB / 0.5473 GB, free: 10.07 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.109e-06/0.393, allocations: 2.281 kB / 0.5473 GB, free: 10.07 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001077/0.3941, allocations: 0.5481 MB / 0.5479 GB, free: 9.68 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001632/0.3942, allocations: 69.64 kB / 0.5479 GB, free: 9.629 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.009e-05/0.3943, allocations: 17.2 kB / 0.548 GB, free: 9.617 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002247/0.3945, allocations: 21.5 kB / 0.548 GB, free: 9.605 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00011/0.3946, allocations: 28.45 kB / 0.548 GB, free: 9.59 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.697e-05/0.3946, allocations: 16.19 kB / 0.548 GB, free: 9.582 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003096/0.3949, allocations: 213.9 kB / 0.5482 GB, free: 9.441 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3949, allocations: 0 / 0.5482 GB, free: 9.441 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005841/0.3955, allocations: 112 kB / 0.5483 GB, free: 9.406 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.001525/0.3971, allocations: 1.128 MB / 0.5494 GB, free: 8.449 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008999/0.398, allocations: 330.8 kB / 0.5497 GB, free: 8.309 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.496e-06/0.398, allocations: 4.062 kB / 0.5498 GB, free: 8.305 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003497/0.3983, allocations: 149.3 kB / 0.5499 GB, free: 8.238 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007524/0.3991, allocations: 113.5 kB / 0.55 GB, free: 8.184 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005873/0.4049, allocations: 3.643 MB / 0.5536 GB, free: 5.477 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002672/0.4052, allocations: 221.3 kB / 0.5538 GB, free: 5.328 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002834/0.4055, allocations: 60.38 kB / 0.5538 GB, free: 5.301 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002483/0.4057, allocations: 157.8 kB / 0.554 GB, free: 5.172 MB / 398.1 MB Notification: Performance of SimCode: time 9.31e-07/0.4057, allocations: 0 / 0.554 GB, free: 5.172 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04265/0.4484, allocations: 8.368 MB / 0.5622 GB, free: 14.02 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.31/11.76, allocations: 5.625 kB / 0.5622 GB, free: 14.02 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BusinessSimulation_dev_BusinessSimulation_Examples_SimpleProductionChainII_fmu --startTime=0 --stopTime=60 --stepSize=0.12 --timeout=50 --tolerance=1e-06 BusinessSimulation_dev_BusinessSimulation_Examples_SimpleProductionChainII.fmu > BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.531342160888016] Failed to read output from testmodel.py, exit status != 0: 11.8743641320616 11.890523154 11.510524596 Calling exit ...