Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Electrical.AC.OnePhase.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: translateModel(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_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_8_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.555/1.555, allocations: 289.9 MB / 297.4 MB, free: 6.348 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.00106/0.00106, allocations: 184.8 kB / 366.7 MB, free: 1.664 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.493/1.493, allocations: 205.2 MB / 0.626 GB, free: 7.152 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.0008915/0.0008913, allocations: 84.84 kB / 0.74 GB, free: 39.56 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.823e-05/1.824e-05, allocations: 0 / 0.8597 GB, free: 13.08 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7086/0.7086, allocations: 116.3 MB / 0.9733 GB, free: 76.37 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.22/0.9287, allocations: 157 MB / 1.127 GB, free: 9.211 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000279/0.929, allocations: 92.56 kB / 1.127 GB, free: 9.121 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 0.06755/0.9966, allocations: 27.34 MB / 1.153 GB, free: 13.71 MB / 0.7605 GB Notification: Performance of FrontEnd: time 1.442e-06/0.9966, allocations: 0 / 1.153 GB, free: 13.71 MB / 0.7605 GB Notification: Performance of Transformations before backend: time 3.007e-05/0.9966, allocations: 16 kB / 1.153 GB, free: 13.69 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.001603/0.9983, allocations: 0.8182 MB / 1.154 GB, free: 12.82 MB / 0.7605 GB Notification: Performance of prepare preOptimizeDAE: time 4.665e-05/0.9983, allocations: 12.03 kB / 1.154 GB, free: 12.8 MB / 0.7605 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008279/0.9991, allocations: 143.1 kB / 1.154 GB, free: 12.66 MB / 0.7605 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006314/0.9998, allocations: 443.1 kB / 1.155 GB, free: 12.19 MB / 0.7605 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.561e-05/0.9998, allocations: 20 kB / 1.155 GB, free: 12.17 MB / 0.7605 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.376e-05/0.9999, allocations: 28 kB / 1.155 GB, free: 12.14 MB / 0.7605 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007593/1.001, allocations: 452.5 kB / 1.155 GB, free: 11.7 MB / 0.7605 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009532/1.002, allocations: 0.5871 MB / 1.156 GB, free: 11.09 MB / 0.7605 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.699e-05/1.002, allocations: 4 kB / 1.156 GB, free: 11.08 MB / 0.7605 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.842e-05/1.002, allocations: 3.984 kB / 1.156 GB, free: 11.08 MB / 0.7605 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.619e-05/1.002, allocations: 45.3 kB / 1.156 GB, free: 11.04 MB / 0.7605 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003189/1.005, allocations: 2.731 MB / 1.159 GB, free: 8.09 MB / 0.7605 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008698/1.006, allocations: 0.5134 MB / 1.159 GB, free: 7.555 MB / 0.7605 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003243/1.006, allocations: 232.1 kB / 1.159 GB, free: 7.324 MB / 0.7605 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000462/1.007, allocations: 0.5701 MB / 1.16 GB, free: 6.625 MB / 0.7605 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005652/1.007, allocations: 370.9 kB / 1.16 GB, free: 6.246 MB / 0.7605 GB Notification: Performance of pre-optimization done (n=49): time 2.154e-06/1.007, allocations: 0 / 1.16 GB, free: 6.246 MB / 0.7605 GB Notification: Performance of matching and sorting (n=49): time 0.0009112/1.008, allocations: 0.4916 MB / 1.161 GB, free: 5.75 MB / 0.7605 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.078e-05/1.008, allocations: 81.55 kB / 1.161 GB, free: 5.652 MB / 0.7605 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003168/1.009, allocations: 286.3 kB / 1.161 GB, free: 5.371 MB / 0.7605 GB Notification: Performance of collectPreVariables (initialization): time 5.654e-05/1.009, allocations: 33.7 kB / 1.161 GB, free: 5.332 MB / 0.7605 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002026/1.009, allocations: 276.6 kB / 1.161 GB, free: 5.055 MB / 0.7605 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001408/1.009, allocations: 153.8 kB / 1.161 GB, free: 4.902 MB / 0.7605 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.633e-05/1.009, allocations: 0 / 1.161 GB, free: 4.902 MB / 0.7605 GB Notification: Performance of setup shared object (initialization): time 0.0001674/1.009, allocations: 354.8 kB / 1.162 GB, free: 4.547 MB / 0.7605 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003048/1.01, allocations: 213.1 kB / 1.162 GB, free: 4.336 MB / 0.7605 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004256/1.01, allocations: 327.6 kB / 1.162 GB, free: 3.973 MB / 0.7605 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003841/1.01, allocations: 237.6 kB / 1.162 GB, free: 3.742 MB / 0.7605 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.919e-06/1.01, allocations: 3.984 kB / 1.162 GB, free: 3.738 MB / 0.7605 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0008982/1.011, allocations: 0.5923 MB / 1.163 GB, free: 3.141 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004704/1.012, allocations: 1.081 MB / 1.164 GB, free: 1.973 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.02e-05/1.012, allocations: 4 kB / 1.164 GB, free: 1.969 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.117e-05/1.012, allocations: 4 kB / 1.164 GB, free: 1.965 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000535/1.012, allocations: 123.8 kB / 1.164 GB, free: 1.844 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.438e-06/1.012, allocations: 11.88 kB / 1.164 GB, free: 1.832 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004563/1.013, allocations: 65.41 kB / 1.164 GB, free: 1.77 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.276e-05/1.013, allocations: 20 kB / 1.164 GB, free: 1.75 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 7.995e-06/1.013, allocations: 4 kB / 1.164 GB, free: 1.746 MB / 0.7605 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007462/1.014, allocations: 467.8 kB / 1.165 GB, free: 1.289 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.411e-06/1.014, allocations: 4 kB / 1.165 GB, free: 1.285 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.055e-06/1.014, allocations: 4 kB / 1.165 GB, free: 1.281 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000428/1.014, allocations: 111.8 kB / 1.165 GB, free: 1.172 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.5e-06/1.014, allocations: 4 kB / 1.165 GB, free: 1.168 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003725/1.015, allocations: 56.23 kB / 1.165 GB, free: 1.117 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.88e-05/1.015, allocations: 28.05 kB / 1.165 GB, free: 1.09 MB / 0.7605 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.0001495/1.015, allocations: 131.1 kB / 1.165 GB, free: 0.957 MB / 0.7605 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.35e-05/1.015, allocations: 47.44 kB / 1.165 GB, free: 0.9102 MB / 0.7605 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008902/1.016, allocations: 0.5205 MB / 1.166 GB, free: 384 kB / 0.7605 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.644e-06/1.016, allocations: 11.98 kB / 1.166 GB, free: 372 kB / 0.7605 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.921e-06/1.016, allocations: 0 / 1.166 GB, free: 372 kB / 0.7605 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.073e-06/1.016, allocations: 0 / 1.166 GB, free: 372 kB / 0.7605 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006654/1.016, allocations: 0.5369 MB / 1.166 GB, free: 15.79 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.49e-06/1.016, allocations: 8 kB / 1.166 GB, free: 15.78 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004782/1.017, allocations: 95.84 kB / 1.166 GB, free: 15.69 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.901e-06/1.017, allocations: 4 kB / 1.166 GB, free: 15.68 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.343e-05/1.017, allocations: 4 kB / 1.166 GB, free: 15.68 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.693e-06/1.017, allocations: 5.25 kB / 1.166 GB, free: 15.68 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.945e-06/1.017, allocations: 0 / 1.166 GB, free: 15.68 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001184/1.018, allocations: 0.8423 MB / 1.167 GB, free: 14.8 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002028/1.018, allocations: 172.5 kB / 1.167 GB, free: 14.62 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.099e-05/1.018, allocations: 8.562 kB / 1.167 GB, free: 14.61 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003087/1.019, allocations: 31.94 kB / 1.167 GB, free: 14.58 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001232/1.019, allocations: 48.36 kB / 1.167 GB, free: 14.53 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.84e-05/1.019, allocations: 20 kB / 1.167 GB, free: 14.51 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 0.0002036/1.019, allocations: 220.5 kB / 1.168 GB, free: 14.3 MB / 0.7761 GB Notification: Performance of sort global known variables: time 1.6e-07/1.019, allocations: 0 / 1.168 GB, free: 14.3 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0007109/1.02, allocations: 255.1 kB / 1.168 GB, free: 14.05 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.000242/1.02, allocations: 149.6 kB / 1.168 GB, free: 13.9 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.00125/1.021, allocations: 0.8939 MB / 1.169 GB, free: 12.98 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 4.98e-06/1.021, allocations: 256 / 1.169 GB, free: 12.98 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 0.0003879/1.022, allocations: 265.5 kB / 1.169 GB, free: 12.73 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000793/1.023, allocations: 147.2 kB / 1.169 GB, free: 12.59 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0016/1.024, allocations: 0.7687 MB / 1.17 GB, free: 11.8 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005012/1.025, allocations: 0.9119 MB / 1.171 GB, free: 10.86 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 0.0005989/1.025, allocations: 156.9 kB / 1.171 GB, free: 10.71 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001434/1.026, allocations: 47.42 kB / 1.171 GB, free: 10.67 MB / 0.7761 GB Notification: Performance of SimCode: time 4.51e-07/1.026, allocations: 0 / 1.171 GB, free: 10.67 MB / 0.7761 GB Notification: Performance of Templates: time 0.01338/1.039, allocations: 7.874 MB / 1.179 GB, free: 2.965 MB / 0.7761 GB make -j1 -f Buildings_8_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.makefile (rm -f Buildings_8_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe ; mkfifo Buildings_8_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe ; head -c 1048576 < Buildings_8_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe >> ../files/Buildings_8_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.sim & ./Buildings_8_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe 2>&1)