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.001483/0.001483, allocations: 108.7 kB / 16.46 MB, free: 6.453 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.001587/0.001587, allocations: 216.2 kB / 19.43 MB, free: 3.625 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.387/1.387, allocations: 230.6 MB / 252.8 MB, free: 8.953 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002423/0.002423, allocations: 279.5 kB / 309.1 MB, free: 3.977 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.219/1.219, allocations: 180.9 MB / 0.5333 GB, free: 13.85 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 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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.002852/0.002852, allocations: 105.1 kB / 0.7342 GB, free: 28.28 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1727/0.1756, allocations: 95.35 MB / 0.8273 GB, free: 9.949 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple): time 0.003153/0.1787, allocations: 1.964 MB / 0.8292 GB, free: 7.969 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.001525/0.1803, allocations: 0.9243 MB / 0.8301 GB, free: 7.035 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.516e-05/0.1804, allocations: 11.88 kB / 0.8302 GB, free: 7.023 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0002114/0.1806, allocations: 51.95 kB / 0.8302 GB, free: 6.973 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0001088/0.1807, allocations: 47.58 kB / 0.8302 GB, free: 6.926 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003048/0.181, allocations: 99.75 kB / 0.8303 GB, free: 6.828 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0002297/0.1812, allocations: 187.3 kB / 0.8305 GB, free: 6.645 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 9.177e-05/0.1813, allocations: 17.48 kB / 0.8305 GB, free: 6.625 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001548/0.1815, allocations: 95.56 kB / 0.8306 GB, free: 6.531 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001332/0.1816, allocations: 79.67 kB / 0.8307 GB, free: 6.453 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 2.455e-05/0.1816, allocations: 11.94 kB / 0.8307 GB, free: 6.441 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001319/0.1818, allocations: 67.94 kB / 0.8308 GB, free: 6.375 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 3.831e-05/0.1818, allocations: 27.91 kB / 0.8308 GB, free: 6.348 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 8.263e-05/0.1819, allocations: 75.59 kB / 0.8309 GB, free: 6.273 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.000284/0.1822, allocations: 195.1 kB / 0.8311 GB, free: 6.082 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.476e-06/0.1822, allocations: 0 / 0.8311 GB, free: 6.082 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.333e-06/0.1822, allocations: 0 / 0.8311 GB, free: 6.082 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 5.701e-06/0.1822, allocations: 0 / 0.8311 GB, free: 6.082 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.0009554/0.1831, allocations: 0.504 MB / 0.8316 GB, free: 5.523 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.651e-05/0.1832, allocations: 16.03 kB / 0.8316 GB, free: 5.508 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.869e-05/0.1832, allocations: 38.75 kB / 0.8316 GB, free: 5.461 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000269/0.1835, allocations: 28.83 kB / 0.8316 GB, free: 5.434 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002657/0.1838, allocations: 236.6 kB / 0.8319 GB, free: 5.164 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.679e-05/0.1838, allocations: 8.375 kB / 0.8319 GB, free: 5.156 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.757e-05/0.1838, allocations: 16.31 kB / 0.8319 GB, free: 5.141 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003297/0.1841, allocations: 126.7 kB / 0.832 GB, free: 5.012 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.288e-05/0.1842, allocations: 4 kB / 0.832 GB, free: 5.008 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.863e-05/0.1842, allocations: 3.984 kB / 0.832 GB, free: 5.004 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.312e-06/0.1842, allocations: 4 kB / 0.832 GB, free: 5 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003296/0.1845, allocations: 95.92 kB / 0.8321 GB, free: 4.906 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007017/0.1852, allocations: 408.6 kB / 0.8325 GB, free: 4.457 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00037/0.1856, allocations: 130.4 kB / 0.8326 GB, free: 4.32 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001891/0.1858, allocations: 69.66 kB / 0.8327 GB, free: 4.25 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006755/0.1864, allocations: 445.5 kB / 0.8331 GB, free: 3.723 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003938/0.1868, allocations: 133.5 kB / 0.8332 GB, free: 3.582 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=16): time 1.683e-06/0.1868, allocations: 0 / 0.8332 GB, free: 3.582 MB / 0.5762 GB Notification: Performance of matching and sorting (n=16): time 0.0007008/0.1875, allocations: 241.3 kB / 0.8335 GB, free: 3.34 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.402e-05/0.1876, allocations: 55.41 kB / 0.8335 GB, free: 3.273 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001816/0.1878, allocations: 184.5 kB / 0.8337 GB, free: 3.086 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 3.008e-05/0.1878, allocations: 37.7 kB / 0.8337 GB, free: 3.043 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 7.708e-05/0.1879, allocations: 104.1 kB / 0.8338 GB, free: 2.938 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 6.249e-05/0.1879, allocations: 59.48 kB / 0.8339 GB, free: 2.879 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.399e-05/0.188, allocations: 41.69 kB / 0.8339 GB, free: 2.832 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001455/0.1882, allocations: 330.8 kB / 0.8342 GB, free: 2.5 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002143/0.1884, allocations: 76.8 kB / 0.8343 GB, free: 2.422 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002112/0.1886, allocations: 88.59 kB / 0.8344 GB, free: 2.328 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.596/2.785, allocations: 378.8 MB / 1.204 GB, free: 13.35 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.238e-06/2.785, allocations: 0 / 1.204 GB, free: 13.35 MB / 0.795 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005857/2.785, allocations: 252.2 kB / 1.205 GB, free: 13.16 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 4.659e-05/2.785, allocations: 35.48 kB / 1.205 GB, free: 13.12 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.895e-06/2.785, allocations: 3.938 kB / 1.205 GB, free: 13.12 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.031e-05/2.785, allocations: 4 kB / 1.205 GB, free: 13.11 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002382/2.785, allocations: 46.3 kB / 1.205 GB, free: 13.07 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.052e-05/2.785, allocations: 4.781 kB / 1.205 GB, free: 13.07 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001927/2.786, allocations: 25.53 kB / 1.205 GB, free: 13.05 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.929e-05/2.786, allocations: 4 kB / 1.205 GB, free: 13.05 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.0002301/2.786, allocations: 153.4 kB / 1.205 GB, free: 12.91 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.863e-05/2.786, allocations: 20.33 kB / 1.205 GB, free: 12.91 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006243/2.787, allocations: 241.3 kB / 1.205 GB, free: 12.73 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.251e-06/2.787, allocations: 4 kB / 1.205 GB, free: 12.72 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.207e-06/2.787, allocations: 0 / 1.205 GB, free: 12.72 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.19e-06/2.787, allocations: 0 / 1.205 GB, free: 12.72 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003166/2.787, allocations: 256.3 kB / 1.205 GB, free: 12.46 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.886e-06/2.787, allocations: 3.062 kB / 1.205 GB, free: 12.46 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002493/2.787, allocations: 41.28 kB / 1.205 GB, free: 12.43 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.045e-06/2.787, allocations: 4 kB / 1.205 GB, free: 12.42 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.101e-05/2.787, allocations: 7 kB / 1.205 GB, free: 12.42 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.823e-06/2.787, allocations: 0 / 1.205 GB, free: 12.42 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.263e-06/2.787, allocations: 0 / 1.205 GB, free: 12.42 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007206/2.788, allocations: 317.6 kB / 1.206 GB, free: 12.18 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000119/2.788, allocations: 119.4 kB / 1.206 GB, free: 12.06 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.053e-05/2.788, allocations: 4 kB / 1.206 GB, free: 12.05 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001635/2.788, allocations: 15.23 kB / 1.206 GB, free: 12.04 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.137e-05/2.788, allocations: 15.3 kB / 1.206 GB, free: 12.03 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.867e-05/2.788, allocations: 7.984 kB / 1.206 GB, free: 12.02 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0001131/2.788, allocations: 131.6 kB / 1.206 GB, free: 11.91 MB / 0.795 GB Notification: Performance of sort global known variables: time 8e-08/2.788, allocations: 0 / 1.206 GB, free: 11.91 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002899/2.789, allocations: 57.81 kB / 1.206 GB, free: 11.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.001149/2.79, allocations: 0.865 MB / 1.207 GB, free: 11.05 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0005211/2.79, allocations: 212.5 kB / 1.207 GB, free: 10.88 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/2.79, allocations: 4.125 kB / 1.207 GB, free: 10.87 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0002313/2.791, allocations: 81.89 kB / 1.207 GB, free: 10.81 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002896/2.791, allocations: 39.47 kB / 1.207 GB, free: 10.79 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003446/2.794, allocations: 2.317 MB / 1.209 GB, free: 8.594 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005122/2.795, allocations: 0.726 MB / 1.21 GB, free: 7.844 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.000143/2.795, allocations: 29.86 kB / 1.21 GB, free: 7.816 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001371/2.795, allocations: 55.41 kB / 1.21 GB, free: 7.762 MB / 0.795 GB Notification: Performance of SimCode: time 5.11e-07/2.795, allocations: 0 / 1.21 GB, free: 7.762 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03057/2.826, allocations: 4.736 MB / 1.215 GB, free: 3.211 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.962/10.79, allocations: 5.312 kB / 1.215 GB, free: 3.207 MB / 0.795 GB " [Timeout remaining time 649] (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: 23.53276608278975] Failed to read output from testmodel.py, exit status != 0: 10.85767123894766 10.871840461 10.686869441 Calling exit ...