Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.0 (/var/lib/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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.871/2.871, allocations: 284.8 MB / 297.3 MB, free: 6.379 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001391/0.00139, allocations: 172.9 kB / 365.7 MB, free: 2.598 MB / 298.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.867/1.867, allocations: 205.1 MB / 0.6241 GB, free: 8.188 MB / 474.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001085/0.001085, allocations: 98.39 kB / 0.7372 GB, free: 40.79 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.937e-05/2.939e-05, allocations: 4 kB / 0.8575 GB, free: 13.7 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.824/0.8241, allocations: 115.2 MB / 0.97 GB, free: 78.05 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2863/1.111, allocations: 156.6 MB / 1.123 GB, free: 11.79 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003574/1.111, allocations: 99.38 kB / 1.123 GB, free: 11.69 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 0.1578/1.269, allocations: 27.19 MB / 1.15 GB, free: 472 kB / 0.7448 GB Notification: Performance of FrontEnd: time 3.116e-06/1.269, allocations: 0 / 1.15 GB, free: 472 kB / 0.7448 GB Notification: Performance of Transformations before backend: time 7.789e-05/1.269, allocations: 20 kB / 1.15 GB, free: 452 kB / 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.003923/1.273, allocations: 0.8217 MB / 1.15 GB, free: 15.56 MB / 0.7605 GB Notification: Performance of prepare preOptimizeDAE: time 6.947e-05/1.273, allocations: 12.03 kB / 1.15 GB, free: 15.55 MB / 0.7605 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002504/1.275, allocations: 155.3 kB / 1.151 GB, free: 15.4 MB / 0.7605 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001736/1.277, allocations: 439.1 kB / 1.151 GB, free: 14.93 MB / 0.7605 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001103/1.277, allocations: 40.98 kB / 1.151 GB, free: 14.89 MB / 0.7605 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000241/1.278, allocations: 52 kB / 1.151 GB, free: 14.84 MB / 0.7605 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002688/1.28, allocations: 0.6497 MB / 1.152 GB, free: 14.16 MB / 0.7605 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.457e-05/1.281, allocations: 0 / 1.152 GB, free: 14.16 MB / 0.7605 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001603/1.281, allocations: 27.98 kB / 1.152 GB, free: 14.14 MB / 0.7605 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001567/1.281, allocations: 40.97 kB / 1.152 GB, free: 14.09 MB / 0.7605 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002299/1.283, allocations: 0.5231 MB / 1.152 GB, free: 13.57 MB / 0.7605 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008459/1.292, allocations: 2.829 MB / 1.155 GB, free: 10.52 MB / 0.7605 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002344/1.294, allocations: 0.5504 MB / 1.156 GB, free: 9.945 MB / 0.7605 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009708/1.295, allocations: 241.6 kB / 1.156 GB, free: 9.703 MB / 0.7605 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009118/1.296, allocations: 0.5662 MB / 1.156 GB, free: 9.008 MB / 0.7605 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001429/1.298, allocations: 388.5 kB / 1.157 GB, free: 8.613 MB / 0.7605 GB Notification: Performance of pre-optimization done (n=49): time 5.35e-06/1.298, allocations: 0 / 1.157 GB, free: 8.613 MB / 0.7605 GB Notification: Performance of matching and sorting (n=49): time 0.00227/1.3, allocations: 0.5099 MB / 1.157 GB, free: 8.098 MB / 0.7605 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001078/1.3, allocations: 85.55 kB / 1.157 GB, free: 7.996 MB / 0.7605 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008126/1.301, allocations: 299.5 kB / 1.158 GB, free: 7.695 MB / 0.7605 GB Notification: Performance of collectPreVariables (initialization): time 0.0001903/1.301, allocations: 45.7 kB / 1.158 GB, free: 7.645 MB / 0.7605 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004108/1.301, allocations: 280.6 kB / 1.158 GB, free: 7.367 MB / 0.7605 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003231/1.302, allocations: 157.9 kB / 1.158 GB, free: 7.211 MB / 0.7605 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.632e-05/1.302, allocations: 8 kB / 1.158 GB, free: 7.203 MB / 0.7605 GB Notification: Performance of setup shared object (initialization): time 0.0002748/1.302, allocations: 358.8 kB / 1.158 GB, free: 6.844 MB / 0.7605 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009549/1.303, allocations: 217.1 kB / 1.159 GB, free: 6.633 MB / 0.7605 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001154/1.304, allocations: 346.4 kB / 1.159 GB, free: 6.25 MB / 0.7605 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001073/1.306, allocations: 273.5 kB / 1.159 GB, free: 5.977 MB / 0.7605 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.734e-06/1.306, allocations: 0 / 1.159 GB, free: 5.977 MB / 0.7605 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.002723/1.308, allocations: 0.6569 MB / 1.16 GB, free: 5.309 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006917/1.309, allocations: 1.081 MB / 1.161 GB, free: 4.141 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.027e-05/1.309, allocations: 4 kB / 1.161 GB, free: 4.137 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.862e-05/1.309, allocations: 4 kB / 1.161 GB, free: 4.133 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001645/1.311, allocations: 119.8 kB / 1.161 GB, free: 4.016 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.467e-05/1.311, allocations: 4 kB / 1.161 GB, free: 4.012 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001391/1.312, allocations: 71.55 kB / 1.161 GB, free: 3.941 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001203/1.312, allocations: 27.98 kB / 1.161 GB, free: 3.914 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 1.967e-05/1.312, allocations: 4 kB / 1.161 GB, free: 3.91 MB / 0.7605 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002337/1.315, allocations: 0.5415 MB / 1.162 GB, free: 3.363 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.992e-05/1.315, allocations: 4.047 kB / 1.162 GB, free: 3.359 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.557e-05/1.315, allocations: 9.734 kB / 1.162 GB, free: 3.352 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001422/1.316, allocations: 120 kB / 1.162 GB, free: 3.234 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.374e-05/1.316, allocations: 7.938 kB / 1.162 GB, free: 3.227 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001214/1.318, allocations: 59.64 kB / 1.162 GB, free: 3.168 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.78e-05/1.318, allocations: 20 kB / 1.162 GB, free: 3.148 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.0003993/1.318, allocations: 151 kB / 1.162 GB, free: 2.992 MB / 0.7605 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002338/1.318, allocations: 47.44 kB / 1.162 GB, free: 2.945 MB / 0.7605 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002361/1.321, allocations: 0.5648 MB / 1.163 GB, free: 2.375 MB / 0.7605 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.067e-05/1.321, allocations: 4 kB / 1.163 GB, free: 2.371 MB / 0.7605 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.314e-05/1.321, allocations: 3.953 kB / 1.163 GB, free: 2.367 MB / 0.7605 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.656e-05/1.321, allocations: 3.984 kB / 1.163 GB, free: 2.363 MB / 0.7605 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001814/1.323, allocations: 0.6263 MB / 1.163 GB, free: 1.688 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.198e-06/1.323, allocations: 0 / 1.163 GB, free: 1.688 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001467/1.324, allocations: 99.8 kB / 1.163 GB, free: 1.59 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.489e-05/1.324, allocations: 3 kB / 1.163 GB, free: 1.59 MB / 0.7605 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.891e-05/1.325, allocations: 16 kB / 1.163 GB, free: 1.574 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.312e-05/1.325, allocations: 4 kB / 1.163 GB, free: 1.57 MB / 0.7605 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/1.325, allocations: 0 / 1.163 GB, free: 1.57 MB / 0.7605 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003453/1.328, allocations: 0.8618 MB / 1.164 GB, free: 0.6836 MB / 0.7605 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006095/1.329, allocations: 180.4 kB / 1.164 GB, free: 500 kB / 0.7605 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001811/1.329, allocations: 12 kB / 1.164 GB, free: 488 kB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009814/1.33, allocations: 47.94 kB / 1.164 GB, free: 440 kB / 0.7605 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003165/1.33, allocations: 52.31 kB / 1.164 GB, free: 388 kB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.959e-05/1.33, allocations: 16 kB / 1.164 GB, free: 372 kB / 0.7605 GB Notification: Performance of sorting global known variables: time 0.0006362/1.331, allocations: 238.2 kB / 1.165 GB, free: 140 kB / 0.7605 GB Notification: Performance of sort global known variables: time 4.639e-06/1.331, allocations: 0 / 1.165 GB, free: 140 kB / 0.7605 GB Notification: Performance of remove unused functions: time 0.001931/1.333, allocations: 275.2 kB / 1.165 GB, free: 15.86 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.0004861/1.334, allocations: 151.1 kB / 1.165 GB, free: 15.71 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.004019/1.338, allocations: 0.9362 MB / 1.166 GB, free: 14.74 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.077e-05/1.338, allocations: 0 / 1.166 GB, free: 14.74 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 0.001266/1.339, allocations: 271.4 kB / 1.166 GB, free: 14.48 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002293/1.341, allocations: 159.6 kB / 1.166 GB, free: 14.34 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003642/1.345, allocations: 0.7884 MB / 1.167 GB, free: 13.52 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009358/1.346, allocations: 0.9075 MB / 1.168 GB, free: 12.59 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 0.001761/1.348, allocations: 162.6 kB / 1.168 GB, free: 12.43 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003862/1.348, allocations: 43.42 kB / 1.168 GB, free: 12.39 MB / 0.7761 GB Notification: Performance of SimCode: time 1.523e-06/1.348, allocations: 0 / 1.168 GB, free: 12.39 MB / 0.7761 GB Notification: Performance of Templates: time 0.0387/1.387, allocations: 8.254 MB / 1.176 GB, free: 4.312 MB / 0.7761 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)