Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.conf.json Using package Buildings with version 7.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 7.0.0/package.mo) Using package Modelica with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.3/package.mo) Using package Complex with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.3.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.3/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery,fileNamePrefix="Buildings_7_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.3/package.mo): time 0.01007/0.01007, allocations: 86.45 kB / 15.04 MB, free: 6.055 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.3.mo): time 0.001178/0.001178, allocations: 172 kB / 15.92 MB, free: 5.992 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.3/package.mo): time 2.13/2.13, allocations: 205.5 MB / 222.2 MB, free: 13.71 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 7.0.0/package.mo): time 2.306/2.306, allocations: 252.9 MB / 0.511 GB, free: 8.332 MB / 426.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004765/0.0004767, allocations: 12.14 kB / 0.6243 GB, free: 21 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.227/0.2275, allocations: 106.2 MB / 0.7281 GB, free: 8.117 MB / 0.5573 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery): time 0.009699/0.2373, allocations: 5.266 MB / 0.7332 GB, free: 2.828 MB / 0.5573 GB Notification: Performance of NFInst.instExpressions: time 0.005264/0.2426, allocations: 2.087 MB / 0.7352 GB, free: 0.7305 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004614/0.2431, allocations: 8 kB / 0.7353 GB, free: 0.7227 MB / 0.5573 GB Notification: Performance of NFTyping.typeComponents: time 0.0003499/0.2435, allocations: 63.47 kB / 0.7353 GB, free: 0.6602 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 0.001278/0.2448, allocations: 243.2 kB / 0.7356 GB, free: 432 kB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.001683/0.2465, allocations: 295.3 kB / 0.7358 GB, free: 136 kB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 0.001459/0.248, allocations: 483 kB / 0.7363 GB, free: 15.66 MB / 0.573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002277/0.2503, allocations: 0.7182 MB / 0.737 GB, free: 14.9 MB / 0.573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006173/0.2509, allocations: 207.2 kB / 0.7372 GB, free: 14.7 MB / 0.573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006829/0.2516, allocations: 242.9 kB / 0.7374 GB, free: 14.46 MB / 0.573 GB Notification: Performance of NFPackage.collectConstants: time 0.0001205/0.2517, allocations: 24 kB / 0.7374 GB, free: 14.43 MB / 0.573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007398/0.2525, allocations: 179.7 kB / 0.7376 GB, free: 14.26 MB / 0.573 GB Notification: Performance of NFScalarize.scalarize: time 0.0002626/0.2528, allocations: 131.6 kB / 0.7377 GB, free: 14.13 MB / 0.573 GB Notification: Performance of NFVerifyModel.verify: time 0.0002208/0.253, allocations: 129.4 kB / 0.7379 GB, free: 14 MB / 0.573 GB Notification: Performance of NFConvertDAE.convert: time 0.001531/0.2546, allocations: 0.7327 MB / 0.7386 GB, free: 13.26 MB / 0.573 GB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.2546, allocations: 4 kB / 0.7386 GB, free: 13.26 MB / 0.573 GB Notification: Performance of FrontEnd: time 2.104e-06/0.2546, allocations: 0 / 0.7386 GB, free: 13.26 MB / 0.573 GB Notification: Performance of Transformations before backend: time 1.54e-05/0.2546, allocations: 0 / 0.7386 GB, free: 13.26 MB / 0.573 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.002997/0.2577, allocations: 0.8362 MB / 0.7394 GB, free: 12.36 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 5.551e-05/0.2577, allocations: 8.031 kB / 0.7394 GB, free: 12.36 MB / 0.573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002473/0.258, allocations: 98.44 kB / 0.7395 GB, free: 12.25 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001616/0.2596, allocations: 135.1 kB / 0.7396 GB, free: 12.12 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001319/0.261, allocations: 425.9 kB / 0.74 GB, free: 11.66 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.34e-05/0.2611, allocations: 33 kB / 0.7401 GB, free: 11.63 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002143/0.2613, allocations: 55.97 kB / 0.7401 GB, free: 11.57 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00289/0.2642, allocations: 0.6887 MB / 0.7408 GB, free: 10.85 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.286e-05/0.2643, allocations: 0 / 0.7408 GB, free: 10.85 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001454/0.2645, allocations: 27.94 kB / 0.7408 GB, free: 10.82 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001717/0.2646, allocations: 48.97 kB / 0.7409 GB, free: 10.78 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002812/0.2675, allocations: 0.5699 MB / 0.7414 GB, free: 10.21 MB / 0.573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007525/0.2751, allocations: 2.908 MB / 0.7443 GB, free: 7.055 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002635/0.2778, allocations: 0.5607 MB / 0.7448 GB, free: 6.477 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009853/0.2788, allocations: 0.5662 MB / 0.7454 GB, free: 5.781 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001759/0.2806, allocations: 400.2 kB / 0.7457 GB, free: 5.371 MB / 0.573 GB Notification: Performance of pre-optimization done (n=46): time 4.598e-06/0.2806, allocations: 0 / 0.7457 GB, free: 5.371 MB / 0.573 GB Notification: Performance of matching and sorting (n=46): time 0.003678/0.2843, allocations: 0.7469 MB / 0.7465 GB, free: 4.617 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001084/0.2845, allocations: 97.05 kB / 0.7466 GB, free: 4.504 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008087/0.2853, allocations: 337.6 kB / 0.7469 GB, free: 4.168 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0001463/0.2855, allocations: 45.81 kB / 0.7469 GB, free: 4.117 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003929/0.2859, allocations: 280.5 kB / 0.7472 GB, free: 3.836 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002838/0.2862, allocations: 145.9 kB / 0.7473 GB, free: 3.691 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.019e-05/0.2863, allocations: 12 kB / 0.7474 GB, free: 3.68 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0002474/0.2866, allocations: 358.8 kB / 0.7477 GB, free: 3.32 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001089/0.2877, allocations: 236.9 kB / 0.7479 GB, free: 3.09 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001159/0.2888, allocations: 358.6 kB / 0.7483 GB, free: 2.699 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001067/0.2899, allocations: 281.9 kB / 0.7485 GB, free: 2.418 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.001e-06/0.29, allocations: 4 kB / 0.7485 GB, free: 2.414 MB / 0.573 GB Notification: Performance of matching and sorting (n=67) (initialization): time 0.002746/0.2927, allocations: 0.6838 MB / 0.7492 GB, free: 1.719 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006566/0.2934, allocations: 1.077 MB / 0.7503 GB, free: 0.5547 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.776e-05/0.2934, allocations: 11.92 kB / 0.7503 GB, free: 0.543 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.863e-05/0.2935, allocations: 8 kB / 0.7503 GB, free: 0.5352 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001197/0.2947, allocations: 111.8 kB / 0.7504 GB, free: 436 kB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.882e-05/0.2947, allocations: 4 kB / 0.7504 GB, free: 432 kB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001045/0.2958, allocations: 83.47 kB / 0.7505 GB, free: 348 kB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.008e-05/0.2959, allocations: 24 kB / 0.7505 GB, free: 324 kB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.307e-05/0.2959, allocations: 4 kB / 0.7505 GB, free: 320 kB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002209/0.2982, allocations: 0.5759 MB / 0.7511 GB, free: 15.73 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.138e-05/0.2982, allocations: 4 kB / 0.7511 GB, free: 15.73 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.737e-05/0.2982, allocations: 7.984 kB / 0.7511 GB, free: 15.72 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009424/0.2992, allocations: 103.8 kB / 0.7512 GB, free: 15.62 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.536e-05/0.2992, allocations: 7.938 kB / 0.7512 GB, free: 15.61 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008577/0.3001, allocations: 67.73 kB / 0.7512 GB, free: 15.54 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.066e-05/0.3002, allocations: 20 kB / 0.7513 GB, free: 15.52 MB / 0.5886 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.0005932/0.3008, allocations: 303.2 kB / 0.7515 GB, free: 15.22 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001416/0.3009, allocations: 43.53 kB / 0.7516 GB, free: 15.18 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002275/0.3032, allocations: 0.5876 MB / 0.7522 GB, free: 14.58 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.536e-05/0.3033, allocations: 8 kB / 0.7522 GB, free: 14.57 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.015e-06/0.3033, allocations: 0 / 0.7522 GB, free: 14.57 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.252e-05/0.3033, allocations: 3.984 kB / 0.7522 GB, free: 14.57 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001367/0.3047, allocations: 0.6142 MB / 0.7528 GB, free: 13.91 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.039e-06/0.3047, allocations: 0 / 0.7528 GB, free: 13.91 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001275/0.306, allocations: 99.84 kB / 0.7529 GB, free: 13.81 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.467e-05/0.306, allocations: 8 kB / 0.7529 GB, free: 13.8 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.061e-05/0.3061, allocations: 11.98 kB / 0.7529 GB, free: 13.79 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.927e-06/0.3061, allocations: 4 kB / 0.7529 GB, free: 13.79 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.875e-06/0.3062, allocations: 0 / 0.7529 GB, free: 13.79 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003309/0.3095, allocations: 0.9034 MB / 0.7538 GB, free: 12.86 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004224/0.3099, allocations: 180.4 kB / 0.7539 GB, free: 12.66 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001472/0.3101, allocations: 16 kB / 0.754 GB, free: 12.64 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007344/0.3108, allocations: 35.95 kB / 0.754 GB, free: 12.61 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002508/0.3111, allocations: 51.92 kB / 0.754 GB, free: 12.56 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.587e-05/0.3112, allocations: 16 kB / 0.7541 GB, free: 12.54 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.0004962/0.3117, allocations: 239.2 kB / 0.7543 GB, free: 12.31 MB / 0.5886 GB Notification: Performance of sort global known variables: time 5.21e-07/0.3117, allocations: 0 / 0.7543 GB, free: 12.31 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.001412/0.3131, allocations: 267.1 kB / 0.7545 GB, free: 12.05 MB / 0.5886 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 (47): * Single equations (assignments): 45 * 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.003821/0.317, allocations: 1.564 MB / 0.7561 GB, free: 10.45 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.003457/0.3205, allocations: 0.9682 MB / 0.757 GB, free: 9.457 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 4.869e-06/0.3205, allocations: 0 / 0.757 GB, free: 9.457 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.00106/0.3216, allocations: 283.4 kB / 0.7573 GB, free: 9.18 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001625/0.3232, allocations: 150.3 kB / 0.7574 GB, free: 9.031 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01108/0.3343, allocations: 4.72 MB / 0.762 GB, free: 4.207 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008612/0.3353, allocations: 0.9067 MB / 0.7629 GB, free: 3.273 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.001233/0.3365, allocations: 140.3 kB / 0.7631 GB, free: 3.133 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006486/0.3372, allocations: 183.4 kB / 0.7632 GB, free: 2.953 MB / 0.5886 GB Notification: Performance of SimCode: time 1.213e-06/0.3372, allocations: 0 / 0.7632 GB, free: 2.953 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0581/0.3953, allocations: 11.75 MB / 0.7747 GB, free: 7.406 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002185/0.3956, allocations: 204.4 kB / 0.7749 GB, free: 7.168 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.069/3.465, allocations: 0 / 0.7749 GB, free: 7.168 MB / 0.6042 GB