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.729/1.729, allocations: 288.3 MB / 303.2 MB, free: 8.141 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.001194/0.001195, allocations: 187.5 kB / 371.8 MB, free: 10.28 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.917/1.917, allocations: 205.4 MB / 0.6306 GB, free: 10.03 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.0008797/0.0008797, allocations: 102.8 kB / 0.7439 GB, free: 5.945 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004511/0.0004511, allocations: 14.59 kB / 0.8668 GB, free: 142.1 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2793/0.2797, allocations: 115.3 MB / 0.9794 GB, free: 27.71 MB / 0.6198 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8717/1.151, allocations: 156.7 MB / 1.133 GB, free: 15.79 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002901/1.152, allocations: 99.12 kB / 1.133 GB, free: 15.77 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.06311/1.215, allocations: 27.6 MB / 1.16 GB, free: 17.85 MB / 0.698 GB Notification: Performance of FrontEnd: time 3.577e-06/1.215, allocations: 0 / 1.16 GB, free: 17.85 MB / 0.698 GB Notification: Performance of Transformations before backend: time 3.511e-05/1.215, allocations: 15.25 kB / 1.16 GB, free: 17.84 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.001672/1.217, allocations: 0.875 MB / 1.16 GB, free: 16.95 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.665e-05/1.217, allocations: 8.031 kB / 1.16 GB, free: 16.95 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000836/1.218, allocations: 155 kB / 1.161 GB, free: 16.79 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006335/1.218, allocations: 440.5 kB / 1.161 GB, free: 16.39 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.702e-05/1.218, allocations: 45.84 kB / 1.161 GB, free: 16.37 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.173e-05/1.218, allocations: 50.62 kB / 1.161 GB, free: 16.33 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001074/1.219, allocations: 0.6772 MB / 1.162 GB, free: 15.82 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.692e-05/1.22, allocations: 4 kB / 1.162 GB, free: 15.81 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.312e-05/1.22, allocations: 29.28 kB / 1.162 GB, free: 15.8 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.155e-05/1.22, allocations: 44.78 kB / 1.162 GB, free: 15.77 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009154/1.221, allocations: 0.5685 MB / 1.162 GB, free: 15.38 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003588/1.224, allocations: 2.83 MB / 1.165 GB, free: 12.78 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001119/1.225, allocations: 0.5924 MB / 1.166 GB, free: 12.35 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000588/1.226, allocations: 0.5659 MB / 1.166 GB, free: 11.66 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007838/1.227, allocations: 410.3 kB / 1.167 GB, free: 11.34 MB / 0.698 GB Notification: Performance of pre-optimization done (n=49): time 3.236e-06/1.227, allocations: 0 / 1.167 GB, free: 11.34 MB / 0.698 GB Notification: Performance of matching and sorting (n=49): time 0.001528/1.228, allocations: 0.7759 MB / 1.167 GB, free: 10.78 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.269e-05/1.228, allocations: 81.55 kB / 1.167 GB, free: 10.68 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003392/1.229, allocations: 306.8 kB / 1.168 GB, free: 10.43 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 5.902e-05/1.229, allocations: 44.33 kB / 1.168 GB, free: 10.39 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002065/1.229, allocations: 279.5 kB / 1.168 GB, free: 10.18 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.000142/1.229, allocations: 165.2 kB / 1.168 GB, free: 10.05 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.049e-05/1.229, allocations: 7.188 kB / 1.168 GB, free: 10.05 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001738/1.229, allocations: 355.5 kB / 1.169 GB, free: 9.711 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005849/1.23, allocations: 247.9 kB / 1.169 GB, free: 9.555 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000626/1.231, allocations: 368.6 kB / 1.169 GB, free: 9.246 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000599/1.231, allocations: 311.5 kB / 1.169 GB, free: 9.039 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/1.231, allocations: 0 / 1.169 GB, free: 9.039 MB / 0.698 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001481/1.233, allocations: 0.7015 MB / 1.17 GB, free: 8.527 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007054/1.233, allocations: 1.075 MB / 1.171 GB, free: 7.387 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.082e-05/1.233, allocations: 4 kB / 1.171 GB, free: 7.383 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.789e-05/1.234, allocations: 8 kB / 1.171 GB, free: 7.375 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005803/1.234, allocations: 111.5 kB / 1.171 GB, free: 7.27 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.58e-05/1.234, allocations: 8 kB / 1.171 GB, free: 7.262 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005068/1.235, allocations: 71.25 kB / 1.171 GB, free: 7.199 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.722e-05/1.235, allocations: 19.94 kB / 1.171 GB, free: 7.184 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.09e-05/1.235, allocations: 5.25 kB / 1.171 GB, free: 7.18 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001036/1.236, allocations: 0.5962 MB / 1.172 GB, free: 6.766 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.853e-06/1.236, allocations: 7.984 kB / 1.172 GB, free: 6.758 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.901e-06/1.236, allocations: 4 kB / 1.172 GB, free: 6.754 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004043/1.236, allocations: 107.4 kB / 1.172 GB, free: 6.652 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.746e-06/1.236, allocations: 8.234 kB / 1.172 GB, free: 6.645 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004013/1.237, allocations: 82.19 kB / 1.172 GB, free: 6.574 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.671e-05/1.237, allocations: 19.19 kB / 1.172 GB, free: 6.559 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.0004445/1.237, allocations: 300.5 kB / 1.173 GB, free: 6.305 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.203e-05/1.237, allocations: 43.34 kB / 1.173 GB, free: 6.266 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00118/1.238, allocations: 0.607 MB / 1.173 GB, free: 5.848 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.024e-05/1.238, allocations: 8 kB / 1.173 GB, free: 5.84 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.003e-06/1.238, allocations: 0 / 1.173 GB, free: 5.84 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.284e-05/1.238, allocations: 7.938 kB / 1.173 GB, free: 5.832 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008196/1.239, allocations: 0.6235 MB / 1.174 GB, free: 5.328 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.388e-06/1.239, allocations: 0 / 1.174 GB, free: 5.328 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005021/1.24, allocations: 103 kB / 1.174 GB, free: 5.23 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.722e-06/1.24, allocations: 4 kB / 1.174 GB, free: 5.227 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.02e-05/1.24, allocations: 11.38 kB / 1.174 GB, free: 5.223 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.394e-06/1.24, allocations: 0 / 1.174 GB, free: 5.223 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.659e-06/1.24, allocations: 4 kB / 1.174 GB, free: 5.219 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001637/1.242, allocations: 0.9303 MB / 1.175 GB, free: 4.551 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002631/1.242, allocations: 183.1 kB / 1.175 GB, free: 4.379 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.875e-05/1.242, allocations: 13.94 kB / 1.175 GB, free: 4.375 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003192/1.242, allocations: 42.39 kB / 1.175 GB, free: 4.34 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001353/1.242, allocations: 58.12 kB / 1.175 GB, free: 4.293 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.677e-05/1.242, allocations: 15.12 kB / 1.175 GB, free: 4.281 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0002482/1.243, allocations: 246.3 kB / 1.175 GB, free: 4.086 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.2e-07/1.243, allocations: 0 / 1.175 GB, free: 4.086 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0008291/1.244, allocations: 273.8 kB / 1.176 GB, free: 3.844 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.0003072/1.244, allocations: 150.5 kB / 1.176 GB, free: 3.695 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.001675/1.246, allocations: 0.9973 MB / 1.177 GB, free: 2.945 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/1.246, allocations: 0 / 1.177 GB, free: 2.945 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0004673/1.246, allocations: 290.9 kB / 1.177 GB, free: 2.742 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007113/1.247, allocations: 154 kB / 1.177 GB, free: 2.621 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002216/1.249, allocations: 1.286 MB / 1.178 GB, free: 1.438 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005158/1.249, allocations: 0.9072 MB / 1.179 GB, free: 0.5195 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0005618/1.25, allocations: 148.4 kB / 1.179 GB, free: 384 kB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001513/1.25, allocations: 47.36 kB / 1.179 GB, free: 340 kB / 0.698 GB Notification: Performance of SimCode: time 7.11e-07/1.25, allocations: 0 / 1.179 GB, free: 340 kB / 0.698 GB Notification: Performance of Templates: time 0.01409/1.264, allocations: 7.657 MB / 1.187 GB, free: 8.773 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)