Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.367/1.367, allocations: 251.5 MB / 267.4 MB, free: 11.05 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001067/0.001067, allocations: 171.8 kB / 326.5 MB, free: 2.684 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.608/1.608, allocations: 205 MB / 0.5767 GB, free: 21.01 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007692/0.0007692, allocations: 89.25 kB / 0.6804 GB, free: 14.7 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003491/0.0003491, allocations: 5.938 kB / 0.7938 GB, free: 136.5 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1748/0.1751, allocations: 105.4 MB / 0.8968 GB, free: 68.16 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery): time 0.005219/0.1804, allocations: 5.72 MB / 0.9023 GB, free: 62.41 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.002847/0.1833, allocations: 2.206 MB / 0.9045 GB, free: 60.19 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002616/0.1836, allocations: 11.94 kB / 0.9045 GB, free: 60.18 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0009446/0.1845, allocations: 396.1 kB / 0.9049 GB, free: 59.79 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0005689/0.1851, allocations: 306.5 kB / 0.9052 GB, free: 59.49 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007102/0.1858, allocations: 370.4 kB / 0.9055 GB, free: 59.13 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0006432/0.1865, allocations: 0.966 MB / 0.9065 GB, free: 58.16 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006921/0.1872, allocations: 0.5107 MB / 0.907 GB, free: 57.65 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000249/0.1874, allocations: 238.9 kB / 0.9072 GB, free: 57.41 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003532/0.1878, allocations: 318.6 kB / 0.9075 GB, free: 57.1 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 5.427e-05/0.1879, allocations: 20 kB / 0.9075 GB, free: 57.08 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004464/0.1883, allocations: 331.4 kB / 0.9078 GB, free: 56.76 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 0.000109/0.1884, allocations: 151.4 kB / 0.908 GB, free: 56.61 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 0.0001885/0.1886, allocations: 262.5 kB / 0.9082 GB, free: 56.35 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0006392/0.1893, allocations: 0.9265 MB / 0.9091 GB, free: 55.42 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.1893, allocations: 0 / 0.9091 GB, free: 55.42 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.633e-06/0.1893, allocations: 0 / 0.9091 GB, free: 55.42 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 9.638e-06/0.1893, allocations: 0 / 0.9091 GB, free: 55.42 MB / 0.6042 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.001306/0.1906, allocations: 0.8248 MB / 0.9099 GB, free: 54.54 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.595e-05/0.1907, allocations: 11.97 kB / 0.91 GB, free: 54.53 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006176/0.1913, allocations: 140 kB / 0.9101 GB, free: 54.39 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00047/0.1918, allocations: 438.8 kB / 0.9105 GB, free: 53.92 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.478e-05/0.1918, allocations: 37.38 kB / 0.9105 GB, free: 53.89 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.698e-05/0.1919, allocations: 52.36 kB / 0.9106 GB, free: 53.84 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009383/0.1929, allocations: 0.7007 MB / 0.9113 GB, free: 53.1 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.8e-05/0.1929, allocations: 0 / 0.9113 GB, free: 53.1 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.233e-05/0.193, allocations: 23.98 kB / 0.9113 GB, free: 53.08 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.09e-05/0.193, allocations: 52.97 kB / 0.9113 GB, free: 53.03 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008728/0.1939, allocations: 0.5776 MB / 0.9119 GB, free: 52.45 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002565/0.1965, allocations: 2.908 MB / 0.9148 GB, free: 49.3 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008684/0.1974, allocations: 0.5676 MB / 0.9153 GB, free: 48.71 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003549/0.1977, allocations: 257.6 kB / 0.9156 GB, free: 48.45 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003463/0.1981, allocations: 0.5583 MB / 0.9161 GB, free: 47.77 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005427/0.1986, allocations: 408.1 kB / 0.9165 GB, free: 47.35 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=46): time 2.174e-06/0.1986, allocations: 0 / 0.9165 GB, free: 47.35 MB / 0.6042 GB Notification: Performance of matching and sorting (n=46): time 0.00124/0.1999, allocations: 0.7511 MB / 0.9172 GB, free: 46.59 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.825e-05/0.1999, allocations: 81.11 kB / 0.9173 GB, free: 46.49 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002759/0.2002, allocations: 349.5 kB / 0.9176 GB, free: 46.14 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 4.296e-05/0.2003, allocations: 45.7 kB / 0.9177 GB, free: 46.09 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.000126/0.2004, allocations: 284.6 kB / 0.9179 GB, free: 45.81 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 7.954e-05/0.2005, allocations: 153.8 kB / 0.9181 GB, free: 45.66 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.052e-05/0.2006, allocations: 53.69 kB / 0.9181 GB, free: 45.6 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 7.13e-05/0.2006, allocations: 354.8 kB / 0.9185 GB, free: 45.24 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003629/0.201, allocations: 237 kB / 0.9187 GB, free: 45.01 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000417/0.2014, allocations: 366.6 kB / 0.9191 GB, free: 44.6 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007659/0.2022, allocations: 0.575 MB / 0.9196 GB, free: 43.98 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.018e-06/0.2022, allocations: 4 kB / 0.9196 GB, free: 43.98 MB / 0.6042 GB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0009761/0.2032, allocations: 0.6869 MB / 0.9203 GB, free: 43.28 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 8.701e-05/0.2033, allocations: 198.2 kB / 0.9205 GB, free: 43.04 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.734e-06/0.2033, allocations: 8 kB / 0.9205 GB, free: 43.04 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.115e-05/0.2033, allocations: 4.188 kB / 0.9205 GB, free: 43.03 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004413/0.2038, allocations: 111.9 kB / 0.9206 GB, free: 42.92 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.98e-05/0.2038, allocations: 11.92 kB / 0.9206 GB, free: 42.91 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004032/0.2042, allocations: 75.53 kB / 0.9207 GB, free: 42.84 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.798e-05/0.2043, allocations: 23.94 kB / 0.9207 GB, free: 42.81 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 6.001e-06/0.2043, allocations: 8 kB / 0.9207 GB, free: 42.8 MB / 0.6042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008052/0.2051, allocations: 0.5719 MB / 0.9213 GB, free: 42.23 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.97e-06/0.2051, allocations: 8.25 kB / 0.9213 GB, free: 42.22 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.649e-06/0.2051, allocations: 4.109 kB / 0.9213 GB, free: 42.21 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003375/0.2055, allocations: 107.8 kB / 0.9214 GB, free: 42.11 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.869e-06/0.2055, allocations: 4 kB / 0.9214 GB, free: 42.11 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003255/0.2058, allocations: 71.47 kB / 0.9215 GB, free: 42.04 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.962e-05/0.2059, allocations: 20.05 kB / 0.9215 GB, free: 42.02 MB / 0.6042 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 (bat_ideal.cha.overCharged,$PRE.bat_ideal.cha.overCharged,bat_ideal.cha.underCharged,$PRE.bat_ideal.cha.underCharged,$whenCondition2,bat_loss_acdc.cha.overCharged,$PRE.bat_loss_acdc.cha.overCharged,bat_loss_acdc.cha.underCharged,$PRE.bat_loss_acdc.cha.underCharged,$whenCondition3,bat.cha.overCharged,$PRE.bat.cha.overCharged,bat.cha.underCharged,$PRE.bat.cha.underCharged,$whenCondition4,pow.count,$PRE.pow.count,pow.T_start,$PRE.pow.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 65 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002182/0.2061, allocations: 303.2 kB / 0.9218 GB, free: 41.71 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.728e-05/0.2061, allocations: 47.47 kB / 0.9218 GB, free: 41.66 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009015/0.207, allocations: 0.5916 MB / 0.9224 GB, free: 41.06 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.725e-06/0.2071, allocations: 4 kB / 0.9224 GB, free: 41.06 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.532e-06/0.2071, allocations: 0 / 0.9224 GB, free: 41.06 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001565/0.2072, allocations: 176.4 kB / 0.9226 GB, free: 40.87 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.81e-05/0.2073, allocations: 15.98 kB / 0.9226 GB, free: 40.85 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003809/0.2077, allocations: 55.92 kB / 0.9226 GB, free: 40.8 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001166/0.2078, allocations: 47.88 kB / 0.9227 GB, free: 40.75 MB / 0.6042 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001085/0.2089, allocations: 0.757 MB / 0.9234 GB, free: 39.98 MB / 0.6042 GB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.001213/0.2101, allocations: 1.117 MB / 0.9245 GB, free: 38.85 MB / 0.6042 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0003636/0.2105, allocations: 275.6 kB / 0.9248 GB, free: 38.58 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.000193/0.2107, allocations: 243.2 kB / 0.925 GB, free: 38.34 MB / 0.6042 GB Notification: Performance of Backend: time 6.81e-07/0.2107, allocations: 4 kB / 0.925 GB, free: 38.34 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.001783/0.2125, allocations: 0.9681 MB / 0.926 GB, free: 37.34 MB / 0.6042 GB Notification: Performance of SimCode: time 0.001702/0.2142, allocations: 1.644 MB / 0.9276 GB, free: 35.65 MB / 0.6042 GB Notification: Performance of Templates: time 0.01374/0.228, allocations: 11.06 MB / 0.9384 GB, free: 24.7 MB / 0.6042 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.makefile (rm -f Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.sim & ./Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe 2>&1)