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.001311/0.001311, allocations: 113 kB / 18.94 MB, free: 2.934 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.001549/0.001549, allocations: 210.2 kB / 22.25 MB, free: 5.086 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.441/1.441, allocations: 230.6 MB / 256 MB, free: 8.047 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.002525/0.002525, allocations: 277.3 kB / 312.7 MB, free: 2.871 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.226/1.226, allocations: 180.6 MB / 0.5369 GB, free: 13.04 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.002888/0.002888, allocations: 99.69 kB / 0.7396 GB, free: 28.32 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1687/0.1715, allocations: 95.38 MB / 0.8327 GB, free: 8.723 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple): time 0.003153/0.1747, allocations: 1.981 MB / 0.8346 GB, free: 6.727 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.001509/0.1762, allocations: 0.9321 MB / 0.8355 GB, free: 5.785 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.312e-05/0.1763, allocations: 7.938 kB / 0.8356 GB, free: 5.777 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0002078/0.1765, allocations: 55.89 kB / 0.8356 GB, free: 5.723 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0001063/0.1766, allocations: 51.62 kB / 0.8357 GB, free: 5.672 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002805/0.1769, allocations: 91.72 kB / 0.8357 GB, free: 5.582 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0002766/0.1772, allocations: 199.3 kB / 0.8359 GB, free: 5.387 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 8.418e-05/0.1772, allocations: 13.67 kB / 0.8359 GB, free: 5.367 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001669/0.1774, allocations: 91.64 kB / 0.836 GB, free: 5.277 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001442/0.1776, allocations: 75.67 kB / 0.8361 GB, free: 5.203 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 2.79e-05/0.1776, allocations: 15.94 kB / 0.8361 GB, free: 5.188 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001317/0.1777, allocations: 59.95 kB / 0.8362 GB, free: 5.129 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 4.703e-05/0.1778, allocations: 31.89 kB / 0.8362 GB, free: 5.098 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 8.336e-05/0.1779, allocations: 75.59 kB / 0.8363 GB, free: 5.023 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0002728/0.1781, allocations: 187.2 kB / 0.8365 GB, free: 4.84 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.1781, allocations: 4 kB / 0.8365 GB, free: 4.836 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.192e-06/0.1781, allocations: 0 / 0.8365 GB, free: 4.836 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 8.947e-06/0.1781, allocations: 4 kB / 0.8365 GB, free: 4.832 MB / 0.5762 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.0008766/0.179, allocations: 439 kB / 0.8369 GB, free: 4.367 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.51e-05/0.179, allocations: 9.344 kB / 0.8369 GB, free: 4.359 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.299e-05/0.1791, allocations: 46.75 kB / 0.8369 GB, free: 4.305 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002534/0.1793, allocations: 32.83 kB / 0.837 GB, free: 4.273 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002526/0.1796, allocations: 182.1 kB / 0.8371 GB, free: 4.07 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.083e-05/0.1796, allocations: 8.375 kB / 0.8371 GB, free: 4.062 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.997e-05/0.1796, allocations: 4.375 kB / 0.8372 GB, free: 4.059 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002923/0.1799, allocations: 132.1 kB / 0.8373 GB, free: 3.926 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.105e-05/0.1799, allocations: 0 / 0.8373 GB, free: 3.926 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.891e-05/0.18, allocations: 7.984 kB / 0.8373 GB, free: 3.918 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.418e-06/0.18, allocations: 4 kB / 0.8373 GB, free: 3.914 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003/0.1803, allocations: 103.9 kB / 0.8374 GB, free: 3.812 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006498/0.1809, allocations: 379.6 kB / 0.8378 GB, free: 3.398 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003628/0.1813, allocations: 138.4 kB / 0.8379 GB, free: 3.254 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001686/0.1814, allocations: 64.83 kB / 0.8379 GB, free: 3.188 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004595/0.1819, allocations: 63.91 kB / 0.838 GB, free: 3.125 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000329/0.1822, allocations: 131.2 kB / 0.8381 GB, free: 2.984 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=16): time 1.583e-06/0.1822, allocations: 0 / 0.8381 GB, free: 2.984 MB / 0.5762 GB Notification: Performance of matching and sorting (n=16): time 0.0006267/0.1829, allocations: 240.8 kB / 0.8384 GB, free: 2.746 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.419e-05/0.1829, allocations: 51.41 kB / 0.8384 GB, free: 2.684 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001767/0.1831, allocations: 189.2 kB / 0.8386 GB, free: 2.492 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.7e-05/0.1831, allocations: 29.7 kB / 0.8386 GB, free: 2.457 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 7.805e-05/0.1832, allocations: 112.1 kB / 0.8387 GB, free: 2.344 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 5.708e-05/0.1832, allocations: 63.47 kB / 0.8388 GB, free: 2.281 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.259e-05/0.1833, allocations: 41.7 kB / 0.8388 GB, free: 2.234 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001411/0.1835, allocations: 334.8 kB / 0.8391 GB, free: 1.898 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001932/0.1837, allocations: 72.75 kB / 0.8392 GB, free: 1.824 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001871/0.1838, allocations: 84.97 kB / 0.8393 GB, free: 1.734 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.608/2.792, allocations: 378.8 MB / 1.209 GB, free: 12.21 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.496e-06/2.792, allocations: 3.562 kB / 1.209 GB, free: 12.21 MB / 0.795 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005835/2.792, allocations: 253.3 kB / 1.209 GB, free: 12.02 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 4.518e-05/2.792, allocations: 33.7 kB / 1.209 GB, free: 11.98 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.763e-06/2.792, allocations: 0 / 1.209 GB, free: 11.98 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.728e-05/2.792, allocations: 5.094 kB / 1.209 GB, free: 11.98 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002421/2.793, allocations: 43.62 kB / 1.21 GB, free: 11.94 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.742e-06/2.793, allocations: 0 / 1.21 GB, free: 11.94 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002032/2.793, allocations: 25.97 kB / 1.21 GB, free: 11.92 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.581e-05/2.793, allocations: 11.94 kB / 1.21 GB, free: 11.91 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.0002297/2.793, allocations: 153.1 kB / 1.21 GB, free: 11.78 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.581e-05/2.793, allocations: 17.62 kB / 1.21 GB, free: 11.77 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005888/2.794, allocations: 239.1 kB / 1.21 GB, free: 11.6 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.372e-06/2.794, allocations: 4 kB / 1.21 GB, free: 11.59 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/2.794, allocations: 3.75 kB / 1.21 GB, free: 11.59 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.116e-06/2.794, allocations: 7.984 kB / 1.21 GB, free: 11.59 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002562/2.794, allocations: 223.8 kB / 1.21 GB, free: 11.36 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/2.794, allocations: 0 / 1.21 GB, free: 11.36 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000245/2.794, allocations: 42.92 kB / 1.21 GB, free: 11.33 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.258e-06/2.794, allocations: 0 / 1.21 GB, free: 11.33 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.381e-05/2.794, allocations: 10.92 kB / 1.21 GB, free: 11.32 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.535e-06/2.794, allocations: 0 / 1.21 GB, free: 11.32 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/2.794, allocations: 0 / 1.21 GB, free: 11.32 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006913/2.795, allocations: 316.5 kB / 1.211 GB, free: 11.08 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 9.087e-05/2.795, allocations: 35.91 kB / 1.211 GB, free: 11.05 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.035e-05/2.795, allocations: 9.266 kB / 1.211 GB, free: 11.05 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001582/2.795, allocations: 10.94 kB / 1.211 GB, free: 11.04 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.689e-05/2.795, allocations: 23.58 kB / 1.211 GB, free: 11.02 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.485e-05/2.795, allocations: 4 kB / 1.211 GB, free: 11.02 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0001303/2.795, allocations: 138.7 kB / 1.211 GB, free: 10.9 MB / 0.795 GB Notification: Performance of sort global known variables: time 1e-07/2.795, allocations: 0 / 1.211 GB, free: 10.9 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0003148/2.796, allocations: 57.19 kB / 1.211 GB, free: 10.86 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.001147/2.797, allocations: 0.8631 MB / 1.212 GB, free: 10.05 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0005269/2.797, allocations: 217.4 kB / 1.212 GB, free: 9.867 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/2.797, allocations: 0 / 1.212 GB, free: 9.867 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0002076/2.798, allocations: 80.7 kB / 1.212 GB, free: 9.805 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003129/2.798, allocations: 38.45 kB / 1.212 GB, free: 9.785 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003412/2.801, allocations: 2.297 MB / 1.214 GB, free: 7.645 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004008/2.802, allocations: 0.7242 MB / 1.215 GB, free: 6.891 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0001463/2.802, allocations: 34.47 kB / 1.215 GB, free: 6.863 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001334/2.802, allocations: 63.34 kB / 1.215 GB, free: 6.801 MB / 0.795 GB Notification: Performance of SimCode: time 7.72e-07/2.802, allocations: 0 / 1.215 GB, free: 6.801 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03359/2.836, allocations: 4.941 MB / 1.22 GB, free: 2.035 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.85/13.69, allocations: 12.98 kB / 1.22 GB, free: 2.027 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.774216702997364] Failed to read output from testmodel.py, exit status != 0: 13.79260974099816 13.808872057 13.6277554 Calling exit ...