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.394/2.394, allocations: 251 MB / 265.9 MB, free: 11.69 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001482/0.001482, allocations: 177 kB / 325.5 MB, free: 2.898 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.469/2.469, allocations: 205.4 MB / 0.5764 GB, free: 21.18 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001061/0.001061, allocations: 102.2 kB / 0.6809 GB, free: 14.07 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0006992/0.0006995, allocations: 9.188 kB / 0.795 GB, free: 135.7 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2372/0.2379, allocations: 106.3 MB / 0.8988 GB, free: 65.93 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.301/0.539, allocations: 151.8 MB / 1.047 GB, free: 9.875 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004063/0.5395, allocations: 99.92 kB / 1.047 GB, free: 9.777 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 0.7247/1.264, allocations: 29.26 MB / 1.076 GB, free: 150.3 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.926e-06/1.264, allocations: 0 / 1.076 GB, free: 150.3 MB / 0.698 GB Notification: Performance of Transformations before backend: time 4.899e-05/1.264, allocations: 17.03 kB / 1.076 GB, free: 150.3 MB / 0.698 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.002661/1.267, allocations: 0.8876 MB / 1.077 GB, free: 149.6 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 5.542e-05/1.267, allocations: 9.531 kB / 1.077 GB, free: 149.6 MB / 0.698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002354/1.267, allocations: 91.73 kB / 1.077 GB, free: 149.5 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001541/1.269, allocations: 148.9 kB / 1.077 GB, free: 149.5 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001076/1.27, allocations: 442.9 kB / 1.077 GB, free: 149.1 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.172e-05/1.27, allocations: 44.83 kB / 1.077 GB, free: 149.1 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001541/1.27, allocations: 48.34 kB / 1.077 GB, free: 149.1 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002062/1.272, allocations: 0.6789 MB / 1.078 GB, free: 148.9 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.012e-05/1.272, allocations: 1.25 kB / 1.078 GB, free: 148.9 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001153/1.273, allocations: 20.44 kB / 1.078 GB, free: 148.9 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001077/1.273, allocations: 47.72 kB / 1.078 GB, free: 148.9 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001974/1.275, allocations: 0.583 MB / 1.079 GB, free: 148.8 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005626/1.28, allocations: 2.833 MB / 1.081 GB, free: 146.7 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001904/1.282, allocations: 0.5811 MB / 1.082 GB, free: 146.6 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005128/1.283, allocations: 0.5654 MB / 1.083 GB, free: 145.9 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001153/1.284, allocations: 411.1 kB / 1.083 GB, free: 145.7 MB / 0.698 GB Notification: Performance of pre-optimization done (n=49): time 4.609e-06/1.284, allocations: 0 / 1.083 GB, free: 145.7 MB / 0.698 GB Notification: Performance of matching and sorting (n=49): time 0.002746/1.287, allocations: 0.7762 MB / 1.084 GB, free: 145.6 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.972e-05/1.287, allocations: 84.14 kB / 1.084 GB, free: 145.5 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005889/1.288, allocations: 303.4 kB / 1.084 GB, free: 145.3 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 0.0001521/1.288, allocations: 43.61 kB / 1.084 GB, free: 145.3 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.000281/1.288, allocations: 279.7 kB / 1.084 GB, free: 145 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002101/1.288, allocations: 158.5 kB / 1.085 GB, free: 144.9 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.614e-05/1.288, allocations: 10.62 kB / 1.085 GB, free: 144.9 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.000121/1.288, allocations: 357.3 kB / 1.085 GB, free: 144.5 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009219/1.289, allocations: 240.9 kB / 1.085 GB, free: 144.4 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00109/1.29, allocations: 366.5 kB / 1.086 GB, free: 144.1 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001103/1.292, allocations: 300.4 kB / 1.086 GB, free: 144 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.137e-06/1.292, allocations: 0.7812 kB / 1.086 GB, free: 144 MB / 0.698 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.002572/1.294, allocations: 0.7103 MB / 1.086 GB, free: 143.6 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002926/1.295, allocations: 1.079 MB / 1.088 GB, free: 142.4 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.336e-05/1.295, allocations: 3.875 kB / 1.088 GB, free: 142.4 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.208e-05/1.295, allocations: 3.781 kB / 1.088 GB, free: 142.4 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001042/1.296, allocations: 118.2 kB / 1.088 GB, free: 142.4 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.539e-05/1.296, allocations: 7.906 kB / 1.088 GB, free: 142.4 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009868/1.297, allocations: 79 kB / 1.088 GB, free: 142.3 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.296e-05/1.297, allocations: 19.78 kB / 1.088 GB, free: 142.3 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.686e-05/1.297, allocations: 3.875 kB / 1.088 GB, free: 142.3 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001783/1.299, allocations: 0.5909 MB / 1.088 GB, free: 142 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.909e-06/1.299, allocations: 3.844 kB / 1.088 GB, free: 142 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.543e-05/1.299, allocations: 9.703 kB / 1.088 GB, free: 142 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008153/1.3, allocations: 106.8 kB / 1.088 GB, free: 142 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.348e-05/1.3, allocations: 6.344 kB / 1.088 GB, free: 142 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008225/1.3, allocations: 68.55 kB / 1.089 GB, free: 142 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.884e-05/1.3, allocations: 25.58 kB / 1.089 GB, free: 141.9 MB / 0.698 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.0005726/1.301, allocations: 293.8 kB / 1.089 GB, free: 141.7 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000142/1.301, allocations: 49.22 kB / 1.089 GB, free: 141.7 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001841/1.303, allocations: 0.612 MB / 1.089 GB, free: 141.3 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.207e-05/1.303, allocations: 4.281 kB / 1.089 GB, free: 141.3 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.708e-06/1.303, allocations: 0 / 1.089 GB, free: 141.3 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.137e-05/1.303, allocations: 7.922 kB / 1.089 GB, free: 141.3 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001137/1.304, allocations: 0.6273 MB / 1.09 GB, free: 140.8 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.861e-06/1.304, allocations: 0 / 1.09 GB, free: 140.8 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000952/1.305, allocations: 92.38 kB / 1.09 GB, free: 140.8 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.172e-05/1.305, allocations: 7.672 kB / 1.09 GB, free: 140.8 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.931e-05/1.305, allocations: 19.7 kB / 1.09 GB, free: 140.8 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.163e-06/1.305, allocations: 3.953 kB / 1.09 GB, free: 140.8 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.168e-06/1.305, allocations: 11.86 kB / 1.09 GB, free: 140.8 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002498/1.308, allocations: 0.926 MB / 1.091 GB, free: 140.2 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004069/1.308, allocations: 179.3 kB / 1.091 GB, free: 140.1 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001281/1.309, allocations: 15.52 kB / 1.091 GB, free: 140.1 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006336/1.309, allocations: 44.69 kB / 1.091 GB, free: 140 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002026/1.309, allocations: 55.48 kB / 1.091 GB, free: 140 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.235e-05/1.309, allocations: 13.75 kB / 1.091 GB, free: 140 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0004068/1.31, allocations: 244.6 kB / 1.092 GB, free: 139.8 MB / 0.698 GB Notification: Performance of sort global known variables: time 5.91e-07/1.31, allocations: 0 / 1.092 GB, free: 139.8 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.001128/1.311, allocations: 281 kB / 1.092 GB, free: 139.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) * 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.002879/1.314, allocations: 1.594 MB / 1.093 GB, free: 138.6 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.002599/1.317, allocations: 0.9978 MB / 1.094 GB, free: 138.1 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 8.757e-06/1.317, allocations: 0 / 1.094 GB, free: 138.1 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0008195/1.317, allocations: 287.4 kB / 1.095 GB, free: 137.9 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001456/1.319, allocations: 154 kB / 1.095 GB, free: 137.8 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008108/1.327, allocations: 4.813 MB / 1.1 GB, free: 133.5 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004287/1.328, allocations: 0.9069 MB / 1.1 GB, free: 132.6 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0009613/1.329, allocations: 145.2 kB / 1.101 GB, free: 132.4 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004827/1.329, allocations: 187.4 kB / 1.101 GB, free: 132.2 MB / 0.698 GB Notification: Performance of SimCode: time 2.555e-06/1.329, allocations: 0 / 1.101 GB, free: 132.2 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0515/1.381, allocations: 11.93 MB / 1.112 GB, free: 120.6 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002997/1.381, allocations: 207.2 kB / 1.113 GB, free: 120.3 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.821/4.202, allocations: 0 / 1.113 GB, free: 120.3 MB / 0.698 GB