Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.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) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo) Running command: translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 1.609/1.609, allocations: 297.8 MB / 313.7 MB, free: 60 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00106/0.00106, allocations: 178.9 kB / 384.6 MB, free: 10.79 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.297/1.297, allocations: 223.2 MB / 0.6626 GB, free: 4.219 MB / 490.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007584/0.0007585, allocations: 97.77 kB / 0.7808 GB, free: 50.34 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.000432/0.000432, allocations: 8 kB / 0.9088 GB, free: 2.887 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7128/0.7133, allocations: 120.3 MB / 1.026 GB, free: 55.78 MB / 0.7292 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2327/0.946, allocations: 161.6 MB / 1.184 GB, free: 204 kB / 0.7448 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003191/0.9464, allocations: 98.86 kB / 1.184 GB, free: 108 kB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 0.07943/1.026, allocations: 31.61 MB / 1.215 GB, free: 0.668 MB / 0.7761 GB Notification: Performance of FrontEnd: time 1.844e-06/1.026, allocations: 0 / 1.215 GB, free: 0.668 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 4.52e-05/1.026, allocations: 16 kB / 1.215 GB, free: 0.6523 MB / 0.7761 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.002051/1.028, allocations: 0.8731 MB / 1.216 GB, free: 15.72 MB / 0.7917 GB Notification: Performance of prepare preOptimizeDAE: time 4.369e-05/1.028, allocations: 9.344 kB / 1.216 GB, free: 15.71 MB / 0.7917 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000967/1.029, allocations: 152 kB / 1.216 GB, free: 15.56 MB / 0.7917 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000786/1.03, allocations: 453.8 kB / 1.217 GB, free: 15.08 MB / 0.7917 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.032e-05/1.03, allocations: 38.5 kB / 1.217 GB, free: 15.04 MB / 0.7917 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001216/1.03, allocations: 60.3 kB / 1.217 GB, free: 14.98 MB / 0.7917 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001319/1.031, allocations: 0.6814 MB / 1.217 GB, free: 14.27 MB / 0.7917 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.05e-05/1.031, allocations: 192 / 1.217 GB, free: 14.27 MB / 0.7917 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.948e-05/1.031, allocations: 35.84 kB / 1.217 GB, free: 14.23 MB / 0.7917 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.011e-05/1.032, allocations: 36.98 kB / 1.217 GB, free: 14.2 MB / 0.7917 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001237/1.033, allocations: 0.5777 MB / 1.218 GB, free: 13.62 MB / 0.7917 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003665/1.036, allocations: 2.825 MB / 1.221 GB, free: 10.57 MB / 0.7917 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001049/1.038, allocations: 0.5878 MB / 1.221 GB, free: 9.965 MB / 0.7917 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004377/1.038, allocations: 269.6 kB / 1.222 GB, free: 9.695 MB / 0.7917 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000458/1.038, allocations: 0.5682 MB / 1.222 GB, free: 9 MB / 0.7917 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006822/1.039, allocations: 415.7 kB / 1.222 GB, free: 8.578 MB / 0.7917 GB Notification: Performance of pre-optimization done (n=49): time 2.755e-06/1.039, allocations: 0 / 1.222 GB, free: 8.578 MB / 0.7917 GB Notification: Performance of matching and sorting (n=49): time 0.001512/1.041, allocations: 0.7717 MB / 1.223 GB, free: 7.797 MB / 0.7917 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.312e-05/1.041, allocations: 85.55 kB / 1.223 GB, free: 7.695 MB / 0.7917 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003739/1.041, allocations: 337.7 kB / 1.224 GB, free: 7.359 MB / 0.7917 GB Notification: Performance of collectPreVariables (initialization): time 6.536e-05/1.041, allocations: 47.2 kB / 1.224 GB, free: 7.309 MB / 0.7917 GB Notification: Performance of collectInitialEqns (initialization): time 0.000196/1.041, allocations: 280.5 kB / 1.224 GB, free: 7.027 MB / 0.7917 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001446/1.042, allocations: 165.9 kB / 1.224 GB, free: 6.863 MB / 0.7917 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.899e-05/1.042, allocations: 8 kB / 1.224 GB, free: 6.855 MB / 0.7917 GB Notification: Performance of setup shared object (initialization): time 0.000139/1.042, allocations: 354.8 kB / 1.224 GB, free: 6.5 MB / 0.7917 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004569/1.042, allocations: 248.9 kB / 1.225 GB, free: 6.258 MB / 0.7917 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005245/1.043, allocations: 366.4 kB / 1.225 GB, free: 5.859 MB / 0.7917 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009402/1.044, allocations: 0.597 MB / 1.226 GB, free: 5.219 MB / 0.7917 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.052e-06/1.044, allocations: 4 kB / 1.226 GB, free: 5.215 MB / 0.7917 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.00123/1.045, allocations: 0.7025 MB / 1.226 GB, free: 4.5 MB / 0.7917 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001333/1.045, allocations: 198.2 kB / 1.227 GB, free: 4.262 MB / 0.7917 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.754e-06/1.045, allocations: 0 / 1.227 GB, free: 4.262 MB / 0.7917 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.275e-05/1.045, allocations: 13.12 kB / 1.227 GB, free: 4.25 MB / 0.7917 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005155/1.046, allocations: 115.8 kB / 1.227 GB, free: 4.137 MB / 0.7917 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.369e-05/1.046, allocations: 8 kB / 1.227 GB, free: 4.129 MB / 0.7917 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004798/1.046, allocations: 67.62 kB / 1.227 GB, free: 4.062 MB / 0.7917 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.967e-05/1.046, allocations: 20.56 kB / 1.227 GB, free: 4.043 MB / 0.7917 GB Notification: Performance of prepare postOptimizeDAE: time 7.605e-06/1.046, allocations: 4 kB / 1.227 GB, free: 4.039 MB / 0.7917 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00101/1.047, allocations: 0.592 MB / 1.227 GB, free: 3.441 MB / 0.7917 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.119e-06/1.047, allocations: 4 kB / 1.227 GB, free: 3.438 MB / 0.7917 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.538e-06/1.047, allocations: 11.94 kB / 1.227 GB, free: 3.426 MB / 0.7917 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004075/1.048, allocations: 108.1 kB / 1.227 GB, free: 3.32 MB / 0.7917 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.062e-05/1.048, allocations: 9.812 kB / 1.227 GB, free: 3.312 MB / 0.7917 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004063/1.048, allocations: 72.86 kB / 1.228 GB, free: 3.242 MB / 0.7917 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.336e-05/1.048, allocations: 23.98 kB / 1.228 GB, free: 3.219 MB / 0.7917 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.0003316/1.049, allocations: 304 kB / 1.228 GB, free: 2.914 MB / 0.7917 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.32e-05/1.049, allocations: 47.47 kB / 1.228 GB, free: 2.867 MB / 0.7917 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001047/1.05, allocations: 0.6048 MB / 1.228 GB, free: 2.258 MB / 0.7917 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.947e-06/1.05, allocations: 8 kB / 1.228 GB, free: 2.25 MB / 0.7917 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.001e-06/1.05, allocations: 0 / 1.228 GB, free: 2.25 MB / 0.7917 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.855e-06/1.05, allocations: 7.984 kB / 1.228 GB, free: 2.242 MB / 0.7917 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006871/1.05, allocations: 0.6186 MB / 1.229 GB, free: 1.574 MB / 0.7917 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/1.05, allocations: 3.938 kB / 1.229 GB, free: 1.57 MB / 0.7917 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004554/1.051, allocations: 96.53 kB / 1.229 GB, free: 1.477 MB / 0.7917 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.589e-06/1.051, allocations: 7.938 kB / 1.229 GB, free: 1.469 MB / 0.7917 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.675e-05/1.051, allocations: 12 kB / 1.229 GB, free: 1.457 MB / 0.7917 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.035e-06/1.051, allocations: 0 / 1.229 GB, free: 1.457 MB / 0.7917 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/1.051, allocations: 4 kB / 1.229 GB, free: 1.453 MB / 0.7917 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001449/1.052, allocations: 0.9156 MB / 1.23 GB, free: 0.5195 MB / 0.7917 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002219/1.053, allocations: 184.4 kB / 1.23 GB, free: 328 kB / 0.7917 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.406e-05/1.053, allocations: 19.92 kB / 1.23 GB, free: 308 kB / 0.7917 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003304/1.053, allocations: 39.95 kB / 1.23 GB, free: 268 kB / 0.7917 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001354/1.053, allocations: 53.7 kB / 1.23 GB, free: 216 kB / 0.7917 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.525e-05/1.053, allocations: 16 kB / 1.23 GB, free: 200 kB / 0.7917 GB Notification: Performance of sorting global known variables: time 0.0002473/1.054, allocations: 243.2 kB / 1.231 GB, free: 15.96 MB / 0.8073 GB Notification: Performance of sort global known variables: time 1.2e-07/1.054, allocations: 0 / 1.231 GB, free: 15.96 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0007/1.054, allocations: 275.1 kB / 1.231 GB, free: 15.69 MB / 0.8073 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.0002278/1.054, allocations: 165.1 kB / 1.231 GB, free: 15.52 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.001553/1.056, allocations: 0.9993 MB / 1.232 GB, free: 14.5 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 3.556e-06/1.056, allocations: 0 / 1.232 GB, free: 14.5 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 0.0004704/1.057, allocations: 295 kB / 1.232 GB, free: 14.21 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007599/1.057, allocations: 164 kB / 1.232 GB, free: 14.06 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001938/1.059, allocations: 1.291 MB / 1.234 GB, free: 12.75 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003994/1.06, allocations: 0.8914 MB / 1.235 GB, free: 11.82 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 0.000539/1.06, allocations: 144.5 kB / 1.235 GB, free: 11.68 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001354/1.06, allocations: 39.44 kB / 1.235 GB, free: 11.64 MB / 0.8073 GB Notification: Performance of SimCode: time 2.8e-07/1.06, allocations: 0 / 1.235 GB, free: 11.64 MB / 0.8073 GB Notification: Performance of Templates: time 0.01209/1.072, allocations: 7.771 MB / 1.242 GB, free: 4.062 MB / 0.8073 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe 2>&1)