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.004165/0.004169, allocations: 232.5 kB / 15.82 MB, free: 6.301 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.001134/0.001134, allocations: 177.1 kB / 16.71 MB, free: 5.453 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 3.809/3.809, allocations: 389.1 MB / 406.5 MB, free: 11.82 MB / 330.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo): time 3.97/3.97, allocations: 472.3 MB / 0.9024 GB, free: 9.145 MB / 0.5886 GB Notification: Performance of FrontEnd - loaded program: time 0.0004948/0.0004951, allocations: 15.59 kB / 1.008 GB, free: 138.3 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1746/0.1751, allocations: 98.72 MB / 1.105 GB, free: 42.16 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8344/1.01, allocations: 143.3 MB / 1.245 GB, free: 14.27 MB / 0.6198 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003381/1.01, allocations: 104.3 kB / 1.245 GB, free: 14.21 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 0.1285/1.138, allocations: 27.26 MB / 1.271 GB, free: 7.688 MB / 0.6355 GB Notification: Performance of FrontEnd: time 2.624e-06/1.139, allocations: 0 / 1.271 GB, free: 7.688 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 5.121e-05/1.139, allocations: 17.19 kB / 1.271 GB, free: 7.672 MB / 0.6355 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.002687/1.141, allocations: 0.8801 MB / 1.272 GB, free: 6.785 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.855e-05/1.141, allocations: 8.031 kB / 1.272 GB, free: 6.777 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001475/1.143, allocations: 158.3 kB / 1.272 GB, free: 6.625 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00109/1.144, allocations: 441.2 kB / 1.273 GB, free: 6.223 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.163e-05/1.144, allocations: 39.31 kB / 1.273 GB, free: 6.199 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001541/1.144, allocations: 53.61 kB / 1.273 GB, free: 6.164 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001873/1.146, allocations: 0.6897 MB / 1.274 GB, free: 5.652 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.171e-05/1.146, allocations: 0 / 1.274 GB, free: 5.652 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.378e-05/1.146, allocations: 20.73 kB / 1.274 GB, free: 5.645 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.855e-05/1.146, allocations: 47.28 kB / 1.274 GB, free: 5.602 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001906/1.148, allocations: 0.5707 MB / 1.274 GB, free: 5.215 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006611/1.155, allocations: 2.844 MB / 1.277 GB, free: 2.602 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002108/1.157, allocations: 0.5959 MB / 1.278 GB, free: 2.18 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008765/1.158, allocations: 266.3 kB / 1.278 GB, free: 2.004 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007291/1.159, allocations: 0.562 MB / 1.278 GB, free: 1.316 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001335/1.16, allocations: 415.2 kB / 1.279 GB, free: 0.9961 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=49): time 3.607e-06/1.16, allocations: 0 / 1.279 GB, free: 0.9961 MB / 0.6355 GB Notification: Performance of matching and sorting (n=49): time 0.002786/1.163, allocations: 0.7726 MB / 1.279 GB, free: 460 kB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001019/1.163, allocations: 89.3 kB / 1.28 GB, free: 356 kB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006147/1.164, allocations: 339.7 kB / 1.28 GB, free: 88 kB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 0.0001997/1.164, allocations: 44.52 kB / 1.28 GB, free: 48 kB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003268/1.164, allocations: 283.6 kB / 1.28 GB, free: 15.83 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002361/1.165, allocations: 156.7 kB / 1.28 GB, free: 15.7 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.089e-05/1.165, allocations: 10.72 kB / 1.28 GB, free: 15.7 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.000185/1.165, allocations: 357.2 kB / 1.281 GB, free: 15.36 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008163/1.166, allocations: 242.3 kB / 1.281 GB, free: 15.21 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000958/1.167, allocations: 371.9 kB / 1.281 GB, free: 14.9 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008788/1.168, allocations: 302.8 kB / 1.282 GB, free: 14.71 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.267e-06/1.168, allocations: 0 / 1.282 GB, free: 14.71 MB / 0.6511 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.00224/1.17, allocations: 0.7081 MB / 1.282 GB, free: 14.2 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001812/1.17, allocations: 203 kB / 1.282 GB, free: 13.97 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.087e-05/1.17, allocations: 192 / 1.282 GB, free: 13.97 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.905e-05/1.17, allocations: 11.98 kB / 1.282 GB, free: 13.96 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001082/1.171, allocations: 114.4 kB / 1.283 GB, free: 13.85 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.921e-05/1.171, allocations: 8 kB / 1.283 GB, free: 13.84 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000913/1.172, allocations: 72.12 kB / 1.283 GB, free: 13.79 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.863e-05/1.172, allocations: 22.56 kB / 1.283 GB, free: 13.77 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.303e-05/1.172, allocations: 7.938 kB / 1.283 GB, free: 13.76 MB / 0.6511 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00176/1.174, allocations: 0.5894 MB / 1.283 GB, free: 13.36 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.493e-06/1.174, allocations: 0.9062 kB / 1.283 GB, free: 13.36 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.464e-05/1.174, allocations: 8 kB / 1.283 GB, free: 13.35 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000849/1.175, allocations: 106.2 kB / 1.283 GB, free: 13.25 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.826e-05/1.175, allocations: 11.98 kB / 1.283 GB, free: 13.24 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007752/1.176, allocations: 66.14 kB / 1.283 GB, free: 13.18 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.236e-05/1.176, allocations: 19.44 kB / 1.283 GB, free: 13.17 MB / 0.6511 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 (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.0005746/1.176, allocations: 302.9 kB / 1.284 GB, free: 12.92 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000147/1.177, allocations: 55.33 kB / 1.284 GB, free: 12.86 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001861/1.179, allocations: 0.6082 MB / 1.284 GB, free: 12.45 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.037e-05/1.179, allocations: 4 kB / 1.284 GB, free: 12.45 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.893e-06/1.179, allocations: 0 / 1.284 GB, free: 12.45 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.19e-05/1.179, allocations: 3.984 kB / 1.284 GB, free: 12.44 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001207/1.18, allocations: 0.6251 MB / 1.285 GB, free: 11.92 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.328e-06/1.18, allocations: 0 / 1.285 GB, free: 11.92 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009712/1.181, allocations: 97.23 kB / 1.285 GB, free: 11.83 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.375e-06/1.181, allocations: 0 / 1.285 GB, free: 11.83 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.646e-05/1.181, allocations: 16.7 kB / 1.285 GB, free: 11.82 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.226e-06/1.181, allocations: 4.188 kB / 1.285 GB, free: 11.82 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.328e-06/1.181, allocations: 3.938 kB / 1.285 GB, free: 11.82 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002681/1.184, allocations: 0.9243 MB / 1.286 GB, free: 11.17 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004119/1.184, allocations: 184.3 kB / 1.286 GB, free: 11 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001382/1.184, allocations: 12.81 kB / 1.286 GB, free: 11 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006338/1.185, allocations: 41.66 kB / 1.286 GB, free: 10.96 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001974/1.185, allocations: 52.86 kB / 1.286 GB, free: 10.92 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.449e-05/1.185, allocations: 15.5 kB / 1.286 GB, free: 10.91 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0004028/1.186, allocations: 244.2 kB / 1.287 GB, free: 10.72 MB / 0.6511 GB Notification: Performance of sort global known variables: time 3.5e-07/1.186, allocations: 0 / 1.287 GB, free: 10.72 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.001156/1.187, allocations: 279.3 kB / 1.287 GB, free: 10.47 MB / 0.6511 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.0003702/1.187, allocations: 157.8 kB / 1.287 GB, free: 10.32 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.002811/1.19, allocations: 1.003 MB / 1.288 GB, free: 9.57 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 5.73e-06/1.19, allocations: 0 / 1.288 GB, free: 9.57 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0009002/1.191, allocations: 293.1 kB / 1.288 GB, free: 9.371 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001474/1.192, allocations: 165.2 kB / 1.288 GB, free: 9.25 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003165/1.196, allocations: 1.261 MB / 1.29 GB, free: 8.109 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006479/1.196, allocations: 0.9041 MB / 1.291 GB, free: 7.199 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.001019/1.197, allocations: 142.7 kB / 1.291 GB, free: 7.07 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002671/1.198, allocations: 46.55 kB / 1.291 GB, free: 7.027 MB / 0.6511 GB Notification: Performance of SimCode: time 1.132e-06/1.198, allocations: 4 kB / 1.291 GB, free: 7.023 MB / 0.6511 GB Notification: Performance of Templates: time 0.02831/1.226, allocations: 7.673 MB / 1.298 GB, free: 15.73 MB / 0.6667 GB