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.01099/0.01099, allocations: 107.7 kB / 15.05 MB, free: 5.984 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.001225/0.001224, allocations: 184 kB / 15.94 MB, free: 5.941 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 1.874/1.874, allocations: 194.5 MB / 211.2 MB, free: 11.08 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.18/2.18, allocations: 236.1 MB / 492.6 MB, free: 11.28 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004704/0.0004704, allocations: 16 kB / 0.587 GB, free: 2.035 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6592/0.6597, allocations: 98.7 MB / 0.6834 GB, free: 16.71 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2474/0.9071, allocations: 143.3 MB / 0.8234 GB, free: 14.81 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003878/0.9075, allocations: 95.94 kB / 0.8235 GB, free: 14.72 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 0.112/1.02, allocations: 27.29 MB / 0.8501 GB, free: 3.176 MB / 0.6667 GB Notification: Performance of FrontEnd: time 1.693e-06/1.02, allocations: 0 / 0.8501 GB, free: 3.176 MB / 0.6667 GB Notification: Performance of Transformations before backend: time 4.384e-05/1.02, allocations: 12 kB / 0.8502 GB, free: 3.164 MB / 0.6667 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.002462/1.022, allocations: 0.8843 MB / 0.851 GB, free: 2.223 MB / 0.6667 GB Notification: Performance of prepare preOptimizeDAE: time 4.813e-05/1.022, allocations: 8.031 kB / 0.851 GB, free: 2.215 MB / 0.6667 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001858/1.022, allocations: 94.52 kB / 0.8511 GB, free: 2.113 MB / 0.6667 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001363/1.024, allocations: 151 kB / 0.8513 GB, free: 1.965 MB / 0.6667 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009301/1.025, allocations: 444.8 kB / 0.8517 GB, free: 1.488 MB / 0.6667 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.435e-05/1.025, allocations: 37 kB / 0.8517 GB, free: 1.453 MB / 0.6667 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000145/1.025, allocations: 55.98 kB / 0.8518 GB, free: 1.398 MB / 0.6667 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001812/1.027, allocations: 0.677 MB / 0.8524 GB, free: 0.6914 MB / 0.6667 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.438e-05/1.027, allocations: 3.984 kB / 0.8524 GB, free: 0.6875 MB / 0.6667 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.539e-05/1.027, allocations: 23.98 kB / 0.8525 GB, free: 0.6641 MB / 0.6667 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.802e-05/1.027, allocations: 40.97 kB / 0.8525 GB, free: 0.6211 MB / 0.6667 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001823/1.029, allocations: 0.5854 MB / 0.8531 GB, free: 40 kB / 0.6667 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005565/1.034, allocations: 2.845 MB / 0.8558 GB, free: 12.96 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001877/1.036, allocations: 0.5988 MB / 0.8564 GB, free: 12.35 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005916/1.037, allocations: 0.5583 MB / 0.857 GB, free: 11.66 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001091/1.038, allocations: 419.6 kB / 0.8574 GB, free: 11.23 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=49): time 3.537e-06/1.038, allocations: 0 / 0.8574 GB, free: 11.23 MB / 0.6823 GB Notification: Performance of matching and sorting (n=49): time 0.002528/1.041, allocations: 0.768 MB / 0.8581 GB, free: 10.46 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.713e-05/1.041, allocations: 89.78 kB / 0.8582 GB, free: 10.36 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005069/1.041, allocations: 300.8 kB / 0.8585 GB, free: 10.06 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 9.644e-05/1.041, allocations: 45.69 kB / 0.8585 GB, free: 10.01 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002905/1.042, allocations: 284.4 kB / 0.8588 GB, free: 9.727 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001981/1.042, allocations: 153.8 kB / 0.859 GB, free: 9.574 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.425e-05/1.042, allocations: 12 kB / 0.859 GB, free: 9.562 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001637/1.042, allocations: 354.8 kB / 0.8593 GB, free: 9.207 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007784/1.043, allocations: 245 kB / 0.8595 GB, free: 8.969 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000906/1.044, allocations: 370.8 kB / 0.8599 GB, free: 8.559 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008494/1.045, allocations: 286.3 kB / 0.8602 GB, free: 8.273 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.804e-06/1.045, allocations: 3.953 kB / 0.8602 GB, free: 8.27 MB / 0.6823 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.002076/1.047, allocations: 0.7092 MB / 0.8609 GB, free: 7.547 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005213/1.047, allocations: 1.08 MB / 0.8619 GB, free: 6.379 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.877e-05/1.047, allocations: 8 kB / 0.8619 GB, free: 6.371 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.868e-05/1.047, allocations: 7.938 kB / 0.8619 GB, free: 6.363 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001029/1.049, allocations: 115.8 kB / 0.862 GB, free: 6.25 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.619e-05/1.049, allocations: 11.88 kB / 0.8621 GB, free: 6.238 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008646/1.049, allocations: 63.64 kB / 0.8621 GB, free: 6.176 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.359e-05/1.05, allocations: 24.17 kB / 0.8621 GB, free: 6.152 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.237e-05/1.05, allocations: 8 kB / 0.8622 GB, free: 6.145 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00177/1.051, allocations: 0.5871 MB / 0.8627 GB, free: 5.551 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.747e-06/1.051, allocations: 8.25 kB / 0.8627 GB, free: 5.543 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.494e-05/1.051, allocations: 11.94 kB / 0.8627 GB, free: 5.531 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008257/1.052, allocations: 107.9 kB / 0.8628 GB, free: 5.426 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.079e-05/1.052, allocations: 4 kB / 0.8629 GB, free: 5.422 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007327/1.053, allocations: 67.62 kB / 0.8629 GB, free: 5.355 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.985e-05/1.053, allocations: 20 kB / 0.8629 GB, free: 5.336 MB / 0.6823 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.0005199/1.054, allocations: 303.1 kB / 0.8632 GB, free: 5.031 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000128/1.054, allocations: 47.44 kB / 0.8633 GB, free: 4.984 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001904/1.056, allocations: 0.6105 MB / 0.8639 GB, free: 4.367 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.326e-05/1.056, allocations: 11.95 kB / 0.8639 GB, free: 4.355 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.782e-06/1.056, allocations: 0 / 0.8639 GB, free: 4.355 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.508e-06/1.056, allocations: 4 kB / 0.8639 GB, free: 4.352 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001134/1.057, allocations: 0.6262 MB / 0.8645 GB, free: 3.676 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.378e-06/1.057, allocations: 0 / 0.8645 GB, free: 3.676 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009686/1.058, allocations: 95.86 kB / 0.8646 GB, free: 3.582 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.107e-05/1.058, allocations: 4 kB / 0.8646 GB, free: 3.578 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.393e-05/1.058, allocations: 11.98 kB / 0.8646 GB, free: 3.566 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.082e-06/1.058, allocations: 4 kB / 0.8646 GB, free: 3.562 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.359e-06/1.058, allocations: 7.953 kB / 0.8646 GB, free: 3.555 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002664/1.061, allocations: 0.932 MB / 0.8655 GB, free: 2.594 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003733/1.061, allocations: 184.4 kB / 0.8657 GB, free: 2.395 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001213/1.061, allocations: 12 kB / 0.8657 GB, free: 2.383 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006364/1.062, allocations: 44.08 kB / 0.8657 GB, free: 2.34 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002013/1.062, allocations: 52.36 kB / 0.8658 GB, free: 2.289 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.573e-05/1.062, allocations: 16 kB / 0.8658 GB, free: 2.273 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.0004069/1.063, allocations: 251.1 kB / 0.8661 GB, free: 2.031 MB / 0.6823 GB Notification: Performance of sort global known variables: time 3.4e-07/1.063, allocations: 0 / 0.8661 GB, free: 2.031 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.001128/1.064, allocations: 283.1 kB / 0.8663 GB, free: 1.754 MB / 0.6823 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.003177/1.067, allocations: 1.593 MB / 0.8679 GB, free: 128 kB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.002954/1.07, allocations: 1.003 MB / 0.8689 GB, free: 15.09 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 5.891e-06/1.07, allocations: 0 / 0.8689 GB, free: 15.09 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.001163/1.071, allocations: 290.3 kB / 0.8691 GB, free: 14.81 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001606/1.073, allocations: 152.8 kB / 0.8693 GB, free: 14.66 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008225/1.081, allocations: 4.8 MB / 0.874 GB, free: 9.758 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006104/1.082, allocations: 0.9069 MB / 0.8749 GB, free: 8.82 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0009553/1.083, allocations: 148.4 kB / 0.875 GB, free: 8.676 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005076/1.083, allocations: 187.4 kB / 0.8752 GB, free: 8.496 MB / 0.698 GB Notification: Performance of SimCode: time 1.083e-06/1.083, allocations: 0 / 0.8752 GB, free: 8.496 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04287/1.126, allocations: 11.93 MB / 0.8868 GB, free: 12.78 MB / 0.7136 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003115/1.126, allocations: 199.7 kB / 0.887 GB, free: 12.53 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.795/3.921, allocations: 0.9844 kB / 0.887 GB, free: 12.53 MB / 0.7136 GB