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 ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 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 Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/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 loadModel(Buildings): time 3.918/3.918, allocations: 432.6 MB / 445.2 MB, free: 15.76 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 2.951e-05/2.953e-05, allocations: 3.891 kB / 0.5383 GB, free: 10.27 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2028/0.2029, allocations: 98.73 MB / 0.6347 GB, free: 1.914 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2811/0.4841, allocations: 143.2 MB / 0.7746 GB, free: 2.488 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003864/0.4845, allocations: 87.95 kB / 0.7747 GB, free: 2.402 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 0.6234/1.108, allocations: 27.16 MB / 0.8012 GB, free: 137.1 MB / 0.6511 GB Notification: Performance of FrontEnd: time 1.473e-06/1.108, allocations: 0 / 0.8012 GB, free: 137.1 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 4.53e-05/1.108, allocations: 15.88 kB / 0.8012 GB, free: 137.1 MB / 0.6511 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.002167/1.11, allocations: 0.825 MB / 0.802 GB, free: 136.4 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 4.71e-05/1.11, allocations: 9.656 kB / 0.802 GB, free: 136.4 MB / 0.6511 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001437/1.11, allocations: 88.27 kB / 0.8021 GB, free: 136.3 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001282/1.112, allocations: 155.8 kB / 0.8023 GB, free: 136.3 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008407/1.113, allocations: 443.8 kB / 0.8027 GB, free: 135.9 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.641e-05/1.113, allocations: 38.58 kB / 0.8027 GB, free: 135.9 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001311/1.113, allocations: 51.48 kB / 0.8028 GB, free: 135.8 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001415/1.114, allocations: 0.6522 MB / 0.8034 GB, free: 135.4 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.049e-05/1.114, allocations: 3.938 kB / 0.8034 GB, free: 135.4 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.125e-05/1.114, allocations: 23.89 kB / 0.8034 GB, free: 135.4 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.813e-05/1.114, allocations: 40.3 kB / 0.8035 GB, free: 135.4 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001235/1.116, allocations: 0.5314 MB / 0.804 GB, free: 135.2 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004384/1.12, allocations: 2.837 MB / 0.8068 GB, free: 132.6 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001262/1.121, allocations: 0.5537 MB / 0.8073 GB, free: 132.3 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004917/1.122, allocations: 242.7 kB / 0.8075 GB, free: 132.2 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004455/1.122, allocations: 0.5619 MB / 0.8081 GB, free: 131.5 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007742/1.123, allocations: 397 kB / 0.8085 GB, free: 131.3 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=49): time 3.697e-06/1.123, allocations: 3.906 kB / 0.8085 GB, free: 131.3 MB / 0.6511 GB Notification: Performance of matching and sorting (n=49): time 0.001284/1.124, allocations: 0.5062 MB / 0.809 GB, free: 130.9 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.49e-05/1.125, allocations: 93.47 kB / 0.8091 GB, free: 130.8 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004155/1.125, allocations: 291.6 kB / 0.8093 GB, free: 130.5 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 8.346e-05/1.125, allocations: 41.7 kB / 0.8094 GB, free: 130.5 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002097/1.125, allocations: 276.5 kB / 0.8096 GB, free: 130.2 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001508/1.125, allocations: 161.7 kB / 0.8098 GB, free: 130 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.106e-05/1.126, allocations: 12.03 kB / 0.8098 GB, free: 130 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 9.447e-05/1.126, allocations: 358.8 kB / 0.8101 GB, free: 129.7 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005086/1.126, allocations: 217.1 kB / 0.8104 GB, free: 129.5 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005853/1.127, allocations: 342.4 kB / 0.8107 GB, free: 129.1 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005568/1.127, allocations: 274.2 kB / 0.8109 GB, free: 128.8 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.258e-06/1.127, allocations: 0 / 0.8109 GB, free: 128.8 MB / 0.6511 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001424/1.129, allocations: 0.6585 MB / 0.8116 GB, free: 128.1 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002285/1.129, allocations: 1.072 MB / 0.8126 GB, free: 127 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.187e-05/1.129, allocations: 8 kB / 0.8126 GB, free: 127 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.523e-05/1.129, allocations: 7.984 kB / 0.8126 GB, free: 127 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009727/1.13, allocations: 115.8 kB / 0.8128 GB, free: 126.8 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.564e-05/1.13, allocations: 7.938 kB / 0.8128 GB, free: 126.8 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008332/1.131, allocations: 71.53 kB / 0.8128 GB, free: 126.8 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.496e-05/1.131, allocations: 20 kB / 0.8128 GB, free: 126.7 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.127e-05/1.131, allocations: 10.5 kB / 0.8129 GB, free: 126.7 MB / 0.6511 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001171/1.132, allocations: 0.5444 MB / 0.8134 GB, free: 126.2 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.995e-06/1.132, allocations: 7.984 kB / 0.8134 GB, free: 126.2 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.038e-05/1.132, allocations: 11.89 kB / 0.8134 GB, free: 126.2 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007804/1.133, allocations: 107.8 kB / 0.8135 GB, free: 126.1 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.699e-06/1.133, allocations: 4 kB / 0.8135 GB, free: 126.1 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006808/1.134, allocations: 63.89 kB / 0.8136 GB, free: 126 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.382e-05/1.134, allocations: 20 kB / 0.8136 GB, free: 126 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 () * 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.0001902/1.134, allocations: 148.6 kB / 0.8137 GB, free: 125.8 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001019/1.134, allocations: 43.53 kB / 0.8138 GB, free: 125.8 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001321/1.135, allocations: 0.575 MB / 0.8143 GB, free: 125.2 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.678e-06/1.136, allocations: 11.94 kB / 0.8144 GB, free: 125.2 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.073e-06/1.136, allocations: 320 / 0.8144 GB, free: 125.2 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.096e-06/1.136, allocations: 0 / 0.8144 GB, free: 125.2 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009392/1.136, allocations: 0.6303 MB / 0.815 GB, free: 124.5 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.797e-06/1.137, allocations: 0 / 0.815 GB, free: 124.5 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000906/1.137, allocations: 95.86 kB / 0.8151 GB, free: 124.4 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.845e-06/1.137, allocations: 0 / 0.8151 GB, free: 124.4 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.101e-05/1.137, allocations: 15.98 kB / 0.8151 GB, free: 124.4 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.801e-06/1.138, allocations: 4 kB / 0.8151 GB, free: 124.4 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/1.138, allocations: 7.953 kB / 0.8151 GB, free: 124.4 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001735/1.139, allocations: 0.8618 MB / 0.8159 GB, free: 123.5 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002846/1.14, allocations: 180.4 kB / 0.8161 GB, free: 123.3 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001118/1.14, allocations: 16 kB / 0.8161 GB, free: 123.3 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005998/1.14, allocations: 43.91 kB / 0.8162 GB, free: 123.2 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002064/1.141, allocations: 52.5 kB / 0.8162 GB, free: 123.2 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.043e-05/1.141, allocations: 16 kB / 0.8162 GB, free: 123.2 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0003261/1.141, allocations: 238.2 kB / 0.8165 GB, free: 122.9 MB / 0.6511 GB Notification: Performance of sort global known variables: time 4.71e-07/1.141, allocations: 0 / 0.8165 GB, free: 122.9 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.001016/1.142, allocations: 275.1 kB / 0.8167 GB, free: 122.7 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) * 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.002127/1.144, allocations: 1.526 MB / 0.8182 GB, free: 121.1 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.001918/1.146, allocations: 0.9373 MB / 0.8191 GB, free: 120.1 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 6.542e-06/1.146, allocations: 8 kB / 0.8191 GB, free: 120.1 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.000563/1.147, allocations: 266.4 kB / 0.8194 GB, free: 119.9 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001262/1.148, allocations: 150.9 kB / 0.8195 GB, free: 119.7 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002631/1.151, allocations: 0.9604 MB / 0.8205 GB, free: 118.7 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003817/1.151, allocations: 0.8996 MB / 0.8213 GB, free: 117.8 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.000972/1.152, allocations: 160.5 kB / 0.8215 GB, free: 117.6 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004288/1.152, allocations: 191.4 kB / 0.8217 GB, free: 117.5 MB / 0.6511 GB Notification: Performance of SimCode: time 8.82e-07/1.152, allocations: 0 / 0.8217 GB, free: 117.5 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04812/1.201, allocations: 12.47 MB / 0.8339 GB, free: 105.2 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001856/1.201, allocations: 168.1 kB / 0.834 GB, free: 104.9 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.846/4.046, allocations: 0 / 0.834 GB, free: 104.9 MB / 0.6511 GB