Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Electrical.AC.OnePhase.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: "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Electrical_AC_OnePhase_Storage_Examples_AcBattery",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Electrical_AC_OnePhase_Storage_Examples_AcBattery",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.624/1.624, allocations: 285.4 MB / 298 MB, free: 5.953 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.001428/0.001428, allocations: 176.9 kB / 366.4 MB, free: 2.094 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.612/1.612, allocations: 205.1 MB / 0.6248 GB, free: 7.734 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008707/0.0008707, allocations: 96.12 kB / 0.738 GB, free: 40.27 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 3.618e-05/3.62e-05, allocations: 7.984 kB / 0.8584 GB, free: 12.98 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6612/0.6613, allocations: 115.3 MB / 0.971 GB, free: 77.72 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.207/0.8683, allocations: 156.7 MB / 1.124 GB, free: 11.08 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002547/0.8686, allocations: 97.67 kB / 1.124 GB, free: 10.99 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 0.07197/0.9406, allocations: 27.47 MB / 1.151 GB, free: 15.48 MB / 0.7605 GB Notification: Performance of FrontEnd: time 1.553e-06/0.9407, allocations: 0 / 1.151 GB, free: 15.48 MB / 0.7605 GB Notification: Performance of Transformations before backend: time 3.711e-05/0.9407, allocations: 23.92 kB / 1.151 GB, free: 15.46 MB / 0.7605 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.001536/0.9423, allocations: 0.8141 MB / 1.152 GB, free: 14.59 MB / 0.7605 GB Notification: Performance of prepare preOptimizeDAE: time 5.583e-05/0.9423, allocations: 12.03 kB / 1.152 GB, free: 14.58 MB / 0.7605 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000115/0.9425, allocations: 94.5 kB / 1.152 GB, free: 14.48 MB / 0.7605 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008872/0.9434, allocations: 143.1 kB / 1.152 GB, free: 14.34 MB / 0.7605 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000694/0.9441, allocations: 443.2 kB / 1.152 GB, free: 13.86 MB / 0.7605 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.277e-05/0.9441, allocations: 41 kB / 1.152 GB, free: 13.82 MB / 0.7605 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.372e-05/0.9442, allocations: 51.98 kB / 1.152 GB, free: 13.77 MB / 0.7605 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001048/0.9453, allocations: 0.6497 MB / 1.153 GB, free: 13.09 MB / 0.7605 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.46e-05/0.9453, allocations: 0 / 1.153 GB, free: 13.09 MB / 0.7605 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.221e-05/0.9454, allocations: 31.91 kB / 1.153 GB, free: 13.06 MB / 0.7605 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.732e-05/0.9454, allocations: 40.98 kB / 1.153 GB, free: 13.02 MB / 0.7605 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008723/0.9463, allocations: 0.5232 MB / 1.154 GB, free: 12.5 MB / 0.7605 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003428/0.9498, allocations: 2.837 MB / 1.156 GB, free: 9.43 MB / 0.7605 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008554/0.9506, allocations: 0.541 MB / 1.157 GB, free: 8.867 MB / 0.7605 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003382/0.951, allocations: 249.6 kB / 1.157 GB, free: 8.617 MB / 0.7605 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004937/0.9515, allocations: 0.5661 MB / 1.158 GB, free: 7.922 MB / 0.7605 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005931/0.9521, allocations: 390 kB / 1.158 GB, free: 7.531 MB / 0.7605 GB Notification: Performance of pre-optimization done (n=49): time 3.045e-06/0.9521, allocations: 0 / 1.158 GB, free: 7.531 MB / 0.7605 GB Notification: Performance of matching and sorting (n=49): time 0.0009468/0.9531, allocations: 0.5111 MB / 1.159 GB, free: 7.012 MB / 0.7605 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.178e-05/0.9531, allocations: 81.55 kB / 1.159 GB, free: 6.914 MB / 0.7605 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003435/0.9535, allocations: 299.5 kB / 1.159 GB, free: 6.617 MB / 0.7605 GB Notification: Performance of collectPreVariables (initialization): time 6.446e-05/0.9536, allocations: 41.7 kB / 1.159 GB, free: 6.57 MB / 0.7605 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002031/0.9538, allocations: 276.6 kB / 1.159 GB, free: 6.297 MB / 0.7605 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001411/0.9539, allocations: 161.8 kB / 1.159 GB, free: 6.137 MB / 0.7605 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.098e-05/0.954, allocations: 12 kB / 1.159 GB, free: 6.125 MB / 0.7605 GB Notification: Performance of setup shared object (initialization): time 0.00018/0.9541, allocations: 354.8 kB / 1.16 GB, free: 5.77 MB / 0.7605 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003706/0.9545, allocations: 225.1 kB / 1.16 GB, free: 5.551 MB / 0.7605 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004471/0.955, allocations: 342.4 kB / 1.16 GB, free: 5.168 MB / 0.7605 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004803/0.9555, allocations: 273.4 kB / 1.161 GB, free: 4.895 MB / 0.7605 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.847e-06/0.9555, allocations: 4 kB / 1.161 GB, free: 4.891 MB / 0.7605 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0009901/0.9565, allocations: 0.6611 MB / 1.161 GB, free: 4.219 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004668/0.957, allocations: 1.072 MB / 1.162 GB, free: 3.059 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.394e-06/0.957, allocations: 4 kB / 1.162 GB, free: 3.055 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.665e-05/0.957, allocations: 8 kB / 1.162 GB, free: 3.047 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005496/0.9576, allocations: 115.7 kB / 1.162 GB, free: 2.934 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.494e-05/0.9576, allocations: 8 kB / 1.162 GB, free: 2.926 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004746/0.9581, allocations: 75.53 kB / 1.163 GB, free: 2.852 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.448e-05/0.9581, allocations: 20 kB / 1.163 GB, free: 2.832 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 1.383e-05/0.9581, allocations: 8.938 kB / 1.163 GB, free: 2.824 MB / 0.7605 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008324/0.959, allocations: 0.5476 MB / 1.163 GB, free: 2.273 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.156e-06/0.959, allocations: 0 / 1.163 GB, free: 2.273 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.018e-05/0.959, allocations: 8 kB / 1.163 GB, free: 2.266 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004388/0.9595, allocations: 103.8 kB / 1.163 GB, free: 2.164 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.254e-05/0.9595, allocations: 15.94 kB / 1.163 GB, free: 2.148 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003922/0.9599, allocations: 63.89 kB / 1.163 GB, free: 2.086 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.889e-05/0.9599, allocations: 20 kB / 1.163 GB, free: 2.066 MB / 0.7605 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 () * 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.0001674/0.9601, allocations: 149.8 kB / 1.163 GB, free: 1.918 MB / 0.7605 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.332e-05/0.9602, allocations: 47.44 kB / 1.163 GB, free: 1.871 MB / 0.7605 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001019/0.9612, allocations: 0.5619 MB / 1.164 GB, free: 1.301 MB / 0.7605 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.374e-06/0.9612, allocations: 8 kB / 1.164 GB, free: 1.293 MB / 0.7605 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.043e-06/0.9613, allocations: 7.953 kB / 1.164 GB, free: 1.285 MB / 0.7605 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.869e-06/0.9613, allocations: 6.234 kB / 1.164 GB, free: 1.281 MB / 0.7605 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007683/0.962, allocations: 0.6185 MB / 1.165 GB, free: 0.6133 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.448e-06/0.9621, allocations: 7.938 kB / 1.165 GB, free: 0.6055 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004854/0.9626, allocations: 91.86 kB / 1.165 GB, free: 0.5156 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.078e-05/0.9626, allocations: 7.984 kB / 1.165 GB, free: 0.5078 MB / 0.7605 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.387e-05/0.9626, allocations: 12 kB / 1.165 GB, free: 0.4961 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.345e-06/0.9626, allocations: 0 / 1.165 GB, free: 0.4961 MB / 0.7605 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.9626, allocations: 4 kB / 1.165 GB, free: 0.4922 MB / 0.7605 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001336/0.964, allocations: 0.8618 MB / 1.166 GB, free: 15.61 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002457/0.9642, allocations: 180.5 kB / 1.166 GB, free: 15.41 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.451e-05/0.9643, allocations: 12 kB / 1.166 GB, free: 15.4 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003398/0.9647, allocations: 43.95 kB / 1.166 GB, free: 15.36 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001485/0.9648, allocations: 59.12 kB / 1.166 GB, free: 15.3 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.516e-05/0.9649, allocations: 19.92 kB / 1.166 GB, free: 15.28 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 0.0002566/0.9651, allocations: 238.2 kB / 1.166 GB, free: 15.05 MB / 0.7761 GB Notification: Performance of sort global known variables: time 1.71e-07/0.9651, allocations: 0 / 1.166 GB, free: 15.05 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0007496/0.9659, allocations: 283.1 kB / 1.166 GB, free: 14.77 MB / 0.7761 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) * 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.001699/0.9676, allocations: 1.524 MB / 1.168 GB, free: 13.21 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.001343/0.969, allocations: 0.9331 MB / 1.169 GB, free: 12.25 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 4.528e-06/0.969, allocations: 4.25 kB / 1.169 GB, free: 12.25 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 0.0003916/0.9694, allocations: 266.4 kB / 1.169 GB, free: 11.99 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007508/0.9701, allocations: 156.8 kB / 1.169 GB, free: 11.84 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00183/0.972, allocations: 0.9382 MB / 1.17 GB, free: 10.87 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004944/0.9725, allocations: 0.9075 MB / 1.171 GB, free: 9.934 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 0.0005901/0.9731, allocations: 160.2 kB / 1.171 GB, free: 9.781 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002877/0.9734, allocations: 185 kB / 1.171 GB, free: 9.602 MB / 0.7761 GB Notification: Performance of SimCode: time 6.41e-07/0.9734, allocations: 4 kB / 1.171 GB, free: 9.598 MB / 0.7761 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02717/1.001, allocations: 12.49 MB / 1.184 GB, free: 13.4 MB / 0.7917 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001781/1.001, allocations: 172.8 kB / 1.184 GB, free: 13.18 MB / 0.7917 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.332/3.332, allocations: 0 / 1.184 GB, free: 13.18 MB / 0.7917 GB (rm -f Buildings_maint.8.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Electrical_AC_OnePhase_Storage_Examples_AcBattery_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Electrical_AC_OnePhase_Storage_Examples_AcBattery.fmu > Buildings_maint.8.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe 2>&1)