Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) 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.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Electrical_AC_ThreePhasesBalanced_Storage_Examples_AcBattery",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery,fileNamePrefix="Buildings_maint_7_0_x_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.3-maint.7.0.x/package.mo): time 1.508/1.508, allocations: 249.3 MB / 261.8 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.00114/0.00114, allocations: 172.9 kB / 321.3 MB, free: 14.67 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.673/1.673, allocations: 205.2 MB / 0.572 GB, free: 10.61 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.0008743/0.0008744, allocations: 89.23 kB / 0.6764 GB, free: 15.59 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 3.481e-05/3.482e-05, allocations: 0 / 0.788 GB, free: 97.01 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.221/0.221, allocations: 106.3 MB / 0.8919 GB, free: 6.574 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.796/1.017, allocations: 151.8 MB / 1.04 GB, free: 360 kB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003668/1.017, allocations: 97.44 kB / 1.04 GB, free: 304 kB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 0.07731/1.095, allocations: 29.37 MB / 1.069 GB, free: 7.684 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.733e-06/1.095, allocations: 0 / 1.069 GB, free: 7.684 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 3.27e-05/1.095, allocations: 19.31 kB / 1.069 GB, free: 7.668 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.00201/1.097, allocations: 0.8125 MB / 1.07 GB, free: 6.84 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 5.705e-05/1.097, allocations: 16.03 kB / 1.07 GB, free: 6.824 MB / 0.6823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000159/1.097, allocations: 89.02 kB / 1.07 GB, free: 6.758 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00142/1.099, allocations: 143.1 kB / 1.07 GB, free: 6.617 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009984/1.1, allocations: 443.4 kB / 1.07 GB, free: 6.203 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.77e-05/1.1, allocations: 43.17 kB / 1.07 GB, free: 6.176 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001324/1.1, allocations: 53.44 kB / 1.071 GB, free: 6.141 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001578/1.101, allocations: 0.6502 MB / 1.071 GB, free: 5.648 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.946e-05/1.101, allocations: 0 / 1.071 GB, free: 5.648 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.769e-05/1.102, allocations: 28.61 kB / 1.071 GB, free: 5.637 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.663e-05/1.102, allocations: 36.48 kB / 1.071 GB, free: 5.605 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001279/1.103, allocations: 0.5299 MB / 1.072 GB, free: 5.254 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004984/1.108, allocations: 2.836 MB / 1.074 GB, free: 2.633 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001334/1.109, allocations: 0.5466 MB / 1.075 GB, free: 2.242 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000517/1.11, allocations: 246.3 kB / 1.075 GB, free: 2.086 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006083/1.11, allocations: 0.5575 MB / 1.076 GB, free: 1.402 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008834/1.111, allocations: 395.3 kB / 1.076 GB, free: 1.094 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=49): time 4.207e-06/1.111, allocations: 0 / 1.076 GB, free: 1.094 MB / 0.6823 GB Notification: Performance of matching and sorting (n=49): time 0.001412/1.113, allocations: 0.509 MB / 1.077 GB, free: 0.7188 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.258e-05/1.113, allocations: 81.55 kB / 1.077 GB, free: 0.6211 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005377/1.113, allocations: 300.7 kB / 1.077 GB, free: 388 kB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 7.909e-05/1.114, allocations: 42.73 kB / 1.077 GB, free: 348 kB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.000281/1.114, allocations: 280.5 kB / 1.077 GB, free: 132 kB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002047/1.114, allocations: 154.9 kB / 1.077 GB, free: 15.99 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.596e-05/1.114, allocations: 14.06 kB / 1.078 GB, free: 15.99 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001773/1.114, allocations: 352.4 kB / 1.078 GB, free: 15.66 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005231/1.115, allocations: 220.1 kB / 1.078 GB, free: 15.53 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000683/1.116, allocations: 340.7 kB / 1.078 GB, free: 15.25 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005894/1.116, allocations: 285.3 kB / 1.079 GB, free: 15.05 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.742e-06/1.116, allocations: 3.953 kB / 1.079 GB, free: 15.05 MB / 0.698 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.00141/1.118, allocations: 0.6512 MB / 1.079 GB, free: 14.57 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004847/1.118, allocations: 1.077 MB / 1.08 GB, free: 13.42 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.32e-05/1.118, allocations: 0 / 1.08 GB, free: 13.42 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.557e-05/1.118, allocations: 11.94 kB / 1.08 GB, free: 13.41 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007296/1.119, allocations: 111.5 kB / 1.08 GB, free: 13.3 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.882e-05/1.119, allocations: 11.94 kB / 1.08 GB, free: 13.29 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000685/1.12, allocations: 73.56 kB / 1.081 GB, free: 13.23 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.048e-05/1.12, allocations: 19.69 kB / 1.081 GB, free: 13.21 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.482e-05/1.12, allocations: 5.094 kB / 1.081 GB, free: 13.21 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001175/1.121, allocations: 0.5442 MB / 1.081 GB, free: 12.82 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.43e-06/1.121, allocations: 0 / 1.081 GB, free: 12.82 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.749e-05/1.121, allocations: 12.2 kB / 1.081 GB, free: 12.8 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006155/1.122, allocations: 115.7 kB / 1.081 GB, free: 12.69 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.216e-05/1.122, allocations: 8 kB / 1.081 GB, free: 12.68 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000605/1.122, allocations: 63.92 kB / 1.081 GB, free: 12.62 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.218e-05/1.122, allocations: 20.05 kB / 1.081 GB, free: 12.6 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.0002306/1.123, allocations: 152.7 kB / 1.081 GB, free: 12.45 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001173/1.123, allocations: 47.53 kB / 1.082 GB, free: 12.4 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001389/1.124, allocations: 0.5672 MB / 1.082 GB, free: 11.82 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.149e-05/1.124, allocations: 7.953 kB / 1.082 GB, free: 11.82 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/1.124, allocations: 4 kB / 1.082 GB, free: 11.81 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.099e-05/1.124, allocations: 3.984 kB / 1.082 GB, free: 11.81 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00104/1.125, allocations: 0.6263 MB / 1.083 GB, free: 11.13 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.222e-06/1.125, allocations: 7.938 kB / 1.083 GB, free: 11.12 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000716/1.126, allocations: 95.86 kB / 1.083 GB, free: 11.03 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.069e-05/1.126, allocations: 4 kB / 1.083 GB, free: 11.03 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.04e-05/1.126, allocations: 8 kB / 1.083 GB, free: 11.02 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.418e-06/1.126, allocations: 0 / 1.083 GB, free: 11.02 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.478e-06/1.126, allocations: 3.953 kB / 1.083 GB, free: 11.02 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001876/1.128, allocations: 0.8657 MB / 1.084 GB, free: 10.12 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003523/1.128, allocations: 184.5 kB / 1.084 GB, free: 9.926 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00011/1.128, allocations: 15.98 kB / 1.084 GB, free: 9.91 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004987/1.129, allocations: 39.91 kB / 1.084 GB, free: 9.871 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001905/1.129, allocations: 52.36 kB / 1.084 GB, free: 9.82 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.404e-05/1.129, allocations: 12 kB / 1.084 GB, free: 9.809 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.000396/1.13, allocations: 242.2 kB / 1.084 GB, free: 9.574 MB / 0.698 GB Notification: Performance of sort global known variables: time 2.41e-07/1.13, allocations: 0 / 1.084 GB, free: 9.574 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.001314/1.131, allocations: 283.1 kB / 1.084 GB, free: 9.297 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.00251/1.133, allocations: 1.52 MB / 1.086 GB, free: 7.738 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.00215/1.136, allocations: 0.9442 MB / 1.087 GB, free: 6.766 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 4.618e-06/1.136, allocations: 0 / 1.087 GB, free: 6.766 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0006119/1.136, allocations: 266.4 kB / 1.087 GB, free: 6.508 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001217/1.137, allocations: 153.4 kB / 1.087 GB, free: 6.359 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00279/1.14, allocations: 0.9458 MB / 1.088 GB, free: 5.371 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006235/1.141, allocations: 0.9035 MB / 1.089 GB, free: 4.441 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.001019/1.142, allocations: 161 kB / 1.089 GB, free: 4.281 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004584/1.142, allocations: 187.4 kB / 1.089 GB, free: 4.098 MB / 0.698 GB Notification: Performance of SimCode: time 7.52e-07/1.142, allocations: 0 / 1.089 GB, free: 4.098 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03971/1.182, allocations: 12.48 MB / 1.102 GB, free: 7.812 MB / 0.7136 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002699/1.182, allocations: 182.8 kB / 1.102 GB, free: 7.59 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.233/3.415, allocations: 0 / 1.102 GB, free: 7.59 MB / 0.7136 GB (rm -f Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Electrical_AC_ThreePhasesBalanced_Storage_Examples_AcBattery_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Electrical_AC_ThreePhasesBalanced_Storage_Examples_AcBattery.fmu > Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe 2>&1)