Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery,fileNamePrefix="Buildings_8_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_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.1.4-maint.8.1.x/package.mo): time 1.797/1.797, allocations: 289.9 MB / 297.4 MB, free: 6.344 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.001325/0.001325, allocations: 176.9 kB / 366.7 MB, free: 1.656 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.56/1.56, allocations: 205.2 MB / 0.626 GB, free: 7.195 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.0008848/0.0008848, allocations: 80.64 kB / 0.74 GB, free: 39.57 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 3.682e-05/3.697e-05, allocations: 7.984 kB / 0.8598 GB, free: 12.98 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7169/0.7169, allocations: 116.3 MB / 0.9734 GB, free: 76.06 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2191/0.9361, allocations: 157 MB / 1.127 GB, free: 9.109 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002807/0.9364, allocations: 95.92 kB / 1.127 GB, free: 9.016 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 0.06896/1.005, allocations: 27.35 MB / 1.153 GB, free: 13.6 MB / 0.7605 GB Notification: Performance of FrontEnd: time 1.312e-06/1.005, allocations: 0 / 1.153 GB, free: 13.6 MB / 0.7605 GB Notification: Performance of Transformations before backend: time 3.156e-05/1.005, allocations: 12 kB / 1.153 GB, free: 13.59 MB / 0.7605 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.001452/1.007, allocations: 0.8185 MB / 1.154 GB, free: 12.71 MB / 0.7605 GB Notification: Performance of prepare preOptimizeDAE: time 4.016e-05/1.007, allocations: 8.031 kB / 1.154 GB, free: 12.7 MB / 0.7605 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008141/1.008, allocations: 151.1 kB / 1.154 GB, free: 12.55 MB / 0.7605 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005903/1.008, allocations: 439.1 kB / 1.155 GB, free: 12.08 MB / 0.7605 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.753e-05/1.008, allocations: 16 kB / 1.155 GB, free: 12.07 MB / 0.7605 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.99e-05/1.009, allocations: 35.98 kB / 1.155 GB, free: 12.03 MB / 0.7605 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007053/1.009, allocations: 453.8 kB / 1.155 GB, free: 11.59 MB / 0.7605 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008981/1.01, allocations: 0.5832 MB / 1.156 GB, free: 10.98 MB / 0.7605 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.587e-05/1.01, allocations: 4 kB / 1.156 GB, free: 10.98 MB / 0.7605 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.113e-05/1.01, allocations: 4 kB / 1.156 GB, free: 10.97 MB / 0.7605 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.908e-05/1.01, allocations: 45.28 kB / 1.156 GB, free: 10.93 MB / 0.7605 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00293/1.013, allocations: 2.727 MB / 1.159 GB, free: 7.988 MB / 0.7605 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007437/1.014, allocations: 0.5212 MB / 1.159 GB, free: 7.445 MB / 0.7605 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002889/1.014, allocations: 225.6 kB / 1.159 GB, free: 7.219 MB / 0.7605 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004285/1.015, allocations: 0.57 MB / 1.16 GB, free: 6.52 MB / 0.7605 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005123/1.015, allocations: 370.9 kB / 1.16 GB, free: 6.141 MB / 0.7605 GB Notification: Performance of pre-optimization done (n=49): time 1.674e-06/1.015, allocations: 0 / 1.16 GB, free: 6.141 MB / 0.7605 GB Notification: Performance of matching and sorting (n=49): time 0.0008052/1.016, allocations: 499.4 kB / 1.161 GB, free: 5.648 MB / 0.7605 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.201e-05/1.016, allocations: 85.48 kB / 1.161 GB, free: 5.547 MB / 0.7605 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002776/1.016, allocations: 286.3 kB / 1.161 GB, free: 5.266 MB / 0.7605 GB Notification: Performance of collectPreVariables (initialization): time 5.136e-05/1.016, allocations: 37.69 kB / 1.161 GB, free: 5.223 MB / 0.7605 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001703/1.017, allocations: 276.6 kB / 1.161 GB, free: 4.945 MB / 0.7605 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001178/1.017, allocations: 149.8 kB / 1.162 GB, free: 4.797 MB / 0.7605 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.778e-05/1.017, allocations: 0 / 1.162 GB, free: 4.797 MB / 0.7605 GB Notification: Performance of setup shared object (initialization): time 0.000129/1.017, allocations: 358.2 kB / 1.162 GB, free: 4.441 MB / 0.7605 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003015/1.017, allocations: 209.1 kB / 1.162 GB, free: 4.234 MB / 0.7605 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003912/1.018, allocations: 326 kB / 1.162 GB, free: 3.871 MB / 0.7605 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003769/1.018, allocations: 249.5 kB / 1.163 GB, free: 3.629 MB / 0.7605 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/1.018, allocations: 0 / 1.163 GB, free: 3.629 MB / 0.7605 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0008812/1.019, allocations: 0.585 MB / 1.163 GB, free: 3.039 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003765/1.019, allocations: 1.088 MB / 1.164 GB, free: 1.863 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.656e-06/1.019, allocations: 4 kB / 1.164 GB, free: 1.859 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.702e-05/1.019, allocations: 4 kB / 1.164 GB, free: 1.855 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005301/1.02, allocations: 119.8 kB / 1.164 GB, free: 1.738 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.588e-06/1.02, allocations: 11.88 kB / 1.164 GB, free: 1.727 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000439/1.02, allocations: 67.53 kB / 1.164 GB, free: 1.66 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.312e-05/1.02, allocations: 20 kB / 1.164 GB, free: 1.641 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 9.247e-06/1.02, allocations: 5.094 kB / 1.164 GB, free: 1.637 MB / 0.7605 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007252/1.021, allocations: 464.2 kB / 1.165 GB, free: 1.184 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.648e-06/1.021, allocations: 2.188 kB / 1.165 GB, free: 1.184 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.757e-06/1.021, allocations: 8.25 kB / 1.165 GB, free: 1.176 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004331/1.022, allocations: 107.8 kB / 1.165 GB, free: 1.07 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.584e-06/1.022, allocations: 11.94 kB / 1.165 GB, free: 1.059 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003633/1.022, allocations: 55.62 kB / 1.165 GB, free: 1.004 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.795e-05/1.022, allocations: 19.95 kB / 1.165 GB, free: 0.9844 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.0001349/1.022, allocations: 134.8 kB / 1.165 GB, free: 0.8516 MB / 0.7605 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0006936/1.023, allocations: 491.4 kB / 1.166 GB, free: 372 kB / 0.7605 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.317e-05/1.023, allocations: 47.52 kB / 1.166 GB, free: 324 kB / 0.7605 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008508/1.024, allocations: 0.5308 MB / 1.166 GB, free: 15.77 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.791e-06/1.024, allocations: 4 kB / 1.166 GB, free: 15.77 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.424e-06/1.024, allocations: 4 kB / 1.166 GB, free: 15.77 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.496e-06/1.024, allocations: 7.969 kB / 1.166 GB, free: 15.76 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005746/1.024, allocations: 0.5409 MB / 1.167 GB, free: 15.18 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.903e-06/1.024, allocations: 0 / 1.167 GB, free: 15.18 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004864/1.025, allocations: 91.89 kB / 1.167 GB, free: 15.09 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.531e-06/1.025, allocations: 4 kB / 1.167 GB, free: 15.09 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.59e-05/1.025, allocations: 10.55 kB / 1.167 GB, free: 15.08 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.505e-06/1.025, allocations: 4 kB / 1.167 GB, free: 15.07 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.435e-06/1.025, allocations: 0 / 1.167 GB, free: 15.07 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001139/1.026, allocations: 0.8423 MB / 1.168 GB, free: 14.21 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002036/1.026, allocations: 171.1 kB / 1.168 GB, free: 14.02 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.406e-05/1.026, allocations: 8 kB / 1.168 GB, free: 14.02 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003175/1.027, allocations: 31.94 kB / 1.168 GB, free: 13.98 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001248/1.027, allocations: 48.33 kB / 1.168 GB, free: 13.94 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.652e-05/1.027, allocations: 27.92 kB / 1.168 GB, free: 13.91 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 0.0002121/1.027, allocations: 216.6 kB / 1.168 GB, free: 13.7 MB / 0.7761 GB Notification: Performance of sort global known variables: time 1.71e-07/1.027, allocations: 0 / 1.168 GB, free: 13.7 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0006613/1.028, allocations: 259 kB / 1.168 GB, free: 13.45 MB / 0.7761 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.00152/1.029, allocations: 1.474 MB / 1.17 GB, free: 11.94 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.001127/1.031, allocations: 0.8978 MB / 1.171 GB, free: 11.02 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/1.031, allocations: 0 / 1.171 GB, free: 11.02 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 0.0003385/1.031, allocations: 257.5 kB / 1.171 GB, free: 10.77 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007349/1.032, allocations: 147.3 kB / 1.171 GB, free: 10.63 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001577/1.033, allocations: 0.899 MB / 1.172 GB, free: 9.691 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004533/1.034, allocations: 0.908 MB / 1.173 GB, free: 8.758 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 0.0005743/1.034, allocations: 170.7 kB / 1.173 GB, free: 8.602 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002792/1.035, allocations: 183.4 kB / 1.173 GB, free: 8.422 MB / 0.7761 GB Notification: Performance of SimCode: time 2.31e-07/1.035, allocations: 0 / 1.173 GB, free: 8.422 MB / 0.7761 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03225/1.067, allocations: 11.81 MB / 1.185 GB, free: 12.84 MB / 0.7917 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001773/1.067, allocations: 154.1 kB / 1.185 GB, free: 12.64 MB / 0.7917 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.373/3.44, allocations: 4.984 kB / 1.185 GB, free: 12.64 MB / 0.7917 GB (rm -f Buildings_8_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe ; mkfifo Buildings_8_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe ; head -c 1048576 < Buildings_8_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe >> ../files/Buildings_8_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Electrical_AC_OnePhase_Storage_Examples_AcBattery_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Electrical_AC_OnePhase_Storage_Examples_AcBattery.fmu > Buildings_8_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe 2>&1)