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: translateModel(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery") translateModel(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.62/2.62, allocations: 287.5 MB / 303.2 MB, free: 8.219 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.002283/0.002283, allocations: 178.1 kB / 371.8 MB, free: 10.83 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.131/2.131, allocations: 205.4 MB / 0.6305 GB, free: 10.55 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.000945/0.0009449, allocations: 99.84 kB / 0.7438 GB, free: 6.543 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004922/0.0004923, allocations: 10.61 kB / 0.8667 GB, free: 140.4 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2118/0.2123, allocations: 115.3 MB / 0.9793 GB, free: 28.19 MB / 0.6198 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9838/1.196, allocations: 156.7 MB / 1.132 GB, free: 15.75 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003561/1.197, allocations: 102.3 kB / 1.132 GB, free: 15.75 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.1073/1.304, allocations: 27.38 MB / 1.159 GB, free: 18.86 MB / 0.698 GB Notification: Performance of FrontEnd: time 3.006e-06/1.304, allocations: 0 / 1.159 GB, free: 18.86 MB / 0.698 GB Notification: Performance of Transformations before backend: time 5.791e-05/1.304, allocations: 16 kB / 1.159 GB, free: 18.84 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.003287/1.307, allocations: 0.8719 MB / 1.16 GB, free: 17.95 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 5.397e-05/1.307, allocations: 8.031 kB / 1.16 GB, free: 17.95 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002192/1.31, allocations: 152 kB / 1.16 GB, free: 17.8 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001338/1.311, allocations: 454 kB / 1.161 GB, free: 17.38 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.252e-05/1.311, allocations: 41.95 kB / 1.161 GB, free: 17.36 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001867/1.311, allocations: 49.44 kB / 1.161 GB, free: 17.33 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002497/1.314, allocations: 0.6863 MB / 1.161 GB, free: 16.81 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.455e-05/1.314, allocations: 4.188 kB / 1.161 GB, free: 16.81 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001354/1.314, allocations: 25.86 kB / 1.161 GB, free: 16.8 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001135/1.314, allocations: 48.17 kB / 1.161 GB, free: 16.75 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002534/1.317, allocations: 0.5675 MB / 1.162 GB, free: 16.37 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007934/1.325, allocations: 2.835 MB / 1.165 GB, free: 13.77 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002805/1.328, allocations: 0.5893 MB / 1.165 GB, free: 13.34 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001211/1.329, allocations: 271.7 kB / 1.166 GB, free: 13.16 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008544/1.33, allocations: 0.5622 MB / 1.166 GB, free: 12.47 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001636/1.331, allocations: 412.3 kB / 1.167 GB, free: 12.14 MB / 0.698 GB Notification: Performance of pre-optimization done (n=49): time 5.109e-06/1.331, allocations: 0 / 1.167 GB, free: 12.14 MB / 0.698 GB Notification: Performance of matching and sorting (n=49): time 0.003844/1.335, allocations: 0.7736 MB / 1.167 GB, free: 11.59 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.663e-05/1.335, allocations: 89.53 kB / 1.167 GB, free: 11.48 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008339/1.336, allocations: 346.2 kB / 1.168 GB, free: 11.21 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 0.0001545/1.336, allocations: 48.44 kB / 1.168 GB, free: 11.16 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003875/1.337, allocations: 277.5 kB / 1.168 GB, free: 10.95 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002758/1.337, allocations: 152.1 kB / 1.168 GB, free: 10.83 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.583e-05/1.337, allocations: 14.75 kB / 1.168 GB, free: 10.82 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0002196/1.338, allocations: 356.8 kB / 1.169 GB, free: 10.48 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001191/1.339, allocations: 246.8 kB / 1.169 GB, free: 10.33 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001416/1.34, allocations: 378.2 kB / 1.169 GB, free: 10.02 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002473/1.343, allocations: 0.59 MB / 1.17 GB, free: 9.574 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.938e-06/1.343, allocations: 0 / 1.17 GB, free: 9.574 MB / 0.698 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.003237/1.346, allocations: 0.7132 MB / 1.17 GB, free: 9.051 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002121/1.346, allocations: 199 kB / 1.171 GB, free: 8.82 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.73e-05/1.346, allocations: 3.984 kB / 1.171 GB, free: 8.816 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.488e-05/1.346, allocations: 8 kB / 1.171 GB, free: 8.809 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001574/1.348, allocations: 114.2 kB / 1.171 GB, free: 8.703 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.652e-05/1.348, allocations: 12 kB / 1.171 GB, free: 8.691 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001336/1.349, allocations: 70.16 kB / 1.171 GB, free: 8.629 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001094/1.349, allocations: 23.06 kB / 1.171 GB, free: 8.613 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.854e-05/1.35, allocations: 6.344 kB / 1.171 GB, free: 8.609 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002854/1.352, allocations: 0.5901 MB / 1.171 GB, free: 8.199 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.606e-05/1.352, allocations: 4 kB / 1.171 GB, free: 8.195 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.054e-05/1.352, allocations: 7.938 kB / 1.171 GB, free: 8.188 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001418/1.354, allocations: 111.1 kB / 1.172 GB, free: 8.082 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.004e-05/1.354, allocations: 4.25 kB / 1.172 GB, free: 8.078 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001261/1.355, allocations: 68.89 kB / 1.172 GB, free: 8.02 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001084/1.355, allocations: 19.5 kB / 1.172 GB, free: 8.004 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.0008245/1.356, allocations: 293.7 kB / 1.172 GB, free: 7.758 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002083/1.356, allocations: 51.36 kB / 1.172 GB, free: 7.707 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003017/1.359, allocations: 0.6002 MB / 1.173 GB, free: 7.301 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.182e-05/1.36, allocations: 8 kB / 1.173 GB, free: 7.293 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.638e-06/1.36, allocations: 3.938 kB / 1.173 GB, free: 7.289 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.788e-05/1.36, allocations: 3.984 kB / 1.173 GB, free: 7.285 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001756/1.361, allocations: 0.6283 MB / 1.173 GB, free: 6.777 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.245e-05/1.361, allocations: 0 / 1.173 GB, free: 6.777 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0016/1.363, allocations: 99.42 kB / 1.173 GB, free: 6.684 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-05/1.363, allocations: 7.938 kB / 1.173 GB, free: 6.676 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.477e-05/1.363, allocations: 15.31 kB / 1.173 GB, free: 6.668 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.797e-06/1.363, allocations: 0 / 1.173 GB, free: 6.668 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/1.363, allocations: 4 kB / 1.173 GB, free: 6.664 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004259/1.368, allocations: 0.9235 MB / 1.174 GB, free: 6.012 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005995/1.368, allocations: 176.8 kB / 1.174 GB, free: 5.848 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002123/1.368, allocations: 14.19 kB / 1.174 GB, free: 5.84 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009932/1.369, allocations: 43.78 kB / 1.174 GB, free: 5.805 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002022/1.37, allocations: 58.97 kB / 1.174 GB, free: 5.758 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.094e-05/1.37, allocations: 18.98 kB / 1.174 GB, free: 5.742 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0003884/1.37, allocations: 244.8 kB / 1.175 GB, free: 5.551 MB / 0.698 GB Notification: Performance of sort global known variables: time 4.11e-07/1.37, allocations: 3.938 kB / 1.175 GB, free: 5.547 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.001139/1.371, allocations: 277.6 kB / 1.175 GB, free: 5.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) * 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.000295/1.372, allocations: 145.4 kB / 1.175 GB, free: 5.152 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.002699/1.374, allocations: 0.997 MB / 1.176 GB, free: 4.406 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 4.178e-06/1.374, allocations: 0 / 1.176 GB, free: 4.406 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0008271/1.375, allocations: 289.7 kB / 1.176 GB, free: 4.203 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001505/1.377, allocations: 155.5 kB / 1.177 GB, free: 4.086 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003419/1.38, allocations: 1.287 MB / 1.178 GB, free: 2.906 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005875/1.381, allocations: 0.8927 MB / 1.179 GB, free: 2.004 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.001024/1.382, allocations: 152.4 kB / 1.179 GB, free: 1.852 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002684/1.382, allocations: 43.42 kB / 1.179 GB, free: 1.809 MB / 0.698 GB Notification: Performance of SimCode: time 1.102e-06/1.382, allocations: 0 / 1.179 GB, free: 1.809 MB / 0.698 GB Notification: Performance of Templates: time 0.02224/1.404, allocations: 7.681 MB / 1.186 GB, free: 10.22 MB / 0.7136 GB make -j1 -f Buildings_8.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.makefile (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 & ./Buildings_8.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe 2>&1)