Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain.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.001369/0.001369, allocations: 113.5 kB / 19.73 MB, free: 2.242 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.001591/0.001591, allocations: 218.8 kB / 23.04 MB, free: 5.074 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.529/1.529, allocations: 230.6 MB / 256.8 MB, free: 8.012 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.3109/0.3109, allocations: 31.57 MB / 344.8 MB, free: 3.969 MB / 270.1 MB " [Timeout remaining time 179] 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.SimpleProductionChain,fileNamePrefix="BusinessSimulation_BusinessSimulation_Examples_SimpleProductionChain",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(BusinessSimulation.Examples.SimpleProductionChain,fileNamePrefix="BusinessSimulation_BusinessSimulation_Examples_SimpleProductionChain",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.002051/0.002051, allocations: 63.91 kB / 481.6 MB, free: 15.76 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3739/0.3759, allocations: 60.71 MB / 0.5296 GB, free: 7.617 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChain): time 0.007128/0.383, allocations: 5.516 MB / 0.535 GB, free: 3.727 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001598/0.3846, allocations: 0.6154 MB / 0.5356 GB, free: 3.273 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000274/0.3849, allocations: 15.94 kB / 0.5356 GB, free: 3.266 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002792/0.3852, allocations: 79.39 kB / 0.5357 GB, free: 3.223 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002247/0.3854, allocations: 72.53 kB / 0.5357 GB, free: 3.168 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006132/0.386, allocations: 192.8 kB / 0.5359 GB, free: 3.055 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005032/0.3865, allocations: 459 kB / 0.5364 GB, free: 2.828 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003072/0.3868, allocations: 155.7 kB / 0.5365 GB, free: 2.738 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002534/0.3871, allocations: 201.3 kB / 0.5367 GB, free: 2.633 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002809/0.3874, allocations: 192.8 kB / 0.5369 GB, free: 2.527 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.525e-05/0.3875, allocations: 44.34 kB / 0.5369 GB, free: 2.527 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001228/0.3876, allocations: 55.33 kB / 0.537 GB, free: 2.523 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001194/0.3877, allocations: 106.7 kB / 0.5371 GB, free: 2.453 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001905/0.3879, allocations: 212.1 kB / 0.5373 GB, free: 2.312 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000641/0.3885, allocations: 465.8 kB / 0.5377 GB, free: 2.094 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.3885, allocations: 0 / 0.5377 GB, free: 2.094 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.3885, allocations: 1.375 kB / 0.5377 GB, free: 2.094 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.016e-06/0.3885, allocations: 0 / 0.5377 GB, free: 2.094 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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.001201/0.3897, allocations: 0.6204 MB / 0.5383 GB, free: 1.637 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.673e-05/0.3898, allocations: 11 kB / 0.5384 GB, free: 1.637 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.285e-05/0.3898, allocations: 14.56 kB / 0.5384 GB, free: 1.633 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.566e-05/0.3899, allocations: 76.42 kB / 0.5384 GB, free: 1.57 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003272/0.3902, allocations: 67.48 kB / 0.5385 GB, free: 1.547 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004111/0.3906, allocations: 275.1 kB / 0.5388 GB, free: 1.328 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.855e-05/0.3907, allocations: 44.16 kB / 0.5388 GB, free: 1.305 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.638e-05/0.3907, allocations: 48.03 kB / 0.5389 GB, free: 1.289 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007268/0.3915, allocations: 414 kB / 0.5393 GB, free: 1.047 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.496e-05/0.3915, allocations: 1.062 kB / 0.5393 GB, free: 1.047 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.613e-05/0.3915, allocations: 28.72 kB / 0.5393 GB, free: 1.023 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.597e-05/0.3915, allocations: 13.89 kB / 0.5393 GB, free: 1.02 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005002/0.392, allocations: 253.6 kB / 0.5395 GB, free: 0.9023 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001962/0.394, allocations: 1.608 MB / 0.5411 GB, free: 15.47 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006139/0.3946, allocations: 253.9 kB / 0.5413 GB, free: 15.28 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002915/0.3949, allocations: 144.5 kB / 0.5415 GB, free: 15.19 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.88e-05/0.3949, allocations: 4.344 kB / 0.5415 GB, free: 15.19 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.869e-05/0.395, allocations: 41.47 kB / 0.5415 GB, free: 15.14 MB / 398.1 MB Notification: Performance of pre-optimization done (n=28): time 1.803e-06/0.395, allocations: 4 kB / 0.5415 GB, free: 15.14 MB / 398.1 MB Notification: Performance of matching and sorting (n=28): time 0.0009121/0.3959, allocations: 345.8 kB / 0.5419 GB, free: 14.96 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001223/0.396, allocations: 162.9 kB / 0.542 GB, free: 14.77 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003207/0.3963, allocations: 267.2 kB / 0.5423 GB, free: 14.58 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.537e-05/0.3964, allocations: 43.48 kB / 0.5423 GB, free: 14.54 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001726/0.3965, allocations: 221.3 kB / 0.5425 GB, free: 14.34 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.718e-05/0.3966, allocations: 87.45 kB / 0.5426 GB, free: 14.26 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001601/0.3968, allocations: 102.2 kB / 0.5427 GB, free: 14.2 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001761/0.397, allocations: 341.5 kB / 0.543 GB, free: 13.86 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003268/0.3973, allocations: 135.6 kB / 0.5432 GB, free: 13.8 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004539/0.3977, allocations: 248.1 kB / 0.5434 GB, free: 13.59 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006179/0.3984, allocations: 345.5 kB / 0.5437 GB, free: 13.34 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.3984, allocations: 1.375 kB / 0.5437 GB, free: 13.34 MB / 398.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0008904/0.3993, allocations: 448.7 kB / 0.5442 GB, free: 13.11 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.024e-05/0.3993, allocations: 7.094 kB / 0.5442 GB, free: 13.11 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.397e-06/0.3993, allocations: 3.312 kB / 0.5442 GB, free: 13.11 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.615e-05/0.3993, allocations: 9.656 kB / 0.5442 GB, free: 13.11 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000277/0.3996, allocations: 65.05 kB / 0.5442 GB, free: 13.09 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.252e-05/0.3996, allocations: 6.656 kB / 0.5442 GB, free: 13.09 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002827/0.3999, allocations: 57.53 kB / 0.5443 GB, free: 13.05 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.582e-05/0.3999, allocations: 26.62 kB / 0.5443 GB, free: 13.04 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 (60): * Single equations (assignments): 60 * 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.000224/0.4002, allocations: 180.8 kB / 0.5445 GB, free: 12.88 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001134/0.4003, allocations: 32.41 kB / 0.5445 GB, free: 12.86 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.092e-05/0.4003, allocations: 36.83 kB / 0.5446 GB, free: 12.83 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.011e-06/0.4004, allocations: 4.594 kB / 0.5446 GB, free: 12.83 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.209e-05/0.4004, allocations: 5.375 kB / 0.5446 GB, free: 12.82 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.323e-06/0.4004, allocations: 9.203 kB / 0.5446 GB, free: 12.82 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001716/0.4021, allocations: 1.156 MB / 0.5457 GB, free: 11.82 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.609e-06/0.4021, allocations: 3.562 kB / 0.5457 GB, free: 11.82 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002103/0.4023, allocations: 43 kB / 0.5458 GB, free: 11.8 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.187e-05/0.4023, allocations: 9.25 kB / 0.5458 GB, free: 11.8 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.911e-05/0.4023, allocations: 14.03 kB / 0.5458 GB, free: 11.79 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.251e-06/0.4024, allocations: 4.5 kB / 0.5458 GB, free: 11.79 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.834e-06/0.4024, allocations: 7.844 kB / 0.5458 GB, free: 11.79 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009371/0.4033, allocations: 0.5441 MB / 0.5463 GB, free: 11.36 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001273/0.4034, allocations: 55.72 kB / 0.5464 GB, free: 11.32 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.924e-05/0.4035, allocations: 11.31 kB / 0.5464 GB, free: 11.32 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002077/0.4037, allocations: 18.08 kB / 0.5464 GB, free: 11.31 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000109/0.4038, allocations: 35.67 kB / 0.5464 GB, free: 11.29 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.317e-05/0.4038, allocations: 12.75 kB / 0.5464 GB, free: 11.29 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000231/0.404, allocations: 180.8 kB / 0.5466 GB, free: 11.16 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.404, allocations: 0 / 0.5466 GB, free: 11.16 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005083/0.4046, allocations: 92.41 kB / 0.5467 GB, free: 11.14 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * 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,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,producing.growing.useA_rate) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 28 * 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.001297/0.4059, allocations: 1.085 MB / 0.5478 GB, free: 10.19 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007625/0.4066, allocations: 322.4 kB / 0.5481 GB, free: 10.04 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.018e-06/0.4066, allocations: 0 / 0.5481 GB, free: 10.04 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003051/0.4069, allocations: 135 kB / 0.5482 GB, free: 9.98 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006312/0.4076, allocations: 85.45 kB / 0.5483 GB, free: 9.938 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004991/0.4125, allocations: 3.387 MB / 0.5516 GB, free: 7.293 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004635/0.413, allocations: 0.7975 MB / 0.5524 GB, free: 6.543 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002358/0.4132, allocations: 51.83 kB / 0.5524 GB, free: 6.52 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001965/0.4134, allocations: 118.4 kB / 0.5525 GB, free: 6.426 MB / 398.1 MB Notification: Performance of SimCode: time 1.102e-06/0.4134, allocations: 4 kB / 0.5525 GB, free: 6.422 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03229/0.4457, allocations: 6.777 MB / 0.5592 GB, free: 2.207 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.63/12.08, allocations: 21.06 kB / 0.5592 GB, free: 2.195 MB / 398.1 MB " [Timeout remaining time 648] (rm -f BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain.pipe ; mkfifo BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain.pipe ; head -c 1048576 < BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain.pipe >> ../files/BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BusinessSimulation_BusinessSimulation_Examples_SimpleProductionChain_fmu --startTime=0 --stopTime=60 --stepSize=0.12 --timeout=50 --tolerance=1e-06 BusinessSimulation_BusinessSimulation_Examples_SimpleProductionChain.fmu > BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 15.200047607999295] Failed to read output from testmodel.py, exit status != 0: 12.248624961008318 12.276935081 11.883400167 Calling exit ...