Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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) 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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bat_loss_acdc.SOC|bat_ideal.SOC|bat.SOC",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bat_loss_acdc.SOC|bat_ideal.SOC|bat.SOC",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.508/2.508, allocations: 390.3 MB / 405.3 MB, free: 13.47 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001541/0.001541, allocations: 183.3 kB / 498.1 MB, free: 5.684 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.598/1.598, allocations: 223.2 MB / 0.7949 GB, free: 17.84 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001078/0.001078, allocations: 106.2 kB / 0.9346 GB, free: 6.195 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004194/0.0004196, allocations: 10.47 kB / 1.084 GB, free: 221.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3529/0.3534, allocations: 142.3 MB / 1.223 GB, free: 114.2 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2236/0.577, allocations: 169.7 MB / 1.389 GB, free: 8.309 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004419/0.5776, allocations: 103.9 kB / 1.389 GB, free: 8.207 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.08563/0.6632, allocations: 31.77 MB / 1.42 GB, free: 8.164 MB / 0.9167 GB Notification: Performance of FrontEnd: time 2.404e-06/0.6633, allocations: 0 / 1.42 GB, free: 8.164 MB / 0.9167 GB Notification: Performance of Transformations before backend: time 6.63e-05/0.6634, allocations: 15.94 kB / 1.42 GB, free: 8.148 MB / 0.9167 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 127 * Number of variables: 127 Notification: Performance of Generate backend data structure: time 0.002513/0.6659, allocations: 0.8808 MB / 1.421 GB, free: 7.211 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 5.277e-05/0.6659, allocations: 12.03 kB / 1.421 GB, free: 7.199 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001079/0.667, allocations: 155 kB / 1.421 GB, free: 7.047 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009706/0.668, allocations: 452.7 kB / 1.421 GB, free: 6.562 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.334e-05/0.6681, allocations: 33 kB / 1.421 GB, free: 6.531 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001535/0.6682, allocations: 55.98 kB / 1.421 GB, free: 6.477 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001334/0.6696, allocations: 0.6809 MB / 1.422 GB, free: 5.766 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.879e-05/0.6696, allocations: 4 kB / 1.422 GB, free: 5.762 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.832e-05/0.6697, allocations: 27.98 kB / 1.422 GB, free: 5.734 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.8e-05/0.6698, allocations: 40.94 kB / 1.422 GB, free: 5.695 MB / 0.9167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001195/0.671, allocations: 0.5815 MB / 1.423 GB, free: 5.113 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004011/0.675, allocations: 2.841 MB / 1.425 GB, free: 2.047 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001142/0.6762, allocations: 0.5877 MB / 1.426 GB, free: 1.438 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005224/0.6767, allocations: 0.5661 MB / 1.426 GB, free: 0.7422 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007262/0.6774, allocations: 407.7 kB / 1.427 GB, free: 332 kB / 0.9167 GB Notification: Performance of pre-optimization done (n=49): time 3.186e-06/0.6775, allocations: 3.938 kB / 1.427 GB, free: 328 kB / 0.9167 GB Notification: Performance of matching and sorting (n=49): time 0.8251/1.503, allocations: 0.7671 MB / 1.428 GB, free: 185.4 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.082e-05/1.503, allocations: 88.11 kB / 1.428 GB, free: 185.3 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004981/1.503, allocations: 319.9 kB / 1.428 GB, free: 185.2 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 7.012e-05/1.503, allocations: 46.42 kB / 1.428 GB, free: 185.2 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002355/1.504, allocations: 282.5 kB / 1.428 GB, free: 185.1 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 0.000132/1.504, allocations: 159.7 kB / 1.428 GB, free: 185 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.894e-05/1.504, allocations: 8.969 kB / 1.428 GB, free: 185 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 0.0001234/1.504, allocations: 360.2 kB / 1.429 GB, free: 184.7 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004547/1.504, allocations: 244.4 kB / 1.429 GB, free: 184.7 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006112/1.505, allocations: 372 kB / 1.429 GB, free: 184.5 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005749/1.506, allocations: 295.5 kB / 1.43 GB, free: 184.5 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.519e-06/1.506, allocations: 2.234 kB / 1.43 GB, free: 184.5 MB / 0.9167 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001477/1.507, allocations: 0.7035 MB / 1.43 GB, free: 184.4 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004161/1.507, allocations: 1.079 MB / 1.431 GB, free: 183.3 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.298e-05/1.507, allocations: 2.531 kB / 1.431 GB, free: 183.3 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.321e-05/1.508, allocations: 7.562 kB / 1.431 GB, free: 183.3 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006357/1.508, allocations: 119.3 kB / 1.432 GB, free: 183.3 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.749e-05/1.508, allocations: 6.078 kB / 1.432 GB, free: 183.3 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005627/1.509, allocations: 73.34 kB / 1.432 GB, free: 183.3 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.581e-05/1.509, allocations: 24.34 kB / 1.432 GB, free: 183.3 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 9.578e-06/1.509, allocations: 4 kB / 1.432 GB, free: 183.3 MB / 0.9167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001189/1.51, allocations: 0.5894 MB / 1.432 GB, free: 183.2 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.728e-06/1.51, allocations: 4.016 kB / 1.432 GB, free: 183.2 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.082e-05/1.51, allocations: 8.906 kB / 1.432 GB, free: 183.2 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004591/1.511, allocations: 113.5 kB / 1.432 GB, free: 183.2 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.044e-05/1.511, allocations: 6.859 kB / 1.432 GB, free: 183.2 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004393/1.511, allocations: 62.27 kB / 1.432 GB, free: 183.2 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.919e-05/1.511, allocations: 18.98 kB / 1.432 GB, free: 183.2 MB / 0.9167 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 20 ($whenCondition2,$PRE.bat_ideal.cha.underCharged,bat_ideal.cha.underCharged,$PRE.bat_ideal.cha.overCharged,bat_ideal.cha.overCharged,$whenCondition3,$PRE.bat_loss_acdc.cha.underCharged,bat_loss_acdc.cha.underCharged,$PRE.bat_loss_acdc.cha.overCharged,bat_loss_acdc.cha.overCharged,$whenCondition4,$PRE.bat.cha.underCharged,bat.cha.underCharged,$PRE.bat.cha.overCharged,bat.cha.overCharged,$whenCondition1,$PRE.pow.T_start,pow.T_start,$PRE.pow.count,pow.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (69): * Single equations (assignments): 68 * 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.0004473/1.512, allocations: 309.2 kB / 1.433 GB, free: 183 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.584e-05/1.512, allocations: 51.06 kB / 1.433 GB, free: 183 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001436/1.513, allocations: 0.6032 MB / 1.433 GB, free: 183 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.558e-06/1.513, allocations: 3.109 kB / 1.433 GB, free: 183 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.673e-06/1.513, allocations: 1.219 kB / 1.433 GB, free: 183 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.195e-05/1.513, allocations: 3.859 kB / 1.433 GB, free: 183 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001185/1.514, allocations: 0.6383 MB / 1.434 GB, free: 182.8 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.429e-06/1.514, allocations: 0 / 1.434 GB, free: 182.8 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005436/1.515, allocations: 103.1 kB / 1.434 GB, free: 182.8 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.639e-06/1.515, allocations: 0 / 1.434 GB, free: 182.8 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.964e-05/1.515, allocations: 11.62 kB / 1.434 GB, free: 182.8 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.64e-06/1.515, allocations: 4.969 kB / 1.434 GB, free: 182.8 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.476e-06/1.515, allocations: 1.031 kB / 1.434 GB, free: 182.8 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001907/1.517, allocations: 0.936 MB / 1.435 GB, free: 182.6 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002893/1.517, allocations: 185.2 kB / 1.435 GB, free: 182.5 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.093e-05/1.517, allocations: 14.8 kB / 1.435 GB, free: 182.5 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003518/1.518, allocations: 39.48 kB / 1.435 GB, free: 182.5 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001912/1.518, allocations: 51.62 kB / 1.435 GB, free: 182.5 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.646e-05/1.518, allocations: 15.42 kB / 1.435 GB, free: 182.5 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 0.0003921/1.518, allocations: 260.2 kB / 1.436 GB, free: 182.4 MB / 0.9167 GB Notification: Performance of sort global known variables: time 5.51e-07/1.518, allocations: 0 / 1.436 GB, free: 182.4 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.001149/1.519, allocations: 281.7 kB / 1.436 GB, free: 182.4 MB / 0.9167 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (bat_ideal.cha.SOC,bat_loss_acdc.cha.SOC,bat.cha.SOC) * Number of discrete variables: 12 ($whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,bat_ideal.cha.underCharged,bat_ideal.cha.overCharged,pow.T_start,pow.count,bat_loss_acdc.cha.underCharged,bat_loss_acdc.cha.overCharged,bat.cha.underCharged,bat.cha.overCharged) * Number of discrete states: 7 (pow.count,bat_ideal.cha.underCharged,bat_ideal.cha.overCharged,bat_loss_acdc.cha.underCharged,bat_loss_acdc.cha.overCharged,bat.cha.underCharged,bat.cha.overCharged) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 48 * 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.0002915/1.52, allocations: 154.8 kB / 1.436 GB, free: 182.3 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.00211/1.522, allocations: 0.9967 MB / 1.437 GB, free: 182.2 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 4.979e-06/1.522, allocations: 3.625 kB / 1.437 GB, free: 182.2 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 0.0006094/1.522, allocations: 290.5 kB / 1.437 GB, free: 182.2 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008161/1.523, allocations: 158.6 kB / 1.437 GB, free: 182.2 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002684/1.526, allocations: 1.297 MB / 1.439 GB, free: 181.6 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005651/1.527, allocations: 0.9132 MB / 1.44 GB, free: 180.9 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 0.0006298/1.527, allocations: 147.5 kB / 1.44 GB, free: 180.9 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001733/1.527, allocations: 42.45 kB / 1.44 GB, free: 180.9 MB / 0.9167 GB Notification: Performance of SimCode: time 8.62e-07/1.527, allocations: 6.531 kB / 1.44 GB, free: 180.9 MB / 0.9167 GB Notification: Performance of Templates: time 0.02005/1.547, allocations: 7.754 MB / 1.447 GB, free: 180.5 MB / 0.9167 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesBalanced_Storage_Examples_AcBattery.csv","../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches