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.1-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.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.1-maint.8.1.x/package.mo) Running command: translateModel(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_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_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.1-maint.8.1.x/package.mo): time 1.701/1.701, allocations: 293 MB / 309 MB, free: 4.801 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.0009978/0.0009978, allocations: 176.6 kB / 378.7 MB, free: 0.9961 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.842/1.842, allocations: 205.4 MB / 0.6383 GB, free: 9.055 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.0007428/0.0007426, allocations: 97.41 kB / 0.7527 GB, free: 62.35 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0005051/0.0005053, allocations: 16 kB / 0.8768 GB, free: 10.5 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2785/0.2791, allocations: 116.4 MB / 0.9905 GB, free: 5.953 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7937/1.073, allocations: 157.8 MB / 1.145 GB, free: 19.95 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003562/1.073, allocations: 97.91 kB / 1.145 GB, free: 19.88 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 0.06895/1.142, allocations: 27.66 MB / 1.172 GB, free: 11.97 MB / 0.7448 GB Notification: Performance of FrontEnd: time 2.715e-06/1.142, allocations: 0 / 1.172 GB, free: 11.97 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 5.396e-05/1.142, allocations: 16 kB / 1.172 GB, free: 11.95 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.00218/1.144, allocations: 0.867 MB / 1.173 GB, free: 11.03 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 4.748e-05/1.145, allocations: 8.031 kB / 1.173 GB, free: 11.02 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00106/1.146, allocations: 155.9 kB / 1.173 GB, free: 10.87 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008256/1.146, allocations: 457.8 kB / 1.173 GB, free: 10.38 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.166e-05/1.147, allocations: 37.31 kB / 1.173 GB, free: 10.34 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001224/1.147, allocations: 52.36 kB / 1.173 GB, free: 10.29 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001312/1.148, allocations: 0.6853 MB / 1.174 GB, free: 9.578 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.048e-05/1.148, allocations: 4.188 kB / 1.174 GB, free: 9.574 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.707e-05/1.148, allocations: 27.92 kB / 1.174 GB, free: 9.547 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.599e-05/1.148, allocations: 44.97 kB / 1.174 GB, free: 9.504 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001147/1.149, allocations: 0.5738 MB / 1.175 GB, free: 8.93 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003598/1.153, allocations: 2.831 MB / 1.177 GB, free: 5.875 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00106/1.154, allocations: 0.5878 MB / 1.178 GB, free: 5.266 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004362/1.154, allocations: 265.6 kB / 1.178 GB, free: 5 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004417/1.155, allocations: 0.5583 MB / 1.179 GB, free: 4.312 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007079/1.156, allocations: 418.6 kB / 1.179 GB, free: 3.891 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=49): time 6.512e-06/1.156, allocations: 0 / 1.179 GB, free: 3.891 MB / 0.7448 GB Notification: Performance of matching and sorting (n=49): time 0.001463/1.157, allocations: 0.7756 MB / 1.18 GB, free: 3.105 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.942e-05/1.157, allocations: 93.48 kB / 1.18 GB, free: 2.996 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003795/1.158, allocations: 341.6 kB / 1.18 GB, free: 2.652 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 6.885e-05/1.158, allocations: 41.7 kB / 1.18 GB, free: 2.605 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001973/1.158, allocations: 284.7 kB / 1.181 GB, free: 2.32 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001499/1.158, allocations: 161.8 kB / 1.181 GB, free: 2.16 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.181e-05/1.158, allocations: 12 kB / 1.181 GB, free: 2.148 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.000145/1.158, allocations: 350.8 kB / 1.181 GB, free: 1.797 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004481/1.159, allocations: 245 kB / 1.181 GB, free: 1.559 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005289/1.159, allocations: 370.4 kB / 1.182 GB, free: 1.152 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009013/1.16, allocations: 0.5948 MB / 1.182 GB, free: 0.5156 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.25e-06/1.16, allocations: 4 kB / 1.182 GB, free: 0.5117 MB / 0.7448 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001229/1.161, allocations: 0.7091 MB / 1.183 GB, free: 15.79 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001542/1.162, allocations: 192.4 kB / 1.183 GB, free: 15.55 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.395e-05/1.162, allocations: 8 kB / 1.183 GB, free: 15.55 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.454e-05/1.162, allocations: 5.938 kB / 1.183 GB, free: 15.54 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005236/1.162, allocations: 115.8 kB / 1.183 GB, free: 15.43 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.452e-05/1.162, allocations: 8 kB / 1.183 GB, free: 15.42 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004956/1.163, allocations: 71.53 kB / 1.183 GB, free: 15.35 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.946e-05/1.163, allocations: 25.11 kB / 1.183 GB, free: 15.33 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 9.638e-06/1.163, allocations: 4 kB / 1.183 GB, free: 15.32 MB / 0.7605 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001045/1.164, allocations: 0.5909 MB / 1.184 GB, free: 14.73 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.338e-06/1.164, allocations: 2 kB / 1.184 GB, free: 14.73 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.273e-05/1.164, allocations: 15.94 kB / 1.184 GB, free: 14.71 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000398/1.164, allocations: 103.8 kB / 1.184 GB, free: 14.61 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.869e-06/1.164, allocations: 8 kB / 1.184 GB, free: 14.6 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004035/1.165, allocations: 59.64 kB / 1.184 GB, free: 14.54 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.274e-05/1.165, allocations: 23.98 kB / 1.184 GB, free: 14.52 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 () * 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.0003919/1.165, allocations: 303.2 kB / 1.184 GB, free: 14.21 MB / 0.7605 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.62e-05/1.165, allocations: 51.38 kB / 1.184 GB, free: 14.16 MB / 0.7605 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001085/1.166, allocations: 0.6042 MB / 1.185 GB, free: 13.56 MB / 0.7605 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.494e-06/1.166, allocations: 8 kB / 1.185 GB, free: 13.55 MB / 0.7605 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.82e-06/1.166, allocations: 0 / 1.185 GB, free: 13.55 MB / 0.7605 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.275e-06/1.166, allocations: 3.984 kB / 1.185 GB, free: 13.55 MB / 0.7605 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007766/1.167, allocations: 0.6225 MB / 1.186 GB, free: 12.88 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.741e-06/1.167, allocations: 3.938 kB / 1.186 GB, free: 12.87 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004647/1.168, allocations: 97.67 kB / 1.186 GB, free: 12.78 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.799e-06/1.168, allocations: 7.922 kB / 1.186 GB, free: 12.77 MB / 0.7605 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.655e-05/1.168, allocations: 8 kB / 1.186 GB, free: 12.76 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.919e-06/1.168, allocations: 4 kB / 1.186 GB, free: 12.76 MB / 0.7605 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/1.168, allocations: 0 / 1.186 GB, free: 12.76 MB / 0.7605 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001458/1.169, allocations: 0.9265 MB / 1.187 GB, free: 11.81 MB / 0.7605 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000244/1.169, allocations: 184.3 kB / 1.187 GB, free: 11.61 MB / 0.7605 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.656e-05/1.169, allocations: 15.94 kB / 1.187 GB, free: 11.59 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003254/1.17, allocations: 43.94 kB / 1.187 GB, free: 11.55 MB / 0.7605 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001646/1.17, allocations: 48.5 kB / 1.187 GB, free: 11.5 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.965e-05/1.17, allocations: 16 kB / 1.187 GB, free: 11.49 MB / 0.7605 GB Notification: Performance of sorting global known variables: time 0.0002994/1.17, allocations: 243.2 kB / 1.187 GB, free: 11.25 MB / 0.7605 GB Notification: Performance of sort global known variables: time 1.3e-07/1.17, allocations: 4 kB / 1.187 GB, free: 11.25 MB / 0.7605 GB Notification: Performance of remove unused functions: time 0.0008606/1.171, allocations: 275.1 kB / 1.187 GB, free: 10.98 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) * 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.0002702/1.172, allocations: 154.4 kB / 1.188 GB, free: 10.82 MB / 0.7605 GB Notification: Performance of simCode: created initialization part: time 0.001721/1.173, allocations: 1.003 MB / 1.189 GB, free: 9.797 MB / 0.7605 GB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/1.173, allocations: 0 / 1.189 GB, free: 9.797 MB / 0.7605 GB Notification: Performance of simCode: created simulation system equations: time 0.0004972/1.174, allocations: 291 kB / 1.189 GB, free: 9.512 MB / 0.7605 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007889/1.175, allocations: 158.4 kB / 1.189 GB, free: 9.359 MB / 0.7605 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002216/1.177, allocations: 1.289 MB / 1.19 GB, free: 8.051 MB / 0.7605 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005671/1.177, allocations: 0.8992 MB / 1.191 GB, free: 7.121 MB / 0.7605 GB Notification: Performance of simCode: alias equations: time 0.0006574/1.178, allocations: 147.9 kB / 1.191 GB, free: 6.98 MB / 0.7605 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001625/1.178, allocations: 43.44 kB / 1.191 GB, free: 6.938 MB / 0.7605 GB Notification: Performance of SimCode: time 9.41e-07/1.178, allocations: 0 / 1.191 GB, free: 6.938 MB / 0.7605 GB Notification: Performance of Templates: time 0.01498/1.193, allocations: 7.768 MB / 1.199 GB, free: 15.29 MB / 0.7761 GB make -j1 -f Buildings_8_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.makefile (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 & ./Buildings_8_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe 2>&1)