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: "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery,fileNamePrefix="Buildings_6_0_0_Buildings_Electrical_AC_ThreePhasesBalanced_Storage_Examples_AcBattery",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo): time 0.01121/0.01122, allocations: 106.3 kB / 15.06 MB, free: 6.031 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.00118/0.00118, allocations: 181.9 kB / 15.95 MB, free: 5.957 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.139/2.139, allocations: 194.5 MB / 211.3 MB, free: 11.07 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.322/2.322, allocations: 236.2 MB / 492.6 MB, free: 11.3 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004743/0.0004745, allocations: 16 kB / 0.587 GB, free: 2.078 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6556/0.6561, allocations: 98.7 MB / 0.6834 GB, free: 16.79 MB / 0.5261 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery): time 0.008455/0.6647, allocations: 5.23 MB / 0.6885 GB, free: 13.3 MB / 0.5261 GB Notification: Performance of NFInst.instExpressions: time 0.00468/0.6694, allocations: 2.066 MB / 0.6906 GB, free: 11.91 MB / 0.5261 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004588/0.6699, allocations: 14.91 kB / 0.6906 GB, free: 11.9 MB / 0.5261 GB Notification: Performance of NFTyping.typeComponents: time 0.000275/0.6702, allocations: 65.72 kB / 0.6906 GB, free: 11.86 MB / 0.5261 GB Notification: Performance of NFTyping.typeBindings: time 0.0009784/0.6712, allocations: 243.1 kB / 0.6909 GB, free: 11.7 MB / 0.5261 GB Notification: Performance of NFTyping.typeClassSections: time 0.001299/0.6725, allocations: 296.6 kB / 0.6911 GB, free: 11.56 MB / 0.5261 GB Notification: Performance of NFFlatten.flatten: time 0.001019/0.6735, allocations: 476.9 kB / 0.6916 GB, free: 11.31 MB / 0.5261 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001712/0.6753, allocations: 0.7134 MB / 0.6923 GB, free: 10.89 MB / 0.5261 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004981/0.6758, allocations: 213.5 kB / 0.6925 GB, free: 10.8 MB / 0.5261 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005244/0.6763, allocations: 243.4 kB / 0.6927 GB, free: 10.7 MB / 0.5261 GB Notification: Performance of NFPackage.collectConstants: time 8.919e-05/0.6764, allocations: 21.06 kB / 0.6928 GB, free: 10.7 MB / 0.5261 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006352/0.6771, allocations: 183 kB / 0.6929 GB, free: 10.65 MB / 0.5261 GB Notification: Performance of NFScalarize.scalarize: time 0.0002032/0.6773, allocations: 135.7 kB / 0.6931 GB, free: 10.6 MB / 0.5261 GB Notification: Performance of NFVerifyModel.verify: time 0.0001622/0.6775, allocations: 132.7 kB / 0.6932 GB, free: 10.51 MB / 0.5261 GB Notification: Performance of NFConvertDAE.convert: time 0.001374/0.6788, allocations: 0.7217 MB / 0.6939 GB, free: 10.36 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.6789, allocations: 0 / 0.6939 GB, free: 10.36 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.863e-06/0.6789, allocations: 3.938 kB / 0.6939 GB, free: 10.36 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 1.938e-05/0.6789, allocations: 0 / 0.6939 GB, free: 10.36 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.002358/0.6813, allocations: 0.8353 MB / 0.6947 GB, free: 9.715 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.662e-05/0.6813, allocations: 9.734 kB / 0.6947 GB, free: 9.715 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000164/0.6815, allocations: 97.09 kB / 0.6948 GB, free: 9.641 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001094/0.6826, allocations: 134.5 kB / 0.6949 GB, free: 9.605 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008449/0.6835, allocations: 426.1 kB / 0.6953 GB, free: 9.277 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.566e-05/0.6836, allocations: 42.67 kB / 0.6954 GB, free: 9.258 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000143/0.6837, allocations: 54.86 kB / 0.6954 GB, free: 9.238 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001926/0.6857, allocations: 0.6818 MB / 0.6961 GB, free: 8.922 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.564e-05/0.6857, allocations: 0 / 0.6961 GB, free: 8.922 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.796e-05/0.6858, allocations: 37.02 kB / 0.6961 GB, free: 8.895 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000126/0.686, allocations: 51.31 kB / 0.6962 GB, free: 8.883 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00184/0.6878, allocations: 0.5676 MB / 0.6967 GB, free: 8.695 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004753/0.6926, allocations: 2.8 MB / 0.6995 GB, free: 6.254 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001726/0.6944, allocations: 0.5685 MB / 0.7 GB, free: 5.941 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005352/0.6949, allocations: 0.5655 MB / 0.7006 GB, free: 5.27 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001028/0.696, allocations: 414.4 kB / 0.701 GB, free: 4.996 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=46): time 2.946e-06/0.696, allocations: 0 / 0.701 GB, free: 4.996 MB / 0.5261 GB Notification: Performance of matching and sorting (n=46): time 0.002419/0.6984, allocations: 0.7474 MB / 0.7017 GB, free: 4.613 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.638e-05/0.6985, allocations: 86.91 kB / 0.7018 GB, free: 4.516 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006038/0.6991, allocations: 347.2 kB / 0.7021 GB, free: 4.293 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0001448/0.6993, allocations: 43.8 kB / 0.7022 GB, free: 4.25 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002423/0.6995, allocations: 279.8 kB / 0.7024 GB, free: 4 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001682/0.6997, allocations: 158.3 kB / 0.7026 GB, free: 3.863 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.322e-05/0.6998, allocations: 11.06 kB / 0.7026 GB, free: 3.855 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 9.776e-05/0.6999, allocations: 348.2 kB / 0.7029 GB, free: 3.516 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007625/0.7007, allocations: 242.1 kB / 0.7032 GB, free: 3.395 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008358/0.7015, allocations: 371 kB / 0.7035 GB, free: 3.117 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008487/0.7024, allocations: 281.9 kB / 0.7038 GB, free: 2.961 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.813e-06/0.7024, allocations: 0 / 0.7038 GB, free: 2.961 MB / 0.5261 GB Notification: Performance of matching and sorting (n=67) (initialization): time 0.002023/0.7044, allocations: 0.6849 MB / 0.7044 GB, free: 2.59 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002694/0.7047, allocations: 1.084 MB / 0.7055 GB, free: 1.43 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.264e-05/0.7048, allocations: 2.312 kB / 0.7055 GB, free: 1.43 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.853e-05/0.7048, allocations: 9.75 kB / 0.7055 GB, free: 1.426 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009881/0.7058, allocations: 117.4 kB / 0.7056 GB, free: 1.391 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.668e-05/0.7058, allocations: 3.812 kB / 0.7056 GB, free: 1.391 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009201/0.7068, allocations: 77.23 kB / 0.7057 GB, free: 1.344 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.381e-05/0.7069, allocations: 19.75 kB / 0.7057 GB, free: 1.34 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.448e-05/0.7069, allocations: 3.062 kB / 0.7057 GB, free: 1.34 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001724/0.7086, allocations: 0.5805 MB / 0.7063 GB, free: 1.035 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.608e-06/0.7087, allocations: 3.594 kB / 0.7063 GB, free: 1.035 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.294e-05/0.7087, allocations: 5.812 kB / 0.7063 GB, free: 1.035 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008056/0.7095, allocations: 107.3 kB / 0.7064 GB, free: 1.004 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.219e-05/0.7095, allocations: 6.25 kB / 0.7064 GB, free: 1.004 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008095/0.7103, allocations: 68.67 kB / 0.7065 GB, free: 0.9609 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.453e-05/0.7104, allocations: 23.23 kB / 0.7065 GB, free: 0.9531 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.0005164/0.7109, allocations: 298.9 kB / 0.7068 GB, free: 0.6953 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001283/0.7111, allocations: 42.56 kB / 0.7068 GB, free: 0.6758 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001791/0.7129, allocations: 0.6071 MB / 0.7074 GB, free: 328 kB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.123e-05/0.7129, allocations: 9.75 kB / 0.7074 GB, free: 324 kB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.763e-06/0.7129, allocations: 0 / 0.7074 GB, free: 324 kB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.849e-06/0.713, allocations: 1.219 kB / 0.7074 GB, free: 324 kB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003981/0.7169, allocations: 1.383 MB / 0.7088 GB, free: 15.36 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.346e-06/0.717, allocations: 192 / 0.7088 GB, free: 15.36 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009316/0.718, allocations: 91.31 kB / 0.7089 GB, free: 15.34 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.16e-05/0.718, allocations: 3.156 kB / 0.7089 GB, free: 15.34 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.558e-05/0.7181, allocations: 11.36 kB / 0.7089 GB, free: 15.33 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.296e-06/0.7181, allocations: 2.281 kB / 0.7089 GB, free: 15.33 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.425e-06/0.7181, allocations: 3.938 kB / 0.7089 GB, free: 15.32 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002776/0.7209, allocations: 0.9951 MB / 0.7099 GB, free: 14.73 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004605/0.7214, allocations: 177.8 kB / 0.71 GB, free: 14.56 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000133/0.7215, allocations: 12.41 kB / 0.71 GB, free: 14.55 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006848/0.7222, allocations: 38.52 kB / 0.7101 GB, free: 14.54 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002296/0.7225, allocations: 53.34 kB / 0.7101 GB, free: 14.5 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.619e-05/0.7225, allocations: 18.58 kB / 0.7101 GB, free: 14.5 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0004259/0.723, allocations: 242.4 kB / 0.7104 GB, free: 14.34 MB / 0.5417 GB Notification: Performance of sort global known variables: time 6.01e-07/0.723, allocations: 0 / 0.7104 GB, free: 14.34 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.001245/0.7243, allocations: 266.4 kB / 0.7106 GB, free: 14.27 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.003243/0.7275, allocations: 1.632 MB / 0.7122 GB, free: 13.06 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.002883/0.7304, allocations: 0.9744 MB / 0.7132 GB, free: 12.53 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 8.636e-06/0.7305, allocations: 1.5 kB / 0.7132 GB, free: 12.53 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0008961/0.7314, allocations: 288.6 kB / 0.7135 GB, free: 12.4 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001424/0.7329, allocations: 151.2 kB / 0.7136 GB, free: 12.33 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009394/0.7423, allocations: 4.732 MB / 0.7182 GB, free: 8.684 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006266/0.7429, allocations: 0.9158 MB / 0.7191 GB, free: 7.871 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.0009964/0.744, allocations: 145.8 kB / 0.7193 GB, free: 7.805 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005021/0.7445, allocations: 190.9 kB / 0.7194 GB, free: 7.648 MB / 0.5417 GB Notification: Performance of SimCode: time 1.012e-06/0.7445, allocations: 1.406 kB / 0.7194 GB, free: 7.648 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04612/0.7906, allocations: 12.04 MB / 0.7312 GB, free: 12.61 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003054/0.791, allocations: 200.3 kB / 0.7314 GB, free: 12.38 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.778/3.569, allocations: 0 / 0.7314 GB, free: 12.38 MB / 0.5573 GB