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.001866/0.001866, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.002306/0.002306, allocations: 215.5 kB / 22.25 MB, free: 5.258 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.486/1.486, allocations: 230.6 MB / 256 MB, free: 7.793 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.00268/0.00268, allocations: 279.4 kB / 312.7 MB, free: 2.586 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.303/1.303, allocations: 180.6 MB / 0.5369 GB, free: 14.53 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: translateModel(BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple") translateModel(BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple") [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.00302/0.00302, allocations: 108.5 kB / 0.74 GB, free: 28.18 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1814/0.1844, allocations: 95.38 MB / 0.8331 GB, free: 7.824 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple): time 0.003474/0.1879, allocations: 1.897 MB / 0.8349 GB, free: 5.91 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.00176/0.1897, allocations: 0.8543 MB / 0.8358 GB, free: 5.047 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.709e-05/0.1898, allocations: 11.88 kB / 0.8358 GB, free: 5.035 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0002168/0.19, allocations: 43.7 kB / 0.8358 GB, free: 4.992 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0001109/0.1901, allocations: 55.56 kB / 0.8359 GB, free: 4.938 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002944/0.1904, allocations: 91.77 kB / 0.836 GB, free: 4.848 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0002408/0.1906, allocations: 195.2 kB / 0.8362 GB, free: 4.656 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001028/0.1907, allocations: 17.67 kB / 0.8362 GB, free: 4.633 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001605/0.1909, allocations: 87.64 kB / 0.8363 GB, free: 4.547 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000137/0.191, allocations: 79.66 kB / 0.8363 GB, free: 4.469 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 2.849e-05/0.1911, allocations: 8 kB / 0.8363 GB, free: 4.461 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000137/0.1912, allocations: 59.95 kB / 0.8364 GB, free: 4.402 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 3.995e-05/0.1912, allocations: 31.84 kB / 0.8364 GB, free: 4.371 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 8.011e-05/0.1913, allocations: 63.66 kB / 0.8365 GB, free: 4.309 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0002778/0.1916, allocations: 191.2 kB / 0.8367 GB, free: 4.121 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.1916, allocations: 0 / 0.8367 GB, free: 4.121 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.363e-06/0.1916, allocations: 0 / 0.8367 GB, free: 4.121 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 5.611e-06/0.1916, allocations: 0 / 0.8367 GB, free: 4.121 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.0009222/0.1925, allocations: 451 kB / 0.8371 GB, free: 3.645 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.754e-05/0.1926, allocations: 9.938 kB / 0.8371 GB, free: 3.637 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002757/0.1929, allocations: 40.77 kB / 0.8372 GB, free: 3.598 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002637/0.1931, allocations: 178.2 kB / 0.8373 GB, free: 3.398 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.808e-05/0.1931, allocations: 8.375 kB / 0.8373 GB, free: 3.391 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.128e-05/0.1932, allocations: 8.375 kB / 0.8373 GB, free: 3.383 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003203/0.1935, allocations: 132.2 kB / 0.8375 GB, free: 3.25 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.258e-05/0.1935, allocations: 4 kB / 0.8375 GB, free: 3.246 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.448e-05/0.1935, allocations: 0 / 0.8375 GB, free: 3.246 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.559e-06/0.1935, allocations: 0 / 0.8375 GB, free: 3.246 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003218/0.1938, allocations: 107.9 kB / 0.8376 GB, free: 3.141 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000613/0.1945, allocations: 328.3 kB / 0.8379 GB, free: 2.789 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003496/0.1948, allocations: 124.3 kB / 0.838 GB, free: 2.66 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001872/0.195, allocations: 72.81 kB / 0.8381 GB, free: 2.586 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004715/0.1955, allocations: 63.92 kB / 0.8381 GB, free: 2.523 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003236/0.1958, allocations: 127.2 kB / 0.8383 GB, free: 2.387 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=16): time 1.503e-06/0.1958, allocations: 0 / 0.8383 GB, free: 2.387 MB / 0.5762 GB Notification: Performance of matching and sorting (n=16): time 0.0006716/0.1965, allocations: 240 kB / 0.8385 GB, free: 2.148 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.615e-05/0.1965, allocations: 51.41 kB / 0.8385 GB, free: 2.086 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001816/0.1967, allocations: 187.5 kB / 0.8387 GB, free: 1.891 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.875e-05/0.1967, allocations: 29.7 kB / 0.8387 GB, free: 1.855 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 7.788e-05/0.1968, allocations: 104.1 kB / 0.8388 GB, free: 1.75 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 5.899e-05/0.1969, allocations: 63.47 kB / 0.8389 GB, free: 1.688 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.774e-05/0.1969, allocations: 41.69 kB / 0.8389 GB, free: 1.641 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001462/0.1971, allocations: 330.8 kB / 0.8393 GB, free: 1.309 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000229/0.1973, allocations: 102.5 kB / 0.8394 GB, free: 1.199 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002243/0.1975, allocations: 118.7 kB / 0.8395 GB, free: 1.07 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.801/2.998, allocations: 378.8 MB / 1.209 GB, free: 11.22 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.447e-06/2.998, allocations: 0 / 1.209 GB, free: 11.22 MB / 0.795 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005924/2.999, allocations: 286.8 kB / 1.21 GB, free: 10.99 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 4.079e-05/2.999, allocations: 32.05 kB / 1.21 GB, free: 10.96 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.185e-06/2.999, allocations: 7.984 kB / 1.21 GB, free: 10.95 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.541e-05/2.999, allocations: 0 / 1.21 GB, free: 10.95 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002451/2.999, allocations: 43.81 kB / 1.21 GB, free: 10.91 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.104e-06/2.999, allocations: 0 / 1.21 GB, free: 10.91 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001853/2.999, allocations: 30.45 kB / 1.21 GB, free: 10.89 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.951e-05/2.999, allocations: 7.375 kB / 1.21 GB, free: 10.89 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.0002324/3, allocations: 161 kB / 1.21 GB, free: 10.75 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.282e-05/3, allocations: 12.25 kB / 1.21 GB, free: 10.75 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006136/3, allocations: 237.7 kB / 1.21 GB, free: 10.57 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.707e-06/3, allocations: 1.406 kB / 1.21 GB, free: 10.57 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/3, allocations: 4 kB / 1.21 GB, free: 10.56 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/3, allocations: 0 / 1.21 GB, free: 10.56 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002085/3, allocations: 178.8 kB / 1.21 GB, free: 10.39 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/3, allocations: 0 / 1.21 GB, free: 10.39 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002427/3.001, allocations: 46.25 kB / 1.21 GB, free: 10.36 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.234e-06/3.001, allocations: 0 / 1.21 GB, free: 10.36 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.671e-05/3.001, allocations: 5.594 kB / 1.21 GB, free: 10.36 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/3.001, allocations: 4 kB / 1.21 GB, free: 10.35 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/3.001, allocations: 0 / 1.21 GB, free: 10.35 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006957/3.001, allocations: 315.2 kB / 1.211 GB, free: 10.11 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 8.383e-05/3.002, allocations: 37.06 kB / 1.211 GB, free: 10.09 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.148e-05/3.002, allocations: 3.5 kB / 1.211 GB, free: 10.09 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001537/3.002, allocations: 15.61 kB / 1.211 GB, free: 10.07 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.872e-05/3.002, allocations: 19.06 kB / 1.211 GB, free: 10.06 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.702e-05/3.002, allocations: 11.42 kB / 1.211 GB, free: 10.05 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0001091/3.002, allocations: 128.8 kB / 1.211 GB, free: 9.938 MB / 0.795 GB Notification: Performance of sort global known variables: time 1e-07/3.002, allocations: 0 / 1.211 GB, free: 9.938 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002788/3.002, allocations: 63.02 kB / 1.211 GB, free: 9.887 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.0001818/3.002, allocations: 117.4 kB / 1.211 GB, free: 9.773 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0005147/3.003, allocations: 248.5 kB / 1.211 GB, free: 9.551 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/3.003, allocations: 0 / 1.211 GB, free: 9.551 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0002095/3.003, allocations: 78.45 kB / 1.211 GB, free: 9.492 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002742/3.003, allocations: 35.12 kB / 1.211 GB, free: 9.473 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009704/3.004, allocations: 0.5319 MB / 1.212 GB, free: 8.984 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001104/3.004, allocations: 116.1 kB / 1.212 GB, free: 8.852 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0001303/3.005, allocations: 30.66 kB / 1.212 GB, free: 8.828 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.392e-05/3.005, allocations: 27.42 kB / 1.212 GB, free: 8.801 MB / 0.795 GB Notification: Performance of SimCode: time 3.5e-07/3.005, allocations: 3.938 kB / 1.212 GB, free: 8.797 MB / 0.795 GB Notification: Performance of Templates: time 0.006864/3.012, allocations: 2.761 MB / 1.215 GB, free: 6.113 MB / 0.795 GB " [Timeout remaining time 657] make -j1 -f BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple.makefile [Timeout 660] (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 & ./BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 10.099533563479781] Failed to read output from testmodel.py, exit status != 0: 3.019621253013611 3.042067422 2.84606461 Calling exit ...