Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 9.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo) Running command: translateModel(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_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_latest_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 1.6/1.6, allocations: 297.8 MB / 313.7 MB, free: 144 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009225/0.0009225, allocations: 190.6 kB / 384.6 MB, free: 10.86 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.294/1.294, allocations: 223.2 MB / 0.6626 GB, free: 4.336 MB / 490.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00078/0.00078, allocations: 96.17 kB / 0.7808 GB, free: 43.71 MB / 0.5417 GB Notification: Performance of FrontEnd - loaded program: time 0.0004849/0.000485, allocations: 15.98 kB / 0.9088 GB, free: 0.6797 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6495/0.65, allocations: 120.3 MB / 1.026 GB, free: 56.37 MB / 0.698 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2108/0.8609, allocations: 160.2 MB / 1.183 GB, free: 14.05 MB / 0.7605 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002962/0.8612, allocations: 100.5 kB / 1.183 GB, free: 13.95 MB / 0.7605 GB Notification: Performance of FrontEnd - DAE generated: time 0.0726/0.9338, allocations: 29.64 MB / 1.212 GB, free: 180 kB / 0.7761 GB Notification: Performance of FrontEnd: time 2.625e-06/0.9339, allocations: 0 / 1.212 GB, free: 180 kB / 0.7761 GB Notification: Performance of Transformations before backend: time 3.498e-05/0.9339, allocations: 15.94 kB / 1.212 GB, free: 164 kB / 0.7761 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.001671/0.9356, allocations: 0.8693 MB / 1.213 GB, free: 15.23 MB / 0.7917 GB Notification: Performance of prepare preOptimizeDAE: time 4.163e-05/0.9356, allocations: 8.031 kB / 1.213 GB, free: 15.22 MB / 0.7917 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008261/0.9365, allocations: 152 kB / 1.213 GB, free: 15.07 MB / 0.7917 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006567/0.9371, allocations: 453.7 kB / 1.213 GB, free: 14.59 MB / 0.7917 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.612e-05/0.9372, allocations: 41.36 kB / 1.213 GB, free: 14.55 MB / 0.7917 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.481e-05/0.9373, allocations: 52.38 kB / 1.213 GB, free: 14.5 MB / 0.7917 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001109/0.9384, allocations: 0.6853 MB / 1.214 GB, free: 13.78 MB / 0.7917 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.896e-05/0.9384, allocations: 4.188 kB / 1.214 GB, free: 13.78 MB / 0.7917 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.52e-05/0.9385, allocations: 35.86 kB / 1.214 GB, free: 13.74 MB / 0.7917 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.034e-05/0.9386, allocations: 36.98 kB / 1.214 GB, free: 13.71 MB / 0.7917 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001122/0.9397, allocations: 0.5737 MB / 1.215 GB, free: 13.13 MB / 0.7917 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003383/0.9431, allocations: 2.837 MB / 1.217 GB, free: 10.07 MB / 0.7917 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001063/0.9442, allocations: 0.5882 MB / 1.218 GB, free: 9.461 MB / 0.7917 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004448/0.9446, allocations: 269.6 kB / 1.218 GB, free: 9.191 MB / 0.7917 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004112/0.9451, allocations: 0.5545 MB / 1.219 GB, free: 8.508 MB / 0.7917 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006509/0.9457, allocations: 427.6 kB / 1.219 GB, free: 8.074 MB / 0.7917 GB Notification: Performance of pre-optimization done (n=49): time 2.935e-06/0.9457, allocations: 0 / 1.219 GB, free: 8.074 MB / 0.7917 GB Notification: Performance of matching and sorting (n=49): time 0.001384/0.9471, allocations: 0.7756 MB / 1.22 GB, free: 7.285 MB / 0.7917 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.398e-05/0.9472, allocations: 81.55 kB / 1.22 GB, free: 7.188 MB / 0.7917 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003317/0.9475, allocations: 341.8 kB / 1.22 GB, free: 6.848 MB / 0.7917 GB Notification: Performance of collectPreVariables (initialization): time 5.361e-05/0.9476, allocations: 41.7 kB / 1.22 GB, free: 6.801 MB / 0.7917 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001657/0.9478, allocations: 280.4 kB / 1.221 GB, free: 6.52 MB / 0.7917 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001215/0.9479, allocations: 153.8 kB / 1.221 GB, free: 6.367 MB / 0.7917 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.883e-05/0.9479, allocations: 16.12 kB / 1.221 GB, free: 6.352 MB / 0.7917 GB Notification: Performance of setup shared object (initialization): time 0.0001209/0.948, allocations: 354.8 kB / 1.221 GB, free: 5.996 MB / 0.7917 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004421/0.9485, allocations: 245 kB / 1.221 GB, free: 5.754 MB / 0.7917 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004809/0.949, allocations: 366.3 kB / 1.222 GB, free: 5.355 MB / 0.7917 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008619/0.9499, allocations: 0.6024 MB / 1.222 GB, free: 4.707 MB / 0.7917 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.9499, allocations: 0 / 1.222 GB, free: 4.707 MB / 0.7917 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001095/0.951, allocations: 0.7015 MB / 1.223 GB, free: 3.992 MB / 0.7917 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001054/0.9511, allocations: 199 kB / 1.223 GB, free: 3.754 MB / 0.7917 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.137e-06/0.9511, allocations: 4 kB / 1.223 GB, free: 3.75 MB / 0.7917 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.781e-05/0.9511, allocations: 4 kB / 1.223 GB, free: 3.746 MB / 0.7917 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004811/0.9516, allocations: 119.8 kB / 1.223 GB, free: 3.629 MB / 0.7917 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.307e-05/0.9516, allocations: 11.92 kB / 1.223 GB, free: 3.617 MB / 0.7917 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004111/0.9521, allocations: 75.48 kB / 1.223 GB, free: 3.543 MB / 0.7917 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.21e-05/0.9521, allocations: 23.98 kB / 1.223 GB, free: 3.52 MB / 0.7917 GB Notification: Performance of prepare postOptimizeDAE: time 6.452e-06/0.9521, allocations: 4 kB / 1.223 GB, free: 3.516 MB / 0.7917 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009683/0.9531, allocations: 0.5835 MB / 1.224 GB, free: 2.926 MB / 0.7917 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.811e-06/0.9531, allocations: 8.062 kB / 1.224 GB, free: 2.918 MB / 0.7917 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.532e-06/0.9531, allocations: 7.938 kB / 1.224 GB, free: 2.91 MB / 0.7917 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003867/0.9535, allocations: 116 kB / 1.224 GB, free: 2.797 MB / 0.7917 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.077e-05/0.9535, allocations: 4 kB / 1.224 GB, free: 2.793 MB / 0.7917 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003445/0.9539, allocations: 63.64 kB / 1.224 GB, free: 2.73 MB / 0.7917 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.349e-05/0.9539, allocations: 20 kB / 1.224 GB, free: 2.711 MB / 0.7917 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.00027/0.9542, allocations: 304 kB / 1.224 GB, free: 2.406 MB / 0.7917 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.356e-05/0.9543, allocations: 51.47 kB / 1.225 GB, free: 2.355 MB / 0.7917 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001031/0.9553, allocations: 0.6143 MB / 1.225 GB, free: 1.734 MB / 0.7917 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.811e-06/0.9553, allocations: 7.938 kB / 1.225 GB, free: 1.727 MB / 0.7917 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.9553, allocations: 4 kB / 1.225 GB, free: 1.723 MB / 0.7917 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.823e-06/0.9554, allocations: 4 kB / 1.225 GB, free: 1.719 MB / 0.7917 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006164/0.956, allocations: 0.6225 MB / 1.226 GB, free: 1.047 MB / 0.7917 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.468e-06/0.956, allocations: 4 kB / 1.226 GB, free: 1.043 MB / 0.7917 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004451/0.9564, allocations: 91.86 kB / 1.226 GB, free: 0.9531 MB / 0.7917 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.034e-05/0.9565, allocations: 7.938 kB / 1.226 GB, free: 0.9453 MB / 0.7917 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.63e-05/0.9565, allocations: 15.98 kB / 1.226 GB, free: 0.9297 MB / 0.7917 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.525e-06/0.9565, allocations: 0 / 1.226 GB, free: 0.9297 MB / 0.7917 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.103e-06/0.9565, allocations: 0 / 1.226 GB, free: 0.9297 MB / 0.7917 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001362/0.9579, allocations: 0.9187 MB / 1.227 GB, free: 15.99 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001924/0.9581, allocations: 188.4 kB / 1.227 GB, free: 15.79 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.919e-05/0.9582, allocations: 15.94 kB / 1.227 GB, free: 15.77 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003032/0.9585, allocations: 43.94 kB / 1.227 GB, free: 15.73 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000123/0.9586, allocations: 44.38 kB / 1.227 GB, free: 15.69 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.379e-05/0.9586, allocations: 15.98 kB / 1.227 GB, free: 15.67 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 0.0002247/0.9589, allocations: 243.2 kB / 1.227 GB, free: 15.43 MB / 0.8073 GB Notification: Performance of sort global known variables: time 1.5e-07/0.9589, allocations: 0 / 1.227 GB, free: 15.43 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.000643/0.9595, allocations: 283.1 kB / 1.228 GB, free: 15.16 MB / 0.8073 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.000201/0.9597, allocations: 155.8 kB / 1.228 GB, free: 14.99 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.001505/0.9613, allocations: 0.9985 MB / 1.229 GB, free: 13.97 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 3.015e-06/0.9613, allocations: 0 / 1.229 GB, free: 13.97 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 0.0004534/0.9617, allocations: 291 kB / 1.229 GB, free: 13.68 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007253/0.9625, allocations: 163 kB / 1.229 GB, free: 13.53 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001869/0.9643, allocations: 1.285 MB / 1.23 GB, free: 12.23 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004735/0.9648, allocations: 0.8992 MB / 1.231 GB, free: 11.29 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 0.0005858/0.9654, allocations: 148.4 kB / 1.231 GB, free: 11.14 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001527/0.9656, allocations: 39.44 kB / 1.231 GB, free: 11.11 MB / 0.8073 GB Notification: Performance of SimCode: time 4.61e-07/0.9656, allocations: 0 / 1.231 GB, free: 11.11 MB / 0.8073 GB Notification: Performance of Templates: time 0.01395/0.9796, allocations: 7.762 MB / 1.239 GB, free: 3.438 MB / 0.8073 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.sim & ./Buildings_latest_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe 2>&1)