Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_6.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.conf.json Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Running command: translateModel(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_6.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo): time 0.009022/0.009022, allocations: 106.9 kB / 15.06 MB, free: 5.562 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo): time 0.001104/0.001104, allocations: 188.3 kB / 15.95 MB, free: 5.523 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo): time 2.126/2.126, allocations: 194.6 MB / 211.3 MB, free: 11.32 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo): time 2.246/2.246, allocations: 236.1 MB / 492.6 MB, free: 11.33 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004777/0.000478, allocations: 12 kB / 0.5869 GB, free: 2.191 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5367/0.5372, allocations: 98.71 MB / 0.6833 GB, free: 16.84 MB / 0.5261 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery): time 0.00832/0.5456, allocations: 3.782 MB / 0.687 GB, free: 14.27 MB / 0.5261 GB Notification: Performance of NFInst.instExpressions: time 0.005234/0.5508, allocations: 2.069 MB / 0.6891 GB, free: 12.87 MB / 0.5261 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005941/0.5515, allocations: 10.41 kB / 0.6891 GB, free: 12.86 MB / 0.5261 GB Notification: Performance of NFTyping.typeComponents: time 0.0002842/0.5518, allocations: 61.2 kB / 0.6891 GB, free: 12.82 MB / 0.5261 GB Notification: Performance of NFTyping.typeBindings: time 0.0009636/0.5528, allocations: 242.2 kB / 0.6894 GB, free: 12.67 MB / 0.5261 GB Notification: Performance of NFTyping.typeClassSections: time 0.001163/0.554, allocations: 296.6 kB / 0.6896 GB, free: 12.52 MB / 0.5261 GB Notification: Performance of NFFlatten.flatten: time 0.0009026/0.5549, allocations: 477.9 kB / 0.6901 GB, free: 12.27 MB / 0.5261 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00152/0.5564, allocations: 0.7052 MB / 0.6908 GB, free: 11.86 MB / 0.5261 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004215/0.5569, allocations: 213.5 kB / 0.691 GB, free: 11.77 MB / 0.5261 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004573/0.5573, allocations: 247.2 kB / 0.6912 GB, free: 11.66 MB / 0.5261 GB Notification: Performance of NFPackage.collectConstants: time 0.0001039/0.5575, allocations: 22.66 kB / 0.6912 GB, free: 11.66 MB / 0.5261 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005473/0.558, allocations: 180.8 kB / 0.6914 GB, free: 11.62 MB / 0.5261 GB Notification: Performance of NFScalarize.scalarize: time 0.0001769/0.5582, allocations: 132.7 kB / 0.6915 GB, free: 11.57 MB / 0.5261 GB Notification: Performance of NFVerifyModel.verify: time 0.0001642/0.5584, allocations: 133 kB / 0.6917 GB, free: 11.48 MB / 0.5261 GB Notification: Performance of NFConvertDAE.convert: time 0.001094/0.5595, allocations: 0.7216 MB / 0.6924 GB, free: 11.33 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 3.143e-06/0.5595, allocations: 4 kB / 0.6924 GB, free: 11.33 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.597e-06/0.5595, allocations: 0 / 0.6924 GB, free: 11.33 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 1.31e-05/0.5596, allocations: 0 / 0.6924 GB, free: 11.33 MB / 0.5261 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.001712/0.5613, allocations: 0.8422 MB / 0.6932 GB, free: 10.68 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.941e-05/0.5613, allocations: 8.812 kB / 0.6932 GB, free: 10.68 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001008/0.5624, allocations: 135.5 kB / 0.6933 GB, free: 10.64 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007649/0.5631, allocations: 426.5 kB / 0.6937 GB, free: 10.32 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.74e-05/0.5632, allocations: 34.33 kB / 0.6938 GB, free: 10.3 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000121/0.5633, allocations: 54.84 kB / 0.6938 GB, free: 10.29 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001592/0.565, allocations: 0.6856 MB / 0.6945 GB, free: 9.965 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.131e-05/0.565, allocations: 0.9688 kB / 0.6945 GB, free: 9.965 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.172e-05/0.5651, allocations: 31.64 kB / 0.6945 GB, free: 9.941 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.572e-05/0.5652, allocations: 50.5 kB / 0.6946 GB, free: 9.93 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001516/0.5667, allocations: 0.5725 MB / 0.6951 GB, free: 9.738 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00411/0.5708, allocations: 2.814 MB / 0.6979 GB, free: 7.469 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001385/0.5723, allocations: 0.5676 MB / 0.6984 GB, free: 7.16 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003809/0.5727, allocations: 0.5608 MB / 0.699 GB, free: 6.492 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008307/0.5735, allocations: 402.9 kB / 0.6994 GB, free: 6.23 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=46): time 3.598e-06/0.5735, allocations: 0 / 0.6994 GB, free: 6.23 MB / 0.5261 GB Notification: Performance of matching and sorting (n=46): time 0.001924/0.5755, allocations: 0.7504 MB / 0.7001 GB, free: 5.844 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.188e-05/0.5755, allocations: 82.73 kB / 0.7002 GB, free: 5.75 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004514/0.576, allocations: 351.4 kB / 0.7005 GB, free: 5.523 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 7.418e-05/0.5761, allocations: 43.42 kB / 0.7006 GB, free: 5.48 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001995/0.5763, allocations: 284.2 kB / 0.7008 GB, free: 5.227 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001377/0.5765, allocations: 149.8 kB / 0.701 GB, free: 5.098 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.378e-05/0.5765, allocations: 14.69 kB / 0.701 GB, free: 5.086 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 9.053e-05/0.5766, allocations: 352.7 kB / 0.7013 GB, free: 4.742 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006369/0.5773, allocations: 234.6 kB / 0.7015 GB, free: 4.629 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006873/0.578, allocations: 370.1 kB / 0.7019 GB, free: 4.352 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006702/0.5787, allocations: 294 kB / 0.7022 GB, free: 4.184 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.338e-06/0.5787, allocations: 1.031 kB / 0.7022 GB, free: 4.184 MB / 0.5261 GB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001689/0.5804, allocations: 0.6885 MB / 0.7029 GB, free: 3.809 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002441/0.5806, allocations: 1.079 MB / 0.7039 GB, free: 2.652 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.15e-05/0.5807, allocations: 2.75 kB / 0.7039 GB, free: 2.652 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.633e-05/0.5807, allocations: 6 kB / 0.7039 GB, free: 2.652 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006933/0.5814, allocations: 111.1 kB / 0.704 GB, free: 2.621 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.636e-05/0.5814, allocations: 10.52 kB / 0.704 GB, free: 2.617 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006379/0.5821, allocations: 79.75 kB / 0.7041 GB, free: 2.566 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.677e-05/0.5822, allocations: 20.19 kB / 0.7041 GB, free: 2.562 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.472e-05/0.5822, allocations: 5.844 kB / 0.7041 GB, free: 2.562 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001481/0.5837, allocations: 0.5804 MB / 0.7047 GB, free: 2.258 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.803e-06/0.5837, allocations: 6.031 kB / 0.7047 GB, free: 2.254 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.215e-05/0.5837, allocations: 6.031 kB / 0.7047 GB, free: 2.254 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005611/0.5843, allocations: 100.8 kB / 0.7048 GB, free: 2.23 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.412e-05/0.5843, allocations: 9.219 kB / 0.7048 GB, free: 2.227 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000567/0.5849, allocations: 69.97 kB / 0.7049 GB, free: 2.184 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.824e-05/0.585, allocations: 26.58 kB / 0.7049 GB, free: 2.172 MB / 0.5261 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 (66): * Single equations (assignments): 65 * 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.000431/0.5854, allocations: 299.2 kB / 0.7052 GB, free: 1.914 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001051/0.5856, allocations: 47.22 kB / 0.7052 GB, free: 1.891 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001439/0.587, allocations: 0.5945 MB / 0.7058 GB, free: 1.547 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.095e-05/0.587, allocations: 5.875 kB / 0.7058 GB, free: 1.547 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.333e-06/0.587, allocations: 0 / 0.7058 GB, free: 1.547 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.114e-05/0.5871, allocations: 5.203 kB / 0.7058 GB, free: 1.543 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002956/0.59, allocations: 1.378 MB / 0.7072 GB, free: 0.5938 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.842e-06/0.5901, allocations: 1.406 kB / 0.7072 GB, free: 0.5938 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006105/0.5907, allocations: 86.22 kB / 0.7073 GB, free: 0.5703 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.004e-05/0.5907, allocations: 3.219 kB / 0.7073 GB, free: 0.5703 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.042e-05/0.5908, allocations: 14.92 kB / 0.7073 GB, free: 0.5586 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.119e-06/0.5908, allocations: 7.125 kB / 0.7073 GB, free: 0.5547 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.346e-06/0.5908, allocations: 0 / 0.7073 GB, free: 0.5547 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002072/0.5929, allocations: 0.987 MB / 0.7082 GB, free: 15.96 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003545/0.5933, allocations: 173.5 kB / 0.7084 GB, free: 15.8 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001096/0.5934, allocations: 12.16 kB / 0.7084 GB, free: 15.79 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004923/0.5939, allocations: 47.12 kB / 0.7085 GB, free: 15.77 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001775/0.5941, allocations: 48.97 kB / 0.7085 GB, free: 15.74 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.884e-05/0.5942, allocations: 26.75 kB / 0.7085 GB, free: 15.72 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.00041/0.5946, allocations: 243.3 kB / 0.7088 GB, free: 15.56 MB / 0.5417 GB Notification: Performance of sort global known variables: time 7.81e-07/0.5946, allocations: 0 / 0.7088 GB, free: 15.56 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.001102/0.5957, allocations: 257.6 kB / 0.709 GB, free: 15.5 MB / 0.5417 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.0002562/0.596, allocations: 139.1 kB / 0.7092 GB, free: 15.39 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.002421/0.5984, allocations: 0.9707 MB / 0.7101 GB, free: 14.86 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.158e-05/0.5985, allocations: 1.5 kB / 0.7101 GB, free: 14.86 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0007457/0.5992, allocations: 292.5 kB / 0.7104 GB, free: 14.73 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001034/0.6003, allocations: 157.3 kB / 0.7105 GB, free: 14.65 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002664/0.603, allocations: 1.25 MB / 0.7118 GB, free: 13.78 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006998/0.6037, allocations: 0.9119 MB / 0.7126 GB, free: 12.97 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.0007874/0.6045, allocations: 141.8 kB / 0.7128 GB, free: 12.91 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002245/0.6047, allocations: 47.7 kB / 0.7128 GB, free: 12.89 MB / 0.5417 GB Notification: Performance of SimCode: time 1.618e-06/0.6048, allocations: 1.062 kB / 0.7128 GB, free: 12.89 MB / 0.5417 GB Notification: Performance of Templates: time 0.0207/0.6255, allocations: 7.796 MB / 0.7204 GB, free: 7.57 MB / 0.5417 GB