Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.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.OnePhase.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.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.7.0.x_Buildings.Electrical.AC.OnePhase.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.395/1.395, allocations: 251.5 MB / 267.4 MB, free: 11.07 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.0009392/0.0009393, allocations: 175.9 kB / 326.5 MB, free: 2.715 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.512/1.512, allocations: 205 MB / 0.5766 GB, free: 21.03 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.0007542/0.0007541, allocations: 87.02 kB / 0.6804 GB, free: 14.73 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003086/0.0003086, allocations: 8.938 kB / 0.7938 GB, free: 136.5 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.174/0.1743, allocations: 105.4 MB / 0.8968 GB, free: 68.22 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery): time 0.004253/0.1786, allocations: 4.112 MB / 0.9008 GB, free: 64.09 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.003174/0.1818, allocations: 2.222 MB / 0.9029 GB, free: 61.85 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004752/0.1823, allocations: 11.94 kB / 0.903 GB, free: 61.84 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.001166/0.1835, allocations: 386.6 kB / 0.9033 GB, free: 61.46 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.000742/0.1842, allocations: 298.6 kB / 0.9036 GB, free: 61.17 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007318/0.185, allocations: 373 kB / 0.904 GB, free: 60.8 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0006943/0.1857, allocations: 0.966 MB / 0.9049 GB, free: 59.84 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006266/0.1863, allocations: 0.5107 MB / 0.9054 GB, free: 59.32 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002135/0.1866, allocations: 242.8 kB / 0.9056 GB, free: 59.08 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003072/0.1869, allocations: 310.6 kB / 0.9059 GB, free: 58.78 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 5.051e-05/0.1869, allocations: 24 kB / 0.906 GB, free: 58.75 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003829/0.1873, allocations: 335.4 kB / 0.9063 GB, free: 58.43 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 0.0001028/0.1874, allocations: 139.5 kB / 0.9064 GB, free: 58.29 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 0.0001683/0.1876, allocations: 278.3 kB / 0.9067 GB, free: 58.02 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0006081/0.1882, allocations: 0.9188 MB / 0.9076 GB, free: 57.09 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 2.485e-06/0.1882, allocations: 0 / 0.9076 GB, free: 57.09 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.153e-06/0.1882, allocations: 0 / 0.9076 GB, free: 57.09 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 8.045e-06/0.1883, allocations: 0 / 0.9076 GB, free: 57.09 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.001227/0.1895, allocations: 0.8247 MB / 0.9084 GB, free: 56.21 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.04e-05/0.1895, allocations: 8.031 kB / 0.9084 GB, free: 56.2 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005582/0.1901, allocations: 136.1 kB / 0.9085 GB, free: 56.07 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004493/0.1906, allocations: 434.9 kB / 0.9089 GB, free: 55.61 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.667e-05/0.1906, allocations: 41.36 kB / 0.909 GB, free: 55.57 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.153e-05/0.1907, allocations: 60.3 kB / 0.909 GB, free: 55.51 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009004/0.1916, allocations: 0.6968 MB / 0.9097 GB, free: 54.78 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.871e-05/0.1916, allocations: 3.938 kB / 0.9097 GB, free: 54.77 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.898e-05/0.1917, allocations: 23.98 kB / 0.9097 GB, free: 54.75 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.941e-05/0.1917, allocations: 52.95 kB / 0.9098 GB, free: 54.7 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008382/0.1926, allocations: 0.5699 MB / 0.9103 GB, free: 54.13 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002475/0.1951, allocations: 2.912 MB / 0.9132 GB, free: 50.97 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008282/0.1959, allocations: 0.5676 MB / 0.9137 GB, free: 50.39 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003507/0.1963, allocations: 253.6 kB / 0.914 GB, free: 50.13 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003301/0.1966, allocations: 0.5661 MB / 0.9145 GB, free: 49.44 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005557/0.1972, allocations: 404.2 kB / 0.9149 GB, free: 49.02 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=46): time 2.114e-06/0.1972, allocations: 0 / 0.9149 GB, free: 49.02 MB / 0.6042 GB Notification: Performance of matching and sorting (n=46): time 0.001157/0.1984, allocations: 0.7471 MB / 0.9157 GB, free: 48.27 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.843e-05/0.1984, allocations: 81.11 kB / 0.9157 GB, free: 48.17 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002574/0.1987, allocations: 349.6 kB / 0.9161 GB, free: 47.82 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 4.119e-05/0.1987, allocations: 45.83 kB / 0.9161 GB, free: 47.77 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001198/0.1988, allocations: 288.4 kB / 0.9164 GB, free: 47.48 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 7.702e-05/0.1989, allocations: 149.9 kB / 0.9165 GB, free: 47.34 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.952e-05/0.199, allocations: 49.69 kB / 0.9166 GB, free: 47.28 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 7.149e-05/0.1991, allocations: 354.8 kB / 0.9169 GB, free: 46.93 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000361/0.1994, allocations: 241 kB / 0.9171 GB, free: 46.69 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004022/0.1998, allocations: 358.7 kB / 0.9175 GB, free: 46.29 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007065/0.2006, allocations: 0.5905 MB / 0.9181 GB, free: 45.66 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.336e-06/0.2006, allocations: 0 / 0.9181 GB, free: 45.66 MB / 0.6042 GB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0009481/0.2015, allocations: 0.6947 MB / 0.9187 GB, free: 44.95 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 7.481e-05/0.2016, allocations: 197 kB / 0.9189 GB, free: 44.71 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.164e-06/0.2016, allocations: 112 / 0.9189 GB, free: 44.71 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.705e-05/0.2016, allocations: 11.94 kB / 0.9189 GB, free: 44.7 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004389/0.2021, allocations: 107.8 kB / 0.919 GB, free: 44.59 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.839e-06/0.2021, allocations: 8 kB / 0.919 GB, free: 44.59 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003901/0.2025, allocations: 79.47 kB / 0.9191 GB, free: 44.51 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.528e-05/0.2026, allocations: 27.94 kB / 0.9191 GB, free: 44.48 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 6.502e-06/0.2026, allocations: 6.5 kB / 0.9192 GB, free: 44.48 MB / 0.6042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008018/0.2034, allocations: 0.576 MB / 0.9197 GB, free: 43.89 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.747e-06/0.2034, allocations: 4 kB / 0.9197 GB, free: 43.89 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.187e-06/0.2034, allocations: 4.047 kB / 0.9197 GB, free: 43.89 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003431/0.2037, allocations: 107.8 kB / 0.9198 GB, free: 43.78 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.179e-06/0.2038, allocations: 7.984 kB / 0.9198 GB, free: 43.77 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000329/0.2041, allocations: 67.58 kB / 0.9199 GB, free: 43.71 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.922e-05/0.2041, allocations: 20.31 kB / 0.9199 GB, free: 43.69 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.0002061/0.2043, allocations: 295.2 kB / 0.9202 GB, free: 43.39 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.445e-05/0.2044, allocations: 51.38 kB / 0.9202 GB, free: 43.34 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008802/0.2053, allocations: 0.5917 MB / 0.9208 GB, free: 42.74 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.943e-06/0.2053, allocations: 0 / 0.9208 GB, free: 42.74 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.2053, allocations: 4 kB / 0.9208 GB, free: 42.73 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001559/0.2055, allocations: 180.4 kB / 0.921 GB, free: 42.54 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.907e-05/0.2056, allocations: 19.98 kB / 0.921 GB, free: 42.52 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003871/0.2059, allocations: 47.92 kB / 0.9211 GB, free: 42.47 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001168/0.2061, allocations: 47.88 kB / 0.9211 GB, free: 42.43 MB / 0.6042 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001071/0.2071, allocations: 0.7532 MB / 0.9218 GB, free: 41.66 MB / 0.6042 GB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.001183/0.2083, allocations: 1.121 MB / 0.9229 GB, free: 40.53 MB / 0.6042 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0003461/0.2087, allocations: 271.6 kB / 0.9232 GB, free: 40.26 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0001701/0.2089, allocations: 247.2 kB / 0.9234 GB, free: 40.02 MB / 0.6042 GB Notification: Performance of Backend: time 4.6e-07/0.2089, allocations: 0 / 0.9234 GB, free: 40.02 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.001579/0.2105, allocations: 0.9769 MB / 0.9244 GB, free: 39.02 MB / 0.6042 GB Notification: Performance of SimCode: time 0.001501/0.212, allocations: 1.648 MB / 0.926 GB, free: 37.32 MB / 0.6042 GB Notification: Performance of Templates: time 0.01284/0.2248, allocations: 11.05 MB / 0.9368 GB, free: 26.36 MB / 0.6042 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.makefile (rm -f Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.sim & ./Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe 2>&1)