Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BusinessSimulation_dev_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.001735/0.001735, allocations: 100.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.002093/0.002093, allocations: 221.5 kB / 23.03 MB, free: 4.945 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.459/1.459, allocations: 230.6 MB / 256.8 MB, free: 7.789 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.3048/0.3048, allocations: 31.54 MB / 344.8 MB, free: 3.781 MB / 270.1 MB " [Timeout remaining time 179] 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.SimpleProductionChain,fileNamePrefix="BusinessSimulation_dev_BusinessSimulation_Examples_SimpleProductionChain",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(BusinessSimulation.Examples.SimpleProductionChain,fileNamePrefix="BusinessSimulation_dev_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.002065/0.002065, allocations: 63.89 kB / 481.5 MB, free: 15.56 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3237/0.3258, allocations: 60.71 MB / 0.5295 GB, free: 7.586 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChain): time 0.006341/0.3321, allocations: 5.093 MB / 0.5345 GB, free: 4.141 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001299/0.3334, allocations: 0.602 MB / 0.5351 GB, free: 3.703 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002164/0.3336, allocations: 15.59 kB / 0.5351 GB, free: 3.695 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002561/0.3339, allocations: 79.7 kB / 0.5352 GB, free: 3.652 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000198/0.3341, allocations: 72.22 kB / 0.5352 GB, free: 3.598 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005184/0.3346, allocations: 184.2 kB / 0.5354 GB, free: 3.492 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004741/0.3351, allocations: 464.2 kB / 0.5358 GB, free: 3.262 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002752/0.3354, allocations: 154.7 kB / 0.536 GB, free: 3.172 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000203/0.3356, allocations: 198 kB / 0.5362 GB, free: 3.07 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002284/0.3358, allocations: 204.7 kB / 0.5364 GB, free: 2.953 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.288e-05/0.3359, allocations: 44.5 kB / 0.5364 GB, free: 2.953 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001065/0.336, allocations: 52.12 kB / 0.5365 GB, free: 2.953 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.712e-05/0.3361, allocations: 102.5 kB / 0.5366 GB, free: 2.887 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001472/0.3362, allocations: 175.6 kB / 0.5367 GB, free: 2.781 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005187/0.3367, allocations: 470.3 kB / 0.5372 GB, free: 2.562 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.477e-06/0.3367, allocations: 1.125 kB / 0.5372 GB, free: 2.562 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.3367, allocations: 0 / 0.5372 GB, free: 2.562 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.38e-05/0.3368, allocations: 3.938 kB / 0.5372 GB, free: 2.559 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.001096/0.3378, allocations: 0.6135 MB / 0.5378 GB, free: 2.109 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.76e-05/0.3379, allocations: 10.91 kB / 0.5378 GB, free: 2.109 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.087e-05/0.3379, allocations: 19.14 kB / 0.5378 GB, free: 2.102 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.306e-05/0.338, allocations: 79.17 kB / 0.5379 GB, free: 2.039 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003008/0.3383, allocations: 64.17 kB / 0.538 GB, free: 2.016 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000384/0.3387, allocations: 272.3 kB / 0.5382 GB, free: 1.801 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.657e-05/0.3387, allocations: 40.38 kB / 0.5382 GB, free: 1.781 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.063e-05/0.3388, allocations: 50.78 kB / 0.5383 GB, free: 1.762 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006654/0.3394, allocations: 468.5 kB / 0.5387 GB, free: 1.461 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.252e-05/0.3394, allocations: 1.625 kB / 0.5387 GB, free: 1.461 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.305e-05/0.3395, allocations: 17.25 kB / 0.5388 GB, free: 1.449 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.556e-06/0.3395, allocations: 13.2 kB / 0.5388 GB, free: 1.445 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005071/0.34, allocations: 244.9 kB / 0.539 GB, free: 1.336 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001786/0.3418, allocations: 1.47 MB / 0.5404 GB, free: 52 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006336/0.3424, allocations: 249 kB / 0.5407 GB, free: 15.86 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002973/0.3427, allocations: 153.3 kB / 0.5408 GB, free: 15.77 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.043e-05/0.3427, allocations: 8.125 kB / 0.5408 GB, free: 15.76 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.675e-05/0.3428, allocations: 38.62 kB / 0.5409 GB, free: 15.72 MB / 398.1 MB Notification: Performance of pre-optimization done (n=28): time 2.956e-06/0.3428, allocations: 0 / 0.5409 GB, free: 15.72 MB / 398.1 MB Notification: Performance of matching and sorting (n=28): time 0.0009724/0.3437, allocations: 351.1 kB / 0.5412 GB, free: 15.54 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000134/0.3439, allocations: 166.3 kB / 0.5414 GB, free: 15.34 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003836/0.3443, allocations: 264.3 kB / 0.5416 GB, free: 15.16 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.58e-05/0.3443, allocations: 47.12 kB / 0.5417 GB, free: 15.11 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002226/0.3446, allocations: 216.9 kB / 0.5419 GB, free: 14.91 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001065/0.3447, allocations: 96.53 kB / 0.542 GB, free: 14.83 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002269/0.3449, allocations: 97.02 kB / 0.5421 GB, free: 14.77 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001902/0.3451, allocations: 347.2 kB / 0.5424 GB, free: 14.43 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003585/0.3454, allocations: 134 kB / 0.5425 GB, free: 14.37 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000439/0.3459, allocations: 273 kB / 0.5428 GB, free: 14.13 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006256/0.3465, allocations: 345.7 kB / 0.5431 GB, free: 13.89 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.416e-06/0.3465, allocations: 0 / 0.5431 GB, free: 13.89 MB / 398.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0009217/0.3474, allocations: 453.6 kB / 0.5435 GB, free: 13.66 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.983e-05/0.3474, allocations: 5.688 kB / 0.5435 GB, free: 13.66 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.011e-05/0.3475, allocations: 3.438 kB / 0.5435 GB, free: 13.66 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.357e-05/0.3475, allocations: 9.625 kB / 0.5436 GB, free: 13.65 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002986/0.3478, allocations: 66.08 kB / 0.5436 GB, free: 13.63 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.707e-05/0.3478, allocations: 5.625 kB / 0.5436 GB, free: 13.63 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003204/0.3481, allocations: 53.86 kB / 0.5437 GB, free: 13.59 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.317e-05/0.3482, allocations: 26.36 kB / 0.5437 GB, free: 13.58 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.0002537/0.3484, allocations: 180.8 kB / 0.5439 GB, free: 13.43 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000123/0.3485, allocations: 29.06 kB / 0.5439 GB, free: 13.41 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001049/0.3486, allocations: 37.36 kB / 0.5439 GB, free: 13.38 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.043e-06/0.3486, allocations: 3.719 kB / 0.5439 GB, free: 13.38 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.478e-06/0.3487, allocations: 1.188 kB / 0.5439 GB, free: 13.38 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.211e-05/0.3487, allocations: 4.953 kB / 0.5439 GB, free: 13.38 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001874/0.3506, allocations: 1.133 MB / 0.5451 GB, free: 12.41 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.181e-06/0.3506, allocations: 3 kB / 0.5451 GB, free: 12.41 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002282/0.3508, allocations: 39.23 kB / 0.5451 GB, free: 12.39 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.109e-05/0.3508, allocations: 8.125 kB / 0.5451 GB, free: 12.39 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.02e-05/0.3508, allocations: 14.89 kB / 0.5451 GB, free: 12.38 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.765e-06/0.3509, allocations: 8.438 kB / 0.5451 GB, free: 12.38 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.779e-06/0.3509, allocations: 4.219 kB / 0.5451 GB, free: 12.38 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009133/0.3518, allocations: 0.5352 MB / 0.5456 GB, free: 11.97 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001305/0.3519, allocations: 51.81 kB / 0.5457 GB, free: 11.93 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.093e-05/0.352, allocations: 10.38 kB / 0.5457 GB, free: 11.93 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002124/0.3522, allocations: 29.38 kB / 0.5457 GB, free: 11.91 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001099/0.3523, allocations: 36.53 kB / 0.5458 GB, free: 11.89 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.406e-05/0.3523, allocations: 13.17 kB / 0.5458 GB, free: 11.88 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002555/0.3526, allocations: 176.9 kB / 0.546 GB, free: 11.77 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3526, allocations: 3.938 kB / 0.546 GB, free: 11.76 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005526/0.3531, allocations: 96.31 kB / 0.546 GB, free: 11.73 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.00132/0.3544, allocations: 1.093 MB / 0.5471 GB, free: 10.79 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007712/0.3552, allocations: 317.5 kB / 0.5474 GB, free: 10.64 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.656e-06/0.3552, allocations: 0 / 0.5474 GB, free: 10.64 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002972/0.3555, allocations: 140.8 kB / 0.5476 GB, free: 10.57 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006296/0.3561, allocations: 77 kB / 0.5476 GB, free: 10.54 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004894/0.361, allocations: 3.382 MB / 0.5509 GB, free: 7.918 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002138/0.3612, allocations: 198.1 kB / 0.5511 GB, free: 7.781 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002186/0.3615, allocations: 52.47 kB / 0.5512 GB, free: 7.758 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001958/0.3617, allocations: 117.6 kB / 0.5513 GB, free: 7.664 MB / 398.1 MB Notification: Performance of SimCode: time 7.01e-07/0.3617, allocations: 0 / 0.5513 GB, free: 7.664 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03062/0.3923, allocations: 7.013 MB / 0.5581 GB, free: 2.996 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.65/12.04, allocations: 3.188 kB / 0.5581 GB, free: 2.996 MB / 398.1 MB " [Timeout remaining time 648] (rm -f BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain.pipe ; mkfifo BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain.pipe ; head -c 1048576 < BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain.pipe >> ../files/BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BusinessSimulation_dev_BusinessSimulation_Examples_SimpleProductionChain_fmu --startTime=0 --stopTime=60 --stepSize=0.12 --timeout=50 --tolerance=1e-06 BusinessSimulation_dev_BusinessSimulation_Examples_SimpleProductionChain.fmu > BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 15.011655992013402] Failed to read output from testmodel.py, exit status != 0: 12.208770476980135 12.22699987 11.885698928 Calling exit ...