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: "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery,fileNamePrefix="Buildings_6_0_0_Buildings_Electrical_AC_OnePhase_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.01153/0.01154, allocations: 108.5 kB / 15.06 MB, free: 5.555 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.001781/0.001781, allocations: 181.4 kB / 15.95 MB, free: 5.52 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.014/2.014, allocations: 194.6 MB / 211.3 MB, free: 11.21 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.358/2.358, allocations: 236.2 MB / 492.6 MB, free: 11.31 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004844/0.0004845, allocations: 16 kB / 0.587 GB, free: 2.055 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6662/0.6667, allocations: 98.72 MB / 0.6834 GB, free: 16.87 MB / 0.5261 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery): time 0.006492/0.6733, allocations: 3.782 MB / 0.6871 GB, free: 14.29 MB / 0.5261 GB Notification: Performance of NFInst.instExpressions: time 0.004941/0.6783, allocations: 2.066 MB / 0.6892 GB, free: 12.9 MB / 0.5261 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005822/0.6789, allocations: 13.94 kB / 0.6892 GB, free: 12.89 MB / 0.5261 GB Notification: Performance of NFTyping.typeComponents: time 0.000302/0.6793, allocations: 58.64 kB / 0.6892 GB, free: 12.86 MB / 0.5261 GB Notification: Performance of NFTyping.typeBindings: time 0.001234/0.6805, allocations: 246 kB / 0.6895 GB, free: 12.7 MB / 0.5261 GB Notification: Performance of NFTyping.typeClassSections: time 0.001455/0.682, allocations: 292.4 kB / 0.6897 GB, free: 12.55 MB / 0.5261 GB Notification: Performance of NFFlatten.flatten: time 0.00159/0.6836, allocations: 474.5 kB / 0.6902 GB, free: 12.31 MB / 0.5261 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001907/0.6856, allocations: 0.7201 MB / 0.6909 GB, free: 11.88 MB / 0.5261 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005901/0.6862, allocations: 209.7 kB / 0.6911 GB, free: 11.79 MB / 0.5261 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005751/0.6868, allocations: 244.3 kB / 0.6913 GB, free: 11.69 MB / 0.5261 GB Notification: Performance of NFPackage.collectConstants: time 0.000106/0.6869, allocations: 22.09 kB / 0.6913 GB, free: 11.69 MB / 0.5261 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000695/0.6876, allocations: 181.1 kB / 0.6915 GB, free: 11.65 MB / 0.5261 GB Notification: Performance of NFScalarize.scalarize: time 0.000218/0.6878, allocations: 136.2 kB / 0.6916 GB, free: 11.59 MB / 0.5261 GB Notification: Performance of NFVerifyModel.verify: time 0.0002068/0.688, allocations: 128.5 kB / 0.6918 GB, free: 11.51 MB / 0.5261 GB Notification: Performance of NFConvertDAE.convert: time 0.001486/0.6895, allocations: 0.7332 MB / 0.6925 GB, free: 11.35 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 4.067e-06/0.6896, allocations: 3.938 kB / 0.6925 GB, free: 11.34 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.735e-06/0.6896, allocations: 0 / 0.6925 GB, free: 11.34 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 2.242e-05/0.6896, allocations: 1.125 kB / 0.6925 GB, free: 11.34 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.002545/0.6922, allocations: 0.8381 MB / 0.6933 GB, free: 10.7 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.199e-05/0.6923, allocations: 9.406 kB / 0.6933 GB, free: 10.7 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001955/0.6925, allocations: 93.3 kB / 0.6934 GB, free: 10.63 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001163/0.6936, allocations: 139.7 kB / 0.6935 GB, free: 10.59 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000989/0.6947, allocations: 418.2 kB / 0.6939 GB, free: 10.27 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.665e-05/0.6947, allocations: 37.62 kB / 0.694 GB, free: 10.25 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001468/0.6949, allocations: 55.2 kB / 0.694 GB, free: 10.23 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002039/0.6969, allocations: 0.6855 MB / 0.6947 GB, free: 9.914 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.977e-05/0.697, allocations: 1.125 kB / 0.6947 GB, free: 9.914 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.911e-05/0.6971, allocations: 31.89 kB / 0.6947 GB, free: 9.891 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001249/0.6973, allocations: 50.41 kB / 0.6948 GB, free: 9.879 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001917/0.6992, allocations: 0.5686 MB / 0.6953 GB, free: 9.691 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005411/0.7046, allocations: 2.804 MB / 0.6981 GB, free: 7.43 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001775/0.7065, allocations: 0.5744 MB / 0.6986 GB, free: 7.109 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005361/0.707, allocations: 0.5686 MB / 0.6992 GB, free: 6.434 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001132/0.7082, allocations: 398.8 kB / 0.6996 GB, free: 6.176 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=46): time 3.386e-06/0.7082, allocations: 0 / 0.6996 GB, free: 6.176 MB / 0.5261 GB Notification: Performance of matching and sorting (n=46): time 0.00245/0.7107, allocations: 0.7505 MB / 0.7003 GB, free: 5.789 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.305e-05/0.7108, allocations: 86.59 kB / 0.7004 GB, free: 5.691 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005526/0.7113, allocations: 349.1 kB / 0.7007 GB, free: 5.469 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0001303/0.7115, allocations: 38.86 kB / 0.7008 GB, free: 5.43 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002339/0.7117, allocations: 288.5 kB / 0.701 GB, free: 5.172 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001617/0.7119, allocations: 145.3 kB / 0.7012 GB, free: 5.047 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.236e-05/0.712, allocations: 10.78 kB / 0.7012 GB, free: 5.039 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 9.697e-05/0.7121, allocations: 356.2 kB / 0.7015 GB, free: 4.691 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007588/0.7128, allocations: 239 kB / 0.7017 GB, free: 4.574 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008308/0.7137, allocations: 358.3 kB / 0.7021 GB, free: 4.309 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008164/0.7145, allocations: 293.4 kB / 0.7024 GB, free: 4.141 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.84e-06/0.7145, allocations: 1.312 kB / 0.7024 GB, free: 4.141 MB / 0.5261 GB Notification: Performance of matching and sorting (n=67) (initialization): time 0.002032/0.7166, allocations: 0.6882 MB / 0.703 GB, free: 3.766 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002586/0.7169, allocations: 1.076 MB / 0.7041 GB, free: 2.613 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.203e-05/0.7169, allocations: 2.219 kB / 0.7041 GB, free: 2.613 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.817e-05/0.7169, allocations: 5.531 kB / 0.7041 GB, free: 2.613 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001025/0.718, allocations: 120.4 kB / 0.7042 GB, free: 2.574 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.745e-05/0.718, allocations: 5.656 kB / 0.7042 GB, free: 2.574 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009157/0.7189, allocations: 79.78 kB / 0.7043 GB, free: 2.523 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.369e-05/0.719, allocations: 28.91 kB / 0.7043 GB, free: 2.512 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.417e-05/0.719, allocations: 3.469 kB / 0.7043 GB, free: 2.512 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00173/0.7208, allocations: 0.5809 MB / 0.7049 GB, free: 2.207 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.515e-06/0.7208, allocations: 1.812 kB / 0.7049 GB, free: 2.207 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.281e-05/0.7208, allocations: 5.375 kB / 0.7049 GB, free: 2.207 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008225/0.7217, allocations: 108.4 kB / 0.705 GB, free: 2.176 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.298e-05/0.7217, allocations: 5.781 kB / 0.705 GB, free: 2.176 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007907/0.7225, allocations: 69.58 kB / 0.7051 GB, free: 2.133 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.345e-05/0.7226, allocations: 19.16 kB / 0.7051 GB, free: 2.129 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.0005284/0.7231, allocations: 302.3 kB / 0.7054 GB, free: 1.867 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001255/0.7233, allocations: 46.84 kB / 0.7054 GB, free: 1.844 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001826/0.7251, allocations: 0.5913 MB / 0.706 GB, free: 1.504 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.249e-05/0.7251, allocations: 10.05 kB / 0.706 GB, free: 1.5 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.134e-06/0.7252, allocations: 0 / 0.706 GB, free: 1.5 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.628e-06/0.7252, allocations: 1.344 kB / 0.706 GB, free: 1.5 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003725/0.7289, allocations: 1.383 MB / 0.7074 GB, free: 0.5469 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.564e-06/0.729, allocations: 1.156 kB / 0.7074 GB, free: 0.5469 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008612/0.7298, allocations: 86.94 kB / 0.7074 GB, free: 0.5234 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.019e-05/0.7299, allocations: 10.34 kB / 0.7075 GB, free: 0.5156 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.687e-05/0.7299, allocations: 11.94 kB / 0.7075 GB, free: 0.5078 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.882e-06/0.7299, allocations: 1.938 kB / 0.7075 GB, free: 0.5078 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.876e-06/0.73, allocations: 1.031 kB / 0.7075 GB, free: 0.5078 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002654/0.7326, allocations: 0.9869 MB / 0.7084 GB, free: 15.91 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004506/0.7331, allocations: 177.8 kB / 0.7086 GB, free: 15.75 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000127/0.7333, allocations: 16.27 kB / 0.7086 GB, free: 15.74 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006718/0.7339, allocations: 39.42 kB / 0.7087 GB, free: 15.72 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000227/0.7342, allocations: 55.84 kB / 0.7087 GB, free: 15.68 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.199e-05/0.7343, allocations: 19.09 kB / 0.7087 GB, free: 15.68 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0004455/0.7347, allocations: 242.9 kB / 0.709 GB, free: 15.52 MB / 0.5417 GB Notification: Performance of sort global known variables: time 4.11e-07/0.7347, allocations: 0 / 0.709 GB, free: 15.52 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.001272/0.736, allocations: 262.5 kB / 0.7092 GB, free: 15.45 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.003248/0.7393, allocations: 1.626 MB / 0.7108 GB, free: 14.25 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.002959/0.7423, allocations: 0.9772 MB / 0.7118 GB, free: 13.71 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.413e-05/0.7424, allocations: 5.594 kB / 0.7118 GB, free: 13.71 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0009371/0.7433, allocations: 284.9 kB / 0.712 GB, free: 13.59 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001467/0.7448, allocations: 155.8 kB / 0.7122 GB, free: 13.51 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009462/0.7543, allocations: 4.733 MB / 0.7168 GB, free: 9.863 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007082/0.755, allocations: 0.9123 MB / 0.7177 GB, free: 9.055 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.001075/0.7561, allocations: 141.5 kB / 0.7178 GB, free: 8.992 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005388/0.7567, allocations: 195.5 kB / 0.718 GB, free: 8.832 MB / 0.5417 GB Notification: Performance of SimCode: time 1.503e-06/0.7567, allocations: 5.438 kB / 0.718 GB, free: 8.828 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04618/0.8029, allocations: 12.02 MB / 0.7298 GB, free: 14.07 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003935/0.8034, allocations: 202.1 kB / 0.7299 GB, free: 13.83 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.924/3.728, allocations: 0 / 0.7299 GB, free: 13.83 MB / 0.5573 GB