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: translateModel(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery") translateModel(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.612/1.612, allocations: 288.4 MB / 304.3 MB, free: 8.082 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.0009751/0.000975, allocations: 182.9 kB / 373 MB, free: 10.17 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.694/1.694, allocations: 205.4 MB / 0.6317 GB, free: 9.902 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.0008639/0.0008637, allocations: 86.33 kB / 0.745 GB, free: 5.812 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004626/0.0004627, allocations: 15.97 kB / 0.8681 GB, free: 141.9 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2598/0.2603, allocations: 115.3 MB / 0.9807 GB, free: 27.43 MB / 0.6198 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8802/1.14, allocations: 156.8 MB / 1.134 GB, free: 15.86 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003171/1.141, allocations: 94.88 kB / 1.134 GB, free: 15.84 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.06054/1.201, allocations: 27.66 MB / 1.161 GB, free: 17.55 MB / 0.698 GB Notification: Performance of FrontEnd: time 3.035e-06/1.201, allocations: 4 kB / 1.161 GB, free: 17.55 MB / 0.698 GB Notification: Performance of Transformations before backend: time 3.42e-05/1.202, allocations: 15.94 kB / 1.161 GB, free: 17.54 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.001543/1.203, allocations: 0.87 MB / 1.162 GB, free: 16.65 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.03e-05/1.203, allocations: 8.031 kB / 1.162 GB, free: 16.64 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007724/1.204, allocations: 155.9 kB / 1.162 GB, free: 16.49 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005496/1.204, allocations: 456.4 kB / 1.162 GB, free: 16.07 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.375e-05/1.205, allocations: 39.25 kB / 1.162 GB, free: 16.05 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.017e-05/1.205, allocations: 49.3 kB / 1.162 GB, free: 16.02 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009974/1.206, allocations: 0.6804 MB / 1.163 GB, free: 15.5 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.689e-05/1.206, allocations: 192 / 1.163 GB, free: 15.5 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.659e-05/1.206, allocations: 37.47 kB / 1.163 GB, free: 15.48 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.764e-05/1.206, allocations: 40.05 kB / 1.163 GB, free: 15.44 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009355/1.207, allocations: 0.576 MB / 1.164 GB, free: 15.05 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003338/1.21, allocations: 2.833 MB / 1.167 GB, free: 12.43 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001065/1.211, allocations: 0.5871 MB / 1.167 GB, free: 12 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004233/1.212, allocations: 268.8 kB / 1.167 GB, free: 11.82 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004967/1.212, allocations: 0.5578 MB / 1.168 GB, free: 11.14 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007034/1.213, allocations: 420.2 kB / 1.168 GB, free: 10.81 MB / 0.698 GB Notification: Performance of pre-optimization done (n=49): time 2.054e-06/1.213, allocations: 0 / 1.168 GB, free: 10.81 MB / 0.698 GB Notification: Performance of matching and sorting (n=49): time 0.001607/1.214, allocations: 0.7744 MB / 1.169 GB, free: 10.25 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.533e-05/1.215, allocations: 82.38 kB / 1.169 GB, free: 10.15 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004282/1.215, allocations: 348.3 kB / 1.169 GB, free: 9.875 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 5.641e-05/1.215, allocations: 40.58 kB / 1.17 GB, free: 9.84 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002368/1.215, allocations: 283.5 kB / 1.17 GB, free: 9.617 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001538/1.215, allocations: 153.3 kB / 1.17 GB, free: 9.488 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.054e-05/1.215, allocations: 13.94 kB / 1.17 GB, free: 9.484 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001846/1.216, allocations: 354 kB / 1.17 GB, free: 9.148 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004511/1.216, allocations: 247.8 kB / 1.171 GB, free: 8.992 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005494/1.217, allocations: 373.1 kB / 1.171 GB, free: 8.68 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009282/1.218, allocations: 0.5913 MB / 1.171 GB, free: 8.238 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.138e-06/1.218, allocations: 7.922 kB / 1.171 GB, free: 8.23 MB / 0.698 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001182/1.219, allocations: 0.7112 MB / 1.172 GB, free: 7.707 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001645/1.219, allocations: 192.7 kB / 1.172 GB, free: 7.484 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.209e-05/1.219, allocations: 4 kB / 1.172 GB, free: 7.48 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.131e-05/1.219, allocations: 4 kB / 1.172 GB, free: 7.477 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005296/1.22, allocations: 114.8 kB / 1.172 GB, free: 7.367 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.008e-05/1.22, allocations: 11.92 kB / 1.172 GB, free: 7.355 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004928/1.22, allocations: 78.05 kB / 1.173 GB, free: 7.289 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.811e-05/1.22, allocations: 23.11 kB / 1.173 GB, free: 7.27 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 9.668e-06/1.22, allocations: 5.406 kB / 1.173 GB, free: 7.266 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001061/1.221, allocations: 0.5844 MB / 1.173 GB, free: 6.863 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.942e-06/1.221, allocations: 4 kB / 1.173 GB, free: 6.859 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.115e-06/1.221, allocations: 7.938 kB / 1.173 GB, free: 6.852 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004057/1.222, allocations: 110.9 kB / 1.173 GB, free: 6.746 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.973e-06/1.222, allocations: 4 kB / 1.173 GB, free: 6.742 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003825/1.222, allocations: 67.02 kB / 1.173 GB, free: 6.688 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.639e-05/1.222, allocations: 19.75 kB / 1.173 GB, free: 6.672 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.0004424/1.223, allocations: 303.2 kB / 1.174 GB, free: 6.418 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.228e-05/1.223, allocations: 51.75 kB / 1.174 GB, free: 6.367 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001184/1.224, allocations: 0.6119 MB / 1.174 GB, free: 5.949 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.897e-06/1.224, allocations: 4 kB / 1.174 GB, free: 5.945 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.985e-06/1.224, allocations: 4 kB / 1.174 GB, free: 5.941 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.867e-06/1.224, allocations: 4 kB / 1.174 GB, free: 5.938 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007551/1.225, allocations: 0.623 MB / 1.175 GB, free: 5.422 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.517e-06/1.225, allocations: 4 kB / 1.175 GB, free: 5.418 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004782/1.225, allocations: 95.17 kB / 1.175 GB, free: 5.328 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.975e-06/1.225, allocations: 7.938 kB / 1.175 GB, free: 5.32 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.73e-05/1.225, allocations: 14.86 kB / 1.175 GB, free: 5.312 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.294e-06/1.225, allocations: 0 / 1.175 GB, free: 5.312 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/1.225, allocations: 0 / 1.175 GB, free: 5.312 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001484/1.227, allocations: 0.9266 MB / 1.176 GB, free: 4.656 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002234/1.227, allocations: 182.9 kB / 1.176 GB, free: 4.484 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.156e-05/1.227, allocations: 14.94 kB / 1.176 GB, free: 4.477 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003093/1.227, allocations: 43.02 kB / 1.176 GB, free: 4.441 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001462/1.228, allocations: 49.42 kB / 1.176 GB, free: 4.402 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.333e-05/1.228, allocations: 18.61 kB / 1.176 GB, free: 4.391 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0002486/1.228, allocations: 242.1 kB / 1.176 GB, free: 4.199 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.4e-07/1.228, allocations: 0 / 1.176 GB, free: 4.199 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0008131/1.229, allocations: 274.6 kB / 1.177 GB, free: 3.953 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.0002945/1.229, allocations: 151.1 kB / 1.177 GB, free: 3.805 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.001657/1.231, allocations: 1.004 MB / 1.178 GB, free: 3.051 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/1.231, allocations: 0 / 1.178 GB, free: 3.051 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0004686/1.231, allocations: 287.5 kB / 1.178 GB, free: 2.848 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008247/1.232, allocations: 161.7 kB / 1.178 GB, free: 2.727 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002177/1.234, allocations: 1.293 MB / 1.18 GB, free: 1.543 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000513/1.235, allocations: 0.8887 MB / 1.18 GB, free: 0.6406 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.000559/1.235, allocations: 152.5 kB / 1.181 GB, free: 500 kB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001421/1.235, allocations: 43.25 kB / 1.181 GB, free: 460 kB / 0.698 GB Notification: Performance of SimCode: time 5.31e-07/1.235, allocations: 0 / 1.181 GB, free: 460 kB / 0.698 GB Notification: Performance of Templates: time 0.01323/1.249, allocations: 7.772 MB / 1.188 GB, free: 8.77 MB / 0.7136 GB make -j1 -f Buildings_maint.8.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.makefile (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 & ./Buildings_maint.8.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.8.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe 2>&1)