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.001274/0.001274, allocations: 101.3 kB / 19.73 MB, free: 2.133 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.001478/0.001478, allocations: 219.8 kB / 23.03 MB, free: 4.941 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.486/1.486, allocations: 230.6 MB / 256.8 MB, free: 7.805 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.3261/0.3261, allocations: 31.55 MB / 344.8 MB, free: 3.816 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.002141/0.002141, allocations: 63.91 kB / 481.5 MB, free: 15.62 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4064/0.4085, allocations: 60.71 MB / 0.5295 GB, free: 7.512 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChain): time 0.007169/0.4157, allocations: 5.092 MB / 0.5345 GB, free: 4.066 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001415/0.4171, allocations: 0.598 MB / 0.5351 GB, free: 3.633 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002143/0.4173, allocations: 19.16 kB / 0.5351 GB, free: 3.621 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002557/0.4175, allocations: 84.28 kB / 0.5352 GB, free: 3.574 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001979/0.4177, allocations: 67.95 kB / 0.5352 GB, free: 3.523 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005659/0.4183, allocations: 188.3 kB / 0.5354 GB, free: 3.414 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005289/0.4188, allocations: 455.9 kB / 0.5358 GB, free: 3.191 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003095/0.4192, allocations: 167.2 kB / 0.536 GB, free: 3.09 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002624/0.4194, allocations: 197.7 kB / 0.5362 GB, free: 2.988 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002863/0.4197, allocations: 192.8 kB / 0.5364 GB, free: 2.883 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.066e-05/0.4198, allocations: 45 kB / 0.5364 GB, free: 2.883 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001158/0.4199, allocations: 51.31 kB / 0.5365 GB, free: 2.883 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001143/0.42, allocations: 110.7 kB / 0.5366 GB, free: 2.809 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001725/0.4202, allocations: 172.2 kB / 0.5367 GB, free: 2.707 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006333/0.4208, allocations: 473.6 kB / 0.5372 GB, free: 2.484 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.409e-06/0.4208, allocations: 0 / 0.5372 GB, free: 2.484 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.4208, allocations: 1.25 kB / 0.5372 GB, free: 2.484 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.228e-06/0.4208, allocations: 0 / 0.5372 GB, free: 2.484 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.001111/0.4219, allocations: 0.617 MB / 0.5378 GB, free: 2.031 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.226e-05/0.422, allocations: 11.12 kB / 0.5378 GB, free: 2.031 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.987e-05/0.422, allocations: 15.42 kB / 0.5378 GB, free: 2.027 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.075e-05/0.4221, allocations: 76.27 kB / 0.5379 GB, free: 1.965 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003073/0.4224, allocations: 66.2 kB / 0.538 GB, free: 1.941 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004353/0.4228, allocations: 272.4 kB / 0.5382 GB, free: 1.727 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.38e-05/0.4229, allocations: 40.25 kB / 0.5383 GB, free: 1.707 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.706e-05/0.4229, allocations: 51.78 kB / 0.5383 GB, free: 1.688 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007117/0.4237, allocations: 472.2 kB / 0.5388 GB, free: 1.375 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.522e-05/0.4237, allocations: 1.125 kB / 0.5388 GB, free: 1.375 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.181e-05/0.4237, allocations: 16.16 kB / 0.5388 GB, free: 1.363 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.165e-05/0.4237, allocations: 10.84 kB / 0.5388 GB, free: 1.363 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004892/0.4242, allocations: 248.8 kB / 0.539 GB, free: 1.25 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001734/0.4259, allocations: 1.471 MB / 0.5405 GB, free: 15.96 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006477/0.4266, allocations: 248.3 kB / 0.5407 GB, free: 15.78 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00029/0.4269, allocations: 149.3 kB / 0.5408 GB, free: 15.68 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.003e-05/0.4269, allocations: 3.75 kB / 0.5408 GB, free: 15.68 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.348e-05/0.4269, allocations: 38.34 kB / 0.5409 GB, free: 15.64 MB / 398.1 MB Notification: Performance of pre-optimization done (n=28): time 2.124e-06/0.4269, allocations: 1.156 kB / 0.5409 GB, free: 15.64 MB / 398.1 MB Notification: Performance of matching and sorting (n=28): time 0.0008207/0.4278, allocations: 346.6 kB / 0.5412 GB, free: 15.46 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.882e-05/0.4279, allocations: 165.8 kB / 0.5414 GB, free: 15.27 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002965/0.4282, allocations: 264.2 kB / 0.5416 GB, free: 15.08 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.013e-05/0.4282, allocations: 47.12 kB / 0.5417 GB, free: 15.04 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001671/0.4284, allocations: 221.2 kB / 0.5419 GB, free: 14.84 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.157e-05/0.4285, allocations: 87.64 kB / 0.542 GB, free: 14.76 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001487/0.4286, allocations: 102 kB / 0.542 GB, free: 14.7 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001624/0.4288, allocations: 347 kB / 0.5424 GB, free: 14.36 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003067/0.4291, allocations: 135 kB / 0.5425 GB, free: 14.29 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004133/0.4295, allocations: 276.4 kB / 0.5428 GB, free: 14.05 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006044/0.4301, allocations: 340.6 kB / 0.5431 GB, free: 13.81 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.708e-06/0.4301, allocations: 1.125 kB / 0.5431 GB, free: 13.81 MB / 398.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0009237/0.431, allocations: 452.7 kB / 0.5435 GB, free: 13.58 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.112e-05/0.431, allocations: 7.031 kB / 0.5435 GB, free: 13.58 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.274e-05/0.4311, allocations: 6.812 kB / 0.5435 GB, free: 13.58 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.542e-05/0.4311, allocations: 10.03 kB / 0.5436 GB, free: 13.57 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002822/0.4314, allocations: 65.55 kB / 0.5436 GB, free: 13.55 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.265e-05/0.4314, allocations: 9.219 kB / 0.5436 GB, free: 13.55 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000292/0.4317, allocations: 57.95 kB / 0.5437 GB, free: 13.51 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.233e-05/0.4317, allocations: 22.53 kB / 0.5437 GB, free: 13.5 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.0002333/0.4319, allocations: 181.1 kB / 0.5439 GB, free: 13.34 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001125/0.4321, allocations: 28.88 kB / 0.5439 GB, free: 13.33 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.022e-05/0.4321, allocations: 40.64 kB / 0.5439 GB, free: 13.29 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.143e-06/0.4321, allocations: 4.844 kB / 0.5439 GB, free: 13.29 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.277e-06/0.4322, allocations: 1.344 kB / 0.5439 GB, free: 13.29 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.685e-06/0.4322, allocations: 5.141 kB / 0.544 GB, free: 13.29 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001733/0.4339, allocations: 1.121 MB / 0.545 GB, free: 12.33 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.71e-06/0.4339, allocations: 3.094 kB / 0.545 GB, free: 12.33 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002081/0.4341, allocations: 39.36 kB / 0.5451 GB, free: 12.32 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.474e-05/0.4341, allocations: 8.281 kB / 0.5451 GB, free: 12.32 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.109e-05/0.4342, allocations: 14.27 kB / 0.5451 GB, free: 12.31 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.939e-06/0.4342, allocations: 9.844 kB / 0.5451 GB, free: 12.3 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.008e-06/0.4342, allocations: 2.875 kB / 0.5451 GB, free: 12.3 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008961/0.4351, allocations: 0.5343 MB / 0.5456 GB, free: 11.89 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001217/0.4352, allocations: 56.25 kB / 0.5457 GB, free: 11.86 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.301e-05/0.4352, allocations: 14.81 kB / 0.5457 GB, free: 11.85 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002181/0.4355, allocations: 29.91 kB / 0.5457 GB, free: 11.83 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.395e-05/0.4355, allocations: 29.06 kB / 0.5458 GB, free: 11.81 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.553e-05/0.4356, allocations: 16.61 kB / 0.5458 GB, free: 11.8 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002007/0.4358, allocations: 177.3 kB / 0.546 GB, free: 11.69 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4358, allocations: 0 / 0.546 GB, free: 11.69 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004674/0.4362, allocations: 92.03 kB / 0.546 GB, free: 11.66 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.001121/0.4374, allocations: 1.095 MB / 0.5471 GB, free: 10.71 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000704/0.4381, allocations: 317.4 kB / 0.5474 GB, free: 10.57 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.188e-06/0.4381, allocations: 2.188 kB / 0.5474 GB, free: 10.57 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002898/0.4384, allocations: 140.7 kB / 0.5475 GB, free: 10.5 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006055/0.439, allocations: 84.34 kB / 0.5476 GB, free: 10.46 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004816/0.4438, allocations: 3.39 MB / 0.5509 GB, free: 7.832 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002144/0.444, allocations: 189.5 kB / 0.5511 GB, free: 7.703 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000228/0.4442, allocations: 60.34 kB / 0.5512 GB, free: 7.672 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002044/0.4444, allocations: 117.8 kB / 0.5513 GB, free: 7.578 MB / 398.1 MB Notification: Performance of SimCode: time 1.022e-06/0.4444, allocations: 0 / 0.5513 GB, free: 7.578 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02994/0.4744, allocations: 6.998 MB / 0.5581 GB, free: 3.035 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.75/12.23, allocations: 8 kB / 0.5581 GB, free: 3.027 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.317108500981703] Failed to read output from testmodel.py, exit status != 0: 12.393814193899743 12.425990084 11.998753509 Calling exit ...