Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_6.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.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.ThreePhasesBalanced.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_6.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.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.009212/0.009212, allocations: 107.3 kB / 15.06 MB, free: 5.609 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.001135/0.001135, allocations: 188.1 kB / 15.95 MB, free: 5.543 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.172/2.172, allocations: 194.5 MB / 211.3 MB, free: 11.05 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.346/2.346, allocations: 236.2 MB / 492.6 MB, free: 11.37 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004664/0.0004666, allocations: 12 kB / 0.5869 GB, free: 2.168 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5412/0.5417, allocations: 98.71 MB / 0.6833 GB, free: 16.89 MB / 0.5261 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery): time 0.007663/0.5495, allocations: 5.236 MB / 0.6885 GB, free: 13.39 MB / 0.5261 GB Notification: Performance of NFInst.instExpressions: time 0.004316/0.5538, allocations: 2.066 MB / 0.6905 GB, free: 12 MB / 0.5261 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000587/0.5545, allocations: 11.12 kB / 0.6905 GB, free: 12 MB / 0.5261 GB Notification: Performance of NFTyping.typeComponents: time 0.0002781/0.5548, allocations: 62.5 kB / 0.6905 GB, free: 11.96 MB / 0.5261 GB Notification: Performance of NFTyping.typeBindings: time 0.0009888/0.5558, allocations: 245.8 kB / 0.6908 GB, free: 11.8 MB / 0.5261 GB Notification: Performance of NFTyping.typeClassSections: time 0.001215/0.557, allocations: 300.7 kB / 0.6911 GB, free: 11.65 MB / 0.5261 GB Notification: Performance of NFFlatten.flatten: time 0.001036/0.5581, allocations: 474.2 kB / 0.6915 GB, free: 11.4 MB / 0.5261 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001626/0.5597, allocations: 0.7204 MB / 0.6922 GB, free: 10.97 MB / 0.5261 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004713/0.5602, allocations: 208.2 kB / 0.6924 GB, free: 10.89 MB / 0.5261 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004736/0.5607, allocations: 249.1 kB / 0.6927 GB, free: 10.78 MB / 0.5261 GB Notification: Performance of NFPackage.collectConstants: time 8.962e-05/0.5608, allocations: 25.16 kB / 0.6927 GB, free: 10.78 MB / 0.5261 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005629/0.5614, allocations: 178.7 kB / 0.6928 GB, free: 10.74 MB / 0.5261 GB Notification: Performance of NFScalarize.scalarize: time 0.0001905/0.5616, allocations: 134.6 kB / 0.693 GB, free: 10.68 MB / 0.5261 GB Notification: Performance of NFVerifyModel.verify: time 0.0001729/0.5618, allocations: 130.7 kB / 0.6931 GB, free: 10.6 MB / 0.5261 GB Notification: Performance of NFConvertDAE.convert: time 0.001116/0.5629, allocations: 0.7277 MB / 0.6938 GB, free: 10.44 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 3.38e-06/0.5629, allocations: 0 / 0.6938 GB, free: 10.44 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.828e-06/0.5629, allocations: 0.8438 kB / 0.6938 GB, free: 10.44 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 1.192e-05/0.5629, allocations: 0 / 0.6938 GB, free: 10.44 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.001803/0.5648, allocations: 0.8384 MB / 0.6946 GB, free: 9.797 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.38e-05/0.5648, allocations: 9.656 kB / 0.6946 GB, free: 9.797 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009835/0.5658, allocations: 134.9 kB / 0.6948 GB, free: 9.762 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008278/0.5667, allocations: 425.8 kB / 0.6952 GB, free: 9.434 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.099e-05/0.5667, allocations: 42.39 kB / 0.6952 GB, free: 9.414 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001266/0.5669, allocations: 50.7 kB / 0.6953 GB, free: 9.398 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001655/0.5686, allocations: 0.6853 MB / 0.6959 GB, free: 9.078 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.227e-05/0.5686, allocations: 9.453 kB / 0.6959 GB, free: 9.07 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.242e-05/0.5687, allocations: 23.42 kB / 0.696 GB, free: 9.055 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001018/0.5688, allocations: 55.05 kB / 0.696 GB, free: 9.039 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001553/0.5704, allocations: 0.569 MB / 0.6966 GB, free: 8.852 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004073/0.5745, allocations: 2.803 MB / 0.6993 GB, free: 6.402 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00139/0.5759, allocations: 0.5666 MB / 0.6999 GB, free: 6.09 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003977/0.5763, allocations: 0.569 MB / 0.7004 GB, free: 5.414 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000856/0.5772, allocations: 401.3 kB / 0.7008 GB, free: 5.152 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=46): time 5.769e-06/0.5772, allocations: 4 kB / 0.7008 GB, free: 5.148 MB / 0.5261 GB Notification: Performance of matching and sorting (n=46): time 0.001954/0.5792, allocations: 0.74 MB / 0.7015 GB, free: 4.773 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.11e-05/0.5793, allocations: 90.2 kB / 0.7016 GB, free: 4.672 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004829/0.5798, allocations: 356.4 kB / 0.702 GB, free: 4.441 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 9.038e-05/0.5799, allocations: 39.48 kB / 0.702 GB, free: 4.402 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.00021/0.5801, allocations: 280.6 kB / 0.7023 GB, free: 4.152 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001458/0.5803, allocations: 151.9 kB / 0.7024 GB, free: 4.02 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.26e-05/0.5803, allocations: 10.81 kB / 0.7024 GB, free: 4.012 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 9.573e-05/0.5804, allocations: 357.9 kB / 0.7028 GB, free: 3.664 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006149/0.581, allocations: 237.9 kB / 0.703 GB, free: 3.547 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007024/0.5818, allocations: 360.5 kB / 0.7033 GB, free: 3.281 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006591/0.5824, allocations: 293.1 kB / 0.7036 GB, free: 3.113 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.53e-06/0.5825, allocations: 1 kB / 0.7036 GB, free: 3.113 MB / 0.5261 GB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001653/0.5841, allocations: 0.6856 MB / 0.7043 GB, free: 2.742 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002526/0.5844, allocations: 1.072 MB / 0.7053 GB, free: 1.594 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.391e-05/0.5844, allocations: 10.05 kB / 0.7053 GB, free: 1.586 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.581e-05/0.5845, allocations: 6.938 kB / 0.7053 GB, free: 1.586 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006807/0.5851, allocations: 114.5 kB / 0.7054 GB, free: 1.551 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.83e-05/0.5852, allocations: 13.83 kB / 0.7055 GB, free: 1.543 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000652/0.5858, allocations: 72.06 kB / 0.7055 GB, free: 1.5 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.93e-05/0.5859, allocations: 24.88 kB / 0.7056 GB, free: 1.492 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.451e-05/0.586, allocations: 3.938 kB / 0.7056 GB, free: 1.492 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001394/0.5874, allocations: 0.5735 MB / 0.7061 GB, free: 1.195 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.141e-05/0.5874, allocations: 6.734 kB / 0.7061 GB, free: 1.191 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.183e-05/0.5874, allocations: 5.844 kB / 0.7061 GB, free: 1.191 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005515/0.588, allocations: 112.8 kB / 0.7062 GB, free: 1.156 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.327e-05/0.588, allocations: 4.781 kB / 0.7062 GB, free: 1.156 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006003/0.5886, allocations: 69.52 kB / 0.7063 GB, free: 1.113 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.268e-05/0.5887, allocations: 23.17 kB / 0.7063 GB, free: 1.105 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.0004416/0.5891, allocations: 302.3 kB / 0.7066 GB, free: 0.8438 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001199/0.5893, allocations: 43.31 kB / 0.7067 GB, free: 0.8242 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001454/0.5907, allocations: 0.6068 MB / 0.7073 GB, free: 480 kB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.146e-05/0.5908, allocations: 6.031 kB / 0.7073 GB, free: 480 kB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.652e-06/0.5908, allocations: 0 / 0.7073 GB, free: 480 kB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.954e-06/0.5908, allocations: 5.125 kB / 0.7073 GB, free: 476 kB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0032/0.594, allocations: 1.378 MB / 0.7086 GB, free: 15.51 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.622e-06/0.5941, allocations: 4.844 kB / 0.7086 GB, free: 15.51 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000614/0.5947, allocations: 87.38 kB / 0.7087 GB, free: 15.48 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.326e-06/0.5947, allocations: 2.156 kB / 0.7087 GB, free: 15.48 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.274e-05/0.5948, allocations: 7.812 kB / 0.7087 GB, free: 15.48 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.885e-06/0.5948, allocations: 6.391 kB / 0.7087 GB, free: 15.48 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.407e-06/0.5948, allocations: 1.125 kB / 0.7087 GB, free: 15.48 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002262/0.5971, allocations: 0.9867 MB / 0.7097 GB, free: 14.89 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003964/0.5975, allocations: 176.5 kB / 0.7098 GB, free: 14.72 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001101/0.5977, allocations: 17 kB / 0.7099 GB, free: 14.71 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004935/0.5982, allocations: 42.8 kB / 0.7099 GB, free: 14.69 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001741/0.5983, allocations: 48.55 kB / 0.71 GB, free: 14.66 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.389e-05/0.5984, allocations: 27.38 kB / 0.71 GB, free: 14.64 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0003932/0.5988, allocations: 238.6 kB / 0.7102 GB, free: 14.49 MB / 0.5417 GB Notification: Performance of sort global known variables: time 7.78e-07/0.5988, allocations: 0 / 0.7102 GB, free: 14.49 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.001106/0.6, allocations: 261.8 kB / 0.7105 GB, free: 14.42 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.0002572/0.6002, allocations: 140.2 kB / 0.7106 GB, free: 14.31 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.002398/0.6026, allocations: 0.9699 MB / 0.7115 GB, free: 13.79 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 5.915e-06/0.6027, allocations: 1.375 kB / 0.7115 GB, free: 13.79 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0007251/0.6034, allocations: 285.7 kB / 0.7118 GB, free: 13.66 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001021/0.6045, allocations: 152.3 kB / 0.712 GB, free: 13.58 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002702/0.6072, allocations: 1.254 MB / 0.7132 GB, free: 12.71 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006858/0.6079, allocations: 0.9041 MB / 0.7141 GB, free: 11.91 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.0008486/0.6088, allocations: 154.6 kB / 0.7142 GB, free: 11.83 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002248/0.609, allocations: 43.27 kB / 0.7143 GB, free: 11.82 MB / 0.5417 GB Notification: Performance of SimCode: time 1.463e-06/0.609, allocations: 0 / 0.7143 GB, free: 11.82 MB / 0.5417 GB Notification: Performance of Templates: time 0.02121/0.6302, allocations: 7.789 MB / 0.7219 GB, free: 6.094 MB / 0.5417 GB