Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery,fileNamePrefix="Buildings_8_0_0_Buildings_Electrical_AC_OnePhase_Storage_Examples_AcBattery",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery,fileNamePrefix="Buildings_8_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 8.0.0/package.mo): time 2.553/2.553, allocations: 284.9 MB / 292.4 MB, free: 10.54 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001479/0.001479, allocations: 184.9 kB / 360.6 MB, free: 7.27 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.079/2.079, allocations: 205.3 MB / 0.6191 GB, free: 12.2 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001339/0.001339, allocations: 91.78 kB / 0.7321 GB, free: 44.71 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 3.026e-05/3.014e-05, allocations: 7.984 kB / 0.8509 GB, free: 3.324 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9341/0.9342, allocations: 115.3 MB / 0.9634 GB, free: 78.48 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.3664/1.301, allocations: 155.9 MB / 1.116 GB, free: 472 kB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000494/1.301, allocations: 94.33 kB / 1.116 GB, free: 380 kB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 0.169/1.47, allocations: 27.08 MB / 1.142 GB, free: 5.25 MB / 0.7448 GB Notification: Performance of FrontEnd: time 2.484e-06/1.47, allocations: 0 / 1.142 GB, free: 5.25 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 6.004e-05/1.47, allocations: 16 kB / 1.142 GB, free: 5.234 MB / 0.7448 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.002642/1.473, allocations: 0.8224 MB / 1.143 GB, free: 4.359 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 5.861e-05/1.473, allocations: 12.03 kB / 1.143 GB, free: 4.348 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001553/1.475, allocations: 154.2 kB / 1.143 GB, free: 4.199 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001161/1.476, allocations: 439.1 kB / 1.144 GB, free: 3.727 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.664e-05/1.476, allocations: 21.39 kB / 1.144 GB, free: 3.707 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001452/1.476, allocations: 28 kB / 1.144 GB, free: 3.68 MB / 0.7448 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001338/1.478, allocations: 450.5 kB / 1.144 GB, free: 3.238 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001505/1.479, allocations: 0.591 MB / 1.145 GB, free: 2.617 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.317e-05/1.479, allocations: 0 / 1.145 GB, free: 2.617 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.277e-05/1.479, allocations: 0 / 1.145 GB, free: 2.617 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001012/1.479, allocations: 45.28 kB / 1.145 GB, free: 2.57 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005819/1.485, allocations: 2.731 MB / 1.147 GB, free: 15.62 MB / 0.7605 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001405/1.487, allocations: 0.5212 MB / 1.148 GB, free: 15.08 MB / 0.7605 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005847/1.487, allocations: 233.6 kB / 1.148 GB, free: 14.85 MB / 0.7605 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007242/1.488, allocations: 0.5544 MB / 1.149 GB, free: 14.16 MB / 0.7605 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009649/1.489, allocations: 374.9 kB / 1.149 GB, free: 13.78 MB / 0.7605 GB Notification: Performance of pre-optimization done (n=49): time 3.357e-06/1.489, allocations: 0 / 1.149 GB, free: 13.78 MB / 0.7605 GB Notification: Performance of matching and sorting (n=49): time 0.001466/1.49, allocations: 497.4 kB / 1.15 GB, free: 13.29 MB / 0.7605 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.643e-05/1.491, allocations: 89.61 kB / 1.15 GB, free: 13.18 MB / 0.7605 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005033/1.491, allocations: 286.3 kB / 1.15 GB, free: 12.9 MB / 0.7605 GB Notification: Performance of collectPreVariables (initialization): time 0.0001077/1.491, allocations: 37.73 kB / 1.15 GB, free: 12.86 MB / 0.7605 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003123/1.492, allocations: 280.5 kB / 1.15 GB, free: 12.58 MB / 0.7605 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002158/1.492, allocations: 145.9 kB / 1.15 GB, free: 12.43 MB / 0.7605 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.636e-05/1.492, allocations: 0 / 1.15 GB, free: 12.43 MB / 0.7605 GB Notification: Performance of setup shared object (initialization): time 0.0001891/1.492, allocations: 358.8 kB / 1.151 GB, free: 12.07 MB / 0.7605 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005721/1.493, allocations: 209.1 kB / 1.151 GB, free: 11.87 MB / 0.7605 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006645/1.493, allocations: 326 kB / 1.151 GB, free: 11.51 MB / 0.7605 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006829/1.494, allocations: 241.7 kB / 1.151 GB, free: 11.27 MB / 0.7605 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.182e-06/1.494, allocations: 0 / 1.151 GB, free: 11.27 MB / 0.7605 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001657/1.496, allocations: 0.5925 MB / 1.152 GB, free: 10.68 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005612/1.496, allocations: 1.08 MB / 1.153 GB, free: 9.508 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.635e-05/1.496, allocations: 4 kB / 1.153 GB, free: 9.504 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.057e-05/1.496, allocations: 8 kB / 1.153 GB, free: 9.496 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001187/1.498, allocations: 111.8 kB / 1.153 GB, free: 9.387 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.015e-05/1.498, allocations: 11.92 kB / 1.153 GB, free: 9.375 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009851/1.499, allocations: 63.55 kB / 1.153 GB, free: 9.312 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.184e-05/1.499, allocations: 23.98 kB / 1.153 GB, free: 9.289 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 1.646e-05/1.499, allocations: 7.938 kB / 1.153 GB, free: 9.281 MB / 0.7605 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001382/1.5, allocations: 474.2 kB / 1.154 GB, free: 8.824 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.128e-05/1.5, allocations: 4 kB / 1.154 GB, free: 8.82 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.551e-05/1.5, allocations: 4 kB / 1.154 GB, free: 8.816 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009256/1.501, allocations: 112.1 kB / 1.154 GB, free: 8.707 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.364e-05/1.501, allocations: 7.984 kB / 1.154 GB, free: 8.699 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007957/1.502, allocations: 55.59 kB / 1.154 GB, free: 8.645 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.384e-05/1.502, allocations: 20 kB / 1.154 GB, free: 8.625 MB / 0.7605 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.0002622/1.502, allocations: 134.9 kB / 1.154 GB, free: 8.484 MB / 0.7605 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001368/1.504, allocations: 0.4916 MB / 1.155 GB, free: 7.988 MB / 0.7605 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001121/1.504, allocations: 43.53 kB / 1.155 GB, free: 7.945 MB / 0.7605 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001523/1.505, allocations: 0.5267 MB / 1.155 GB, free: 7.414 MB / 0.7605 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.441e-05/1.505, allocations: 11.94 kB / 1.155 GB, free: 7.402 MB / 0.7605 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.177e-06/1.505, allocations: 4 kB / 1.155 GB, free: 7.398 MB / 0.7605 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.678e-06/1.505, allocations: 0 / 1.155 GB, free: 7.398 MB / 0.7605 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001088/1.507, allocations: 0.5331 MB / 1.156 GB, free: 6.828 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.849e-06/1.507, allocations: 0 / 1.156 GB, free: 6.828 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001002/1.508, allocations: 105.9 kB / 1.156 GB, free: 6.727 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.004e-05/1.508, allocations: 0 / 1.156 GB, free: 6.727 MB / 0.7605 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.228e-05/1.508, allocations: 4 kB / 1.156 GB, free: 6.723 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.34e-06/1.508, allocations: 0 / 1.156 GB, free: 6.723 MB / 0.7605 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.262e-06/1.508, allocations: 4 kB / 1.156 GB, free: 6.719 MB / 0.7605 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00214/1.51, allocations: 0.8306 MB / 1.157 GB, free: 5.859 MB / 0.7605 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000436/1.51, allocations: 180.5 kB / 1.157 GB, free: 5.664 MB / 0.7605 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001241/1.51, allocations: 7.938 kB / 1.157 GB, free: 5.656 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006504/1.511, allocations: 35.94 kB / 1.157 GB, free: 5.621 MB / 0.7605 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001943/1.511, allocations: 52.31 kB / 1.157 GB, free: 5.57 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.608e-05/1.511, allocations: 16 kB / 1.157 GB, free: 5.555 MB / 0.7605 GB Notification: Performance of sorting global known variables: time 0.0003819/1.512, allocations: 224.6 kB / 1.157 GB, free: 5.336 MB / 0.7605 GB Notification: Performance of sort global known variables: time 4.61e-07/1.512, allocations: 0 / 1.157 GB, free: 5.336 MB / 0.7605 GB Notification: Performance of remove unused functions: time 0.001675/1.514, allocations: 243.1 kB / 1.157 GB, free: 5.098 MB / 0.7605 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.002793/1.516, allocations: 1.484 MB / 1.159 GB, free: 3.578 MB / 0.7605 GB Notification: Performance of simCode: created initialization part: time 0.002186/1.519, allocations: 0.8975 MB / 1.16 GB, free: 2.66 MB / 0.7605 GB Notification: Performance of simCode: created event and clocks part: time 9.037e-06/1.519, allocations: 4 kB / 1.16 GB, free: 2.656 MB / 0.7605 GB Notification: Performance of simCode: created simulation system equations: time 0.0006633/1.519, allocations: 257.5 kB / 1.16 GB, free: 2.406 MB / 0.7605 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001464/1.521, allocations: 150.1 kB / 1.16 GB, free: 2.27 MB / 0.7605 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002988/1.524, allocations: 0.8951 MB / 1.161 GB, free: 1.328 MB / 0.7605 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000702/1.525, allocations: 0.9074 MB / 1.162 GB, free: 404 kB / 0.7605 GB Notification: Performance of simCode: alias equations: time 0.001192/1.526, allocations: 162.4 kB / 1.162 GB, free: 248 kB / 0.7605 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005177/1.526, allocations: 187.3 kB / 1.162 GB, free: 60 kB / 0.7605 GB Notification: Performance of SimCode: time 1.052e-06/1.526, allocations: 0 / 1.162 GB, free: 60 kB / 0.7605 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07094/1.597, allocations: 11.82 MB / 1.174 GB, free: 4.465 MB / 0.7761 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003321/1.598, allocations: 156.6 kB / 1.174 GB, free: 4.27 MB / 0.7761 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.038/4.636, allocations: 4 kB / 1.174 GB, free: 4.266 MB / 0.7761 GB (rm -f Buildings_8.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe ; mkfifo Buildings_8.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe >> ../files/Buildings_8.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Electrical_AC_OnePhase_Storage_Examples_AcBattery_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Electrical_AC_OnePhase_Storage_Examples_AcBattery.fmu > Buildings_8.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe 2>&1)