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.202/2.202, allocations: 248.5 MB / 261 MB, free: 5.941 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.001461/0.001462, allocations: 179.6 kB / 320.4 MB, free: 15.35 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.921/1.921, allocations: 205.1 MB / 0.571 GB, free: 11.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.001065/0.001064, allocations: 93.53 kB / 0.6754 GB, free: 0.9336 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 3.656e-05/3.673e-05, allocations: 8 kB / 0.7869 GB, free: 97.8 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2014/0.2014, allocations: 106.2 MB / 0.8907 GB, free: 7.465 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8803/1.082, allocations: 151.8 MB / 1.039 GB, free: 0.9844 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000366/1.082, allocations: 95.56 kB / 1.039 GB, free: 0.9336 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 0.1224/1.205, allocations: 29.12 MB / 1.067 GB, free: 8.531 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.274e-06/1.205, allocations: 0 / 1.067 GB, free: 8.531 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 4.79e-05/1.205, allocations: 12 kB / 1.067 GB, free: 8.52 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.00259/1.207, allocations: 0.8324 MB / 1.068 GB, free: 7.676 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 5.465e-05/1.207, allocations: 12.03 kB / 1.068 GB, free: 7.664 MB / 0.6823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002448/1.208, allocations: 85.7 kB / 1.068 GB, free: 7.598 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001469/1.209, allocations: 147.1 kB / 1.068 GB, free: 7.453 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001149/1.21, allocations: 440.4 kB / 1.069 GB, free: 7.047 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.808e-05/1.21, allocations: 38.31 kB / 1.069 GB, free: 7.027 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001645/1.211, allocations: 53.42 kB / 1.069 GB, free: 6.988 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001681/1.212, allocations: 0.6483 MB / 1.07 GB, free: 6.5 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.695e-05/1.212, allocations: 0 / 1.07 GB, free: 6.5 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.874e-05/1.213, allocations: 36.53 kB / 1.07 GB, free: 6.48 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001064/1.213, allocations: 40.55 kB / 1.07 GB, free: 6.445 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001489/1.214, allocations: 0.5236 MB / 1.07 GB, free: 6.098 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005581/1.22, allocations: 2.833 MB / 1.073 GB, free: 3.48 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001436/1.221, allocations: 0.5443 MB / 1.074 GB, free: 3.094 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006004/1.222, allocations: 247.2 kB / 1.074 GB, free: 2.934 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006227/1.223, allocations: 0.5611 MB / 1.074 GB, free: 2.246 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009366/1.223, allocations: 389 kB / 1.075 GB, free: 1.945 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=49): time 3.196e-06/1.223, allocations: 0 / 1.075 GB, free: 1.945 MB / 0.6823 GB Notification: Performance of matching and sorting (n=49): time 0.001519/1.225, allocations: 0.5103 MB / 1.075 GB, free: 1.566 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.972e-05/1.225, allocations: 89.23 kB / 1.075 GB, free: 1.465 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000563/1.226, allocations: 295.6 kB / 1.076 GB, free: 1.223 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 0.0001253/1.226, allocations: 39.89 kB / 1.076 GB, free: 1.188 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002884/1.226, allocations: 286.1 kB / 1.076 GB, free: 0.9688 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002237/1.226, allocations: 151.8 kB / 1.076 GB, free: 0.8398 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.618e-05/1.226, allocations: 14.44 kB / 1.076 GB, free: 0.8359 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001726/1.227, allocations: 360.3 kB / 1.076 GB, free: 0.4922 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005899/1.227, allocations: 220.9 kB / 1.077 GB, free: 372 kB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007106/1.228, allocations: 343.2 kB / 1.077 GB, free: 84 kB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007445/1.229, allocations: 285.6 kB / 1.077 GB, free: 15.88 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.851e-06/1.229, allocations: 0 / 1.077 GB, free: 15.88 MB / 0.698 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001777/1.231, allocations: 0.6499 MB / 1.078 GB, free: 15.4 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004885/1.231, allocations: 1.076 MB / 1.079 GB, free: 14.26 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.329e-05/1.231, allocations: 0 / 1.079 GB, free: 14.26 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.264e-05/1.231, allocations: 8 kB / 1.079 GB, free: 14.25 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001128/1.232, allocations: 122.7 kB / 1.079 GB, free: 14.14 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.94e-05/1.232, allocations: 8 kB / 1.079 GB, free: 14.13 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000968/1.233, allocations: 66.12 kB / 1.079 GB, free: 14.07 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.701e-05/1.233, allocations: 22.62 kB / 1.079 GB, free: 14.05 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.759e-05/1.233, allocations: 4 kB / 1.079 GB, free: 14.05 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001484/1.235, allocations: 0.5459 MB / 1.08 GB, free: 13.67 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.098e-05/1.235, allocations: 3.953 kB / 1.08 GB, free: 13.66 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.096e-05/1.235, allocations: 8 kB / 1.08 GB, free: 13.66 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008985/1.236, allocations: 107.4 kB / 1.08 GB, free: 13.55 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.266e-05/1.236, allocations: 11.94 kB / 1.08 GB, free: 13.54 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008133/1.237, allocations: 73.61 kB / 1.08 GB, free: 13.48 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.487e-05/1.237, allocations: 23.19 kB / 1.08 GB, free: 13.46 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 () * 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.0002793/1.237, allocations: 148.1 kB / 1.08 GB, free: 13.33 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001399/1.237, allocations: 43.53 kB / 1.08 GB, free: 13.29 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001581/1.239, allocations: 0.5597 MB / 1.081 GB, free: 12.9 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.381e-05/1.239, allocations: 8 kB / 1.081 GB, free: 12.89 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.334e-06/1.239, allocations: 0 / 1.081 GB, free: 12.89 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.143e-05/1.239, allocations: 7.984 kB / 1.081 GB, free: 12.89 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001237/1.24, allocations: 0.6207 MB / 1.081 GB, free: 12.38 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.421e-06/1.24, allocations: 4 kB / 1.081 GB, free: 12.37 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00104/1.241, allocations: 91.17 kB / 1.081 GB, free: 12.29 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.334e-05/1.241, allocations: 7.938 kB / 1.081 GB, free: 12.28 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.131e-05/1.241, allocations: 11.06 kB / 1.081 GB, free: 12.27 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.576e-06/1.241, allocations: 3.953 kB / 1.081 GB, free: 12.27 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.474e-06/1.241, allocations: 0 / 1.081 GB, free: 12.27 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002126/1.244, allocations: 0.8718 MB / 1.082 GB, free: 11.65 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004261/1.244, allocations: 181.2 kB / 1.082 GB, free: 11.47 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001254/1.244, allocations: 15.95 kB / 1.082 GB, free: 11.46 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006594/1.245, allocations: 39.94 kB / 1.082 GB, free: 11.42 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002219/1.245, allocations: 52.36 kB / 1.082 GB, free: 11.37 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.841e-05/1.245, allocations: 16 kB / 1.082 GB, free: 11.35 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0004673/1.246, allocations: 242.2 kB / 1.083 GB, free: 11.12 MB / 0.698 GB Notification: Performance of sort global known variables: time 5.11e-07/1.246, allocations: 0 / 1.083 GB, free: 11.12 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.001199/1.247, allocations: 275.1 kB / 1.083 GB, free: 10.85 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.002719/1.25, allocations: 1.525 MB / 1.084 GB, free: 9.289 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.002379/1.252, allocations: 0.9401 MB / 1.085 GB, free: 8.32 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 9.699e-06/1.252, allocations: 5 kB / 1.085 GB, free: 8.316 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0007253/1.253, allocations: 262.4 kB / 1.086 GB, free: 8.062 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001463/1.254, allocations: 158.5 kB / 1.086 GB, free: 7.906 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00305/1.257, allocations: 0.9459 MB / 1.087 GB, free: 6.918 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006529/1.258, allocations: 0.9074 MB / 1.088 GB, free: 5.984 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.001128/1.259, allocations: 160.5 kB / 1.088 GB, free: 5.824 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005011/1.26, allocations: 183.4 kB / 1.088 GB, free: 5.645 MB / 0.698 GB Notification: Performance of SimCode: time 1.633e-06/1.26, allocations: 0 / 1.088 GB, free: 5.645 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0607/1.321, allocations: 12.48 MB / 1.1 GB, free: 9.375 MB / 0.7136 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003005/1.321, allocations: 179 kB / 1.1 GB, free: 9.152 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.884/4.205, allocations: 2.344 kB / 1.1 GB, free: 9.152 MB / 0.7136 GB