Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Electrical.AC.OnePhase.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.OnePhase.Storage.Examples.AcBattery,fileNamePrefix="Buildings_7_0_0_Buildings_Electrical_AC_OnePhase_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.205/2.205, allocations: 251 MB / 265.9 MB, free: 11.7 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.001528/0.001528, allocations: 185.1 kB / 325.5 MB, free: 2.867 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.39/2.39, allocations: 205.4 MB / 0.5764 GB, free: 20.84 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.001312/0.001312, allocations: 93.09 kB / 0.6809 GB, free: 13.64 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.000477/0.0004771, allocations: 15.62 kB / 0.7951 GB, free: 135.5 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2199/0.2204, allocations: 106.3 MB / 0.8988 GB, free: 65.43 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2795/0.5, allocations: 150.4 MB / 1.046 GB, free: 10.85 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003668/0.5004, allocations: 91.94 kB / 1.046 GB, free: 10.76 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 0.7856/1.286, allocations: 27.34 MB / 1.072 GB, free: 150 MB / 0.698 GB Notification: Performance of FrontEnd: time 4.558e-06/1.286, allocations: 7.938 kB / 1.072 GB, free: 150 MB / 0.698 GB Notification: Performance of Transformations before backend: time 6.382e-05/1.286, allocations: 15.25 kB / 1.072 GB, free: 150 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.002886/1.289, allocations: 0.883 MB / 1.073 GB, free: 149.4 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 5.409e-05/1.289, allocations: 8.438 kB / 1.073 GB, free: 149.4 MB / 0.698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002254/1.289, allocations: 95.33 kB / 1.073 GB, free: 149.3 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001468/1.291, allocations: 152 kB / 1.074 GB, free: 149.3 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000945/1.292, allocations: 437.1 kB / 1.074 GB, free: 149 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.602e-05/1.292, allocations: 44.97 kB / 1.074 GB, free: 149 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000154/1.292, allocations: 49.95 kB / 1.074 GB, free: 149 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001877/1.294, allocations: 0.6806 MB / 1.075 GB, free: 148.9 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.849e-05/1.294, allocations: 8.906 kB / 1.075 GB, free: 148.9 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.776e-05/1.294, allocations: 27.53 kB / 1.075 GB, free: 148.9 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.464e-05/1.294, allocations: 38.27 kB / 1.075 GB, free: 148.9 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001799/1.296, allocations: 0.5737 MB / 1.075 GB, free: 148.9 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005138/1.301, allocations: 2.835 MB / 1.078 GB, free: 147.2 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001952/1.303, allocations: 0.5902 MB / 1.079 GB, free: 147.1 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000514/1.304, allocations: 0.5648 MB / 1.079 GB, free: 146.4 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00116/1.305, allocations: 410.2 kB / 1.08 GB, free: 146.2 MB / 0.698 GB Notification: Performance of pre-optimization done (n=49): time 4.558e-06/1.305, allocations: 0 / 1.08 GB, free: 146.2 MB / 0.698 GB Notification: Performance of matching and sorting (n=49): time 0.002634/1.308, allocations: 0.7766 MB / 1.08 GB, free: 146.1 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.09e-05/1.308, allocations: 83.08 kB / 1.081 GB, free: 146 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005328/1.308, allocations: 310.4 kB / 1.081 GB, free: 145.8 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 0.0001131/1.308, allocations: 44.25 kB / 1.081 GB, free: 145.8 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002396/1.309, allocations: 276.1 kB / 1.081 GB, free: 145.6 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001804/1.309, allocations: 155.5 kB / 1.081 GB, free: 145.5 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.39e-05/1.309, allocations: 9.594 kB / 1.081 GB, free: 145.5 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001063/1.309, allocations: 354.5 kB / 1.082 GB, free: 145.2 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007933/1.31, allocations: 245 kB / 1.082 GB, free: 145.1 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008387/1.311, allocations: 374.2 kB / 1.082 GB, free: 145 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008227/1.312, allocations: 293.7 kB / 1.082 GB, free: 144.9 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.713e-06/1.312, allocations: 1.125 kB / 1.082 GB, free: 144.9 MB / 0.698 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.002095/1.314, allocations: 0.7029 MB / 1.083 GB, free: 144.7 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002654/1.314, allocations: 1.077 MB / 1.084 GB, free: 143.6 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.272e-05/1.314, allocations: 2.688 kB / 1.084 GB, free: 143.6 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.02e-05/1.314, allocations: 5.781 kB / 1.084 GB, free: 143.6 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001048/1.315, allocations: 113.3 kB / 1.084 GB, free: 143.6 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.629e-05/1.315, allocations: 13.11 kB / 1.084 GB, free: 143.6 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001008/1.316, allocations: 79.36 kB / 1.084 GB, free: 143.5 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.4e-05/1.316, allocations: 23.98 kB / 1.084 GB, free: 143.5 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.946e-05/1.316, allocations: 4.031 kB / 1.084 GB, free: 143.5 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001948/1.318, allocations: 0.5896 MB / 1.085 GB, free: 143.3 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.011e-05/1.318, allocations: 2.594 kB / 1.085 GB, free: 143.3 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.662e-05/1.318, allocations: 10.86 kB / 1.085 GB, free: 143.3 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008934/1.319, allocations: 109.5 kB / 1.085 GB, free: 143.3 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.957e-05/1.319, allocations: 13.34 kB / 1.085 GB, free: 143.3 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008529/1.32, allocations: 64.98 kB / 1.085 GB, free: 143.2 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.132e-05/1.32, allocations: 19.59 kB / 1.085 GB, free: 143.2 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.0006199/1.321, allocations: 302.8 kB / 1.086 GB, free: 143 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001637/1.321, allocations: 46.78 kB / 1.086 GB, free: 142.9 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00209/1.323, allocations: 0.6063 MB / 1.086 GB, free: 142.6 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.585e-05/1.323, allocations: 5.547 kB / 1.086 GB, free: 142.6 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.917e-06/1.323, allocations: 4.547 kB / 1.086 GB, free: 142.6 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.247e-05/1.323, allocations: 1.156 kB / 1.086 GB, free: 142.6 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001305/1.325, allocations: 0.6314 MB / 1.087 GB, free: 142.1 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.771e-06/1.325, allocations: 1.438 kB / 1.087 GB, free: 142.1 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001009/1.326, allocations: 98.36 kB / 1.087 GB, free: 142.1 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.919e-06/1.326, allocations: 1.5 kB / 1.087 GB, free: 142.1 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.837e-05/1.326, allocations: 11.58 kB / 1.087 GB, free: 142.1 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.547e-06/1.326, allocations: 10.33 kB / 1.087 GB, free: 142.1 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.005e-06/1.326, allocations: 1.344 kB / 1.087 GB, free: 142.1 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00252/1.328, allocations: 0.9283 MB / 1.088 GB, free: 141.5 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003477/1.329, allocations: 178.8 kB / 1.088 GB, free: 141.4 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000122/1.329, allocations: 23.89 kB / 1.088 GB, free: 141.3 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006275/1.329, allocations: 38.89 kB / 1.088 GB, free: 141.3 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002127/1.33, allocations: 47.48 kB / 1.088 GB, free: 141.3 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.38e-05/1.33, allocations: 19.17 kB / 1.088 GB, free: 141.3 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0003578/1.33, allocations: 244.1 kB / 1.088 GB, free: 141.1 MB / 0.698 GB Notification: Performance of sort global known variables: time 4.11e-07/1.33, allocations: 0 / 1.088 GB, free: 141.1 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.001104/1.331, allocations: 273.4 kB / 1.089 GB, free: 141.1 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.002849/1.334, allocations: 1.6 MB / 1.09 GB, free: 139.9 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.002578/1.337, allocations: 1.004 MB / 1.091 GB, free: 139.3 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 7.104e-06/1.337, allocations: 0 / 1.091 GB, free: 139.3 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.000822/1.338, allocations: 286.2 kB / 1.091 GB, free: 139.2 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001383/1.339, allocations: 153.1 kB / 1.092 GB, free: 139.1 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007986/1.347, allocations: 4.802 MB / 1.096 GB, free: 135.5 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004429/1.347, allocations: 0.9116 MB / 1.097 GB, free: 134.7 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.001058/1.349, allocations: 146.8 kB / 1.097 GB, free: 134.6 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005185/1.349, allocations: 189.3 kB / 1.097 GB, free: 134.4 MB / 0.698 GB Notification: Performance of SimCode: time 1.253e-06/1.349, allocations: 0 / 1.097 GB, free: 134.4 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05044/1.4, allocations: 11.93 MB / 1.109 GB, free: 123.3 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003636/1.4, allocations: 211.1 kB / 1.109 GB, free: 123 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.981/4.381, allocations: 0 / 1.109 GB, free: 123 MB / 0.698 GB