Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.conf.json Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.254/2.254, allocations: 248.7 MB / 256.2 MB, free: 7.055 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001544/0.001543, allocations: 179.6 kB / 315.4 MB, free: 4.031 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.154/2.154, allocations: 205.3 MB / 0.5662 GB, free: 0.6211 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001102/0.001102, allocations: 90.03 kB / 0.6704 GB, free: 5.82 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.955e-05/2.952e-05, allocations: 0 / 0.7803 GB, free: 103.3 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2035/0.2036, allocations: 106.3 MB / 0.8841 GB, free: 13 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9599/1.164, allocations: 152 MB / 1.033 GB, free: 4.168 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003462/1.164, allocations: 95.8 kB / 1.033 GB, free: 4.113 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 0.1248/1.289, allocations: 28.99 MB / 1.061 GB, free: 12.09 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.525e-06/1.289, allocations: 0 / 1.061 GB, free: 12.09 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 4.924e-05/1.289, allocations: 12 kB / 1.061 GB, free: 12.07 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.002497/1.291, allocations: 0.826 MB / 1.062 GB, free: 11.23 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 5.459e-05/1.291, allocations: 12.03 kB / 1.062 GB, free: 11.22 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00146/1.293, allocations: 147.1 kB / 1.062 GB, free: 11.07 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001059/1.294, allocations: 441.8 kB / 1.062 GB, free: 10.66 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.999e-05/1.294, allocations: 16 kB / 1.062 GB, free: 10.65 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001347/1.294, allocations: 31.98 kB / 1.062 GB, free: 10.62 MB / 0.6823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001226/1.295, allocations: 456.5 kB / 1.063 GB, free: 10.34 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001426/1.297, allocations: 0.5879 MB / 1.063 GB, free: 9.871 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.354e-05/1.297, allocations: 0 / 1.063 GB, free: 9.871 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.703e-05/1.297, allocations: 11.73 kB / 1.063 GB, free: 9.863 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001041/1.297, allocations: 40.66 kB / 1.063 GB, free: 9.828 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00536/1.303, allocations: 2.719 MB / 1.066 GB, free: 7.297 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001316/1.304, allocations: 0.5279 MB / 1.067 GB, free: 6.926 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005047/1.304, allocations: 232.8 kB / 1.067 GB, free: 6.777 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00064/1.305, allocations: 0.5662 MB / 1.067 GB, free: 6.082 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008704/1.306, allocations: 371.9 kB / 1.068 GB, free: 5.797 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=49): time 3.236e-06/1.306, allocations: 0 / 1.068 GB, free: 5.797 MB / 0.6823 GB Notification: Performance of matching and sorting (n=49): time 0.001433/1.307, allocations: 0.4911 MB / 1.068 GB, free: 5.43 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.876e-05/1.308, allocations: 81.55 kB / 1.068 GB, free: 5.328 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004587/1.308, allocations: 279.6 kB / 1.069 GB, free: 5.109 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 8.941e-05/1.308, allocations: 33.58 kB / 1.069 GB, free: 5.074 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002729/1.308, allocations: 274.7 kB / 1.069 GB, free: 4.859 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001987/1.309, allocations: 156.1 kB / 1.069 GB, free: 4.727 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.762e-05/1.309, allocations: 0 / 1.069 GB, free: 4.727 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001634/1.309, allocations: 348.9 kB / 1.069 GB, free: 4.395 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005046/1.309, allocations: 217.6 kB / 1.07 GB, free: 4.27 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000612/1.31, allocations: 327.5 kB / 1.07 GB, free: 4.004 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006878/1.311, allocations: 245.6 kB / 1.07 GB, free: 3.848 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.507e-06/1.311, allocations: 4 kB / 1.07 GB, free: 3.844 MB / 0.6823 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001608/1.312, allocations: 0.5859 MB / 1.071 GB, free: 3.418 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005012/1.313, allocations: 1.077 MB / 1.072 GB, free: 2.273 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.662e-05/1.313, allocations: 7.938 kB / 1.072 GB, free: 2.266 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.114e-05/1.313, allocations: 4 kB / 1.072 GB, free: 2.262 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001143/1.314, allocations: 119.4 kB / 1.072 GB, free: 2.148 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.309e-05/1.314, allocations: 8 kB / 1.072 GB, free: 2.141 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00097/1.315, allocations: 55.62 kB / 1.072 GB, free: 2.086 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.232e-05/1.315, allocations: 23.69 kB / 1.072 GB, free: 2.066 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.443e-05/1.315, allocations: 3.938 kB / 1.072 GB, free: 2.062 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001336/1.317, allocations: 476.4 kB / 1.072 GB, free: 1.742 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.619e-06/1.317, allocations: 4 kB / 1.072 GB, free: 1.738 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.641e-05/1.317, allocations: 11.94 kB / 1.072 GB, free: 1.727 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008457/1.318, allocations: 107.9 kB / 1.073 GB, free: 1.625 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.413e-05/1.318, allocations: 11.95 kB / 1.073 GB, free: 1.613 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008091/1.318, allocations: 51.73 kB / 1.073 GB, free: 1.562 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.356e-05/1.318, allocations: 27.31 kB / 1.073 GB, free: 1.539 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 () * 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.0002587/1.319, allocations: 129.9 kB / 1.073 GB, free: 1.41 MB / 0.6823 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001296/1.32, allocations: 495.5 kB / 1.073 GB, free: 1.051 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001138/1.32, allocations: 51.47 kB / 1.073 GB, free: 1 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001383/1.322, allocations: 0.5267 MB / 1.074 GB, free: 0.6328 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.243e-05/1.322, allocations: 8 kB / 1.074 GB, free: 0.625 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.113e-06/1.322, allocations: 4.031 kB / 1.074 GB, free: 0.6211 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.143e-05/1.322, allocations: 3.984 kB / 1.074 GB, free: 0.6172 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001023/1.323, allocations: 0.5361 MB / 1.074 GB, free: 180 kB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.216e-06/1.323, allocations: 0 / 1.074 GB, free: 180 kB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009892/1.324, allocations: 99.11 kB / 1.074 GB, free: 84 kB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.326e-05/1.324, allocations: 4 kB / 1.074 GB, free: 80 kB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.479e-05/1.324, allocations: 3.875 kB / 1.074 GB, free: 80 kB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.366e-06/1.324, allocations: 4 kB / 1.074 GB, free: 76 kB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.32e-06/1.324, allocations: 3.953 kB / 1.074 GB, free: 72 kB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002024/1.326, allocations: 0.8295 MB / 1.075 GB, free: 15.48 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004601/1.326, allocations: 184.2 kB / 1.075 GB, free: 15.3 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001216/1.327, allocations: 7.125 kB / 1.075 GB, free: 15.3 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006543/1.327, allocations: 35.91 kB / 1.075 GB, free: 15.27 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002011/1.327, allocations: 58.86 kB / 1.076 GB, free: 15.22 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.679e-05/1.328, allocations: 15.25 kB / 1.076 GB, free: 15.21 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0003773/1.328, allocations: 222.2 kB / 1.076 GB, free: 15.04 MB / 0.698 GB Notification: Performance of sort global known variables: time 5.51e-07/1.328, allocations: 0 / 1.076 GB, free: 15.04 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.001218/1.329, allocations: 243.2 kB / 1.076 GB, free: 14.8 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) * 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.002661/1.332, allocations: 1.488 MB / 1.077 GB, free: 13.55 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.003062/1.335, allocations: 0.8901 MB / 1.078 GB, free: 12.91 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 1.072e-05/1.335, allocations: 0 / 1.078 GB, free: 12.91 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0006848/1.336, allocations: 258.9 kB / 1.079 GB, free: 12.75 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001412/1.337, allocations: 138.8 kB / 1.079 GB, free: 12.63 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003208/1.34, allocations: 0.8965 MB / 1.08 GB, free: 11.82 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006939/1.341, allocations: 0.9098 MB / 1.08 GB, free: 10.9 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.00123/1.342, allocations: 161 kB / 1.081 GB, free: 10.75 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004778/1.343, allocations: 188.7 kB / 1.081 GB, free: 10.69 MB / 0.698 GB Notification: Performance of SimCode: time 1.162e-06/1.343, allocations: 0 / 1.081 GB, free: 10.69 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0721/1.415, allocations: 11.81 MB / 1.092 GB, free: 14.95 MB / 0.7136 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003324/1.415, allocations: 167.1 kB / 1.092 GB, free: 14.75 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.923/4.339, allocations: 5.531 kB / 1.092 GB, free: 14.75 MB / 0.7136 GB