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.01179/0.01179, allocations: 106.2 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.001953/0.001953, allocations: 183.8 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 2.042/2.042, allocations: 194.6 MB / 211.3 MB, free: 11.06 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.23/2.23, allocations: 236.2 MB / 492.6 MB, free: 11.38 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008548/0.0008549, allocations: 12 kB / 0.587 GB, free: 2.035 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6843/0.6852, allocations: 98.71 MB / 0.6834 GB, free: 16.88 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.3304/1.016, allocations: 144.8 MB / 0.8248 GB, free: 13.44 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004602/1.016, allocations: 95.94 kB / 0.8249 GB, free: 13.35 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 0.1302/1.146, allocations: 29.23 MB / 0.8534 GB, free: 15.84 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.254e-06/1.146, allocations: 4 kB / 0.8535 GB, free: 15.84 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 4.334e-05/1.147, allocations: 16 kB / 0.8535 GB, free: 15.82 MB / 0.6823 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.002636/1.149, allocations: 0.8882 MB / 0.8543 GB, free: 14.88 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.722e-05/1.149, allocations: 8.031 kB / 0.8543 GB, free: 14.87 MB / 0.6823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002103/1.149, allocations: 90.52 kB / 0.8544 GB, free: 14.77 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001351/1.151, allocations: 155 kB / 0.8546 GB, free: 14.62 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009628/1.152, allocations: 436.8 kB / 0.855 GB, free: 14.15 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.973e-05/1.152, allocations: 40.98 kB / 0.855 GB, free: 14.11 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000153/1.152, allocations: 48 kB / 0.8551 GB, free: 14.07 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001841/1.154, allocations: 0.6809 MB / 0.8557 GB, free: 13.36 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.746e-05/1.154, allocations: 3.984 kB / 0.8557 GB, free: 13.35 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001018/1.154, allocations: 27.98 kB / 0.8558 GB, free: 13.32 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.988e-05/1.154, allocations: 40.98 kB / 0.8558 GB, free: 13.28 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001932/1.156, allocations: 0.5737 MB / 0.8564 GB, free: 12.71 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005789/1.162, allocations: 2.844 MB / 0.8591 GB, free: 9.641 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001898/1.164, allocations: 0.5955 MB / 0.8597 GB, free: 9.023 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005983/1.164, allocations: 0.5586 MB / 0.8603 GB, free: 8.336 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00114/1.166, allocations: 419.6 kB / 0.8607 GB, free: 7.906 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=49): time 3.146e-06/1.166, allocations: 4 kB / 0.8607 GB, free: 7.902 MB / 0.6823 GB Notification: Performance of matching and sorting (n=49): time 0.002645/1.168, allocations: 0.7718 MB / 0.8614 GB, free: 7.125 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.429e-05/1.168, allocations: 85.53 kB / 0.8615 GB, free: 7.023 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005779/1.169, allocations: 300.8 kB / 0.8618 GB, free: 6.727 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 0.0001574/1.169, allocations: 45.83 kB / 0.8618 GB, free: 6.676 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002969/1.17, allocations: 288.4 kB / 0.8621 GB, free: 6.391 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002152/1.17, allocations: 153.8 kB / 0.8623 GB, free: 6.238 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.816e-05/1.17, allocations: 8 kB / 0.8623 GB, free: 6.23 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001754/1.17, allocations: 358.8 kB / 0.8626 GB, free: 5.871 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008227/1.171, allocations: 244.9 kB / 0.8629 GB, free: 5.633 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009527/1.172, allocations: 370.8 kB / 0.8632 GB, free: 5.223 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008796/1.173, allocations: 294.3 kB / 0.8635 GB, free: 4.93 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.494e-06/1.173, allocations: 7.953 kB / 0.8635 GB, free: 4.922 MB / 0.6823 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.002123/1.175, allocations: 0.7053 MB / 0.8642 GB, free: 4.203 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004795/1.175, allocations: 1.076 MB / 0.8652 GB, free: 3.039 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.151e-05/1.175, allocations: 4 kB / 0.8652 GB, free: 3.035 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.087e-05/1.175, allocations: 8 kB / 0.8652 GB, free: 3.027 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001036/1.177, allocations: 115.7 kB / 0.8654 GB, free: 2.914 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.582e-05/1.177, allocations: 4 kB / 0.8654 GB, free: 2.91 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009949/1.178, allocations: 75.62 kB / 0.8654 GB, free: 2.836 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.708e-05/1.178, allocations: 23.98 kB / 0.8655 GB, free: 2.812 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.572e-05/1.178, allocations: 4 kB / 0.8655 GB, free: 2.809 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001848/1.18, allocations: 0.5911 MB / 0.866 GB, free: 2.211 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.005e-05/1.18, allocations: 4 kB / 0.866 GB, free: 2.207 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.533e-05/1.18, allocations: 8 kB / 0.866 GB, free: 2.199 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008647/1.18, allocations: 119.8 kB / 0.8662 GB, free: 2.082 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.461e-05/1.181, allocations: 4 kB / 0.8662 GB, free: 2.078 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007811/1.181, allocations: 67.83 kB / 0.8662 GB, free: 2.012 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.051e-05/1.181, allocations: 20 kB / 0.8662 GB, free: 1.992 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.0005511/1.182, allocations: 299.1 kB / 0.8665 GB, free: 1.691 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001361/1.182, allocations: 43.44 kB / 0.8666 GB, free: 1.648 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001957/1.184, allocations: 0.6027 MB / 0.8672 GB, free: 1.035 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.446e-05/1.184, allocations: 11.95 kB / 0.8672 GB, free: 1.023 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.742e-06/1.184, allocations: 0 / 0.8672 GB, free: 1.023 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.222e-05/1.184, allocations: 3.984 kB / 0.8672 GB, free: 1.02 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00117/1.185, allocations: 0.6302 MB / 0.8678 GB, free: 348 kB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.839e-06/1.185, allocations: 0 / 0.8678 GB, free: 348 kB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009532/1.186, allocations: 95.8 kB / 0.8679 GB, free: 252 kB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.177e-06/1.186, allocations: 8 kB / 0.8679 GB, free: 244 kB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.717e-05/1.186, allocations: 12 kB / 0.8679 GB, free: 232 kB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.887e-06/1.186, allocations: 3.984 kB / 0.8679 GB, free: 228 kB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.979e-06/1.186, allocations: 7.953 kB / 0.8679 GB, free: 220 kB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002735/1.189, allocations: 0.9283 MB / 0.8688 GB, free: 15.25 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003923/1.19, allocations: 180.4 kB / 0.869 GB, free: 15.06 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001245/1.19, allocations: 12 kB / 0.869 GB, free: 15.05 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006202/1.19, allocations: 47.91 kB / 0.8691 GB, free: 15 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002041/1.191, allocations: 52.3 kB / 0.8691 GB, free: 14.95 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.754e-05/1.191, allocations: 23.92 kB / 0.8691 GB, free: 14.93 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0004075/1.191, allocations: 243.2 kB / 0.8694 GB, free: 14.69 MB / 0.698 GB Notification: Performance of sort global known variables: time 3.6e-07/1.191, allocations: 0 / 0.8694 GB, free: 14.69 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.001159/1.192, allocations: 267.2 kB / 0.8696 GB, free: 14.43 MB / 0.698 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.003193/1.195, allocations: 1.612 MB / 0.8712 GB, free: 12.78 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.002858/1.198, allocations: 1.003 MB / 0.8722 GB, free: 11.75 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 5.2e-06/1.198, allocations: 0 / 0.8722 GB, free: 11.75 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0008774/1.199, allocations: 286.4 kB / 0.8724 GB, free: 11.47 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001363/1.201, allocations: 158.3 kB / 0.8726 GB, free: 11.32 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008542/1.209, allocations: 4.795 MB / 0.8773 GB, free: 6.426 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006212/1.21, allocations: 0.9108 MB / 0.8782 GB, free: 5.484 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0009721/1.211, allocations: 140.3 kB / 0.8783 GB, free: 5.348 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004981/1.211, allocations: 191.4 kB / 0.8785 GB, free: 5.16 MB / 0.698 GB Notification: Performance of SimCode: time 1.322e-06/1.211, allocations: 0 / 0.8785 GB, free: 5.16 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0507/1.262, allocations: 11.93 MB / 0.8901 GB, free: 9.449 MB / 0.7136 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003272/1.263, allocations: 205.6 kB / 0.8903 GB, free: 9.207 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.793/4.055, allocations: 0 / 0.8903 GB, free: 9.207 MB / 0.7136 GB