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.001341/0.001341, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.001516/0.001516, allocations: 217.9 kB / 22.25 MB, free: 5.121 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.518/1.518, allocations: 230.6 MB / 256 MB, free: 7.965 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.3171/0.3171, allocations: 31.55 MB / 344 MB, free: 3.918 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BusinessSimulation.Examples.SimpleProductionChain,fileNamePrefix="BusinessSimulation_dev_BusinessSimulation_Examples_SimpleProductionChain",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.002054/0.002054, allocations: 63.91 kB / 480.8 MB, free: 15.71 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3609/0.3629, allocations: 60.72 MB / 0.5288 GB, free: 7.613 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChain): time 0.008707/0.3716, allocations: 5.518 MB / 0.5342 GB, free: 3.719 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001787/0.3734, allocations: 0.6164 MB / 0.5348 GB, free: 3.266 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003194/0.3737, allocations: 15.47 kB / 0.5348 GB, free: 3.258 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000337/0.3741, allocations: 79.77 kB / 0.5349 GB, free: 3.215 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002735/0.3743, allocations: 71.78 kB / 0.535 GB, free: 3.16 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008016/0.3751, allocations: 187.6 kB / 0.5352 GB, free: 3.051 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000641/0.3758, allocations: 465.2 kB / 0.5356 GB, free: 2.82 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003523/0.3761, allocations: 154.5 kB / 0.5358 GB, free: 2.73 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003212/0.3765, allocations: 201.2 kB / 0.5359 GB, free: 2.625 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003328/0.3768, allocations: 193.7 kB / 0.5361 GB, free: 2.52 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.751e-05/0.3769, allocations: 43.88 kB / 0.5362 GB, free: 2.52 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001266/0.377, allocations: 55.64 kB / 0.5362 GB, free: 2.516 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001309/0.3771, allocations: 107.4 kB / 0.5363 GB, free: 2.445 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002258/0.3773, allocations: 215 kB / 0.5365 GB, free: 2.301 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007567/0.3781, allocations: 457.2 kB / 0.537 GB, free: 2.09 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.708e-06/0.3781, allocations: 2.078 kB / 0.537 GB, free: 2.09 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.3781, allocations: 4 kB / 0.537 GB, free: 2.086 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.091e-05/0.3781, allocations: 0 / 0.537 GB, free: 2.086 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.001354/0.3795, allocations: 0.6203 MB / 0.5376 GB, free: 1.629 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.813e-05/0.3795, allocations: 11.09 kB / 0.5376 GB, free: 1.629 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.798e-05/0.3796, allocations: 76.61 kB / 0.5377 GB, free: 1.566 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003537/0.3799, allocations: 66.31 kB / 0.5377 GB, free: 1.543 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005821/0.3805, allocations: 280.1 kB / 0.538 GB, free: 1.32 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.695e-05/0.3806, allocations: 39.69 kB / 0.538 GB, free: 1.301 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001021/0.3807, allocations: 47.5 kB / 0.5381 GB, free: 1.285 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009001/0.3816, allocations: 421.8 kB / 0.5385 GB, free: 1.043 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.197e-05/0.3816, allocations: 1.062 kB / 0.5385 GB, free: 1.043 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.926e-05/0.3816, allocations: 20.38 kB / 0.5385 GB, free: 1.027 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.706e-05/0.3816, allocations: 14.09 kB / 0.5385 GB, free: 1.023 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007362/0.3824, allocations: 253.6 kB / 0.5388 GB, free: 0.9023 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002732/0.3851, allocations: 1.616 MB / 0.5403 GB, free: 15.46 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008073/0.3859, allocations: 240.7 kB / 0.5406 GB, free: 15.29 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004206/0.3863, allocations: 151.8 kB / 0.5407 GB, free: 15.19 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.456e-05/0.3864, allocations: 4.031 kB / 0.5407 GB, free: 15.19 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.222e-05/0.3864, allocations: 45.14 kB / 0.5408 GB, free: 15.14 MB / 398.1 MB Notification: Performance of pre-optimization done (n=28): time 2.996e-06/0.3864, allocations: 0 / 0.5408 GB, free: 15.14 MB / 398.1 MB Notification: Performance of matching and sorting (n=28): time 0.001268/0.3877, allocations: 346.3 kB / 0.5411 GB, free: 14.96 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001532/0.3878, allocations: 166.6 kB / 0.5412 GB, free: 14.77 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004436/0.3883, allocations: 267.3 kB / 0.5415 GB, free: 14.58 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 7.306e-05/0.3884, allocations: 39.7 kB / 0.5415 GB, free: 14.54 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002486/0.3886, allocations: 217.1 kB / 0.5417 GB, free: 14.34 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001255/0.3887, allocations: 91.22 kB / 0.5418 GB, free: 14.27 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002212/0.389, allocations: 102.5 kB / 0.5419 GB, free: 14.2 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002339/0.3892, allocations: 341.8 kB / 0.5423 GB, free: 13.86 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005827/0.3898, allocations: 139.2 kB / 0.5424 GB, free: 13.8 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006442/0.3904, allocations: 248.1 kB / 0.5426 GB, free: 13.59 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009701/0.3914, allocations: 349.5 kB / 0.543 GB, free: 13.34 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.109e-06/0.3914, allocations: 1.375 kB / 0.543 GB, free: 13.34 MB / 398.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001231/0.3926, allocations: 445.8 kB / 0.5434 GB, free: 13.11 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.23e-05/0.3926, allocations: 5.844 kB / 0.5434 GB, free: 13.11 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.211e-05/0.3927, allocations: 3.531 kB / 0.5434 GB, free: 13.11 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.282e-05/0.3927, allocations: 10.03 kB / 0.5434 GB, free: 13.11 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003983/0.3931, allocations: 65.8 kB / 0.5435 GB, free: 13.09 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.748e-05/0.3931, allocations: 4.969 kB / 0.5435 GB, free: 13.09 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004489/0.3936, allocations: 57.55 kB / 0.5435 GB, free: 13.05 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.879e-05/0.3936, allocations: 18.81 kB / 0.5435 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.0003335/0.3939, allocations: 184 kB / 0.5437 GB, free: 12.88 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001198/0.3941, allocations: 34.47 kB / 0.5437 GB, free: 12.86 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001094/0.3942, allocations: 36.8 kB / 0.5438 GB, free: 12.83 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.124e-05/0.3942, allocations: 6.625 kB / 0.5438 GB, free: 12.82 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.315e-06/0.3942, allocations: 1.375 kB / 0.5438 GB, free: 12.82 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.038e-05/0.3942, allocations: 5.266 kB / 0.5438 GB, free: 12.82 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002469/0.3967, allocations: 1.155 MB / 0.5449 GB, free: 11.82 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.131e-06/0.3967, allocations: 2.969 kB / 0.5449 GB, free: 11.82 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002209/0.3969, allocations: 42.78 kB / 0.545 GB, free: 11.81 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.121e-05/0.3969, allocations: 5.156 kB / 0.545 GB, free: 11.81 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.357e-05/0.3969, allocations: 13.75 kB / 0.545 GB, free: 11.8 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.718e-05/0.397, allocations: 16.55 kB / 0.545 GB, free: 11.79 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.133e-05/0.397, allocations: 7.906 kB / 0.545 GB, free: 11.79 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00138/0.3984, allocations: 0.5336 MB / 0.5455 GB, free: 11.37 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001914/0.3985, allocations: 60.28 kB / 0.5456 GB, free: 11.33 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.627e-05/0.3986, allocations: 14.06 kB / 0.5456 GB, free: 11.32 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003393/0.399, allocations: 18.27 kB / 0.5456 GB, free: 11.31 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001304/0.3991, allocations: 30.45 kB / 0.5456 GB, free: 11.29 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.119e-05/0.3991, allocations: 18.03 kB / 0.5457 GB, free: 11.29 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002903/0.3994, allocations: 180.6 kB / 0.5458 GB, free: 11.16 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.3994, allocations: 4 kB / 0.5458 GB, free: 11.16 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0008385/0.4002, allocations: 91.09 kB / 0.5459 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.001705/0.402, allocations: 1.09 MB / 0.547 GB, free: 10.18 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001036/0.403, allocations: 315.5 kB / 0.5473 GB, free: 10.04 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.607e-06/0.403, allocations: 0 / 0.5473 GB, free: 10.04 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004419/0.4034, allocations: 138.6 kB / 0.5474 GB, free: 9.977 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009702/0.4044, allocations: 82.08 kB / 0.5475 GB, free: 9.938 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00753/0.4119, allocations: 3.386 MB / 0.5508 GB, free: 7.289 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006822/0.4126, allocations: 0.7964 MB / 0.5516 GB, free: 6.539 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003466/0.413, allocations: 56.92 kB / 0.5516 GB, free: 6.512 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002817/0.4132, allocations: 113.5 kB / 0.5517 GB, free: 6.422 MB / 398.1 MB Notification: Performance of SimCode: time 9.11e-07/0.4132, allocations: 0 / 0.5517 GB, free: 6.422 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04575/0.459, allocations: 6.757 MB / 0.5583 GB, free: 2.211 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.38/11.84, allocations: 13.48 kB / 0.5584 GB, free: 2.203 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 & python3 -m fmpy simulate --output-file BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain_res.csv --start-time 0 --stop-time 60 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.12 BusinessSimulation_dev_BusinessSimulation_Examples_SimpleProductionChain.fmu > BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.954299639000965] Failed to read output from testmodel.py, exit status != 0: 11.946538866999617 11.964052189 11.582483477 Calling exit ...