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: "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery,fileNamePrefix="Buildings_8_0_0_Buildings_Electrical_AC_ThreePhasesBalanced_Storage_Examples_AcBattery",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery,fileNamePrefix="Buildings_8_0_0_Buildings_Electrical_AC_ThreePhasesBalanced_Storage_Examples_AcBattery",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.569/2.569, allocations: 287.3 MB / 302.3 MB, free: 8.289 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.001511/0.001511, allocations: 173.8 kB / 370.8 MB, free: 10.88 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.152/2.152, allocations: 205.4 MB / 0.6295 GB, free: 10.55 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.001136/0.001135, allocations: 86.03 kB / 0.7428 GB, free: 6.551 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0007296/0.0007298, allocations: 12.56 kB / 0.8657 GB, free: 140.6 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2257/0.2266, allocations: 115.3 MB / 0.9783 GB, free: 28.3 MB / 0.6198 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9788/1.205, allocations: 158.2 MB / 1.133 GB, free: 15.28 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000336/1.206, allocations: 95.72 kB / 1.133 GB, free: 15.26 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.1248/1.331, allocations: 29.25 MB / 1.161 GB, free: 15.95 MB / 0.698 GB Notification: Performance of FrontEnd: time 3.707e-06/1.331, allocations: 0 / 1.161 GB, free: 15.95 MB / 0.698 GB Notification: Performance of Transformations before backend: time 6.181e-05/1.331, allocations: 12 kB / 1.161 GB, free: 15.94 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.003941/1.335, allocations: 0.8878 MB / 1.162 GB, free: 15.04 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 6.687e-05/1.335, allocations: 8.031 kB / 1.162 GB, free: 15.04 MB / 0.698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004077/1.335, allocations: 94.56 kB / 1.162 GB, free: 14.96 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002451/1.338, allocations: 159 kB / 1.163 GB, free: 14.8 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001676/1.339, allocations: 444.9 kB / 1.163 GB, free: 14.39 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.055e-05/1.34, allocations: 34.19 kB / 1.163 GB, free: 14.38 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002304/1.34, allocations: 58.17 kB / 1.163 GB, free: 14.33 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002941/1.343, allocations: 0.6787 MB / 1.164 GB, free: 13.82 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.286e-05/1.343, allocations: 0 / 1.164 GB, free: 13.82 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001432/1.343, allocations: 24.16 kB / 1.164 GB, free: 13.8 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001463/1.343, allocations: 40.73 kB / 1.164 GB, free: 13.77 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002908/1.346, allocations: 0.5788 MB / 1.164 GB, free: 13.37 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009092/1.355, allocations: 2.825 MB / 1.167 GB, free: 10.77 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00302/1.358, allocations: 0.5875 MB / 1.168 GB, free: 10.34 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009415/1.359, allocations: 0.5731 MB / 1.168 GB, free: 9.641 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001776/1.361, allocations: 411.5 kB / 1.169 GB, free: 9.316 MB / 0.698 GB Notification: Performance of pre-optimization done (n=49): time 5.711e-06/1.361, allocations: 0 / 1.169 GB, free: 9.316 MB / 0.698 GB Notification: Performance of matching and sorting (n=49): time 0.004142/1.365, allocations: 0.7749 MB / 1.169 GB, free: 8.758 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.833e-05/1.366, allocations: 82.17 kB / 1.169 GB, free: 8.66 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008397/1.366, allocations: 307.1 kB / 1.17 GB, free: 8.41 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 0.0002169/1.367, allocations: 43.95 kB / 1.17 GB, free: 8.371 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004238/1.367, allocations: 274.2 kB / 1.17 GB, free: 8.164 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003494/1.367, allocations: 163.3 kB / 1.17 GB, free: 8.023 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.508e-05/1.368, allocations: 14.94 kB / 1.17 GB, free: 8.02 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0002536/1.368, allocations: 352.7 kB / 1.171 GB, free: 7.684 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001238/1.369, allocations: 245.7 kB / 1.171 GB, free: 7.531 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001351/1.37, allocations: 374 kB / 1.171 GB, free: 7.223 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001359/1.372, allocations: 302.3 kB / 1.171 GB, free: 7.023 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.365e-05/1.372, allocations: 4 kB / 1.171 GB, free: 7.02 MB / 0.698 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.003329/1.375, allocations: 0.6982 MB / 1.172 GB, free: 6.512 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007427/1.376, allocations: 1.086 MB / 1.173 GB, free: 5.359 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.364e-05/1.376, allocations: 4 kB / 1.173 GB, free: 5.355 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.714e-05/1.376, allocations: 4 kB / 1.173 GB, free: 5.352 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001758/1.378, allocations: 115.4 kB / 1.173 GB, free: 5.242 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.608e-05/1.378, allocations: 4 kB / 1.173 GB, free: 5.238 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001462/1.379, allocations: 74.25 kB / 1.173 GB, free: 5.176 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001177/1.38, allocations: 19.88 kB / 1.173 GB, free: 5.16 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 2.07e-05/1.38, allocations: 4 kB / 1.173 GB, free: 5.156 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002935/1.383, allocations: 0.6011 MB / 1.174 GB, free: 4.734 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.721e-05/1.383, allocations: 4 kB / 1.174 GB, free: 4.73 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.124e-05/1.383, allocations: 4 kB / 1.174 GB, free: 4.727 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001405/1.384, allocations: 111.5 kB / 1.174 GB, free: 4.621 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.468e-05/1.384, allocations: 7.984 kB / 1.174 GB, free: 4.613 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001199/1.385, allocations: 67.33 kB / 1.174 GB, free: 4.559 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001241/1.386, allocations: 23.69 kB / 1.174 GB, free: 4.539 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.0008432/1.386, allocations: 292.3 kB / 1.174 GB, free: 4.293 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002273/1.387, allocations: 47.44 kB / 1.175 GB, free: 4.246 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003029/1.39, allocations: 0.6136 MB / 1.175 GB, free: 3.828 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.003e-05/1.39, allocations: 7.953 kB / 1.175 GB, free: 3.82 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.098e-05/1.39, allocations: 0 / 1.175 GB, free: 3.82 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.991e-05/1.39, allocations: 7.984 kB / 1.175 GB, free: 3.812 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00178/1.392, allocations: 0.6216 MB / 1.176 GB, free: 3.297 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.125e-06/1.392, allocations: 0 / 1.176 GB, free: 3.297 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001542/1.393, allocations: 98.98 kB / 1.176 GB, free: 3.203 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.795e-05/1.393, allocations: 4 kB / 1.176 GB, free: 3.199 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.157e-05/1.393, allocations: 14 kB / 1.176 GB, free: 3.195 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.477e-05/1.393, allocations: 4 kB / 1.176 GB, free: 3.191 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.212e-06/1.393, allocations: 7.891 kB / 1.176 GB, free: 3.184 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004045/1.398, allocations: 0.928 MB / 1.177 GB, free: 2.52 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005714/1.398, allocations: 176.6 kB / 1.177 GB, free: 2.352 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001795/1.398, allocations: 18.62 kB / 1.177 GB, free: 2.344 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009534/1.399, allocations: 39.03 kB / 1.177 GB, free: 2.312 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002954/1.4, allocations: 55.11 kB / 1.177 GB, free: 2.266 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.794e-05/1.4, allocations: 18.81 kB / 1.177 GB, free: 2.254 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0006344/1.4, allocations: 241.1 kB / 1.177 GB, free: 2.062 MB / 0.698 GB Notification: Performance of sort global known variables: time 6.31e-07/1.4, allocations: 0 / 1.177 GB, free: 2.062 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.002096/1.403, allocations: 288 kB / 1.178 GB, free: 1.805 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.005007/1.408, allocations: 1.593 MB / 1.179 GB, free: 488 kB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.004616/1.412, allocations: 0.9998 MB / 1.18 GB, free: 15.72 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 1.076e-05/1.412, allocations: 0 / 1.18 GB, free: 15.72 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.001393/1.414, allocations: 288.7 kB / 1.18 GB, free: 15.52 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001405/1.415, allocations: 153 kB / 1.181 GB, free: 15.4 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009625/1.425, allocations: 4.791 MB / 1.185 GB, free: 11.09 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006941/1.426, allocations: 0.9066 MB / 1.186 GB, free: 10.18 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 0.001029/1.427, allocations: 144.4 kB / 1.186 GB, free: 10.04 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004821/1.427, allocations: 187.9 kB / 1.186 GB, free: 9.98 MB / 0.7136 GB Notification: Performance of SimCode: time 1.332e-06/1.427, allocations: 0 / 1.186 GB, free: 9.98 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04547/1.473, allocations: 11.92 MB / 1.198 GB, free: 14.31 MB / 0.7292 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003373/1.473, allocations: 207.7 kB / 1.198 GB, free: 14.07 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.05/4.523, allocations: 0 / 1.198 GB, free: 14.07 MB / 0.7292 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Electrical_AC_ThreePhasesBalanced_Storage_Examples_AcBattery_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Electrical_AC_ThreePhasesBalanced_Storage_Examples_AcBattery.fmu > Buildings_8.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe 2>&1)