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 ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/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 loadModel(Buildings): time 4.408/4.408, allocations: 433.2 MB / 440.7 MB, free: 4.598 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 2.845e-05/2.83e-05, allocations: 3.156 kB / 0.5325 GB, free: 12.75 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2232/0.2233, allocations: 98.74 MB / 0.6289 GB, free: 9.16 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.317/0.5403, allocations: 144 MB / 0.7696 GB, free: 8.938 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003736/0.5408, allocations: 87.95 kB / 0.7696 GB, free: 8.852 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 0.6895/1.23, allocations: 28.94 MB / 0.7979 GB, free: 141.3 MB / 0.6511 GB Notification: Performance of FrontEnd: time 2.655e-06/1.23, allocations: 1.25 kB / 0.7979 GB, free: 141.3 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 4.698e-05/1.23, allocations: 14.59 kB / 0.7979 GB, free: 141.3 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.002445/1.233, allocations: 0.8245 MB / 0.7987 GB, free: 140.7 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 5.252e-05/1.233, allocations: 8.75 kB / 0.7987 GB, free: 140.7 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00155/1.234, allocations: 152.9 kB / 0.7989 GB, free: 140.6 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001098/1.236, allocations: 435.6 kB / 0.7993 GB, free: 140.3 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.307e-05/1.236, allocations: 15.03 kB / 0.7993 GB, free: 140.3 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001354/1.236, allocations: 42.14 kB / 0.7993 GB, free: 140.3 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00128/1.237, allocations: 457.8 kB / 0.7998 GB, free: 140.2 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001329/1.238, allocations: 0.5823 MB / 0.8003 GB, free: 139.9 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.315e-05/1.239, allocations: 7.875 kB / 0.8004 GB, free: 139.9 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.303e-05/1.239, allocations: 11.73 kB / 0.8004 GB, free: 139.9 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.866e-05/1.239, allocations: 39.58 kB / 0.8004 GB, free: 139.9 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004712/1.243, allocations: 2.731 MB / 0.8031 GB, free: 137.5 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001268/1.245, allocations: 0.5252 MB / 0.8036 GB, free: 137.2 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004676/1.245, allocations: 228.9 kB / 0.8038 GB, free: 137 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005002/1.246, allocations: 0.5651 MB / 0.8044 GB, free: 136.4 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000745/1.247, allocations: 367.4 kB / 0.8047 GB, free: 136.1 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=49): time 4.388e-06/1.247, allocations: 0 / 0.8047 GB, free: 136.1 MB / 0.6511 GB Notification: Performance of matching and sorting (n=49): time 0.001357/1.248, allocations: 0.4917 MB / 0.8052 GB, free: 135.9 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.769e-05/1.248, allocations: 89.2 kB / 0.8053 GB, free: 135.8 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004661/1.248, allocations: 277.2 kB / 0.8055 GB, free: 135.6 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 0.0001311/1.249, allocations: 33.08 kB / 0.8056 GB, free: 135.6 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002516/1.249, allocations: 276.7 kB / 0.8058 GB, free: 135.3 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001851/1.249, allocations: 155.3 kB / 0.806 GB, free: 135.2 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.973e-05/1.249, allocations: 0 / 0.806 GB, free: 135.2 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001009/1.249, allocations: 348.9 kB / 0.8063 GB, free: 134.9 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004758/1.25, allocations: 208.4 kB / 0.8065 GB, free: 134.8 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005536/1.25, allocations: 333.3 kB / 0.8068 GB, free: 134.5 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006371/1.251, allocations: 240.1 kB / 0.8071 GB, free: 134.4 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.532e-06/1.251, allocations: 0 / 0.8071 GB, free: 134.4 MB / 0.6511 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001505/1.253, allocations: 0.593 MB / 0.8076 GB, free: 134.1 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002683/1.253, allocations: 1.075 MB / 0.8087 GB, free: 132.9 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.116e-05/1.253, allocations: 3.375 kB / 0.8087 GB, free: 132.9 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.797e-05/1.253, allocations: 4.047 kB / 0.8087 GB, free: 132.9 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001013/1.254, allocations: 131.5 kB / 0.8088 GB, free: 132.9 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.056e-05/1.254, allocations: 3.938 kB / 0.8088 GB, free: 132.9 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008998/1.255, allocations: 57.61 kB / 0.8089 GB, free: 132.9 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.033e-05/1.255, allocations: 26.3 kB / 0.8089 GB, free: 132.8 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.458e-05/1.255, allocations: 3.938 kB / 0.8089 GB, free: 132.8 MB / 0.6511 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001257/1.256, allocations: 475.5 kB / 0.8094 GB, free: 132.6 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.755e-06/1.256, allocations: 4.156 kB / 0.8094 GB, free: 132.6 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.216e-05/1.256, allocations: 7.938 kB / 0.8094 GB, free: 132.6 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007895/1.257, allocations: 114.7 kB / 0.8095 GB, free: 132.6 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.056e-06/1.257, allocations: 3.938 kB / 0.8095 GB, free: 132.6 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007486/1.258, allocations: 51.05 kB / 0.8095 GB, free: 132.6 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.291e-05/1.258, allocations: 19.38 kB / 0.8095 GB, free: 132.6 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.0002183/1.258, allocations: 130.8 kB / 0.8097 GB, free: 132.4 MB / 0.6511 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001112/1.259, allocations: 0.496 MB / 0.8102 GB, free: 132.2 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.493e-05/1.259, allocations: 50.67 kB / 0.8102 GB, free: 132.2 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001271/1.261, allocations: 0.5246 MB / 0.8107 GB, free: 131.8 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.665e-06/1.261, allocations: 7.875 kB / 0.8107 GB, free: 131.8 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.643e-06/1.261, allocations: 0 / 0.8107 GB, free: 131.8 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.097e-06/1.261, allocations: 0 / 0.8107 GB, free: 131.8 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000854/1.262, allocations: 0.5349 MB / 0.8112 GB, free: 131.4 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.801e-06/1.262, allocations: 7.938 kB / 0.8113 GB, free: 131.4 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009337/1.263, allocations: 94.58 kB / 0.8113 GB, free: 131.4 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.338e-06/1.263, allocations: 3.969 kB / 0.8113 GB, free: 131.4 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.862e-05/1.263, allocations: 7.906 kB / 0.8114 GB, free: 131.4 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.092e-06/1.263, allocations: 4.141 kB / 0.8114 GB, free: 131.4 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.988e-06/1.263, allocations: 4 kB / 0.8114 GB, free: 131.4 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001713/1.264, allocations: 0.8354 MB / 0.8122 GB, free: 130.7 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003159/1.265, allocations: 180.4 kB / 0.8124 GB, free: 130.5 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001157/1.265, allocations: 11.95 kB / 0.8124 GB, free: 130.5 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005966/1.265, allocations: 27.95 kB / 0.8124 GB, free: 130.5 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000196/1.266, allocations: 56.3 kB / 0.8124 GB, free: 130.4 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.083e-05/1.266, allocations: 16 kB / 0.8125 GB, free: 130.4 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0002982/1.266, allocations: 224.6 kB / 0.8127 GB, free: 130.2 MB / 0.6511 GB Notification: Performance of sort global known variables: time 4.61e-07/1.266, allocations: 3.938 kB / 0.8127 GB, free: 130.2 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.001069/1.267, allocations: 247.2 kB / 0.8129 GB, free: 130 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.002038/1.269, allocations: 1.491 MB / 0.8144 GB, free: 128.4 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.00173/1.271, allocations: 0.8925 MB / 0.8152 GB, free: 127.5 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 3.927e-06/1.271, allocations: 0 / 0.8152 GB, free: 127.5 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0005049/1.271, allocations: 257.5 kB / 0.8155 GB, free: 127.3 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001335/1.273, allocations: 137.1 kB / 0.8156 GB, free: 127.1 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00263/1.275, allocations: 0.9029 MB / 0.8165 GB, free: 126.2 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004372/1.276, allocations: 0.9191 MB / 0.8174 GB, free: 125.3 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.0009966/1.277, allocations: 164.4 kB / 0.8176 GB, free: 125.1 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004088/1.277, allocations: 183.4 kB / 0.8177 GB, free: 124.9 MB / 0.6511 GB Notification: Performance of SimCode: time 9.22e-07/1.277, allocations: 0 / 0.8177 GB, free: 124.9 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05948/1.337, allocations: 11.82 MB / 0.8293 GB, free: 113.2 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002198/1.337, allocations: 167.9 kB / 0.8294 GB, free: 113 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.939/4.276, allocations: 0 / 0.8294 GB, free: 113 MB / 0.6511 GB