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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001742/0.001742, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001764/0.001764, allocations: 190.9 kB / 16.25 MB, free: 6.637 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.416/1.416, allocations: 222.9 MB / 239.9 MB, free: 4.508 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002468/0.002468, allocations: 283 kB / 290.4 MB, free: 2.129 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.078/1.078, allocations: 178.6 MB / 0.5069 GB, free: 4.684 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00278/0.00278, allocations: 104.6 kB / 0.6059 GB, free: 25.04 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1755/0.1783, allocations: 89.15 MB / 0.693 GB, free: 4.688 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.ElectricalStorages.Examples.BatteryComplex): time 0.004452/0.1828, allocations: 2.68 MB / 0.6956 GB, free: 1.996 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001875/0.1847, allocations: 1.067 MB / 0.6966 GB, free: 0.9219 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001327/0.1848, allocations: 15.88 kB / 0.6966 GB, free: 0.9062 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002619/0.1851, allocations: 63.53 kB / 0.6967 GB, free: 0.8438 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002272/0.1853, allocations: 111.2 kB / 0.6968 GB, free: 0.7344 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004048/0.1857, allocations: 155.8 kB / 0.697 GB, free: 0.582 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005136/0.1863, allocations: 0.4983 MB / 0.6974 GB, free: 84 kB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001371/0.1864, allocations: 52.94 kB / 0.6975 GB, free: 32 kB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003203/0.1867, allocations: 235 kB / 0.6977 GB, free: 15.8 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003064/0.187, allocations: 227 kB / 0.6979 GB, free: 15.58 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 5.491e-05/0.1871, allocations: 28 kB / 0.698 GB, free: 15.55 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001622/0.1873, allocations: 83.97 kB / 0.698 GB, free: 15.47 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 8.197e-05/0.1874, allocations: 71.72 kB / 0.6981 GB, free: 15.4 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001843/0.1876, allocations: 183 kB / 0.6983 GB, free: 15.22 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0004498/0.188, allocations: 418.6 kB / 0.6987 GB, free: 14.81 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.492e-06/0.188, allocations: 4 kB / 0.6987 GB, free: 14.8 MB / 0.4981 GB Notification: Performance of FrontEnd: time 3.095e-06/0.188, allocations: 0 / 0.6987 GB, free: 14.8 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 7.274e-06/0.188, allocations: 3.938 kB / 0.6987 GB, free: 14.8 MB / 0.4981 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.00188/0.1899, allocations: 0.8055 MB / 0.6995 GB, free: 13.93 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.85e-05/0.19, allocations: 8.031 kB / 0.6995 GB, free: 13.92 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001009/0.1901, allocations: 40.47 kB / 0.6995 GB, free: 13.88 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004165/0.1905, allocations: 331.9 kB / 0.6998 GB, free: 13.52 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.84e-05/0.1905, allocations: 20.81 kB / 0.6999 GB, free: 13.5 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.777e-05/0.1906, allocations: 40.25 kB / 0.6999 GB, free: 13.46 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000747/0.1914, allocations: 321.1 kB / 0.7002 GB, free: 13.14 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.594e-05/0.1914, allocations: 0 / 0.7002 GB, free: 13.14 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.098e-05/0.1914, allocations: 12 kB / 0.7002 GB, free: 13.12 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.693e-05/0.1915, allocations: 8 kB / 0.7002 GB, free: 13.12 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008569/0.1923, allocations: 295.7 kB / 0.7005 GB, free: 12.83 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001181/0.1935, allocations: 0.785 MB / 0.7013 GB, free: 11.99 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001124/0.1947, allocations: 394.4 kB / 0.7017 GB, free: 11.59 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005239/0.1952, allocations: 205.6 kB / 0.7018 GB, free: 11.38 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000822/0.196, allocations: 449.5 kB / 0.7023 GB, free: 10.85 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008962/0.1969, allocations: 324.7 kB / 0.7026 GB, free: 10.51 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=42): time 2.304e-06/0.197, allocations: 3.938 kB / 0.7026 GB, free: 10.51 MB / 0.4981 GB Notification: Performance of matching and sorting (n=42): time 0.001764/0.1987, allocations: 0.6061 MB / 0.7032 GB, free: 9.898 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.78e-05/0.1988, allocations: 97.09 kB / 0.7033 GB, free: 9.785 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003779/0.1992, allocations: 300.5 kB / 0.7036 GB, free: 9.48 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 6.221e-05/0.1993, allocations: 41.69 kB / 0.7036 GB, free: 9.434 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.000159/0.1995, allocations: 156.9 kB / 0.7037 GB, free: 9.277 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001582/0.1996, allocations: 142 kB / 0.7039 GB, free: 9.137 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00019/0.1998, allocations: 98 kB / 0.704 GB, free: 9.035 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0002066/0.2, allocations: 346.8 kB / 0.7043 GB, free: 8.688 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005207/0.2006, allocations: 211.5 kB / 0.7045 GB, free: 8.473 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005226/0.2011, allocations: 242.3 kB / 0.7047 GB, free: 8.223 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.925/6.126, allocations: 0.8661 GB / 1.571 GB, free: 24.33 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.903e-06/6.126, allocations: 0 / 1.571 GB, free: 24.33 MB / 0.7325 GB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001224/6.127, allocations: 0.6371 MB / 1.571 GB, free: 23.85 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 4.584e-05/6.127, allocations: 89.09 kB / 1.572 GB, free: 23.74 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.598e-06/6.127, allocations: 4 kB / 1.572 GB, free: 23.74 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 2e-05/6.127, allocations: 0 / 1.572 GB, free: 23.74 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005371/6.128, allocations: 115.4 kB / 1.572 GB, free: 23.63 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.082e-05/6.128, allocations: 7.828 kB / 1.572 GB, free: 23.62 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004679/6.128, allocations: 57.36 kB / 1.572 GB, free: 23.59 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.367e-05/6.128, allocations: 23.98 kB / 1.572 GB, free: 23.57 MB / 0.7325 GB Warning: Assuming fixed start value for the following 8 variables: battery_C20.E_charged:VARIABLE(start = 0.0 unit = "J" fixed = true ) "Total energy charged to the battery" type: Real battery_C20.E_discharged:VARIABLE(start = 0.0 unit = "J" fixed = true ) "Total energy taken from the battery" type: Real battery_1C.E_charged:VARIABLE(start = 0.0 unit = "J" fixed = true ) "Total energy charged to the battery" type: Real battery_1C.E_discharged:VARIABLE(start = 0.0 unit = "J" fixed = true ) "Total energy taken from the battery" type: Real battery_1C.EAva:VARIABLE(start = 0.315 * battery_1C.SOC_start * battery_1C.E_nominal unit = "J" fixed = true ) "Available charge of the battery" type: Real battery_1C.EBou:VARIABLE(start = 0.6850000000000001 * battery_1C.SOC_start * battery_1C.E_nominal unit = "J" fixed = true ) "Bound charge of the battery" type: Real battery_C20.EAva:VARIABLE(start = 0.315 * battery_C20.SOC_start * battery_C20.E_nominal unit = "J" fixed = true ) "Available charge of the battery" type: Real battery_C20.EBou:VARIABLE(start = 0.6850000000000001 * battery_C20.SOC_start * battery_C20.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: 6 * Number of states: 0 () * Number of discrete variables: 15 ($PRE.load_1C.count,$PRE.load_1C.T_start,$PRE.gain.count,$PRE.gain.T_start,load_1C.count,load_1C.T_start,gain.count,gain.T_start,$whenCondition2,$whenCondition3,$PRE.load_C20.count,$PRE.load_C20.T_start,load_C20.count,load_C20.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002796/6.129, allocations: 205.4 kB / 1.572 GB, free: 23.4 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.587e-05/6.129, allocations: 43.89 kB / 1.572 GB, free: 23.38 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001441/6.13, allocations: 0.6215 MB / 1.573 GB, free: 22.75 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.583e-06/6.13, allocations: 8 kB / 1.573 GB, free: 22.75 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.623e-06/6.13, allocations: 3.938 kB / 1.573 GB, free: 22.74 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.065e-06/6.13, allocations: 7.125 kB / 1.573 GB, free: 22.74 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003652/6.131, allocations: 449.4 kB / 1.573 GB, free: 22.29 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/6.131, allocations: 0 / 1.573 GB, free: 22.29 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005531/6.131, allocations: 107.9 kB / 1.573 GB, free: 22.18 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.827e-06/6.131, allocations: 4 kB / 1.573 GB, free: 22.18 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.008e-05/6.131, allocations: 16 kB / 1.573 GB, free: 22.16 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.476e-06/6.131, allocations: 3.984 kB / 1.573 GB, free: 22.16 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/6.131, allocations: 3.938 kB / 1.573 GB, free: 22.15 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001499/6.133, allocations: 0.7863 MB / 1.574 GB, free: 21.38 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001474/6.133, allocations: 162.5 kB / 1.574 GB, free: 21.22 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.001e-05/6.133, allocations: 12 kB / 1.574 GB, free: 21.21 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004125/6.133, allocations: 43.89 kB / 1.574 GB, free: 21.16 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001454/6.133, allocations: 55.94 kB / 1.574 GB, free: 21.11 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.782e-05/6.134, allocations: 19.98 kB / 1.574 GB, free: 21.09 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.000168/6.134, allocations: 215.1 kB / 1.574 GB, free: 20.88 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.2e-07/6.134, allocations: 0 / 1.574 GB, free: 20.88 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0003967/6.134, allocations: 116 kB / 1.574 GB, free: 20.77 MB / 0.7325 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) * Number of clocked states: 0 () * 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 (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.0002172/6.134, allocations: 130.5 kB / 1.575 GB, free: 20.63 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.00116/6.136, allocations: 0.6593 MB / 1.575 GB, free: 19.95 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/6.136, allocations: 0.875 kB / 1.575 GB, free: 19.95 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0004959/6.136, allocations: 263.7 kB / 1.576 GB, free: 19.7 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004399/6.136, allocations: 74.67 kB / 1.576 GB, free: 19.63 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001556/6.138, allocations: 1.221 MB / 1.577 GB, free: 18.42 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001713/6.138, allocations: 0.8012 MB / 1.578 GB, free: 17.59 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0003865/6.139, allocations: 85.28 kB / 1.578 GB, free: 17.52 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001636/6.139, allocations: 55.41 kB / 1.578 GB, free: 17.46 MB / 0.7325 GB Notification: Performance of SimCode: time 9.52e-07/6.139, allocations: 0 / 1.578 GB, free: 17.46 MB / 0.7325 GB Notification: Performance of Templates: time 0.009611/6.148, allocations: 5.856 MB / 1.583 GB, free: 11.71 MB / 0.7325 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)