Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_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_7.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.267/2.267, allocations: 251.1 MB / 266.7 MB, free: 11.55 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001297/0.001297, allocations: 181.7 kB / 326.2 MB, free: 2.859 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.43/2.43, allocations: 205.4 MB / 0.5772 GB, free: 20.79 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009492/0.000949, allocations: 94.23 kB / 0.6817 GB, free: 13.63 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0005545/0.0005549, allocations: 19.7 kB / 0.7957 GB, free: 135.6 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2293/0.2298, allocations: 106.3 MB / 0.8995 GB, free: 65.54 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.261/0.4909, allocations: 151.8 MB / 1.048 GB, free: 9.477 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003696/0.4913, allocations: 103.9 kB / 1.048 GB, free: 9.375 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 0.9123/1.404, allocations: 29.28 MB / 1.076 GB, free: 63.59 MB / 0.698 GB Notification: Performance of FrontEnd: time 3.847e-06/1.404, allocations: 1.219 kB / 1.076 GB, free: 63.59 MB / 0.698 GB Notification: Performance of Transformations before backend: time 4.724e-05/1.404, allocations: 10.56 kB / 1.076 GB, free: 63.59 MB / 0.698 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.002688/1.406, allocations: 0.8839 MB / 1.077 GB, free: 62.96 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.777e-05/1.407, allocations: 9.469 kB / 1.077 GB, free: 62.96 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001548/1.408, allocations: 159.3 kB / 1.078 GB, free: 62.92 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001092/1.409, allocations: 440.7 kB / 1.078 GB, free: 62.66 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.225e-05/1.409, allocations: 35.03 kB / 1.078 GB, free: 62.66 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001505/1.409, allocations: 56.44 kB / 1.078 GB, free: 62.66 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002024/1.412, allocations: 0.6812 MB / 1.079 GB, free: 62.53 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.897e-05/1.412, allocations: 192 / 1.079 GB, free: 62.53 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001191/1.412, allocations: 29.41 kB / 1.079 GB, free: 62.53 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001084/1.412, allocations: 41.39 kB / 1.079 GB, free: 62.53 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002113/1.414, allocations: 0.5802 MB / 1.079 GB, free: 62.51 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005602/1.42, allocations: 2.835 MB / 1.082 GB, free: 60.79 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001985/1.422, allocations: 0.5795 MB / 1.083 GB, free: 60.73 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008228/1.423, allocations: 267.6 kB / 1.083 GB, free: 60.71 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005403/1.423, allocations: 0.5678 MB / 1.083 GB, free: 60.05 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001178/1.424, allocations: 420 kB / 1.084 GB, free: 59.97 MB / 0.698 GB Notification: Performance of pre-optimization done (n=49): time 3.718e-06/1.424, allocations: 0 / 1.084 GB, free: 59.97 MB / 0.698 GB Notification: Performance of matching and sorting (n=49): time 0.002667/1.427, allocations: 0.7756 MB / 1.085 GB, free: 59.89 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.011e-05/1.427, allocations: 85.25 kB / 1.085 GB, free: 59.8 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005808/1.428, allocations: 345.2 kB / 1.085 GB, free: 59.68 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 0.0001162/1.428, allocations: 47.2 kB / 1.085 GB, free: 59.65 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002595/1.428, allocations: 274.8 kB / 1.085 GB, free: 59.49 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001931/1.428, allocations: 160.4 kB / 1.085 GB, free: 59.39 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.598e-05/1.428, allocations: 12.22 kB / 1.086 GB, free: 59.39 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001123/1.428, allocations: 352.6 kB / 1.086 GB, free: 59.08 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008479/1.429, allocations: 241.8 kB / 1.086 GB, free: 59.08 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008672/1.43, allocations: 377.1 kB / 1.086 GB, free: 58.95 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007949/1.431, allocations: 294 kB / 1.087 GB, free: 58.91 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.022e-06/1.431, allocations: 4 kB / 1.087 GB, free: 58.91 MB / 0.698 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001956/1.433, allocations: 0.708 MB / 1.087 GB, free: 58.79 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001159/1.433, allocations: 197.9 kB / 1.088 GB, free: 58.57 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.27e-05/1.433, allocations: 3.906 kB / 1.088 GB, free: 58.57 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.854e-05/1.433, allocations: 11.75 kB / 1.088 GB, free: 58.57 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000962/1.434, allocations: 114.4 kB / 1.088 GB, free: 58.56 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.478e-05/1.434, allocations: 3.906 kB / 1.088 GB, free: 58.56 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009356/1.435, allocations: 77.64 kB / 1.088 GB, free: 58.54 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.796e-05/1.435, allocations: 23.8 kB / 1.088 GB, free: 58.54 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.006e-05/1.435, allocations: 0 / 1.088 GB, free: 58.54 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001688/1.437, allocations: 0.5917 MB / 1.088 GB, free: 58.48 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.577e-06/1.437, allocations: 4.281 kB / 1.088 GB, free: 58.48 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.196e-05/1.437, allocations: 7.844 kB / 1.088 GB, free: 58.47 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007958/1.438, allocations: 107.9 kB / 1.089 GB, free: 58.46 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.614e-05/1.438, allocations: 17.2 kB / 1.089 GB, free: 58.46 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008089/1.439, allocations: 61.72 kB / 1.089 GB, free: 58.44 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.887e-05/1.439, allocations: 24.67 kB / 1.089 GB, free: 58.43 MB / 0.698 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.0005764/1.439, allocations: 294.6 kB / 1.089 GB, free: 58.24 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000124/1.439, allocations: 51.66 kB / 1.089 GB, free: 58.21 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001826/1.441, allocations: 0.6052 MB / 1.09 GB, free: 58.16 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.045e-05/1.441, allocations: 3.906 kB / 1.09 GB, free: 58.16 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.556e-06/1.441, allocations: 0 / 1.09 GB, free: 58.16 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.399e-05/1.441, allocations: 6.344 kB / 1.09 GB, free: 58.16 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001228/1.443, allocations: 0.628 MB / 1.09 GB, free: 57.95 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.702e-06/1.443, allocations: 0.5156 kB / 1.09 GB, free: 57.95 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009463/1.444, allocations: 98.47 kB / 1.09 GB, free: 57.95 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.828e-06/1.444, allocations: 11.78 kB / 1.09 GB, free: 57.94 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.321e-05/1.444, allocations: 13.86 kB / 1.09 GB, free: 57.94 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.751e-06/1.444, allocations: 3.938 kB / 1.09 GB, free: 57.93 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/1.444, allocations: 3.906 kB / 1.09 GB, free: 57.93 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00243/1.446, allocations: 0.9156 MB / 1.091 GB, free: 57.82 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003639/1.447, allocations: 177.8 kB / 1.091 GB, free: 57.71 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001231/1.447, allocations: 14.56 kB / 1.091 GB, free: 57.7 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006186/1.447, allocations: 44.28 kB / 1.091 GB, free: 57.7 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001872/1.448, allocations: 53.56 kB / 1.091 GB, free: 57.7 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.144e-05/1.448, allocations: 15.2 kB / 1.091 GB, free: 57.7 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0003631/1.448, allocations: 246.2 kB / 1.092 GB, free: 57.61 MB / 0.698 GB Notification: Performance of sort global known variables: time 4.41e-07/1.448, allocations: 0 / 1.092 GB, free: 57.61 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.00113/1.449, allocations: 278.4 kB / 1.092 GB, free: 57.56 MB / 0.698 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.0002844/1.449, allocations: 151.9 kB / 1.092 GB, free: 57.45 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.002621/1.452, allocations: 0.9979 MB / 1.093 GB, free: 57.28 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 8.356e-06/1.452, allocations: 3.906 kB / 1.093 GB, free: 57.28 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0008313/1.453, allocations: 290.6 kB / 1.093 GB, free: 57.27 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001457/1.454, allocations: 161.7 kB / 1.094 GB, free: 57.25 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003211/1.458, allocations: 1.288 MB / 1.095 GB, free: 56.64 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004272/1.458, allocations: 0.8923 MB / 1.096 GB, free: 55.94 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0009954/1.459, allocations: 149.2 kB / 1.096 GB, free: 55.9 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002617/1.459, allocations: 49.56 kB / 1.096 GB, free: 55.89 MB / 0.698 GB Notification: Performance of SimCode: time 1.603e-06/1.459, allocations: 0 / 1.096 GB, free: 55.89 MB / 0.698 GB Notification: Performance of Templates: time 0.02044/1.48, allocations: 7.663 MB / 1.103 GB, free: 55.42 MB / 0.698 GB make -j1 -f Buildings_7.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.makefile (rm -f Buildings_7.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe ; mkfifo Buildings_7.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe ; head -c 1048576 < Buildings_7.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe >> ../files/Buildings_7.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.sim & ./Buildings_7.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_7.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe 2>&1)