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.639/1.639, allocations: 285.4 MB / 298 MB, free: 5.996 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.001106/0.001106, allocations: 184.8 kB / 366.4 MB, free: 2.105 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.413/1.413, allocations: 205.1 MB / 0.6248 GB, free: 7.758 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.0008921/0.0008922, allocations: 100.9 kB / 0.738 GB, free: 40.31 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 3.572e-05/3.585e-05, allocations: 8 kB / 0.8583 GB, free: 13.12 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7525/0.7526, allocations: 115.3 MB / 0.9709 GB, free: 77.93 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2207/0.9734, allocations: 156.7 MB / 1.124 GB, free: 11.17 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003177/0.9737, allocations: 92.72 kB / 1.124 GB, free: 11.08 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 0.07248/1.046, allocations: 27.46 MB / 1.151 GB, free: 15.57 MB / 0.7605 GB Notification: Performance of FrontEnd: time 2.244e-06/1.046, allocations: 0 / 1.151 GB, free: 15.57 MB / 0.7605 GB Notification: Performance of Transformations before backend: time 5.117e-05/1.046, allocations: 19.94 kB / 1.151 GB, free: 15.55 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.002025/1.048, allocations: 0.8178 MB / 1.152 GB, free: 14.68 MB / 0.7605 GB Notification: Performance of prepare preOptimizeDAE: time 4.978e-05/1.048, allocations: 16.03 kB / 1.152 GB, free: 14.66 MB / 0.7605 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001013/1.049, allocations: 144.6 kB / 1.152 GB, free: 14.52 MB / 0.7605 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00086/1.05, allocations: 439.2 kB / 1.152 GB, free: 14.05 MB / 0.7605 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.37e-05/1.05, allocations: 37 kB / 1.152 GB, free: 14.02 MB / 0.7605 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001403/1.051, allocations: 55.98 kB / 1.152 GB, free: 13.96 MB / 0.7605 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00121/1.052, allocations: 0.6458 MB / 1.153 GB, free: 13.29 MB / 0.7605 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.434e-05/1.052, allocations: 2.812 kB / 1.153 GB, free: 13.29 MB / 0.7605 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.733e-05/1.052, allocations: 27.98 kB / 1.153 GB, free: 13.26 MB / 0.7605 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.542e-05/1.052, allocations: 44.91 kB / 1.153 GB, free: 13.21 MB / 0.7605 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00101/1.053, allocations: 0.5232 MB / 1.153 GB, free: 12.69 MB / 0.7605 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004273/1.057, allocations: 2.841 MB / 1.156 GB, free: 9.625 MB / 0.7605 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001035/1.058, allocations: 0.542 MB / 1.157 GB, free: 9.062 MB / 0.7605 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004127/1.059, allocations: 241.6 kB / 1.157 GB, free: 8.82 MB / 0.7605 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006/1.059, allocations: 0.5661 MB / 1.158 GB, free: 8.125 MB / 0.7605 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006466/1.06, allocations: 386.2 kB / 1.158 GB, free: 7.734 MB / 0.7605 GB Notification: Performance of pre-optimization done (n=49): time 2.605e-06/1.06, allocations: 0 / 1.158 GB, free: 7.734 MB / 0.7605 GB Notification: Performance of matching and sorting (n=49): time 0.000973/1.061, allocations: 0.5072 MB / 1.158 GB, free: 7.219 MB / 0.7605 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.801e-05/1.061, allocations: 89.53 kB / 1.159 GB, free: 7.113 MB / 0.7605 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003635/1.061, allocations: 295.5 kB / 1.159 GB, free: 6.82 MB / 0.7605 GB Notification: Performance of collectPreVariables (initialization): time 7.028e-05/1.062, allocations: 45.7 kB / 1.159 GB, free: 6.77 MB / 0.7605 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002305/1.062, allocations: 280.6 kB / 1.159 GB, free: 6.492 MB / 0.7605 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001469/1.062, allocations: 157.8 kB / 1.159 GB, free: 6.336 MB / 0.7605 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.947e-05/1.062, allocations: 8 kB / 1.159 GB, free: 6.328 MB / 0.7605 GB Notification: Performance of setup shared object (initialization): time 0.0001524/1.062, allocations: 358.8 kB / 1.16 GB, free: 5.969 MB / 0.7605 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003714/1.063, allocations: 217.1 kB / 1.16 GB, free: 5.758 MB / 0.7605 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004683/1.063, allocations: 346.4 kB / 1.16 GB, free: 5.371 MB / 0.7605 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004168/1.063, allocations: 279.3 kB / 1.16 GB, free: 5.094 MB / 0.7605 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.368e-06/1.063, allocations: 0 / 1.16 GB, free: 5.094 MB / 0.7605 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001048/1.064, allocations: 0.6565 MB / 1.161 GB, free: 4.426 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005164/1.065, allocations: 1.076 MB / 1.162 GB, free: 3.262 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.548e-05/1.065, allocations: 6.891 kB / 1.162 GB, free: 3.258 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.713e-05/1.065, allocations: 4 kB / 1.162 GB, free: 3.254 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005314/1.066, allocations: 119.8 kB / 1.162 GB, free: 3.137 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.418e-05/1.066, allocations: 7.938 kB / 1.162 GB, free: 3.129 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005028/1.066, allocations: 83.28 kB / 1.162 GB, free: 3.051 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.872e-05/1.066, allocations: 20 kB / 1.162 GB, free: 3.031 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 1.325e-05/1.066, allocations: 5.094 kB / 1.162 GB, free: 3.027 MB / 0.7605 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008496/1.067, allocations: 0.5439 MB / 1.163 GB, free: 2.48 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.065e-06/1.067, allocations: 4 kB / 1.163 GB, free: 2.477 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.081e-05/1.067, allocations: 8.234 kB / 1.163 GB, free: 2.469 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004351/1.068, allocations: 111.8 kB / 1.163 GB, free: 2.359 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.303e-05/1.068, allocations: 7.953 kB / 1.163 GB, free: 2.352 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004581/1.068, allocations: 59.64 kB / 1.163 GB, free: 2.293 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.074e-05/1.068, allocations: 24 kB / 1.163 GB, free: 2.27 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.0002259/1.068, allocations: 151.1 kB / 1.163 GB, free: 2.117 MB / 0.7605 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001215/1.068, allocations: 47.44 kB / 1.163 GB, free: 2.07 MB / 0.7605 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001198/1.07, allocations: 0.5595 MB / 1.164 GB, free: 1.504 MB / 0.7605 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.548e-06/1.07, allocations: 4 kB / 1.164 GB, free: 1.5 MB / 0.7605 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.085e-06/1.07, allocations: 3.984 kB / 1.164 GB, free: 1.496 MB / 0.7605 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.257e-06/1.07, allocations: 3.953 kB / 1.164 GB, free: 1.492 MB / 0.7605 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0011/1.071, allocations: 0.6263 MB / 1.164 GB, free: 0.8164 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.308e-06/1.071, allocations: 0 / 1.164 GB, free: 0.8164 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005336/1.071, allocations: 99.8 kB / 1.165 GB, free: 0.7188 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.39e-05/1.071, allocations: 4 kB / 1.165 GB, free: 0.7148 MB / 0.7605 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.486e-05/1.072, allocations: 12 kB / 1.165 GB, free: 0.7031 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.518e-06/1.072, allocations: 7.984 kB / 1.165 GB, free: 0.6953 MB / 0.7605 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.567e-06/1.072, allocations: 0 / 1.165 GB, free: 0.6953 MB / 0.7605 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001451/1.073, allocations: 0.8592 MB / 1.165 GB, free: 15.8 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003162/1.073, allocations: 176.5 kB / 1.166 GB, free: 15.61 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001028/1.073, allocations: 19.98 kB / 1.166 GB, free: 15.59 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003938/1.074, allocations: 39.95 kB / 1.166 GB, free: 15.55 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001737/1.074, allocations: 56.25 kB / 1.166 GB, free: 15.5 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.07e-05/1.074, allocations: 16 kB / 1.166 GB, free: 15.48 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 0.0003131/1.074, allocations: 242.2 kB / 1.166 GB, free: 15.25 MB / 0.7761 GB Notification: Performance of sort global known variables: time 2.61e-07/1.074, allocations: 0 / 1.166 GB, free: 15.25 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0009626/1.075, allocations: 275.2 kB / 1.166 GB, free: 14.98 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.0004068/1.076, allocations: 149.2 kB / 1.166 GB, free: 14.83 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.00177/1.078, allocations: 0.934 MB / 1.167 GB, free: 13.87 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 8.817e-06/1.078, allocations: 1 kB / 1.167 GB, free: 13.87 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 0.0004633/1.078, allocations: 270.4 kB / 1.168 GB, free: 13.6 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008771/1.079, allocations: 162.9 kB / 1.168 GB, free: 13.46 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001753/1.081, allocations: 0.7962 MB / 1.168 GB, free: 12.64 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006094/1.081, allocations: 0.9074 MB / 1.169 GB, free: 11.7 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 0.0007734/1.082, allocations: 157.1 kB / 1.169 GB, free: 11.55 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000173/1.082, allocations: 41.78 kB / 1.17 GB, free: 11.51 MB / 0.7761 GB Notification: Performance of SimCode: time 5.81e-07/1.082, allocations: 3.938 kB / 1.17 GB, free: 11.51 MB / 0.7761 GB Notification: Performance of Templates: time 0.01697/1.099, allocations: 8.252 MB / 1.178 GB, free: 3.402 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)