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.735/2.735, allocations: 287.5 MB / 302.5 MB, free: 8.191 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.001503/0.001503, allocations: 174.9 kB / 371 MB, free: 10.78 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 2.19/2.19, allocations: 205.4 MB / 0.6297 GB, free: 10.52 MB / 458.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001167/0.001167, allocations: 102.4 kB / 0.743 GB, free: 6.512 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004877/0.0004877, allocations: 11.5 kB / 0.8658 GB, free: 140.9 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2285/0.2291, allocations: 115.3 MB / 0.9784 GB, free: 28.27 MB / 0.6198 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9575/1.187, allocations: 156.7 MB / 1.131 GB, free: 15.73 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003635/1.187, allocations: 96.75 kB / 1.132 GB, free: 15.73 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.1075/1.295, allocations: 27.32 MB / 1.158 GB, free: 19.01 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.474e-06/1.295, allocations: 0 / 1.158 GB, free: 19.01 MB / 0.698 GB Notification: Performance of Transformations before backend: time 4.536e-05/1.295, allocations: 23.83 kB / 1.158 GB, free: 18.99 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.002458/1.297, allocations: 0.8693 MB / 1.159 GB, free: 18.11 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.572e-05/1.297, allocations: 12.03 kB / 1.159 GB, free: 18.09 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001499/1.299, allocations: 158.9 kB / 1.159 GB, free: 17.94 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009815/1.3, allocations: 441.9 kB / 1.16 GB, free: 17.54 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.641e-05/1.3, allocations: 39.8 kB / 1.16 GB, free: 17.52 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001377/1.3, allocations: 49.44 kB / 1.16 GB, free: 17.48 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001696/1.302, allocations: 0.6828 MB / 1.16 GB, free: 16.96 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.714e-05/1.302, allocations: 3.938 kB / 1.16 GB, free: 16.96 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.295e-05/1.302, allocations: 28.23 kB / 1.16 GB, free: 16.95 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.136e-05/1.302, allocations: 39.98 kB / 1.16 GB, free: 16.92 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001664/1.304, allocations: 0.5746 MB / 1.161 GB, free: 16.52 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005265/1.309, allocations: 2.83 MB / 1.164 GB, free: 13.93 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001789/1.311, allocations: 0.5872 MB / 1.164 GB, free: 13.5 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000619/1.311, allocations: 0.566 MB / 1.165 GB, free: 12.81 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001113/1.313, allocations: 414.5 kB / 1.165 GB, free: 12.48 MB / 0.698 GB Notification: Performance of pre-optimization done (n=49): time 5.24e-06/1.313, allocations: 0 / 1.165 GB, free: 12.48 MB / 0.698 GB Notification: Performance of matching and sorting (n=49): time 0.002612/1.315, allocations: 0.7719 MB / 1.166 GB, free: 11.93 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.534e-05/1.315, allocations: 89.53 kB / 1.166 GB, free: 11.82 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005504/1.316, allocations: 302.1 kB / 1.166 GB, free: 11.58 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 0.0001081/1.316, allocations: 44.25 kB / 1.166 GB, free: 11.54 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002976/1.316, allocations: 281.5 kB / 1.167 GB, free: 11.32 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002273/1.316, allocations: 161 kB / 1.167 GB, free: 11.2 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.103e-05/1.317, allocations: 12.44 kB / 1.167 GB, free: 11.19 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001907/1.317, allocations: 353.3 kB / 1.167 GB, free: 10.86 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007909/1.318, allocations: 244.2 kB / 1.167 GB, free: 10.71 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009349/1.319, allocations: 371.1 kB / 1.168 GB, free: 10.4 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000874/1.319, allocations: 298.6 kB / 1.168 GB, free: 10.2 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.572e-06/1.319, allocations: 0 / 1.168 GB, free: 10.2 MB / 0.698 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.002124/1.322, allocations: 0.7069 MB / 1.169 GB, free: 9.688 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005143/1.322, allocations: 1.082 MB / 1.17 GB, free: 8.539 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.374e-05/1.322, allocations: 0 / 1.17 GB, free: 8.539 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.515e-05/1.322, allocations: 8 kB / 1.17 GB, free: 8.531 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001078/1.323, allocations: 110.8 kB / 1.17 GB, free: 8.426 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.148e-05/1.323, allocations: 11.98 kB / 1.17 GB, free: 8.414 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009355/1.324, allocations: 67.14 kB / 1.17 GB, free: 8.355 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.597e-05/1.324, allocations: 35.36 kB / 1.17 GB, free: 8.328 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.325e-05/1.324, allocations: 4 kB / 1.17 GB, free: 8.324 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001812/1.326, allocations: 0.5876 MB / 1.171 GB, free: 7.918 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.026e-05/1.326, allocations: 4 kB / 1.171 GB, free: 7.914 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.557e-05/1.326, allocations: 8 kB / 1.171 GB, free: 7.906 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008575/1.327, allocations: 107.7 kB / 1.171 GB, free: 7.805 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.603e-05/1.327, allocations: 7.953 kB / 1.171 GB, free: 7.797 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008107/1.328, allocations: 75.36 kB / 1.171 GB, free: 7.73 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.429e-05/1.328, allocations: 19.75 kB / 1.171 GB, free: 7.715 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.0005863/1.329, allocations: 299.6 kB / 1.171 GB, free: 7.465 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001382/1.329, allocations: 43.53 kB / 1.171 GB, free: 7.422 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001935/1.331, allocations: 0.6097 MB / 1.172 GB, free: 7 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.307e-05/1.331, allocations: 11.98 kB / 1.172 GB, free: 6.988 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.408e-06/1.331, allocations: 3.953 kB / 1.172 GB, free: 6.984 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.828e-06/1.331, allocations: 0 / 1.172 GB, free: 6.984 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001218/1.332, allocations: 0.6288 MB / 1.172 GB, free: 6.477 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.9e-06/1.332, allocations: 0 / 1.172 GB, free: 6.477 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009793/1.333, allocations: 95.11 kB / 1.173 GB, free: 6.387 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.348e-06/1.333, allocations: 4 kB / 1.173 GB, free: 6.383 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.406e-05/1.333, allocations: 11.75 kB / 1.173 GB, free: 6.379 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.073e-05/1.333, allocations: 7.984 kB / 1.173 GB, free: 6.371 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/1.333, allocations: 0 / 1.173 GB, free: 6.371 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002685/1.336, allocations: 0.9328 MB / 1.173 GB, free: 5.699 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003951/1.336, allocations: 177 kB / 1.174 GB, free: 5.535 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001238/1.337, allocations: 11.25 kB / 1.174 GB, free: 5.531 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006409/1.337, allocations: 46.89 kB / 1.174 GB, free: 5.492 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002086/1.337, allocations: 54.56 kB / 1.174 GB, free: 5.449 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.178e-05/1.337, allocations: 19.55 kB / 1.174 GB, free: 5.434 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0004153/1.338, allocations: 243.7 kB / 1.174 GB, free: 5.242 MB / 0.698 GB Notification: Performance of sort global known variables: time 4.11e-07/1.338, allocations: 0 / 1.174 GB, free: 5.242 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.001193/1.339, allocations: 276.8 kB / 1.174 GB, free: 4.996 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.000318/1.339, allocations: 152.1 kB / 1.174 GB, free: 4.852 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.002845/1.342, allocations: 1.006 MB / 1.175 GB, free: 4.094 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 6.131e-06/1.342, allocations: 0 / 1.175 GB, free: 4.094 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0008773/1.343, allocations: 283.7 kB / 1.176 GB, free: 3.895 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001383/1.345, allocations: 147.7 kB / 1.176 GB, free: 3.781 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003514/1.348, allocations: 1.282 MB / 1.177 GB, free: 2.598 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006336/1.349, allocations: 0.9059 MB / 1.178 GB, free: 1.68 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.001034/1.35, allocations: 152.4 kB / 1.178 GB, free: 1.531 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002851/1.35, allocations: 47.3 kB / 1.178 GB, free: 1.488 MB / 0.698 GB Notification: Performance of SimCode: time 9.92e-07/1.35, allocations: 0 / 1.178 GB, free: 1.488 MB / 0.698 GB Notification: Performance of Templates: time 0.02307/1.373, allocations: 7.662 MB / 1.186 GB, free: 9.918 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)