Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.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_8.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.601/2.601, allocations: 287.5 MB / 303.2 MB, free: 8.23 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.0014/0.0014, allocations: 180.5 kB / 371.8 MB, free: 10.75 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.097/2.097, allocations: 205.4 MB / 0.6305 GB, free: 10.52 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.0009319/0.0009317, allocations: 94.52 kB / 0.7438 GB, free: 6.508 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0005532/0.0005535, allocations: 13.62 kB / 0.8667 GB, free: 141.1 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2224/0.223, allocations: 115.3 MB / 0.9793 GB, free: 28.16 MB / 0.6198 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9692/1.192, allocations: 158.2 MB / 1.134 GB, free: 15.55 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003522/1.193, allocations: 100 kB / 1.134 GB, free: 15.53 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.1145/1.307, allocations: 29.29 MB / 1.162 GB, free: 16.02 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.705e-06/1.307, allocations: 0 / 1.162 GB, free: 16.02 MB / 0.698 GB Notification: Performance of Transformations before backend: time 4.732e-05/1.307, allocations: 12 kB / 1.162 GB, free: 16.01 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.002598/1.31, allocations: 0.8718 MB / 1.163 GB, free: 15.12 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.98e-05/1.31, allocations: 8.031 kB / 1.163 GB, free: 15.11 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001458/1.311, allocations: 156 kB / 1.163 GB, free: 14.96 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009796/1.312, allocations: 455.1 kB / 1.164 GB, free: 14.54 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.135e-05/1.313, allocations: 40.19 kB / 1.164 GB, free: 14.51 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001349/1.313, allocations: 47.25 kB / 1.164 GB, free: 14.48 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001785/1.314, allocations: 0.6851 MB / 1.165 GB, free: 13.96 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.238e-05/1.314, allocations: 192 / 1.165 GB, free: 13.96 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.39e-05/1.315, allocations: 30.3 kB / 1.165 GB, free: 13.94 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.48e-05/1.315, allocations: 40.66 kB / 1.165 GB, free: 13.91 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00177/1.316, allocations: 0.5834 MB / 1.165 GB, free: 13.5 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00525/1.322, allocations: 2.833 MB / 1.168 GB, free: 10.89 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001811/1.324, allocations: 0.5808 MB / 1.169 GB, free: 10.47 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008005/1.324, allocations: 266.8 kB / 1.169 GB, free: 10.29 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006549/1.325, allocations: 0.5739 MB / 1.169 GB, free: 9.594 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001096/1.326, allocations: 414.3 kB / 1.17 GB, free: 9.266 MB / 0.698 GB Notification: Performance of pre-optimization done (n=49): time 3.767e-06/1.326, allocations: 0 / 1.17 GB, free: 9.266 MB / 0.698 GB Notification: Performance of matching and sorting (n=49): time 0.00279/1.329, allocations: 0.7698 MB / 1.171 GB, free: 8.715 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.893e-05/1.329, allocations: 89.48 kB / 1.171 GB, free: 8.609 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006233/1.33, allocations: 353 kB / 1.171 GB, free: 8.324 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 0.0001519/1.33, allocations: 44.33 kB / 1.171 GB, free: 8.285 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003177/1.33, allocations: 277 kB / 1.171 GB, free: 8.07 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002255/1.331, allocations: 157.6 kB / 1.171 GB, free: 7.938 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.117e-05/1.331, allocations: 9.625 kB / 1.171 GB, free: 7.938 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001896/1.331, allocations: 352.5 kB / 1.172 GB, free: 7.602 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008249/1.332, allocations: 247.2 kB / 1.172 GB, free: 7.449 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009662/1.333, allocations: 374.8 kB / 1.172 GB, free: 7.137 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001627/1.334, allocations: 0.5957 MB / 1.173 GB, free: 6.691 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.223e-05/1.334, allocations: 4 kB / 1.173 GB, free: 6.688 MB / 0.698 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.002142/1.337, allocations: 0.7075 MB / 1.174 GB, free: 6.168 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001673/1.337, allocations: 196.2 kB / 1.174 GB, free: 5.941 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.295e-05/1.337, allocations: 4 kB / 1.174 GB, free: 5.938 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.45e-05/1.337, allocations: 4 kB / 1.174 GB, free: 5.934 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009975/1.338, allocations: 115.7 kB / 1.174 GB, free: 5.824 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.802e-05/1.338, allocations: 11.94 kB / 1.174 GB, free: 5.812 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008807/1.339, allocations: 78.72 kB / 1.174 GB, free: 5.746 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.011e-05/1.339, allocations: 19.56 kB / 1.174 GB, free: 5.73 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.179e-05/1.339, allocations: 4 kB / 1.174 GB, free: 5.727 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001762/1.341, allocations: 0.5968 MB / 1.175 GB, free: 5.309 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.632e-06/1.341, allocations: 0 / 1.175 GB, free: 5.309 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.793e-05/1.341, allocations: 15.97 kB / 1.175 GB, free: 5.293 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008056/1.341, allocations: 106.1 kB / 1.175 GB, free: 5.195 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.595e-05/1.341, allocations: 11.98 kB / 1.175 GB, free: 5.184 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007499/1.342, allocations: 59.02 kB / 1.175 GB, free: 5.133 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.247e-05/1.342, allocations: 27.31 kB / 1.175 GB, free: 5.113 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.0005788/1.343, allocations: 292.8 kB / 1.175 GB, free: 4.867 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001225/1.343, allocations: 47.47 kB / 1.175 GB, free: 4.82 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001844/1.345, allocations: 0.6122 MB / 1.176 GB, free: 4.402 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.356e-05/1.345, allocations: 4 kB / 1.176 GB, free: 4.398 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.123e-06/1.345, allocations: 3.938 kB / 1.176 GB, free: 4.395 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.172e-05/1.345, allocations: 3.984 kB / 1.176 GB, free: 4.391 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001182/1.346, allocations: 0.6222 MB / 1.176 GB, free: 3.875 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.154e-06/1.346, allocations: 3.984 kB / 1.176 GB, free: 3.871 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009813/1.347, allocations: 95.3 kB / 1.177 GB, free: 3.781 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.919e-06/1.347, allocations: 3.938 kB / 1.177 GB, free: 3.777 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.59e-05/1.347, allocations: 10.56 kB / 1.177 GB, free: 3.773 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.227e-06/1.347, allocations: 8 kB / 1.177 GB, free: 3.766 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/1.347, allocations: 3.938 kB / 1.177 GB, free: 3.762 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002625/1.35, allocations: 0.9224 MB / 1.177 GB, free: 3.109 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003653/1.35, allocations: 176.5 kB / 1.178 GB, free: 2.945 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001251/1.35, allocations: 19.73 kB / 1.178 GB, free: 2.934 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006051/1.351, allocations: 39.33 kB / 1.178 GB, free: 2.902 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001941/1.351, allocations: 47.98 kB / 1.178 GB, free: 2.863 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.909e-05/1.351, allocations: 24.94 kB / 1.178 GB, free: 2.844 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.000404/1.352, allocations: 242.5 kB / 1.178 GB, free: 2.652 MB / 0.698 GB Notification: Performance of sort global known variables: time 4.01e-07/1.352, allocations: 0 / 1.178 GB, free: 2.652 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.001185/1.353, allocations: 281 kB / 1.178 GB, free: 2.402 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.0003122/1.353, allocations: 143.8 kB / 1.178 GB, free: 2.266 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.002769/1.356, allocations: 0.9967 MB / 1.179 GB, free: 1.516 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 4.329e-06/1.356, allocations: 0 / 1.179 GB, free: 1.516 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0008456/1.357, allocations: 292.7 kB / 1.18 GB, free: 1.312 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00146/1.358, allocations: 156.8 kB / 1.18 GB, free: 1.191 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003376/1.362, allocations: 1.286 MB / 1.181 GB, free: 8 kB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006155/1.363, allocations: 0.892 MB / 1.182 GB, free: 15.11 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 0.001006/1.364, allocations: 152.3 kB / 1.182 GB, free: 14.95 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002648/1.364, allocations: 46.61 kB / 1.182 GB, free: 14.91 MB / 0.7136 GB Notification: Performance of SimCode: time 1.173e-06/1.364, allocations: 4 kB / 1.182 GB, free: 14.91 MB / 0.7136 GB Notification: Performance of Templates: time 0.02267/1.387, allocations: 7.675 MB / 1.19 GB, free: 7.316 MB / 0.7136 GB make -j1 -f Buildings_8.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.makefile (rm -f Buildings_8.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe ; mkfifo Buildings_8.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe >> ../files/Buildings_8.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.sim & ./Buildings_8.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe 2>&1)