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.916/2.916, allocations: 287.3 MB / 302.3 MB, free: 8.23 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.001523/0.001523, allocations: 189 kB / 370.8 MB, free: 10.85 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.257/2.257, allocations: 205.4 MB / 0.6295 GB, free: 10.62 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001171/0.001171, allocations: 99.73 kB / 0.7428 GB, free: 6.625 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004835/0.0004834, allocations: 15.25 kB / 0.8657 GB, free: 140.3 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2276/0.2281, allocations: 115.3 MB / 0.9783 GB, free: 28.3 MB / 0.6198 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9617/1.19, allocations: 156.7 MB / 1.131 GB, free: 15.61 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003359/1.19, allocations: 97.91 kB / 1.131 GB, free: 15.61 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.1053/1.296, allocations: 27.33 MB / 1.158 GB, free: 19.06 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.695e-06/1.296, allocations: 0 / 1.158 GB, free: 19.06 MB / 0.698 GB Notification: Performance of Transformations before backend: time 4.759e-05/1.296, allocations: 19.94 kB / 1.158 GB, free: 19.04 MB / 0.698 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.002437/1.298, allocations: 0.8814 MB / 1.159 GB, free: 18.15 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.66e-05/1.298, allocations: 12.02 kB / 1.159 GB, free: 18.14 MB / 0.698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001913/1.299, allocations: 97.45 kB / 1.159 GB, free: 18.06 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001336/1.3, allocations: 147 kB / 1.159 GB, free: 17.92 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008969/1.301, allocations: 445.2 kB / 1.16 GB, free: 17.51 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.941e-05/1.301, allocations: 41.95 kB / 1.16 GB, free: 17.49 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001328/1.301, allocations: 54.23 kB / 1.16 GB, free: 17.45 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001682/1.303, allocations: 0.678 MB / 1.16 GB, free: 16.94 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.645e-05/1.303, allocations: 7.922 kB / 1.16 GB, free: 16.93 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.168e-05/1.303, allocations: 24.88 kB / 1.16 GB, free: 16.92 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.032e-05/1.303, allocations: 43.72 kB / 1.16 GB, free: 16.89 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001663/1.305, allocations: 0.578 MB / 1.161 GB, free: 16.49 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005069/1.31, allocations: 2.827 MB / 1.164 GB, free: 13.9 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001793/1.312, allocations: 0.5929 MB / 1.164 GB, free: 13.46 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000623/1.312, allocations: 0.5621 MB / 1.165 GB, free: 12.78 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001105/1.313, allocations: 408.2 kB / 1.165 GB, free: 12.46 MB / 0.698 GB Notification: Performance of pre-optimization done (n=49): time 2.845e-06/1.313, allocations: 0 / 1.165 GB, free: 12.46 MB / 0.698 GB Notification: Performance of matching and sorting (n=49): time 0.002915/1.316, allocations: 0.7773 MB / 1.166 GB, free: 11.9 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.898e-05/1.316, allocations: 81.55 kB / 1.166 GB, free: 11.8 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005801/1.317, allocations: 305.9 kB / 1.166 GB, free: 11.55 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 0.0001664/1.317, allocations: 41.39 kB / 1.166 GB, free: 11.52 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003131/1.317, allocations: 284 kB / 1.167 GB, free: 11.3 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002429/1.318, allocations: 156.8 kB / 1.167 GB, free: 11.17 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.545e-05/1.318, allocations: 15.12 kB / 1.167 GB, free: 11.17 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001783/1.318, allocations: 354.1 kB / 1.167 GB, free: 10.83 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008047/1.319, allocations: 242.9 kB / 1.167 GB, free: 10.68 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009087/1.32, allocations: 370 kB / 1.168 GB, free: 10.38 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008381/1.321, allocations: 299.6 kB / 1.168 GB, free: 10.18 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.51e-06/1.321, allocations: 0 / 1.168 GB, free: 10.18 MB / 0.698 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.002066/1.323, allocations: 0.7095 MB / 1.169 GB, free: 9.66 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005331/1.323, allocations: 1.085 MB / 1.17 GB, free: 8.508 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.483e-05/1.323, allocations: 4 kB / 1.17 GB, free: 8.504 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.783e-05/1.323, allocations: 4 kB / 1.17 GB, free: 8.5 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001052/1.324, allocations: 115.3 kB / 1.17 GB, free: 8.391 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.757e-05/1.324, allocations: 4 kB / 1.17 GB, free: 8.387 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009031/1.325, allocations: 70.75 kB / 1.17 GB, free: 8.324 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.472e-05/1.325, allocations: 22.19 kB / 1.17 GB, free: 8.309 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.326e-05/1.325, allocations: 4 kB / 1.17 GB, free: 8.305 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001853/1.327, allocations: 0.5965 MB / 1.171 GB, free: 7.891 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.565e-05/1.327, allocations: 7.984 kB / 1.171 GB, free: 7.883 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.524e-05/1.327, allocations: 4 kB / 1.171 GB, free: 7.879 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00091/1.328, allocations: 114.9 kB / 1.171 GB, free: 7.77 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.694e-05/1.328, allocations: 7.938 kB / 1.171 GB, free: 7.762 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008399/1.329, allocations: 73.3 kB / 1.171 GB, free: 7.699 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.866e-05/1.329, allocations: 20.31 kB / 1.171 GB, free: 7.684 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 () * Number of clocked 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.0005903/1.33, allocations: 292.3 kB / 1.171 GB, free: 7.438 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001511/1.33, allocations: 47.52 kB / 1.171 GB, free: 7.391 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001933/1.332, allocations: 0.6069 MB / 1.172 GB, free: 6.977 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.312e-05/1.332, allocations: 7.953 kB / 1.172 GB, free: 6.969 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.478e-06/1.332, allocations: 7.938 kB / 1.172 GB, free: 6.961 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.344e-05/1.332, allocations: 7.984 kB / 1.172 GB, free: 6.953 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001216/1.333, allocations: 0.6245 MB / 1.172 GB, free: 6.449 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.3e-06/1.333, allocations: 0 / 1.172 GB, free: 6.449 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009634/1.334, allocations: 95.48 kB / 1.173 GB, free: 6.359 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.151e-05/1.334, allocations: 4 kB / 1.173 GB, free: 6.355 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.361e-05/1.334, allocations: 11 kB / 1.173 GB, free: 6.352 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.957e-06/1.334, allocations: 4 kB / 1.173 GB, free: 6.348 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.392e-06/1.334, allocations: 7.891 kB / 1.173 GB, free: 6.34 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002668/1.337, allocations: 0.9286 MB / 1.173 GB, free: 5.676 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003878/1.338, allocations: 176.8 kB / 1.174 GB, free: 5.508 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001248/1.338, allocations: 18.44 kB / 1.174 GB, free: 5.5 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006275/1.338, allocations: 39.09 kB / 1.174 GB, free: 5.469 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002057/1.339, allocations: 54.36 kB / 1.174 GB, free: 5.426 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.704e-05/1.339, allocations: 15.56 kB / 1.174 GB, free: 5.414 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0004407/1.339, allocations: 245.4 kB / 1.174 GB, free: 5.219 MB / 0.698 GB Notification: Performance of sort global known variables: time 3.61e-07/1.339, allocations: 0 / 1.174 GB, free: 5.219 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.001162/1.34, allocations: 279.3 kB / 1.174 GB, free: 4.969 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) * Number of clocked states: 0 () * 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.003176/1.343, allocations: 1.594 MB / 1.176 GB, free: 3.645 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.002827/1.346, allocations: 1.003 MB / 1.177 GB, free: 2.891 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 6.993e-06/1.346, allocations: 3.938 kB / 1.177 GB, free: 2.887 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0009184/1.347, allocations: 284.2 kB / 1.177 GB, free: 2.688 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001352/1.349, allocations: 161.1 kB / 1.177 GB, free: 2.562 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008995/1.358, allocations: 4.79 MB / 1.182 GB, free: 14.26 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006445/1.358, allocations: 0.9068 MB / 1.183 GB, free: 13.34 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 0.001033/1.359, allocations: 148.4 kB / 1.183 GB, free: 13.2 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004644/1.36, allocations: 193.5 kB / 1.183 GB, free: 13.14 MB / 0.7136 GB Notification: Performance of SimCode: time 1.603e-06/1.36, allocations: 3.938 kB / 1.183 GB, free: 13.13 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0454/1.405, allocations: 11.92 MB / 1.195 GB, free: 1.445 MB / 0.7136 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004239/1.406, allocations: 191.4 kB / 1.195 GB, free: 1.207 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.992/4.398, allocations: 0 / 1.195 GB, free: 1.207 MB / 0.7136 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)