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/BuildingSystems 2.0.0-master/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/ModelicaServices 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) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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/BuildingSystems 2.0.0-master/package.mo): time 0.9012/0.9012, allocations: 143.4 MB / 158.3 MB, free: 5.828 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001151/0.001151, allocations: 175.5 kB / 191.5 MB, free: 5.773 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.549/1.549, allocations: 223.2 MB / 447.7 MB, free: 4.832 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001041/0.001041, allocations: 88.28 kB / 0.5188 GB, free: 1.195 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001734/0.001734, allocations: 269.3 kB / 0.6005 GB, free: 48.79 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006218/0.000622, allocations: 12.16 kB / 0.6929 GB, free: 59.68 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2317/0.2323, allocations: 82.79 MB / 0.7737 GB, free: 13.9 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6841/0.9165, allocations: 111.4 MB / 0.8825 GB, free: 32.12 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002241/0.9168, allocations: 77.16 kB / 0.8825 GB, free: 32.12 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.01268/0.9295, allocations: 4.122 MB / 0.8866 GB, free: 31.46 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.312e-06/0.9295, allocations: 0 / 0.8866 GB, free: 31.46 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 9.538e-06/0.9296, allocations: 2.875 kB / 0.8866 GB, free: 31.46 MB / 0.5417 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.0009714/0.9305, allocations: 0.4957 MB / 0.8871 GB, free: 31.02 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.435e-05/0.9306, allocations: 10.48 kB / 0.8871 GB, free: 31.02 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.738e-05/0.9307, allocations: 16.91 kB / 0.8871 GB, free: 31.01 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001758/0.9309, allocations: 214 kB / 0.8873 GB, free: 30.79 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.295e-05/0.9309, allocations: 10.33 kB / 0.8873 GB, free: 30.78 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.005e-05/0.9309, allocations: 11.16 kB / 0.8873 GB, free: 30.78 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003605/0.9313, allocations: 128.5 kB / 0.8874 GB, free: 30.75 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.728e-05/0.9313, allocations: 0 / 0.8874 GB, free: 30.75 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.25e-05/0.9314, allocations: 6.906 kB / 0.8874 GB, free: 30.75 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.231e-06/0.9314, allocations: 0 / 0.8874 GB, free: 30.75 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003319/0.9317, allocations: 114 kB / 0.8876 GB, free: 30.74 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008289/0.9326, allocations: 454.5 kB / 0.888 GB, free: 30.46 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003672/0.9329, allocations: 142 kB / 0.8881 GB, free: 30.43 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006262/0.9336, allocations: 444.1 kB / 0.8885 GB, free: 29.96 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003275/0.9339, allocations: 138.4 kB / 0.8887 GB, free: 29.91 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=16): time 1.432e-06/0.9339, allocations: 0 / 0.8887 GB, free: 29.91 MB / 0.5417 GB Notification: Performance of matching and sorting (n=16): time 0.0007278/0.9347, allocations: 259.2 kB / 0.8889 GB, free: 29.86 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.17e-05/0.9347, allocations: 56.94 kB / 0.889 GB, free: 29.8 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001856/0.9349, allocations: 174.7 kB / 0.8891 GB, free: 29.7 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 2.339e-05/0.9349, allocations: 32.73 kB / 0.8892 GB, free: 29.67 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 7.244e-05/0.935, allocations: 106.5 kB / 0.8893 GB, free: 29.59 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 6.436e-05/0.9351, allocations: 59.44 kB / 0.8893 GB, free: 29.55 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.214e-05/0.9351, allocations: 1.219 kB / 0.8893 GB, free: 29.55 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 9.904e-05/0.9352, allocations: 332 kB / 0.8896 GB, free: 29.24 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002277/0.9354, allocations: 82.92 kB / 0.8897 GB, free: 29.23 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002323/0.9357, allocations: 100 kB / 0.8898 GB, free: 29.2 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002456/0.9359, allocations: 108.1 kB / 0.8899 GB, free: 29.16 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.9359, allocations: 0 / 0.8899 GB, free: 29.16 MB / 0.5417 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.000568/0.9365, allocations: 269.9 kB / 0.8902 GB, free: 29.07 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 4.032e-05/0.9366, allocations: 33.23 kB / 0.8902 GB, free: 29.04 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.145e-06/0.9366, allocations: 0.75 kB / 0.8902 GB, free: 29.04 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.026e-05/0.9366, allocations: 2.75 kB / 0.8902 GB, free: 29.04 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002885/0.9369, allocations: 44.98 kB / 0.8903 GB, free: 29.04 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.095e-05/0.9369, allocations: 15.55 kB / 0.8903 GB, free: 29.03 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002143/0.9371, allocations: 30.25 kB / 0.8903 GB, free: 29.02 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.414e-05/0.9372, allocations: 11.08 kB / 0.8903 GB, free: 29.02 MB / 0.5417 GB Warning: Assuming fixed start value for the following 4 variables: battery.E_discharged:VARIABLE(start = 0.0 unit = "J" fixed = true ) "Total energy taken from the battery" type: Real battery.E_charged:VARIABLE(start = 0.0 unit = "J" fixed = true ) "Total energy charged to the battery" type: Real battery.EBou:VARIABLE(start = (1.0 - battery.c) * battery.SOC_start * battery.E_nominal unit = "J" fixed = true ) "Bound charge of the battery" type: Real battery.EAva:VARIABLE(start = battery.c * battery.SOC_start * battery.E_nominal unit = "J" fixed = true ) "Available 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 ($whenCondition1,$PRE.gain.T_start,gain.T_start,$PRE.gain.count,gain.count) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002022/0.9374, allocations: 145.8 kB / 0.8905 GB, free: 28.9 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.929e-05/0.9374, allocations: 13.16 kB / 0.8905 GB, free: 28.89 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006285/0.938, allocations: 258.5 kB / 0.8907 GB, free: 28.84 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.061e-06/0.9381, allocations: 2.75 kB / 0.8907 GB, free: 28.84 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.941e-06/0.9381, allocations: 0 / 0.8907 GB, free: 28.84 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.492e-06/0.9381, allocations: 1.547 kB / 0.8907 GB, free: 28.84 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002607/0.9384, allocations: 267.8 kB / 0.891 GB, free: 28.64 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/0.9384, allocations: 2.906 kB / 0.891 GB, free: 28.64 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002729/0.9387, allocations: 47.89 kB / 0.891 GB, free: 28.64 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.24e-06/0.9387, allocations: 0.5156 kB / 0.891 GB, free: 28.64 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.393e-05/0.9387, allocations: 7.219 kB / 0.891 GB, free: 28.64 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.038e-06/0.9387, allocations: 1.25 kB / 0.891 GB, free: 28.64 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.9387, allocations: 0 / 0.891 GB, free: 28.64 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006793/0.9394, allocations: 342.3 kB / 0.8914 GB, free: 28.55 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 9.56e-05/0.9395, allocations: 112.5 kB / 0.8915 GB, free: 28.45 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.561e-05/0.9396, allocations: 7.281 kB / 0.8915 GB, free: 28.45 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001743/0.9397, allocations: 17.48 kB / 0.8915 GB, free: 28.45 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.998e-05/0.9398, allocations: 20.28 kB / 0.8915 GB, free: 28.45 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.936e-05/0.9399, allocations: 10.27 kB / 0.8915 GB, free: 28.45 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0001161/0.94, allocations: 146.2 kB / 0.8917 GB, free: 28.36 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.6e-07/0.94, allocations: 0 / 0.8917 GB, free: 28.36 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0003205/0.9403, allocations: 68.53 kB / 0.8917 GB, free: 28.35 MB / 0.5417 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002188/0.9405, allocations: 141 kB / 0.8919 GB, free: 28.25 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0004754/0.941, allocations: 239.8 kB / 0.8921 GB, free: 28.18 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.941, allocations: 0 / 0.8921 GB, free: 28.18 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0002295/0.9413, allocations: 101.9 kB / 0.8922 GB, free: 28.17 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002441/0.9415, allocations: 22.7 kB / 0.8922 GB, free: 28.17 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001003/0.9425, allocations: 0.64 MB / 0.8928 GB, free: 27.74 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001797/0.9427, allocations: 0.7264 MB / 0.8935 GB, free: 27.05 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.0001323/0.9429, allocations: 25.88 kB / 0.8936 GB, free: 27.04 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.117e-05/0.9429, allocations: 22.5 kB / 0.8936 GB, free: 27.03 MB / 0.5417 GB Notification: Performance of SimCode: time 1.022e-06/0.943, allocations: 0 / 0.8936 GB, free: 27.03 MB / 0.5417 GB Notification: Performance of Templates: time 0.006344/0.9493, allocations: 2.558 MB / 0.8961 GB, free: 26.84 MB / 0.5417 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)