Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.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 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: translateModel(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_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_maint.8.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.772/1.772, allocations: 285.6 MB / 293.1 MB, free: 10.17 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.0009943/0.0009942, allocations: 180.9 kB / 361.4 MB, free: 6.812 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.566/1.566, allocations: 205.2 MB / 0.62 GB, free: 11.63 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.0008881/0.0008883, allocations: 99.2 kB / 0.733 GB, free: 44.16 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.01e-05/2.011e-05, allocations: 4 kB / 0.8518 GB, free: 2.707 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6791/0.6791, allocations: 115.3 MB / 0.9644 GB, free: 79.04 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2155/0.8947, allocations: 156 MB / 1.117 GB, free: 15.79 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002815/0.895, allocations: 93.84 kB / 1.117 GB, free: 15.7 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 0.07352/0.9685, allocations: 27.35 MB / 1.144 GB, free: 4.297 MB / 0.7448 GB Notification: Performance of FrontEnd: time 1.363e-06/0.9686, allocations: 1.969 kB / 1.144 GB, free: 4.297 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 5.415e-05/0.9686, allocations: 12 kB / 1.144 GB, free: 4.285 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.002237/0.9709, allocations: 0.822 MB / 1.144 GB, free: 3.41 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 4.785e-05/0.971, allocations: 8.031 kB / 1.144 GB, free: 3.402 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001168/0.9721, allocations: 158 kB / 1.144 GB, free: 3.25 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009102/0.9731, allocations: 435.2 kB / 1.145 GB, free: 2.785 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.402e-05/0.9731, allocations: 16 kB / 1.145 GB, free: 2.77 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001631/0.9733, allocations: 35.98 kB / 1.145 GB, free: 2.734 MB / 0.7448 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001061/0.9744, allocations: 450.5 kB / 1.145 GB, free: 2.293 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001198/0.9756, allocations: 0.5871 MB / 1.146 GB, free: 1.676 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.993e-05/0.9756, allocations: 0 / 1.146 GB, free: 1.676 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.409e-05/0.9757, allocations: 7.984 kB / 1.146 GB, free: 1.668 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.932e-05/0.9758, allocations: 45.27 kB / 1.146 GB, free: 1.621 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004007/0.9798, allocations: 2.727 MB / 1.149 GB, free: 14.68 MB / 0.7605 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009739/0.9808, allocations: 0.5134 MB / 1.149 GB, free: 14.14 MB / 0.7605 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004016/0.9812, allocations: 233.6 kB / 1.149 GB, free: 13.91 MB / 0.7605 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006358/0.9819, allocations: 0.5701 MB / 1.15 GB, free: 13.21 MB / 0.7605 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006349/0.9825, allocations: 370.9 kB / 1.15 GB, free: 12.83 MB / 0.7605 GB Notification: Performance of pre-optimization done (n=49): time 2.455e-06/0.9825, allocations: 0 / 1.15 GB, free: 12.83 MB / 0.7605 GB Notification: Performance of matching and sorting (n=49): time 0.001077/0.9836, allocations: 0.4935 MB / 1.151 GB, free: 12.33 MB / 0.7605 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.998e-05/0.9837, allocations: 81.55 kB / 1.151 GB, free: 12.23 MB / 0.7605 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004103/0.9841, allocations: 286.3 kB / 1.151 GB, free: 11.95 MB / 0.7605 GB Notification: Performance of collectPreVariables (initialization): time 7.661e-05/0.9842, allocations: 33.7 kB / 1.151 GB, free: 11.91 MB / 0.7605 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002516/0.9845, allocations: 272.6 kB / 1.151 GB, free: 11.64 MB / 0.7605 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001487/0.9846, allocations: 153.9 kB / 1.152 GB, free: 11.49 MB / 0.7605 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.904e-05/0.9846, allocations: 4.031 kB / 1.152 GB, free: 11.48 MB / 0.7605 GB Notification: Performance of setup shared object (initialization): time 0.0001497/0.9848, allocations: 350.8 kB / 1.152 GB, free: 11.13 MB / 0.7605 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003297/0.9851, allocations: 209.1 kB / 1.152 GB, free: 10.93 MB / 0.7605 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004158/0.9856, allocations: 330 kB / 1.152 GB, free: 10.56 MB / 0.7605 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004618/0.986, allocations: 237.7 kB / 1.153 GB, free: 10.33 MB / 0.7605 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.015e-06/0.9861, allocations: 8 kB / 1.153 GB, free: 10.32 MB / 0.7605 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001058/0.9871, allocations: 0.5852 MB / 1.153 GB, free: 9.73 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004773/0.9876, allocations: 1.088 MB / 1.154 GB, free: 8.555 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.345e-05/0.9876, allocations: 8 kB / 1.154 GB, free: 8.547 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.375e-05/0.9877, allocations: 4 kB / 1.154 GB, free: 8.543 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005579/0.9882, allocations: 115.7 kB / 1.154 GB, free: 8.43 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.996e-05/0.9883, allocations: 8 kB / 1.154 GB, free: 8.422 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005195/0.9888, allocations: 63.53 kB / 1.154 GB, free: 8.359 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.849e-05/0.9889, allocations: 20 kB / 1.154 GB, free: 8.34 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 1.183e-05/0.9889, allocations: 4 kB / 1.155 GB, free: 8.336 MB / 0.7605 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008155/0.9897, allocations: 477.3 kB / 1.155 GB, free: 7.875 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.376e-06/0.9897, allocations: 4 kB / 1.155 GB, free: 7.871 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.269e-05/0.9897, allocations: 11.94 kB / 1.155 GB, free: 7.859 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004381/0.9902, allocations: 99.88 kB / 1.155 GB, free: 7.762 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.318e-05/0.9902, allocations: 15.92 kB / 1.155 GB, free: 7.746 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004701/0.9907, allocations: 51.89 kB / 1.155 GB, free: 7.695 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.56e-05/0.9908, allocations: 23.95 kB / 1.155 GB, free: 7.672 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.0001905/0.991, allocations: 128.2 kB / 1.155 GB, free: 7.543 MB / 0.7605 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001037/0.9911, allocations: 47.44 kB / 1.155 GB, free: 7.496 MB / 0.7605 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009277/0.992, allocations: 0.5224 MB / 1.156 GB, free: 6.973 MB / 0.7605 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.206e-06/0.992, allocations: 8 kB / 1.156 GB, free: 6.965 MB / 0.7605 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.855e-06/0.992, allocations: 4 kB / 1.156 GB, free: 6.961 MB / 0.7605 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.516e-06/0.992, allocations: 3.984 kB / 1.156 GB, free: 6.957 MB / 0.7605 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00074/0.9928, allocations: 0.5447 MB / 1.156 GB, free: 6.375 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.298e-06/0.9928, allocations: 0 / 1.156 GB, free: 6.375 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005081/0.9933, allocations: 99.8 kB / 1.156 GB, free: 6.277 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.815e-06/0.9933, allocations: 0 / 1.156 GB, free: 6.277 MB / 0.7605 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.728e-05/0.9934, allocations: 7.984 kB / 1.156 GB, free: 6.27 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.887e-06/0.9934, allocations: 0 / 1.156 GB, free: 6.27 MB / 0.7605 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.963e-06/0.9934, allocations: 10.5 kB / 1.156 GB, free: 6.262 MB / 0.7605 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001245/0.9947, allocations: 0.8306 MB / 1.157 GB, free: 5.402 MB / 0.7605 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002611/0.9949, allocations: 176.5 kB / 1.157 GB, free: 5.211 MB / 0.7605 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.381e-05/0.995, allocations: 4 kB / 1.157 GB, free: 5.207 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003473/0.9954, allocations: 39.95 kB / 1.158 GB, free: 5.168 MB / 0.7605 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00014/0.9955, allocations: 48.36 kB / 1.158 GB, free: 5.121 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.641e-05/0.9956, allocations: 19.92 kB / 1.158 GB, free: 5.102 MB / 0.7605 GB Notification: Performance of sorting global known variables: time 0.000243/0.9958, allocations: 220.6 kB / 1.158 GB, free: 4.887 MB / 0.7605 GB Notification: Performance of sort global known variables: time 1.71e-07/0.9958, allocations: 0 / 1.158 GB, free: 4.887 MB / 0.7605 GB Notification: Performance of remove unused functions: time 0.0008728/0.9967, allocations: 247.1 kB / 1.158 GB, free: 4.645 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.000285/0.997, allocations: 152.7 kB / 1.158 GB, free: 4.488 MB / 0.7605 GB Notification: Performance of simCode: created initialization part: time 0.001296/0.9983, allocations: 0.8964 MB / 1.159 GB, free: 3.566 MB / 0.7605 GB Notification: Performance of simCode: created event and clocks part: time 4.188e-06/0.9983, allocations: 0 / 1.159 GB, free: 3.566 MB / 0.7605 GB Notification: Performance of simCode: created simulation system equations: time 0.0003687/0.9987, allocations: 249.6 kB / 1.159 GB, free: 3.32 MB / 0.7605 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008139/0.9995, allocations: 144.4 kB / 1.159 GB, free: 3.188 MB / 0.7605 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001737/1.001, allocations: 0.7765 MB / 1.16 GB, free: 2.383 MB / 0.7605 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005753/1.002, allocations: 0.9074 MB / 1.161 GB, free: 1.449 MB / 0.7605 GB Notification: Performance of simCode: alias equations: time 0.0006751/1.003, allocations: 163 kB / 1.161 GB, free: 1.297 MB / 0.7605 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001522/1.003, allocations: 39.42 kB / 1.161 GB, free: 1.258 MB / 0.7605 GB Notification: Performance of SimCode: time 7.51e-07/1.003, allocations: 0 / 1.161 GB, free: 1.258 MB / 0.7605 GB Notification: Performance of Templates: time 0.016/1.019, allocations: 7.886 MB / 1.169 GB, free: 9.547 MB / 0.7761 GB make -j1 -f Buildings_maint.8.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.makefile (rm -f Buildings_maint.8.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.sim & ./Buildings_maint.8.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.8.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe 2>&1)