Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/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 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_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_maint.8.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.815/1.815, allocations: 288.3 MB / 303.2 MB, free: 8.215 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001639/0.001639, allocations: 185 kB / 371.8 MB, free: 10.25 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.856/1.856, allocations: 205.4 MB / 0.6306 GB, free: 10.01 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008832/0.000883, allocations: 97.91 kB / 0.7439 GB, free: 5.934 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.000459/0.000459, allocations: 15.06 kB / 0.8668 GB, free: 142.2 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2831/0.2836, allocations: 115.3 MB / 0.9794 GB, free: 27.69 MB / 0.6198 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9162/1.2, allocations: 158.2 MB / 1.134 GB, free: 15.39 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003366/1.2, allocations: 100.5 kB / 1.134 GB, free: 15.37 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.07149/1.272, allocations: 29.53 MB / 1.163 GB, free: 14.88 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.585e-06/1.272, allocations: 0 / 1.163 GB, free: 14.88 MB / 0.698 GB Notification: Performance of Transformations before backend: time 6.502e-05/1.272, allocations: 12 kB / 1.163 GB, free: 14.87 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.002759/1.275, allocations: 0.8757 MB / 1.164 GB, free: 13.98 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 5.91e-05/1.275, allocations: 12.02 kB / 1.164 GB, free: 13.96 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001157/1.276, allocations: 151 kB / 1.164 GB, free: 13.82 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001032/1.277, allocations: 447.5 kB / 1.164 GB, free: 13.4 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.267e-05/1.277, allocations: 38.94 kB / 1.164 GB, free: 13.38 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001599/1.277, allocations: 50.61 kB / 1.164 GB, free: 13.34 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001501/1.279, allocations: 0.6773 MB / 1.165 GB, free: 12.83 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.448e-05/1.279, allocations: 0 / 1.165 GB, free: 12.83 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.84e-05/1.279, allocations: 34.16 kB / 1.165 GB, free: 12.81 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.351e-05/1.279, allocations: 36.36 kB / 1.165 GB, free: 12.78 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001242/1.28, allocations: 0.5742 MB / 1.166 GB, free: 12.38 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004179/1.284, allocations: 2.833 MB / 1.168 GB, free: 9.77 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001167/1.286, allocations: 0.5904 MB / 1.169 GB, free: 9.344 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000555/1.286, allocations: 0.5661 MB / 1.17 GB, free: 8.648 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007483/1.287, allocations: 406 kB / 1.17 GB, free: 8.332 MB / 0.698 GB Notification: Performance of pre-optimization done (n=49): time 3.297e-06/1.287, allocations: 0 / 1.17 GB, free: 8.332 MB / 0.698 GB Notification: Performance of matching and sorting (n=49): time 0.001575/1.289, allocations: 0.7725 MB / 1.171 GB, free: 7.777 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.333e-05/1.289, allocations: 89.48 kB / 1.171 GB, free: 7.672 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004006/1.289, allocations: 305.1 kB / 1.171 GB, free: 7.422 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 7.739e-05/1.289, allocations: 46.58 kB / 1.171 GB, free: 7.383 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002274/1.289, allocations: 287.8 kB / 1.171 GB, free: 7.16 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001832/1.29, allocations: 158.5 kB / 1.172 GB, free: 7.027 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.529e-05/1.29, allocations: 10.88 kB / 1.172 GB, free: 7.023 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001738/1.29, allocations: 349.4 kB / 1.172 GB, free: 6.691 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004704/1.29, allocations: 245.9 kB / 1.172 GB, free: 6.539 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005456/1.291, allocations: 364 kB / 1.172 GB, free: 6.234 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000526/1.291, allocations: 312.5 kB / 1.173 GB, free: 6.027 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.991e-06/1.291, allocations: 0 / 1.173 GB, free: 6.027 MB / 0.698 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001272/1.293, allocations: 0.7032 MB / 1.173 GB, free: 5.516 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005236/1.293, allocations: 1.077 MB / 1.175 GB, free: 4.371 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.265e-05/1.293, allocations: 3.984 kB / 1.175 GB, free: 4.367 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.217e-05/1.293, allocations: 12 kB / 1.175 GB, free: 4.355 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006053/1.294, allocations: 110.9 kB / 1.175 GB, free: 4.25 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.798e-05/1.294, allocations: 11.94 kB / 1.175 GB, free: 4.238 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005586/1.294, allocations: 73.19 kB / 1.175 GB, free: 4.176 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.759e-05/1.295, allocations: 19.31 kB / 1.175 GB, free: 4.16 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.44e-05/1.295, allocations: 4 kB / 1.175 GB, free: 4.156 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00105/1.296, allocations: 0.5915 MB / 1.175 GB, free: 3.746 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.606e-06/1.296, allocations: 4 kB / 1.175 GB, free: 3.742 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.697e-06/1.296, allocations: 4 kB / 1.175 GB, free: 3.738 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004085/1.296, allocations: 107.5 kB / 1.175 GB, free: 3.637 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.17e-05/1.296, allocations: 7.984 kB / 1.175 GB, free: 3.629 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004398/1.297, allocations: 74.41 kB / 1.176 GB, free: 3.566 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.128e-05/1.297, allocations: 19.62 kB / 1.176 GB, free: 3.551 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.0004025/1.297, allocations: 299 kB / 1.176 GB, free: 3.301 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.305e-05/1.297, allocations: 43.44 kB / 1.176 GB, free: 3.258 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001163/1.298, allocations: 0.6121 MB / 1.176 GB, free: 2.84 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.053e-05/1.298, allocations: 12.03 kB / 1.176 GB, free: 2.828 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.903e-06/1.298, allocations: 0 / 1.176 GB, free: 2.828 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.378e-05/1.298, allocations: 7.938 kB / 1.176 GB, free: 2.82 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00077/1.299, allocations: 0.6277 MB / 1.177 GB, free: 2.301 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.452e-06/1.299, allocations: 0 / 1.177 GB, free: 2.301 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004888/1.3, allocations: 94.86 kB / 1.177 GB, free: 2.211 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.107e-06/1.3, allocations: 4 kB / 1.177 GB, free: 2.207 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.483e-05/1.3, allocations: 11.5 kB / 1.177 GB, free: 2.203 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.631e-06/1.3, allocations: 192 / 1.177 GB, free: 2.203 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.589e-06/1.3, allocations: 8 kB / 1.177 GB, free: 2.195 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001497/1.301, allocations: 0.9368 MB / 1.178 GB, free: 1.523 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003245/1.302, allocations: 179.7 kB / 1.178 GB, free: 1.355 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.26e-05/1.302, allocations: 13.67 kB / 1.178 GB, free: 1.348 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003548/1.302, allocations: 45.08 kB / 1.178 GB, free: 1.312 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001514/1.302, allocations: 57.56 kB / 1.178 GB, free: 1.266 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.881e-05/1.302, allocations: 15.44 kB / 1.178 GB, free: 1.254 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0002763/1.303, allocations: 241.9 kB / 1.179 GB, free: 1.062 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.7e-07/1.303, allocations: 0 / 1.179 GB, free: 1.062 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0008591/1.303, allocations: 275.5 kB / 1.179 GB, free: 0.8164 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.0003013/1.304, allocations: 155 kB / 1.179 GB, free: 0.668 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.001728/1.305, allocations: 1.001 MB / 1.18 GB, free: 15.91 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/1.305, allocations: 0 / 1.18 GB, free: 15.91 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.0004891/1.306, allocations: 289.2 kB / 1.18 GB, free: 15.71 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007495/1.307, allocations: 147.1 kB / 1.18 GB, free: 15.6 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002343/1.309, allocations: 1.284 MB / 1.182 GB, free: 14.41 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005935/1.31, allocations: 0.9043 MB / 1.183 GB, free: 13.5 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 0.0005875/1.31, allocations: 152.4 kB / 1.183 GB, free: 13.35 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001576/1.31, allocations: 42.25 kB / 1.183 GB, free: 13.31 MB / 0.7136 GB Notification: Performance of SimCode: time 6.52e-07/1.31, allocations: 0 / 1.183 GB, free: 13.31 MB / 0.7136 GB Notification: Performance of Templates: time 0.01583/1.326, allocations: 7.658 MB / 1.19 GB, free: 5.766 MB / 0.7136 GB make -j1 -f Buildings_maint.8.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.makefile (rm -f Buildings_maint.8.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.sim & ./Buildings_maint.8.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.8.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe 2>&1)