Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple.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.001262/0.001262, allocations: 99.66 kB / 18.94 MB, free: 2.84 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.00149/0.00149, allocations: 221.1 kB / 22.24 MB, free: 5.105 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.399/1.399, allocations: 230.6 MB / 256 MB, free: 7.828 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo): time 0.002536/0.002536, allocations: 285.1 kB / 312.7 MB, free: 2.656 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo): time 1.205/1.205, allocations: 180.6 MB / 0.5369 GB, free: 14.59 MB / 382.1 MB " [Timeout remaining time 179] Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/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(BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple,fileNamePrefix="BuildingSystems_BuildingSystems_Technologies_ElectricalStorages_Examples_BatterySimple",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple,fileNamePrefix="BuildingSystems_BuildingSystems_Technologies_ElectricalStorages_Examples_BatterySimple",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: NcDataReader2 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: BuildingSystems 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.003195/0.003195, allocations: 98.66 kB / 0.7395 GB, free: 28.18 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1855/0.1887, allocations: 95.39 MB / 0.8326 GB, free: 8.422 MB / 0.5763 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple): time 0.003421/0.1921, allocations: 1.891 MB / 0.8345 GB, free: 6.516 MB / 0.5763 GB Notification: Performance of NFInst.instExpressions: time 0.001634/0.1938, allocations: 0.8582 MB / 0.8353 GB, free: 5.648 MB / 0.5763 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001153/0.1939, allocations: 7.938 kB / 0.8353 GB, free: 5.641 MB / 0.5763 GB Notification: Performance of NFTyping.typeComponents: time 0.0002324/0.1941, allocations: 47.92 kB / 0.8353 GB, free: 5.594 MB / 0.5763 GB Notification: Performance of NFTyping.typeBindings: time 0.0001185/0.1942, allocations: 51.52 kB / 0.8354 GB, free: 5.543 MB / 0.5763 GB Notification: Performance of NFTyping.typeClassSections: time 0.000315/0.1946, allocations: 99.75 kB / 0.8355 GB, free: 5.445 MB / 0.5763 GB Notification: Performance of NFFlatten.flatten: time 0.0002443/0.1948, allocations: 183.3 kB / 0.8357 GB, free: 5.266 MB / 0.5763 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001154/0.1949, allocations: 21.67 kB / 0.8357 GB, free: 5.238 MB / 0.5763 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001655/0.1951, allocations: 95.56 kB / 0.8358 GB, free: 5.145 MB / 0.5763 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001506/0.1952, allocations: 75.67 kB / 0.8359 GB, free: 5.07 MB / 0.5763 GB Notification: Performance of NFPackage.collectConstants: time 3.068e-05/0.1953, allocations: 12 kB / 0.8359 GB, free: 5.059 MB / 0.5763 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001597/0.1954, allocations: 63.94 kB / 0.8359 GB, free: 4.996 MB / 0.5763 GB Notification: Performance of NFScalarize.scalarize: time 4.358e-05/0.1955, allocations: 23.86 kB / 0.8359 GB, free: 4.973 MB / 0.5763 GB Notification: Performance of NFVerifyModel.verify: time 7.79e-05/0.1955, allocations: 55.72 kB / 0.836 GB, free: 4.918 MB / 0.5763 GB Notification: Performance of NFConvertDAE.convert: time 0.0003012/0.1959, allocations: 191.2 kB / 0.8362 GB, free: 4.73 MB / 0.5763 GB Notification: Performance of FrontEnd - DAE generated: time 4.95e-06/0.1959, allocations: 0 / 0.8362 GB, free: 4.73 MB / 0.5763 GB Notification: Performance of FrontEnd: time 3.596e-06/0.1959, allocations: 4 kB / 0.8362 GB, free: 4.727 MB / 0.5763 GB Notification: Performance of Transformations before backend: time 5.64e-06/0.1959, allocations: 4 kB / 0.8362 GB, free: 4.723 MB / 0.5763 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.0009598/0.1968, allocations: 446.9 kB / 0.8366 GB, free: 4.25 MB / 0.5763 GB Notification: Performance of prepare preOptimizeDAE: time 4.297e-05/0.1969, allocations: 13.34 kB / 0.8366 GB, free: 4.238 MB / 0.5763 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.958e-05/0.1969, allocations: 42.73 kB / 0.8367 GB, free: 4.188 MB / 0.5763 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002716/0.1972, allocations: 36.77 kB / 0.8367 GB, free: 4.152 MB / 0.5763 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002666/0.1975, allocations: 174.2 kB / 0.8369 GB, free: 3.957 MB / 0.5763 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.848e-05/0.1975, allocations: 12.36 kB / 0.8369 GB, free: 3.945 MB / 0.5763 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.225e-05/0.1975, allocations: 12.38 kB / 0.8369 GB, free: 3.934 MB / 0.5763 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003083/0.1978, allocations: 128.1 kB / 0.837 GB, free: 3.805 MB / 0.5763 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.396e-05/0.1978, allocations: 0 / 0.837 GB, free: 3.805 MB / 0.5763 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.473e-05/0.1979, allocations: 0 / 0.837 GB, free: 3.805 MB / 0.5763 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.923e-06/0.1979, allocations: 4 kB / 0.837 GB, free: 3.801 MB / 0.5763 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000315/0.1982, allocations: 99.86 kB / 0.8371 GB, free: 3.703 MB / 0.5763 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007054/0.1989, allocations: 363.8 kB / 0.8375 GB, free: 3.305 MB / 0.5763 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000366/0.1992, allocations: 126.4 kB / 0.8376 GB, free: 3.172 MB / 0.5763 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001813/0.1994, allocations: 68.81 kB / 0.8376 GB, free: 3.102 MB / 0.5763 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004677/0.1999, allocations: 67.86 kB / 0.8377 GB, free: 3.035 MB / 0.5763 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003929/0.2003, allocations: 123.3 kB / 0.8378 GB, free: 2.902 MB / 0.5763 GB Notification: Performance of pre-optimization done (n=16): time 1.824e-06/0.2003, allocations: 0 / 0.8378 GB, free: 2.902 MB / 0.5763 GB Notification: Performance of matching and sorting (n=16): time 0.0006795/0.201, allocations: 240.2 kB / 0.8381 GB, free: 2.664 MB / 0.5763 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.864e-05/0.201, allocations: 55.41 kB / 0.8381 GB, free: 2.598 MB / 0.5763 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001992/0.2012, allocations: 185.1 kB / 0.8383 GB, free: 2.41 MB / 0.5763 GB Notification: Performance of collectPreVariables (initialization): time 3.353e-05/0.2013, allocations: 33.7 kB / 0.8383 GB, free: 2.371 MB / 0.5763 GB Notification: Performance of collectInitialEqns (initialization): time 9.809e-05/0.2014, allocations: 112.1 kB / 0.8384 GB, free: 2.258 MB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 6.217e-05/0.2014, allocations: 63.47 kB / 0.8385 GB, free: 2.195 MB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.683e-05/0.2015, allocations: 41.69 kB / 0.8385 GB, free: 2.148 MB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 0.0001777/0.2017, allocations: 334.7 kB / 0.8388 GB, free: 1.812 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002176/0.2019, allocations: 102.5 kB / 0.8389 GB, free: 1.703 MB / 0.5763 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002288/0.2021, allocations: 114.9 kB / 0.8391 GB, free: 1.578 MB / 0.5763 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.603/2.805, allocations: 378.8 MB / 1.209 GB, free: 11.79 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.569e-06/2.805, allocations: 0 / 1.209 GB, free: 11.79 MB / 0.795 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005868/2.806, allocations: 289.7 kB / 1.209 GB, free: 11.56 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 4.132e-05/2.806, allocations: 29.7 kB / 1.209 GB, free: 11.52 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.376e-06/2.806, allocations: 4 kB / 1.209 GB, free: 11.52 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.58e-05/2.806, allocations: 0 / 1.209 GB, free: 11.52 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000239/2.806, allocations: 44.91 kB / 1.209 GB, free: 11.48 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.274e-06/2.806, allocations: 0 / 1.209 GB, free: 11.48 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001951/2.807, allocations: 24.81 kB / 1.209 GB, free: 11.46 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.867e-05/2.807, allocations: 8 kB / 1.209 GB, free: 11.46 MB / 0.795 GB Warning: Assuming fixed start value for the following 4 variables: battery.E_charged:VARIABLE(start = 0.0 unit = \"J\" fixed = true ) \"Total energy charged to the battery\" type: Real battery.E_discharged:VARIABLE(start = 0.0 unit = \"J\" fixed = true ) \"Total energy taken from the battery\" type: Real battery.EAva:VARIABLE(start = 0.315 * battery.SOC_start * battery.E_nominal unit = \"J\" fixed = true ) \"Available charge of the battery\" type: Real battery.EBou:VARIABLE(start = 0.685 * battery.SOC_start * battery.E_nominal unit = \"J\" fixed = true ) \"Bound charge of the battery\" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 5 ($PRE.gain.count,$PRE.gain.T_start,gain.count,gain.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 1 * 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.0002273/2.807, allocations: 155.9 kB / 1.209 GB, free: 11.32 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.715e-05/2.807, allocations: 19.86 kB / 1.209 GB, free: 11.31 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006126/2.807, allocations: 240.5 kB / 1.21 GB, free: 11.14 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.721e-06/2.807, allocations: 4 kB / 1.21 GB, free: 11.13 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/2.807, allocations: 2.75 kB / 1.21 GB, free: 11.13 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.917e-06/2.807, allocations: 0 / 1.21 GB, free: 11.13 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002253/2.808, allocations: 206.9 kB / 1.21 GB, free: 10.93 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.734e-06/2.808, allocations: 0 / 1.21 GB, free: 10.93 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002456/2.808, allocations: 43.28 kB / 1.21 GB, free: 10.89 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.146e-06/2.808, allocations: 0 / 1.21 GB, free: 10.89 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.726e-05/2.808, allocations: 4 kB / 1.21 GB, free: 10.88 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.498e-06/2.808, allocations: 4 kB / 1.21 GB, free: 10.88 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.263e-06/2.808, allocations: 0 / 1.21 GB, free: 10.88 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006635/2.809, allocations: 316.9 kB / 1.21 GB, free: 10.64 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 8.951e-05/2.809, allocations: 34.05 kB / 1.21 GB, free: 10.61 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.358e-05/2.809, allocations: 7.625 kB / 1.21 GB, free: 10.61 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001495/2.809, allocations: 13.06 kB / 1.21 GB, free: 10.6 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.152e-05/2.809, allocations: 20.44 kB / 1.21 GB, free: 10.58 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.92e-05/2.809, allocations: 13.77 kB / 1.21 GB, free: 10.57 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.000112/2.809, allocations: 131 kB / 1.21 GB, free: 10.46 MB / 0.795 GB Notification: Performance of sort global known variables: time 7e-08/2.809, allocations: 0 / 1.21 GB, free: 10.46 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002761/2.809, allocations: 57.47 kB / 1.211 GB, free: 10.41 MB / 0.795 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (battery.EAva,battery.EBou,battery.E_charged,battery.E_discharged) * Number of discrete variables: 3 ($whenCondition1,gain.T_start,gain.count) * Number of discrete states: 1 (gain.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001047/2.81, allocations: 0.8589 MB / 1.211 GB, free: 9.605 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0005144/2.811, allocations: 247 kB / 1.212 GB, free: 9.383 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/2.811, allocations: 0 / 1.212 GB, free: 9.383 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0002045/2.811, allocations: 84.45 kB / 1.212 GB, free: 9.316 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002831/2.811, allocations: 38.83 kB / 1.212 GB, free: 9.297 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003267/2.815, allocations: 2.42 MB / 1.214 GB, free: 7 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001157/2.815, allocations: 108.1 kB / 1.214 GB, free: 6.871 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0001355/2.815, allocations: 32.86 kB / 1.214 GB, free: 6.844 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001144/2.815, allocations: 55.42 kB / 1.214 GB, free: 6.789 MB / 0.795 GB Notification: Performance of SimCode: time 2.81e-07/2.815, allocations: 0 / 1.214 GB, free: 6.789 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03571/2.851, allocations: 5.392 MB / 1.22 GB, free: 1.602 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.83/13.68, allocations: 3.984 kB / 1.22 GB, free: 1.598 MB / 0.795 GB " [Timeout remaining time 646] (rm -f BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple.pipe ; mkfifo BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple.pipe >> ../files/BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple_res.csv --start-time 0 --stop-time 3.1536e+07 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 12614.4 BuildingSystems_BuildingSystems_Technologies_ElectricalStorages_Examples_BatterySimple.fmu > BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 26.210239668842405] Failed to read output from testmodel.py, exit status != 0: 13.789907456375659 13.816658628 13.615939383 Calling exit ...