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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple") translateModel(BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00175/0.00175, allocations: 111.3 kB / 15.23 MB, free: 0.6406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002/0.002, allocations: 198.1 kB / 16.14 MB, free: 6.715 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.452/1.452, allocations: 222.9 MB / 239.8 MB, free: 4.598 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002615/0.002615, allocations: 283 kB / 290.2 MB, free: 2.203 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.095/1.095, allocations: 178.6 MB / 0.5068 GB, free: 4.746 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002787/0.002788, allocations: 98.66 kB / 0.6057 GB, free: 25.04 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1753/0.1782, allocations: 89.15 MB / 0.6928 GB, free: 4.805 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple): time 0.003196/0.1814, allocations: 2.001 MB / 0.6947 GB, free: 2.797 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001387/0.1828, allocations: 0.8676 MB / 0.6956 GB, free: 1.926 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.139e-05/0.1829, allocations: 7.938 kB / 0.6956 GB, free: 1.918 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000215/0.1831, allocations: 44.39 kB / 0.6956 GB, free: 1.875 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001012/0.1832, allocations: 47.64 kB / 0.6957 GB, free: 1.828 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002244/0.1835, allocations: 75.84 kB / 0.6958 GB, free: 1.754 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001943/0.1837, allocations: 175.4 kB / 0.6959 GB, free: 1.582 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.89e-05/0.1838, allocations: 17.56 kB / 0.6959 GB, free: 1.566 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001443/0.1839, allocations: 91.5 kB / 0.696 GB, free: 1.477 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001221/0.1841, allocations: 67.69 kB / 0.6961 GB, free: 1.41 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.473e-05/0.1841, allocations: 8 kB / 0.6961 GB, free: 1.402 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001197/0.1842, allocations: 55.94 kB / 0.6962 GB, free: 1.348 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 3.955e-05/0.1843, allocations: 23.91 kB / 0.6962 GB, free: 1.324 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 8.973e-05/0.1844, allocations: 67.59 kB / 0.6962 GB, free: 1.258 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002543/0.1846, allocations: 183.6 kB / 0.6964 GB, free: 1.078 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.456e-06/0.1846, allocations: 0 / 0.6964 GB, free: 1.078 MB / 494.1 MB Notification: Performance of FrontEnd: time 9.02e-07/0.1846, allocations: 0 / 0.6964 GB, free: 1.078 MB / 494.1 MB Notification: Performance of Transformations before backend: time 9.237e-06/0.1847, allocations: 4 kB / 0.6964 GB, free: 1.074 MB / 494.1 MB 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.0009711/0.1856, allocations: 0.5042 MB / 0.6969 GB, free: 0.5156 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.189e-05/0.1857, allocations: 8.031 kB / 0.6969 GB, free: 0.5078 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.903e-05/0.1857, allocations: 24.73 kB / 0.6969 GB, free: 496 kB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002668/0.186, allocations: 227.9 kB / 0.6972 GB, free: 228 kB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.502e-05/0.186, allocations: 12.31 kB / 0.6972 GB, free: 216 kB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.181e-05/0.1861, allocations: 12.36 kB / 0.6972 GB, free: 204 kB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003289/0.1864, allocations: 125.9 kB / 0.6973 GB, free: 72 kB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.662e-05/0.1864, allocations: 3.938 kB / 0.6973 GB, free: 68 kB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.008e-05/0.1865, allocations: 7.984 kB / 0.6973 GB, free: 60 kB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.741e-06/0.1865, allocations: 4 kB / 0.6973 GB, free: 56 kB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000344/0.1868, allocations: 95.92 kB / 0.6974 GB, free: 15.96 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006969/0.1875, allocations: 420.5 kB / 0.6978 GB, free: 15.5 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003642/0.1879, allocations: 126.5 kB / 0.6979 GB, free: 15.37 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001944/0.1881, allocations: 76.75 kB / 0.698 GB, free: 15.29 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006999/0.1888, allocations: 449.5 kB / 0.6984 GB, free: 14.76 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003586/0.1892, allocations: 123.3 kB / 0.6985 GB, free: 14.62 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=16): time 3.697e-06/0.1892, allocations: 0 / 0.6985 GB, free: 14.62 MB / 0.4981 GB Notification: Performance of matching and sorting (n=16): time 0.000687/0.1899, allocations: 241.5 kB / 0.6988 GB, free: 14.38 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.48e-05/0.19, allocations: 63.33 kB / 0.6988 GB, free: 14.31 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001869/0.1901, allocations: 179 kB / 0.699 GB, free: 14.12 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.662e-05/0.1902, allocations: 29.7 kB / 0.699 GB, free: 14.09 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 8.239e-05/0.1903, allocations: 108 kB / 0.6991 GB, free: 13.98 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 7.426e-05/0.1904, allocations: 55.2 kB / 0.6992 GB, free: 13.93 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.319e-05/0.1904, allocations: 41.7 kB / 0.6992 GB, free: 13.88 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.000154/0.1906, allocations: 334.8 kB / 0.6996 GB, free: 13.54 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002059/0.1908, allocations: 72.81 kB / 0.6996 GB, free: 13.47 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000208/0.191, allocations: 88.23 kB / 0.6997 GB, free: 13.38 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.821/3.012, allocations: 378.8 MB / 1.07 GB, free: 254.4 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.699e-06/3.012, allocations: 3.984 kB / 1.07 GB, free: 254.4 MB / 0.7325 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005089/3.013, allocations: 250.4 kB / 1.07 GB, free: 254.2 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 3.238e-05/3.013, allocations: 29.7 kB / 1.07 GB, free: 254.1 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.053e-06/3.013, allocations: 0 / 1.07 GB, free: 254.1 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.898e-05/3.013, allocations: 4.062 kB / 1.07 GB, free: 254.1 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002313/3.013, allocations: 47.03 kB / 1.07 GB, free: 254.1 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.075e-06/3.013, allocations: 0 / 1.07 GB, free: 254.1 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001996/3.013, allocations: 22.72 kB / 1.07 GB, free: 254.1 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.2e-05/3.013, allocations: 7.984 kB / 1.07 GB, free: 254.1 MB / 0.7325 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.6850000000000001 * 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.0002203/3.014, allocations: 159.3 kB / 1.07 GB, free: 253.9 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.682e-05/3.014, allocations: 15.34 kB / 1.07 GB, free: 253.9 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005826/3.014, allocations: 238.8 kB / 1.07 GB, free: 253.7 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.768e-06/3.014, allocations: 0 / 1.07 GB, free: 253.7 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/3.014, allocations: 0 / 1.07 GB, free: 253.7 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.711e-06/3.014, allocations: 4.75 kB / 1.07 GB, free: 253.7 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001963/3.015, allocations: 263.4 kB / 1.071 GB, free: 253.4 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/3.015, allocations: 0 / 1.071 GB, free: 253.4 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002377/3.015, allocations: 39.97 kB / 1.071 GB, free: 253.4 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.998e-06/3.015, allocations: 0 / 1.071 GB, free: 253.4 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.282e-05/3.015, allocations: 6.188 kB / 1.071 GB, free: 253.4 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.617e-06/3.015, allocations: 3.938 kB / 1.071 GB, free: 253.4 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/3.015, allocations: 6.141 kB / 1.071 GB, free: 253.4 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005874/3.015, allocations: 312.8 kB / 1.071 GB, free: 253.1 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 7.703e-05/3.016, allocations: 114 kB / 1.071 GB, free: 253 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.4e-05/3.016, allocations: 4 kB / 1.071 GB, free: 253 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001664/3.016, allocations: 11.98 kB / 1.071 GB, free: 252.9 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.59e-05/3.016, allocations: 19.97 kB / 1.071 GB, free: 252.9 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.58e-05/3.016, allocations: 8 kB / 1.071 GB, free: 252.9 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 8.138e-05/3.016, allocations: 139.4 kB / 1.071 GB, free: 252.8 MB / 0.7325 GB Notification: Performance of sort global known variables: time 7.31e-07/3.016, allocations: 3.938 kB / 1.071 GB, free: 252.8 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002715/3.016, allocations: 58.41 kB / 1.071 GB, free: 252.7 MB / 0.7325 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.0001473/3.016, allocations: 121.7 kB / 1.071 GB, free: 252.6 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0004236/3.017, allocations: 215.2 kB / 1.072 GB, free: 252.4 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/3.017, allocations: 0 / 1.072 GB, free: 252.4 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001872/3.017, allocations: 97.91 kB / 1.072 GB, free: 252.3 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002777/3.017, allocations: 26.52 kB / 1.072 GB, free: 252.3 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007976/3.018, allocations: 0.5885 MB / 1.072 GB, free: 251.7 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001126/3.018, allocations: 0.7206 MB / 1.073 GB, free: 250.9 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001632/3.018, allocations: 31.77 kB / 1.073 GB, free: 250.9 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.549e-05/3.019, allocations: 19.44 kB / 1.073 GB, free: 250.9 MB / 0.7325 GB Notification: Performance of SimCode: time 2.3e-07/3.019, allocations: 0 / 1.073 GB, free: 250.9 MB / 0.7325 GB Notification: Performance of Templates: time 0.005421/3.024, allocations: 2.386 MB / 1.075 GB, free: 248.6 MB / 0.7325 GB make -j1 -f BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple.makefile (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)