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.243/2.243, allocations: 248.5 MB / 261.1 MB, free: 5.953 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.001481/0.001481, allocations: 186.9 kB / 320.4 MB, free: 15.32 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.951/1.951, allocations: 205.2 MB / 0.571 GB, free: 11.8 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.00107/0.001069, allocations: 90.42 kB / 0.6754 GB, free: 0.8906 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 4.36e-05/4.389e-05, allocations: 4 kB / 0.7869 GB, free: 97.79 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1936/0.1937, allocations: 106.2 MB / 0.8907 GB, free: 7.449 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.047/1.24, allocations: 150.3 MB / 1.037 GB, free: 2.352 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004383/1.241, allocations: 91.12 kB / 1.038 GB, free: 2.301 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 0.1406/1.381, allocations: 27.21 MB / 1.064 GB, free: 11.55 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.455e-06/1.381, allocations: 0 / 1.064 GB, free: 11.55 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 5.089e-05/1.382, allocations: 16 kB / 1.064 GB, free: 11.53 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.002838/1.384, allocations: 0.8163 MB / 1.065 GB, free: 10.7 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 5.718e-05/1.384, allocations: 16.03 kB / 1.065 GB, free: 10.68 MB / 0.6823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002977/1.385, allocations: 93.06 kB / 1.065 GB, free: 10.61 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001606/1.386, allocations: 151.1 kB / 1.065 GB, free: 10.46 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001239/1.388, allocations: 432.6 kB / 1.066 GB, free: 10.07 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.308e-05/1.388, allocations: 38.55 kB / 1.066 GB, free: 10.04 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001728/1.388, allocations: 65.11 kB / 1.066 GB, free: 9.996 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001843/1.39, allocations: 0.653 MB / 1.066 GB, free: 9.504 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.718e-05/1.39, allocations: 3.938 kB / 1.066 GB, free: 9.5 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.822e-05/1.39, allocations: 20.44 kB / 1.066 GB, free: 9.492 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001164/1.39, allocations: 43.23 kB / 1.066 GB, free: 9.457 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001573/1.392, allocations: 0.5236 MB / 1.067 GB, free: 9.109 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006617/1.398, allocations: 2.837 MB / 1.07 GB, free: 6.484 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001535/1.4, allocations: 0.5449 MB / 1.07 GB, free: 6.098 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006109/1.401, allocations: 238.7 kB / 1.07 GB, free: 5.949 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007338/1.401, allocations: 0.5699 MB / 1.071 GB, free: 5.254 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009898/1.402, allocations: 381.2 kB / 1.071 GB, free: 4.957 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=49): time 4.178e-06/1.402, allocations: 3.938 kB / 1.071 GB, free: 4.953 MB / 0.6823 GB Notification: Performance of matching and sorting (n=49): time 0.001517/1.404, allocations: 0.511 MB / 1.072 GB, free: 4.578 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.974e-05/1.404, allocations: 81.55 kB / 1.072 GB, free: 4.48 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005469/1.405, allocations: 292.1 kB / 1.072 GB, free: 4.242 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 0.0001088/1.405, allocations: 54.16 kB / 1.072 GB, free: 4.195 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003282/1.405, allocations: 280.2 kB / 1.073 GB, free: 3.98 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002145/1.405, allocations: 152.6 kB / 1.073 GB, free: 3.852 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.404e-05/1.405, allocations: 17.62 kB / 1.073 GB, free: 3.844 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0002028/1.406, allocations: 357.5 kB / 1.073 GB, free: 3.504 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005892/1.406, allocations: 219.3 kB / 1.073 GB, free: 3.375 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007134/1.407, allocations: 344.7 kB / 1.074 GB, free: 3.094 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006712/1.408, allocations: 274.2 kB / 1.074 GB, free: 2.902 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.907e-06/1.408, allocations: 4 kB / 1.074 GB, free: 2.898 MB / 0.6823 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001723/1.409, allocations: 0.6543 MB / 1.074 GB, free: 2.418 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005483/1.41, allocations: 1.073 MB / 1.076 GB, free: 1.277 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.329e-05/1.41, allocations: 4 kB / 1.076 GB, free: 1.273 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.887e-05/1.41, allocations: 8 kB / 1.076 GB, free: 1.266 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001065/1.411, allocations: 111.2 kB / 1.076 GB, free: 1.16 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.964e-05/1.411, allocations: 7.984 kB / 1.076 GB, free: 1.152 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009016/1.412, allocations: 73.27 kB / 1.076 GB, free: 1.09 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.717e-05/1.412, allocations: 23.42 kB / 1.076 GB, free: 1.07 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.164e-05/1.412, allocations: 7.938 kB / 1.076 GB, free: 1.062 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001424/1.414, allocations: 0.5407 MB / 1.076 GB, free: 0.6836 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.755e-05/1.414, allocations: 8.203 kB / 1.076 GB, free: 0.6758 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.339e-05/1.414, allocations: 11.94 kB / 1.076 GB, free: 0.6641 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008551/1.415, allocations: 113.9 kB / 1.076 GB, free: 0.5586 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.273e-05/1.415, allocations: 4 kB / 1.076 GB, free: 0.5547 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007881/1.415, allocations: 68.98 kB / 1.076 GB, free: 0.4961 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.248e-05/1.415, allocations: 23.56 kB / 1.077 GB, free: 488 kB / 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.0002608/1.416, allocations: 148.2 kB / 1.077 GB, free: 352 kB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001309/1.416, allocations: 47.52 kB / 1.077 GB, free: 304 kB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001611/1.418, allocations: 0.5688 MB / 1.077 GB, free: 15.9 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.179e-05/1.418, allocations: 4 kB / 1.077 GB, free: 15.9 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.775e-06/1.418, allocations: 0 / 1.077 GB, free: 15.9 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.552e-05/1.418, allocations: 7.984 kB / 1.077 GB, free: 15.89 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00121/1.419, allocations: 0.6142 MB / 1.078 GB, free: 15.38 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.254e-06/1.419, allocations: 3.984 kB / 1.078 GB, free: 15.38 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001002/1.42, allocations: 102 kB / 1.078 GB, free: 15.29 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.368e-06/1.42, allocations: 0 / 1.078 GB, free: 15.29 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.164e-05/1.42, allocations: 10.81 kB / 1.078 GB, free: 15.28 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.101e-05/1.42, allocations: 7.953 kB / 1.078 GB, free: 15.27 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/1.42, allocations: 0 / 1.078 GB, free: 15.27 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002134/1.422, allocations: 0.8614 MB / 1.079 GB, free: 14.66 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003818/1.423, allocations: 183.8 kB / 1.079 GB, free: 14.49 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001193/1.423, allocations: 19.27 kB / 1.079 GB, free: 14.48 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006451/1.423, allocations: 41.56 kB / 1.079 GB, free: 14.45 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002098/1.424, allocations: 45.38 kB / 1.079 GB, free: 14.41 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.845e-05/1.424, allocations: 19.11 kB / 1.079 GB, free: 14.4 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0004003/1.424, allocations: 233.4 kB / 1.079 GB, free: 14.22 MB / 0.698 GB Notification: Performance of sort global known variables: time 7.21e-07/1.424, allocations: 4 kB / 1.079 GB, free: 14.22 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.001171/1.425, allocations: 285.4 kB / 1.08 GB, free: 13.96 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.00264/1.428, allocations: 1.525 MB / 1.081 GB, free: 12.66 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.002413/1.43, allocations: 0.9409 MB / 1.082 GB, free: 11.7 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 8.616e-06/1.43, allocations: 0 / 1.082 GB, free: 11.7 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0007232/1.431, allocations: 270.3 kB / 1.082 GB, free: 11.43 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001397/1.433, allocations: 154.3 kB / 1.082 GB, free: 11.28 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002986/1.436, allocations: 0.9415 MB / 1.083 GB, free: 10.3 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006851/1.436, allocations: 0.9035 MB / 1.084 GB, free: 9.371 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.001122/1.437, allocations: 168.5 kB / 1.084 GB, free: 9.203 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004868/1.438, allocations: 187.4 kB / 1.085 GB, free: 9.02 MB / 0.698 GB Notification: Performance of SimCode: time 3.607e-06/1.438, allocations: 0 / 1.085 GB, free: 9.02 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05437/1.492, allocations: 12.47 MB / 1.097 GB, free: 12.73 MB / 0.7136 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002421/1.493, allocations: 171 kB / 1.097 GB, free: 12.5 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.916/4.408, allocations: 0 / 1.097 GB, free: 12.5 MB / 0.7136 GB