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: "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Electrical_AC_ThreePhasesBalanced_Storage_Examples_AcBattery",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery,fileNamePrefix="Buildings_maint_8_0_x_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.1-maint.8.0.x/package.mo): time 1.808/1.808, allocations: 285.4 MB / 298 MB, free: 5.961 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.001314/0.001314, allocations: 188.8 kB / 366.4 MB, free: 2.109 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.71/1.71, allocations: 205.1 MB / 0.6248 GB, free: 7.797 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.0008507/0.000851, allocations: 90.16 kB / 0.738 GB, free: 40.31 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 3.557e-05/3.559e-05, allocations: 4 kB / 0.8584 GB, free: 13.03 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7453/0.7453, allocations: 115.3 MB / 0.971 GB, free: 78.05 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2134/0.9588, allocations: 158.1 MB / 1.125 GB, free: 9.625 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002711/0.9591, allocations: 93.62 kB / 1.126 GB, free: 9.535 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 0.07398/1.033, allocations: 29.38 MB / 1.154 GB, free: 12.12 MB / 0.7605 GB Notification: Performance of FrontEnd: time 1.794e-06/1.033, allocations: 0 / 1.154 GB, free: 12.12 MB / 0.7605 GB Notification: Performance of Transformations before backend: time 3.495e-05/1.033, allocations: 12 kB / 1.154 GB, free: 12.11 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.001663/1.035, allocations: 0.8182 MB / 1.155 GB, free: 11.23 MB / 0.7605 GB Notification: Performance of prepare preOptimizeDAE: time 5.115e-05/1.035, allocations: 12.03 kB / 1.155 GB, free: 11.22 MB / 0.7605 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001167/1.035, allocations: 86.52 kB / 1.155 GB, free: 11.12 MB / 0.7605 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008601/1.036, allocations: 151 kB / 1.155 GB, free: 10.98 MB / 0.7605 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007041/1.037, allocations: 449.2 kB / 1.156 GB, free: 10.5 MB / 0.7605 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.091e-05/1.037, allocations: 40.98 kB / 1.156 GB, free: 10.46 MB / 0.7605 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.13e-05/1.037, allocations: 48 kB / 1.156 GB, free: 10.41 MB / 0.7605 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001079/1.038, allocations: 0.6575 MB / 1.156 GB, free: 9.723 MB / 0.7605 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.35e-05/1.038, allocations: 0 / 1.156 GB, free: 9.723 MB / 0.7605 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.472e-05/1.038, allocations: 16 kB / 1.156 GB, free: 9.707 MB / 0.7605 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.206e-05/1.038, allocations: 45.59 kB / 1.156 GB, free: 9.66 MB / 0.7605 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000873/1.039, allocations: 0.527 MB / 1.157 GB, free: 9.137 MB / 0.7605 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003345/1.042, allocations: 2.837 MB / 1.16 GB, free: 6.07 MB / 0.7605 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008882/1.043, allocations: 0.5331 MB / 1.16 GB, free: 5.516 MB / 0.7605 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003511/1.044, allocations: 249.6 kB / 1.161 GB, free: 5.266 MB / 0.7605 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005127/1.044, allocations: 0.5583 MB / 1.161 GB, free: 4.578 MB / 0.7605 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000631/1.045, allocations: 395.6 kB / 1.161 GB, free: 4.18 MB / 0.7605 GB Notification: Performance of pre-optimization done (n=49): time 2.013e-06/1.045, allocations: 4 kB / 1.161 GB, free: 4.176 MB / 0.7605 GB Notification: Performance of matching and sorting (n=49): time 0.0009743/1.046, allocations: 0.5111 MB / 1.162 GB, free: 3.656 MB / 0.7605 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.753e-05/1.046, allocations: 85.55 kB / 1.162 GB, free: 3.555 MB / 0.7605 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003717/1.046, allocations: 299.5 kB / 1.162 GB, free: 3.258 MB / 0.7605 GB Notification: Performance of collectPreVariables (initialization): time 6.122e-05/1.046, allocations: 41.7 kB / 1.162 GB, free: 3.211 MB / 0.7605 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002219/1.046, allocations: 272.6 kB / 1.163 GB, free: 2.941 MB / 0.7605 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001446/1.047, allocations: 161.7 kB / 1.163 GB, free: 2.785 MB / 0.7605 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.182e-05/1.047, allocations: 12 kB / 1.163 GB, free: 2.773 MB / 0.7605 GB Notification: Performance of setup shared object (initialization): time 0.000163/1.047, allocations: 358.8 kB / 1.163 GB, free: 2.414 MB / 0.7605 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003586/1.047, allocations: 217.1 kB / 1.163 GB, free: 2.203 MB / 0.7605 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004512/1.048, allocations: 342.6 kB / 1.164 GB, free: 1.82 MB / 0.7605 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004301/1.048, allocations: 277.4 kB / 1.164 GB, free: 1.543 MB / 0.7605 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/1.048, allocations: 4 kB / 1.164 GB, free: 1.539 MB / 0.7605 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001045/1.049, allocations: 0.6584 MB / 1.165 GB, free: 0.8672 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005474/1.05, allocations: 1.077 MB / 1.166 GB, free: 15.7 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.112e-05/1.05, allocations: 8 kB / 1.166 GB, free: 15.7 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.477e-05/1.05, allocations: 4 kB / 1.166 GB, free: 15.69 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005791/1.05, allocations: 119.7 kB / 1.166 GB, free: 15.57 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.363e-05/1.05, allocations: 4 kB / 1.166 GB, free: 15.57 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005176/1.051, allocations: 75.53 kB / 1.166 GB, free: 15.5 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.987e-05/1.051, allocations: 22.75 kB / 1.166 GB, free: 15.48 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 8.676e-06/1.051, allocations: 4 kB / 1.166 GB, free: 15.47 MB / 0.7761 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008032/1.052, allocations: 0.5445 MB / 1.166 GB, free: 14.92 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.252e-06/1.052, allocations: 6.266 kB / 1.166 GB, free: 14.92 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.434e-06/1.052, allocations: 4 kB / 1.166 GB, free: 14.91 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004287/1.052, allocations: 107.8 kB / 1.166 GB, free: 14.81 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.768e-06/1.052, allocations: 11.89 kB / 1.166 GB, free: 14.8 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004089/1.053, allocations: 67.88 kB / 1.167 GB, free: 14.73 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.163e-05/1.053, allocations: 24 kB / 1.167 GB, free: 14.71 MB / 0.7761 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.000166/1.053, allocations: 143.1 kB / 1.167 GB, free: 14.56 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.938e-05/1.053, allocations: 47.44 kB / 1.167 GB, free: 14.52 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009839/1.054, allocations: 0.5557 MB / 1.167 GB, free: 13.95 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.957e-06/1.054, allocations: 12 kB / 1.167 GB, free: 13.93 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.193e-06/1.054, allocations: 3.953 kB / 1.167 GB, free: 13.93 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.941e-06/1.054, allocations: 0 / 1.167 GB, free: 13.93 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007621/1.055, allocations: 0.6353 MB / 1.168 GB, free: 13.25 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.496e-06/1.055, allocations: 0 / 1.168 GB, free: 13.25 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004956/1.055, allocations: 91.86 kB / 1.168 GB, free: 13.16 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.39e-06/1.055, allocations: 4 kB / 1.168 GB, free: 13.15 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.959e-05/1.055, allocations: 15.98 kB / 1.168 GB, free: 13.14 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.494e-06/1.055, allocations: 0 / 1.168 GB, free: 13.14 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.726e-06/1.055, allocations: 11.94 kB / 1.168 GB, free: 13.12 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001271/1.057, allocations: 0.8619 MB / 1.169 GB, free: 12.24 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002327/1.057, allocations: 172.5 kB / 1.169 GB, free: 12.05 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.996e-05/1.057, allocations: 12 kB / 1.169 GB, free: 12.04 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003418/1.057, allocations: 45.7 kB / 1.169 GB, free: 12 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001379/1.058, allocations: 52.31 kB / 1.169 GB, free: 11.95 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.819e-05/1.058, allocations: 24.86 kB / 1.169 GB, free: 11.92 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 0.0002493/1.058, allocations: 234.2 kB / 1.169 GB, free: 11.7 MB / 0.7761 GB Notification: Performance of sort global known variables: time 1.6e-07/1.058, allocations: 0 / 1.169 GB, free: 11.7 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0007754/1.059, allocations: 287 kB / 1.17 GB, free: 11.41 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.001641/1.06, allocations: 1.517 MB / 1.171 GB, free: 9.863 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.001357/1.062, allocations: 0.941 MB / 1.172 GB, free: 8.895 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/1.062, allocations: 192 / 1.172 GB, free: 8.895 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 0.0003919/1.062, allocations: 270.4 kB / 1.172 GB, free: 8.629 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007485/1.063, allocations: 166.8 kB / 1.173 GB, free: 8.484 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001765/1.065, allocations: 0.9304 MB / 1.173 GB, free: 7.516 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005276/1.065, allocations: 0.9113 MB / 1.174 GB, free: 6.578 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 0.000608/1.066, allocations: 161 kB / 1.174 GB, free: 6.426 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000294/1.066, allocations: 183.4 kB / 1.175 GB, free: 6.246 MB / 0.7761 GB Notification: Performance of SimCode: time 6.31e-07/1.066, allocations: 0 / 1.175 GB, free: 6.246 MB / 0.7761 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02648/1.093, allocations: 12.48 MB / 1.187 GB, free: 10.07 MB / 0.7917 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001639/1.093, allocations: 192.5 kB / 1.187 GB, free: 9.84 MB / 0.7917 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.179/3.272, allocations: 0 / 1.187 GB, free: 9.84 MB / 0.7917 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Electrical_AC_ThreePhasesBalanced_Storage_Examples_AcBattery_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Electrical_AC_ThreePhasesBalanced_Storage_Examples_AcBattery.fmu > Buildings_maint.8.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe 2>&1)