Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery,fileNamePrefix="Buildings_8_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_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.1.4-maint.8.1.x/package.mo): time 1.745/1.745, allocations: 289.9 MB / 297.4 MB, free: 6.355 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.001169/0.001169, allocations: 176.8 kB / 366.7 MB, free: 1.641 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.82/1.82, allocations: 205.2 MB / 0.626 GB, free: 7.164 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.0009778/0.0009778, allocations: 86.5 kB / 0.74 GB, free: 39.52 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.62e-05/2.622e-05, allocations: 4 kB / 0.8598 GB, free: 12.94 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6777/0.6778, allocations: 116.3 MB / 0.9734 GB, free: 76.28 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2132/0.891, allocations: 158.4 MB / 1.128 GB, free: 7.699 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002476/0.8913, allocations: 92.84 kB / 1.128 GB, free: 7.609 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 0.07621/0.9675, allocations: 29.25 MB / 1.157 GB, free: 10.28 MB / 0.7605 GB Notification: Performance of FrontEnd: time 4.649e-06/0.9676, allocations: 3.984 kB / 1.157 GB, free: 10.28 MB / 0.7605 GB Notification: Performance of Transformations before backend: time 4.406e-05/0.9676, allocations: 15.94 kB / 1.157 GB, free: 10.26 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.002041/0.9697, allocations: 0.8108 MB / 1.158 GB, free: 9.398 MB / 0.7605 GB Notification: Performance of prepare preOptimizeDAE: time 4.972e-05/0.9697, allocations: 12.03 kB / 1.158 GB, free: 9.387 MB / 0.7605 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001042/0.9708, allocations: 151.1 kB / 1.158 GB, free: 9.238 MB / 0.7605 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008095/0.9716, allocations: 439.2 kB / 1.158 GB, free: 8.766 MB / 0.7605 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.467e-05/0.9717, allocations: 20 kB / 1.158 GB, free: 8.746 MB / 0.7605 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001457/0.9718, allocations: 28 kB / 1.158 GB, free: 8.719 MB / 0.7605 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008474/0.9727, allocations: 450.5 kB / 1.159 GB, free: 8.277 MB / 0.7605 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009864/0.9737, allocations: 0.5892 MB / 1.159 GB, free: 7.66 MB / 0.7605 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.992e-05/0.9737, allocations: 5.438 kB / 1.159 GB, free: 7.656 MB / 0.7605 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.749e-05/0.9738, allocations: 7.984 kB / 1.159 GB, free: 7.648 MB / 0.7605 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.635e-05/0.9738, allocations: 49.27 kB / 1.159 GB, free: 7.602 MB / 0.7605 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003669/0.9775, allocations: 2.723 MB / 1.162 GB, free: 4.664 MB / 0.7605 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008455/0.9784, allocations: 0.5095 MB / 1.162 GB, free: 4.133 MB / 0.7605 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003445/0.9787, allocations: 237.6 kB / 1.163 GB, free: 3.895 MB / 0.7605 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000505/0.9793, allocations: 0.5662 MB / 1.163 GB, free: 3.199 MB / 0.7605 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006299/0.9799, allocations: 363 kB / 1.164 GB, free: 2.828 MB / 0.7605 GB Notification: Performance of pre-optimization done (n=49): time 3.086e-06/0.9799, allocations: 4 kB / 1.164 GB, free: 2.824 MB / 0.7605 GB Notification: Performance of matching and sorting (n=49): time 0.0009557/0.9809, allocations: 0.4916 MB / 1.164 GB, free: 2.328 MB / 0.7605 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.037e-05/0.981, allocations: 85.55 kB / 1.164 GB, free: 2.227 MB / 0.7605 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003502/0.9813, allocations: 286.3 kB / 1.164 GB, free: 1.945 MB / 0.7605 GB Notification: Performance of collectPreVariables (initialization): time 6.37e-05/0.9814, allocations: 29.7 kB / 1.164 GB, free: 1.91 MB / 0.7605 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002334/0.9816, allocations: 280.6 kB / 1.165 GB, free: 1.629 MB / 0.7605 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001545/0.9818, allocations: 145.9 kB / 1.165 GB, free: 1.484 MB / 0.7605 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.898e-05/0.9818, allocations: 0 / 1.165 GB, free: 1.484 MB / 0.7605 GB Notification: Performance of setup shared object (initialization): time 0.0001816/0.982, allocations: 362.8 kB / 1.165 GB, free: 1.121 MB / 0.7605 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003268/0.9824, allocations: 209.1 kB / 1.165 GB, free: 0.9141 MB / 0.7605 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004103/0.9828, allocations: 326 kB / 1.166 GB, free: 0.5508 MB / 0.7605 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004312/0.9832, allocations: 239.2 kB / 1.166 GB, free: 328 kB / 0.7605 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.813e-06/0.9832, allocations: 2.906 kB / 1.166 GB, free: 328 kB / 0.7605 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001034/0.9843, allocations: 0.5945 MB / 1.166 GB, free: 15.71 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005634/0.9849, allocations: 1.087 MB / 1.168 GB, free: 14.54 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.588e-06/0.9849, allocations: 0 / 1.168 GB, free: 14.54 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.727e-05/0.9849, allocations: 8 kB / 1.168 GB, free: 14.54 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005976/0.9855, allocations: 115.8 kB / 1.168 GB, free: 14.42 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.148e-05/0.9855, allocations: 11.94 kB / 1.168 GB, free: 14.41 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004904/0.986, allocations: 59.53 kB / 1.168 GB, free: 14.35 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.534e-05/0.9861, allocations: 20 kB / 1.168 GB, free: 14.33 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.071e-05/0.9861, allocations: 6.031 kB / 1.168 GB, free: 14.33 MB / 0.7761 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007687/0.9869, allocations: 476.8 kB / 1.168 GB, free: 13.86 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.759e-06/0.9869, allocations: 4 kB / 1.168 GB, free: 13.86 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.352e-06/0.9869, allocations: 4 kB / 1.168 GB, free: 13.86 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004292/0.9874, allocations: 110.8 kB / 1.168 GB, free: 13.75 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.33e-06/0.9874, allocations: 4 kB / 1.168 GB, free: 13.75 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003752/0.9877, allocations: 59.84 kB / 1.168 GB, free: 13.69 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.537e-05/0.9878, allocations: 23.98 kB / 1.168 GB, free: 13.66 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.0001765/0.988, allocations: 127.1 kB / 1.168 GB, free: 13.54 MB / 0.7761 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0007472/0.9888, allocations: 499.4 kB / 1.169 GB, free: 13.04 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.106e-05/0.9888, allocations: 39.53 kB / 1.169 GB, free: 13 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009342/0.9898, allocations: 0.5243 MB / 1.17 GB, free: 12.46 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.513e-05/0.9898, allocations: 15.98 kB / 1.17 GB, free: 12.45 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/0.9898, allocations: 0 / 1.17 GB, free: 12.45 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.396e-06/0.9898, allocations: 3.984 kB / 1.17 GB, free: 12.45 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000698/0.9905, allocations: 0.5371 MB / 1.17 GB, free: 11.87 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.016e-06/0.9905, allocations: 0 / 1.17 GB, free: 11.87 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005092/0.9911, allocations: 99.8 kB / 1.17 GB, free: 11.77 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.368e-06/0.9911, allocations: 0 / 1.17 GB, free: 11.77 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.507e-05/0.9911, allocations: 7.984 kB / 1.17 GB, free: 11.77 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.127e-06/0.9911, allocations: 4 kB / 1.17 GB, free: 11.76 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.418e-06/0.9911, allocations: 2.656 kB / 1.17 GB, free: 11.76 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001237/0.9924, allocations: 0.8351 MB / 1.171 GB, free: 10.9 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002292/0.9926, allocations: 180.5 kB / 1.171 GB, free: 10.71 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.061e-05/0.9927, allocations: 0 / 1.171 GB, free: 10.71 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003281/0.993, allocations: 35.95 kB / 1.171 GB, free: 10.67 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001506/0.9932, allocations: 56.31 kB / 1.171 GB, free: 10.62 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.689e-05/0.9932, allocations: 22.55 kB / 1.171 GB, free: 10.6 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 0.00024/0.9935, allocations: 220.6 kB / 1.171 GB, free: 10.39 MB / 0.7761 GB Notification: Performance of sort global known variables: time 1.4e-07/0.9935, allocations: 0.8438 kB / 1.171 GB, free: 10.39 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0008046/0.9943, allocations: 251 kB / 1.172 GB, free: 10.14 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.001651/0.996, allocations: 1.486 MB / 1.173 GB, free: 8.617 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.001246/0.9972, allocations: 0.8978 MB / 1.174 GB, free: 7.695 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 3.517e-06/0.9972, allocations: 1 kB / 1.174 GB, free: 7.695 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 0.0003545/0.9976, allocations: 261.5 kB / 1.174 GB, free: 7.438 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007931/0.9984, allocations: 147.8 kB / 1.174 GB, free: 7.301 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001815/1, allocations: 0.8873 MB / 1.175 GB, free: 6.371 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005001/1.001, allocations: 0.908 MB / 1.176 GB, free: 5.438 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 0.0005905/1.001, allocations: 158.2 kB / 1.176 GB, free: 5.289 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000296/1.002, allocations: 191.4 kB / 1.177 GB, free: 5.102 MB / 0.7761 GB Notification: Performance of SimCode: time 4e-07/1.002, allocations: 0 / 1.177 GB, free: 5.102 MB / 0.7761 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03272/1.034, allocations: 11.83 MB / 1.188 GB, free: 9.473 MB / 0.7917 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001781/1.035, allocations: 160.4 kB / 1.188 GB, free: 9.281 MB / 0.7917 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.319/3.353, allocations: 4 kB / 1.188 GB, free: 9.277 MB / 0.7917 GB (rm -f Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe ; mkfifo Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe ; head -c 1048576 < Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe >> ../files/Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Electrical_AC_ThreePhasesBalanced_Storage_Examples_AcBattery_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Electrical_AC_ThreePhasesBalanced_Storage_Examples_AcBattery.fmu > Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe 2>&1)