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.001611/0.001611, allocations: 103.6 kB / 18.95 MB, free: 2.547 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.002068/0.002068, allocations: 214.8 kB / 22.25 MB, free: 4.867 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.493/1.493, allocations: 230.6 MB / 256 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.3119/0.3119, allocations: 31.55 MB / 344 MB, free: 3.805 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BusinessSimulation.Examples.SimpleProductionChain,fileNamePrefix="BusinessSimulation_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.002135/0.002135, allocations: 63.91 kB / 480.7 MB, free: 15.61 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3679/0.3701, allocations: 60.72 MB / 0.5288 GB, free: 7.492 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChain): time 0.006555/0.3766, allocations: 5.088 MB / 0.5337 GB, free: 4.055 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001338/0.378, allocations: 0.6094 MB / 0.5343 GB, free: 3.613 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002299/0.3782, allocations: 14.44 kB / 0.5343 GB, free: 3.605 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002616/0.3784, allocations: 80.27 kB / 0.5344 GB, free: 3.562 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001929/0.3786, allocations: 67.69 kB / 0.5345 GB, free: 3.512 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005475/0.3792, allocations: 185.1 kB / 0.5346 GB, free: 3.406 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000446/0.3796, allocations: 459.1 kB / 0.5351 GB, free: 3.18 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002755/0.3799, allocations: 155.4 kB / 0.5352 GB, free: 3.09 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002126/0.3801, allocations: 193.4 kB / 0.5354 GB, free: 2.992 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002388/0.3804, allocations: 177 kB / 0.5356 GB, free: 2.902 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.142e-05/0.3804, allocations: 44.47 kB / 0.5356 GB, free: 2.902 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001081/0.3805, allocations: 54.73 kB / 0.5357 GB, free: 2.898 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001012/0.3806, allocations: 108.3 kB / 0.5358 GB, free: 2.828 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001747/0.3808, allocations: 171.6 kB / 0.5359 GB, free: 2.727 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000534/0.3813, allocations: 461.8 kB / 0.5364 GB, free: 2.516 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.411e-06/0.3814, allocations: 4.734 kB / 0.5364 GB, free: 2.512 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.724e-06/0.3814, allocations: 1.094 kB / 0.5364 GB, free: 2.512 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.606e-06/0.3814, allocations: 0 / 0.5364 GB, free: 2.512 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.001076/0.3824, allocations: 0.6259 MB / 0.537 GB, free: 2.051 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.029e-05/0.3825, allocations: 8.656 kB / 0.537 GB, free: 2.051 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.359e-05/0.3826, allocations: 81.95 kB / 0.5371 GB, free: 1.984 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002884/0.3828, allocations: 66.73 kB / 0.5372 GB, free: 1.961 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004077/0.3833, allocations: 271.6 kB / 0.5374 GB, free: 1.746 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.18e-05/0.3833, allocations: 43.53 kB / 0.5375 GB, free: 1.723 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.899e-05/0.3834, allocations: 47.81 kB / 0.5375 GB, free: 1.707 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006584/0.384, allocations: 462.7 kB / 0.5379 GB, free: 1.402 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.507e-05/0.384, allocations: 3.938 kB / 0.5379 GB, free: 1.398 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.294e-05/0.3841, allocations: 20.47 kB / 0.538 GB, free: 1.383 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.307e-05/0.3841, allocations: 10.56 kB / 0.538 GB, free: 1.383 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004826/0.3846, allocations: 245 kB / 0.5382 GB, free: 1.27 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001677/0.3862, allocations: 1.47 MB / 0.5396 GB, free: 15.99 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005705/0.3868, allocations: 249.3 kB / 0.5399 GB, free: 15.8 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002722/0.3871, allocations: 149.6 kB / 0.54 GB, free: 15.71 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.641e-05/0.3871, allocations: 3.125 kB / 0.54 GB, free: 15.71 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.643e-05/0.3871, allocations: 38.53 kB / 0.5401 GB, free: 15.66 MB / 398.1 MB Notification: Performance of pre-optimization done (n=28): time 1.773e-06/0.3871, allocations: 4 kB / 0.5401 GB, free: 15.66 MB / 398.1 MB Notification: Performance of matching and sorting (n=28): time 0.0008001/0.3879, allocations: 350.8 kB / 0.5404 GB, free: 15.48 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.885e-05/0.388, allocations: 158.3 kB / 0.5406 GB, free: 15.29 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002981/0.3883, allocations: 276.2 kB / 0.5408 GB, free: 15.09 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.476e-05/0.3884, allocations: 39.2 kB / 0.5409 GB, free: 15.05 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001835/0.3886, allocations: 222.6 kB / 0.5411 GB, free: 14.86 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.052e-05/0.3886, allocations: 84.08 kB / 0.5411 GB, free: 14.79 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001473/0.3888, allocations: 106 kB / 0.5413 GB, free: 14.71 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001614/0.389, allocations: 341.7 kB / 0.5416 GB, free: 14.38 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003088/0.3893, allocations: 139 kB / 0.5417 GB, free: 14.31 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004071/0.3897, allocations: 273.7 kB / 0.542 GB, free: 14.08 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005846/0.3903, allocations: 343.2 kB / 0.5423 GB, free: 13.83 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.587e-06/0.3903, allocations: 1.188 kB / 0.5423 GB, free: 13.83 MB / 398.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0008443/0.3911, allocations: 453.2 kB / 0.5427 GB, free: 13.6 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.82e-05/0.3911, allocations: 9.188 kB / 0.5427 GB, free: 13.6 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.628e-06/0.3911, allocations: 3.375 kB / 0.5427 GB, free: 13.6 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.339e-05/0.3912, allocations: 13.88 kB / 0.5428 GB, free: 13.59 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002637/0.3914, allocations: 65.69 kB / 0.5428 GB, free: 13.57 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.47e-05/0.3914, allocations: 9.609 kB / 0.5428 GB, free: 13.57 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002745/0.3917, allocations: 57.42 kB / 0.5429 GB, free: 13.53 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.621e-05/0.3917, allocations: 22.2 kB / 0.5429 GB, free: 13.52 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.0002241/0.392, allocations: 189 kB / 0.5431 GB, free: 13.36 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001103/0.3921, allocations: 29.47 kB / 0.5431 GB, free: 13.34 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.382e-05/0.3922, allocations: 32.64 kB / 0.5431 GB, free: 13.31 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.686e-06/0.3922, allocations: 11.81 kB / 0.5432 GB, free: 13.3 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.396e-06/0.3922, allocations: 1.094 kB / 0.5432 GB, free: 13.3 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.011e-06/0.3922, allocations: 1.875 kB / 0.5432 GB, free: 13.3 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001766/0.394, allocations: 1.116 MB / 0.5442 GB, free: 12.35 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.244e-06/0.394, allocations: 3.219 kB / 0.5442 GB, free: 12.35 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002059/0.3942, allocations: 42.91 kB / 0.5443 GB, free: 12.34 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.426e-06/0.3942, allocations: 4.312 kB / 0.5443 GB, free: 12.34 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.01e-05/0.3942, allocations: 14.56 kB / 0.5443 GB, free: 12.33 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.394e-06/0.3942, allocations: 8.656 kB / 0.5443 GB, free: 12.32 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.774e-06/0.3942, allocations: 7.922 kB / 0.5443 GB, free: 12.32 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009076/0.3951, allocations: 0.5311 MB / 0.5448 GB, free: 11.91 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001314/0.3953, allocations: 59.19 kB / 0.5449 GB, free: 11.87 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.041e-05/0.3953, allocations: 18.28 kB / 0.5449 GB, free: 11.86 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002042/0.3955, allocations: 17.58 kB / 0.5449 GB, free: 11.85 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.861e-05/0.3956, allocations: 41.11 kB / 0.545 GB, free: 11.82 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.793e-05/0.3956, allocations: 9.25 kB / 0.545 GB, free: 11.82 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002199/0.3959, allocations: 181 kB / 0.5452 GB, free: 11.7 MB / 398.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3959, allocations: 0 / 0.5452 GB, free: 11.7 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004875/0.3963, allocations: 104.1 kB / 0.5453 GB, free: 11.67 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.001244/0.3976, allocations: 1.092 MB / 0.5463 GB, free: 10.71 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006995/0.3983, allocations: 315 kB / 0.5466 GB, free: 10.57 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.367e-06/0.3983, allocations: 0 / 0.5466 GB, free: 10.57 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002751/0.3986, allocations: 133.8 kB / 0.5467 GB, free: 10.52 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005854/0.3991, allocations: 98.17 kB / 0.5468 GB, free: 10.46 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004945/0.4041, allocations: 3.369 MB / 0.5501 GB, free: 7.855 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002552/0.4043, allocations: 198 kB / 0.5503 GB, free: 7.719 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002241/0.4046, allocations: 52.56 kB / 0.5504 GB, free: 7.695 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001952/0.4048, allocations: 118.2 kB / 0.5505 GB, free: 7.602 MB / 398.1 MB Notification: Performance of SimCode: time 7.71e-07/0.4048, allocations: 3.938 kB / 0.5505 GB, free: 7.598 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03821/0.443, allocations: 7.317 MB / 0.5576 GB, free: 2.73 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.33/11.78, allocations: 3.984 kB / 0.5576 GB, free: 2.727 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 & python3 -m fmpy simulate --output-file BusinessSimulation_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_BusinessSimulation_Examples_SimpleProductionChain.fmu > BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.833523565903306] Failed to read output from testmodel.py, exit status != 0: 11.887525346130133 11.904727591 11.520059276 Calling exit ...