Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatteryComplex.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.BatteryComplex,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatteryComplex") translateModel(BuildingSystems.Technologies.ElectricalStorages.Examples.BatteryComplex,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatteryComplex") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.7875/0.7875, allocations: 141.7 MB / 154.3 MB, free: 15.49 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001049/0.00105, allocations: 176.1 kB / 187.3 MB, free: 11.9 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.485/1.485, allocations: 221.3 MB / 441.4 MB, free: 4.602 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.0009683/0.0009682, allocations: 99.06 kB / 0.5124 GB, free: 24.22 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00172/0.00172, allocations: 273.7 kB / 0.5939 GB, free: 7.965 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 3.086e-05/3.088e-05, allocations: 4 kB / 0.6834 GB, free: 12.25 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4325/0.4325, allocations: 82.76 MB / 0.7643 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1213/0.5539, allocations: 112 MB / 0.8737 GB, free: 12.52 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002246/0.5542, allocations: 84.67 kB / 0.8737 GB, free: 12.44 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.02381/0.578, allocations: 7.807 MB / 0.8814 GB, free: 4.57 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.352e-06/0.578, allocations: 0 / 0.8814 GB, free: 4.57 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 1.097e-05/0.578, allocations: 12 kB / 0.8814 GB, free: 4.559 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.001392/0.5794, allocations: 0.704 MB / 0.8821 GB, free: 3.789 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.468e-05/0.5795, allocations: 12.03 kB / 0.8821 GB, free: 3.777 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.066e-05/0.5796, allocations: 43.53 kB / 0.8821 GB, free: 3.734 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002926/0.5799, allocations: 260 kB / 0.8824 GB, free: 3.438 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.618e-05/0.5799, allocations: 16.39 kB / 0.8824 GB, free: 3.422 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.485e-05/0.58, allocations: 27.94 kB / 0.8824 GB, free: 3.395 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005024/0.5805, allocations: 288.9 kB / 0.8827 GB, free: 3.102 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.667e-05/0.5805, allocations: 4 kB / 0.8827 GB, free: 3.098 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.54e-05/0.5806, allocations: 8 kB / 0.8827 GB, free: 3.09 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.354e-06/0.5806, allocations: 4 kB / 0.8827 GB, free: 3.086 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004181/0.581, allocations: 215.9 kB / 0.8829 GB, free: 2.875 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001449/0.5825, allocations: 0.8984 MB / 0.8838 GB, free: 1.918 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006292/0.5831, allocations: 306.2 kB / 0.8841 GB, free: 1.602 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002819/0.5834, allocations: 178.1 kB / 0.8842 GB, free: 1.422 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006652/0.5841, allocations: 453.6 kB / 0.8847 GB, free: 0.8867 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004766/0.5846, allocations: 284.8 kB / 0.885 GB, free: 0.5898 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=42): time 2.174e-06/0.5846, allocations: 0 / 0.885 GB, free: 0.5898 MB / 0.5417 GB Notification: Performance of matching and sorting (n=42): time 0.0007481/0.5853, allocations: 385.1 kB / 0.8853 GB, free: 216 kB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.099e-05/0.5854, allocations: 96.98 kB / 0.8854 GB, free: 100 kB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003611/0.5858, allocations: 295 kB / 0.8857 GB, free: 15.81 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 4.453e-05/0.5858, allocations: 33.7 kB / 0.8857 GB, free: 15.77 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001293/0.586, allocations: 160.8 kB / 0.8859 GB, free: 15.61 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.000128/0.5861, allocations: 146 kB / 0.886 GB, free: 15.46 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.804e-05/0.5862, allocations: 8 kB / 0.886 GB, free: 15.46 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001465/0.5863, allocations: 350.8 kB / 0.8864 GB, free: 15.11 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002854/0.5866, allocations: 161.8 kB / 0.8865 GB, free: 14.95 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003137/0.5869, allocations: 206.7 kB / 0.8867 GB, free: 14.72 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003522/0.5873, allocations: 244.7 kB / 0.8869 GB, free: 14.47 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.02e-06/0.5873, allocations: 0 / 0.8869 GB, free: 14.47 MB / 0.5573 GB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0009064/0.5882, allocations: 0.5608 MB / 0.8875 GB, free: 13.88 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 6.584e-05/0.5883, allocations: 89.11 kB / 0.8876 GB, free: 13.78 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.081e-05/0.5883, allocations: 4 kB / 0.8876 GB, free: 13.77 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.895e-05/0.5883, allocations: 7.938 kB / 0.8876 GB, free: 13.77 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006002/0.5889, allocations: 124 kB / 0.8877 GB, free: 13.64 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.273e-05/0.589, allocations: 7.984 kB / 0.8877 GB, free: 13.64 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005256/0.5895, allocations: 71.52 kB / 0.8878 GB, free: 13.57 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.279e-05/0.5896, allocations: 19.98 kB / 0.8878 GB, free: 13.55 MB / 0.5573 GB Warning: Assuming fixed start value for the following 8 variables: battery_1C.E_discharged:VARIABLE(start = 0.0 unit = "J" ) "Total energy taken from the battery" type: Real battery_1C.E_charged:VARIABLE(start = 0.0 unit = "J" ) "Total energy charged to the battery" type: Real battery_C20.E_discharged:VARIABLE(start = 0.0 unit = "J" ) "Total energy taken from the battery" type: Real battery_C20.E_charged:VARIABLE(start = 0.0 unit = "J" ) "Total energy charged to the battery" type: Real battery_1C.EBou:VARIABLE(start = (1.0 - battery_1C.c) * battery_1C.SOC_start * battery_1C.E_nominal unit = "J" ) "Bound charge of the battery" type: Real battery_1C.EAva:VARIABLE(start = battery_1C.c * battery_1C.SOC_start * battery_1C.E_nominal unit = "J" ) "Available charge of the battery" type: Real battery_C20.EBou:VARIABLE(start = (1.0 - battery_C20.c) * battery_C20.SOC_start * battery_C20.E_nominal unit = "J" ) "Bound charge of the battery" type: Real battery_C20.EAva:VARIABLE(start = battery_C20.c * battery_C20.SOC_start * battery_C20.E_nominal unit = "J" ) "Available charge of the battery" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition3,$whenCondition2,$PRE.gain.T_start,gain.T_start,$PRE.gain.count,gain.count,$PRE.load_1C.T_start,load_1C.T_start,$PRE.load_1C.count,load_1C.count,$whenCondition1,$PRE.load_C20.T_start,load_C20.T_start,$PRE.load_C20.count,load_C20.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (58): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 3 * 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.0002571/0.5898, allocations: 179.1 kB / 0.888 GB, free: 13.37 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.863e-05/0.5899, allocations: 39.52 kB / 0.888 GB, free: 13.33 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00119/0.5911, allocations: 0.5452 MB / 0.8885 GB, free: 12.77 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.31e-06/0.5911, allocations: 4 kB / 0.8885 GB, free: 12.77 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.578e-06/0.5911, allocations: 0 / 0.8885 GB, free: 12.77 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.927e-06/0.5911, allocations: 3.984 kB / 0.8886 GB, free: 12.77 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005073/0.5916, allocations: 484.8 kB / 0.889 GB, free: 12.24 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/0.5917, allocations: 0 / 0.889 GB, free: 12.24 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006216/0.5923, allocations: 119.9 kB / 0.8891 GB, free: 12.12 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.248e-06/0.5923, allocations: 0 / 0.8891 GB, free: 12.12 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.679e-05/0.5924, allocations: 19.98 kB / 0.8891 GB, free: 12.11 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.665e-06/0.5924, allocations: 0 / 0.8891 GB, free: 12.11 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.547e-06/0.5924, allocations: 6.188 kB / 0.8892 GB, free: 12.1 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001096/0.5935, allocations: 0.7013 MB / 0.8898 GB, free: 11.37 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001941/0.5937, allocations: 168.4 kB / 0.89 GB, free: 11.19 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.822e-05/0.5938, allocations: 19.98 kB / 0.89 GB, free: 11.17 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004265/0.5942, allocations: 39.97 kB / 0.8901 GB, free: 11.13 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001344/0.5943, allocations: 59.91 kB / 0.8901 GB, free: 11.07 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.895e-05/0.5944, allocations: 19.98 kB / 0.8901 GB, free: 11.05 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0002419/0.5946, allocations: 238.1 kB / 0.8904 GB, free: 10.82 MB / 0.5573 GB Notification: Performance of sort global known variables: time 5.01e-07/0.5946, allocations: 0 / 0.8904 GB, free: 10.82 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.0004187/0.5951, allocations: 139.9 kB / 0.8905 GB, free: 10.68 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 8 (battery_1C.EAva,battery_1C.EBou,battery_1C.E_charged,battery_1C.E_discharged,battery_C20.EAva,battery_C20.EBou,battery_C20.E_charged,battery_C20.E_discharged) * Number of discrete variables: 9 ($whenCondition3,$whenCondition2,gain.T_start,gain.count,load_1C.T_start,load_1C.count,$whenCondition1,load_C20.T_start,load_C20.count) * Number of discrete states: 3 (load_C20.count,gain.count,load_1C.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * 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.000246/0.5953, allocations: 164.1 kB / 0.8906 GB, free: 10.51 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.0008122/0.5961, allocations: 0.5481 MB / 0.8912 GB, free: 9.93 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.5962, allocations: 0 / 0.8912 GB, free: 9.93 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.0003643/0.5965, allocations: 231.7 kB / 0.8914 GB, free: 9.703 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003766/0.5969, allocations: 53.44 kB / 0.8915 GB, free: 9.652 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001554/0.5985, allocations: 0.9779 MB / 0.8924 GB, free: 8.648 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003292/0.5988, allocations: 0.821 MB / 0.8932 GB, free: 7.797 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.0003315/0.5992, allocations: 63.8 kB / 0.8933 GB, free: 7.738 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00017/0.5993, allocations: 43.42 kB / 0.8933 GB, free: 7.695 MB / 0.5573 GB Notification: Performance of SimCode: time 2.284e-06/0.5993, allocations: 4 kB / 0.8933 GB, free: 7.691 MB / 0.5573 GB Notification: Performance of Templates: time 0.01037/0.6097, allocations: 5.977 MB / 0.8992 GB, free: 1.777 MB / 0.5573 GB make -j1 -f BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatteryComplex.makefile (rm -f BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatteryComplex.pipe ; mkfifo BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatteryComplex.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatteryComplex.pipe >> ../files/BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatteryComplex.sim & ./BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatteryComplex -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatteryComplex.pipe 2>&1)