Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/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 7.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.456/2.456, allocations: 251.3 MB / 266.2 MB, free: 11.52 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002/0.002, allocations: 183.7 kB / 325.8 MB, free: 2.77 MB / 250.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.575/2.575, allocations: 205.4 MB / 0.5767 GB, free: 20.74 MB / 426.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001005/0.001005, allocations: 96.3 kB / 0.6813 GB, free: 13.55 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0006001/0.0006003, allocations: 15.78 kB / 0.7953 GB, free: 135.6 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.228/0.2287, allocations: 106.3 MB / 0.899 GB, free: 65.39 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery): time 0.008333/0.2371, allocations: 5.363 MB / 0.9043 GB, free: 60.01 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.004834/0.242, allocations: 2.102 MB / 0.9063 GB, free: 57.89 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005276/0.2425, allocations: 7.938 kB / 0.9063 GB, free: 57.89 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0003424/0.2429, allocations: 71.42 kB / 0.9064 GB, free: 57.82 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.001138/0.2441, allocations: 258.6 kB / 0.9067 GB, free: 57.56 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.001351/0.2455, allocations: 301.8 kB / 0.9069 GB, free: 57.27 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.001352/0.2468, allocations: 0.8255 MB / 0.9078 GB, free: 56.44 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001869/0.2487, allocations: 0.7652 MB / 0.9085 GB, free: 55.63 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005489/0.2493, allocations: 235 kB / 0.9087 GB, free: 55.4 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000623/0.25, allocations: 298.7 kB / 0.909 GB, free: 55.11 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 0.0001135/0.2501, allocations: 24 kB / 0.909 GB, free: 55.09 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005622/0.2507, allocations: 183.8 kB / 0.9092 GB, free: 54.91 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 0.0001774/0.2509, allocations: 147.5 kB / 0.9093 GB, free: 54.76 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 0.0001788/0.2511, allocations: 133.3 kB / 0.9095 GB, free: 54.62 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.000991/0.2521, allocations: 0.7288 MB / 0.9102 GB, free: 53.89 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 6.492e-06/0.2521, allocations: 0 / 0.9102 GB, free: 53.89 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.494e-06/0.2521, allocations: 4 kB / 0.9102 GB, free: 53.89 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 1.361e-05/0.2521, allocations: 0 / 0.9102 GB, free: 53.89 MB / 0.6042 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.002295/0.2544, allocations: 0.8326 MB / 0.911 GB, free: 53 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.222e-05/0.2545, allocations: 8.031 kB / 0.911 GB, free: 52.99 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001058/0.2556, allocations: 136 kB / 0.9111 GB, free: 52.86 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008455/0.2564, allocations: 423.2 kB / 0.9115 GB, free: 52.41 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.445e-05/0.2565, allocations: 37.38 kB / 0.9116 GB, free: 52.37 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001331/0.2567, allocations: 56.34 kB / 0.9116 GB, free: 52.32 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001722/0.2584, allocations: 0.6929 MB / 0.9123 GB, free: 51.59 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.378e-05/0.2585, allocations: 0 / 0.9123 GB, free: 51.59 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.249e-05/0.2586, allocations: 27.98 kB / 0.9123 GB, free: 51.56 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001029/0.2587, allocations: 52.97 kB / 0.9124 GB, free: 51.51 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001711/0.2604, allocations: 0.5659 MB / 0.9129 GB, free: 50.94 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005387/0.2658, allocations: 2.904 MB / 0.9158 GB, free: 47.79 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001772/0.2677, allocations: 0.5678 MB / 0.9163 GB, free: 47.21 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007488/0.2685, allocations: 261.3 kB / 0.9166 GB, free: 46.95 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005835/0.2691, allocations: 0.5622 MB / 0.9171 GB, free: 46.25 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001051/0.2702, allocations: 408.2 kB / 0.9175 GB, free: 45.84 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=46): time 3.757e-06/0.2702, allocations: 0 / 0.9175 GB, free: 45.84 MB / 0.6042 GB Notification: Performance of matching and sorting (n=46): time 0.00228/0.2725, allocations: 0.7472 MB / 0.9182 GB, free: 45.08 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.789e-05/0.2726, allocations: 81.11 kB / 0.9183 GB, free: 44.98 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000483/0.2731, allocations: 349.5 kB / 0.9187 GB, free: 44.64 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 0.0001102/0.2732, allocations: 41.7 kB / 0.9187 GB, free: 44.59 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002104/0.2734, allocations: 280.4 kB / 0.919 GB, free: 44.31 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001563/0.2736, allocations: 149.9 kB / 0.9191 GB, free: 44.16 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.936e-05/0.2737, allocations: 12 kB / 0.9191 GB, free: 44.15 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 9.75e-05/0.2738, allocations: 354.7 kB / 0.9195 GB, free: 43.79 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007125/0.2745, allocations: 241 kB / 0.9197 GB, free: 43.56 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007557/0.2753, allocations: 362.6 kB / 0.92 GB, free: 43.16 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007839/0.2761, allocations: 293.7 kB / 0.9203 GB, free: 42.87 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.805e-06/0.2761, allocations: 7.984 kB / 0.9203 GB, free: 42.86 MB / 0.6042 GB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001806/0.2779, allocations: 0.6756 MB / 0.921 GB, free: 42.17 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001106/0.278, allocations: 193 kB / 0.9212 GB, free: 41.94 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.115e-05/0.2781, allocations: 4 kB / 0.9212 GB, free: 41.93 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.909e-05/0.2781, allocations: 8 kB / 0.9212 GB, free: 41.93 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009204/0.279, allocations: 111.8 kB / 0.9213 GB, free: 41.82 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.339e-05/0.2791, allocations: 7.938 kB / 0.9213 GB, free: 41.81 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008477/0.2799, allocations: 75.47 kB / 0.9214 GB, free: 41.73 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.053e-05/0.28, allocations: 20 kB / 0.9214 GB, free: 41.71 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.012e-05/0.28, allocations: 4 kB / 0.9214 GB, free: 41.71 MB / 0.6042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001565/0.2816, allocations: 0.5875 MB / 0.922 GB, free: 41.12 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.466e-06/0.2816, allocations: 3.938 kB / 0.922 GB, free: 41.11 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.077e-05/0.2816, allocations: 11.94 kB / 0.922 GB, free: 41.1 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007479/0.2824, allocations: 100.1 kB / 0.9221 GB, free: 41 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.219e-05/0.2824, allocations: 11.94 kB / 0.9221 GB, free: 40.99 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007261/0.2832, allocations: 71.48 kB / 0.9221 GB, free: 40.92 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.301e-05/0.2832, allocations: 23.98 kB / 0.9222 GB, free: 40.9 MB / 0.6042 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 (66): * Single equations (assignments): 65 * 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.0004651/0.2837, allocations: 303.2 kB / 0.9225 GB, free: 40.59 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001094/0.2838, allocations: 39.53 kB / 0.9225 GB, free: 40.55 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001636/0.2855, allocations: 0.5839 MB / 0.9231 GB, free: 39.96 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.596e-06/0.2855, allocations: 4 kB / 0.9231 GB, free: 39.96 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.406e-06/0.2855, allocations: 3.984 kB / 0.9231 GB, free: 39.96 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.838e-06/0.2855, allocations: 8 kB / 0.9231 GB, free: 39.95 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009228/0.2865, allocations: 0.618 MB / 0.9237 GB, free: 39.28 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.899e-06/0.2865, allocations: 0 / 0.9237 GB, free: 39.28 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001015/0.2875, allocations: 103.8 kB / 0.9238 GB, free: 39.18 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.614e-06/0.2876, allocations: 0 / 0.9238 GB, free: 39.18 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.331e-05/0.2876, allocations: 12 kB / 0.9238 GB, free: 39.17 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.464e-06/0.2876, allocations: 4 kB / 0.9238 GB, free: 39.16 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.2876, allocations: 3.938 kB / 0.9238 GB, free: 39.16 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002263/0.2899, allocations: 0.89 MB / 0.9247 GB, free: 38.25 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003197/0.2903, allocations: 176.5 kB / 0.9248 GB, free: 38.06 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001173/0.2904, allocations: 12 kB / 0.9249 GB, free: 38.05 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005789/0.291, allocations: 39.95 kB / 0.9249 GB, free: 38.01 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001877/0.2912, allocations: 47.92 kB / 0.9249 GB, free: 37.96 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.83e-05/0.2913, allocations: 12 kB / 0.925 GB, free: 37.95 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0003441/0.2916, allocations: 243.2 kB / 0.9252 GB, free: 37.71 MB / 0.6042 GB Notification: Performance of sort global known variables: time 4e-07/0.2916, allocations: 0 / 0.9252 GB, free: 37.71 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0009674/0.2926, allocations: 275 kB / 0.9254 GB, free: 37.45 MB / 0.6042 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 (47): * Single equations (assignments): 45 * 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.0002394/0.2929, allocations: 127.1 kB / 0.9256 GB, free: 37.31 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.002431/0.2953, allocations: 0.9723 MB / 0.9265 GB, free: 36.31 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 5.821e-06/0.2954, allocations: 0 / 0.9265 GB, free: 36.31 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0007826/0.2962, allocations: 276.8 kB / 0.9268 GB, free: 36.04 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001419/0.2976, allocations: 164 kB / 0.9269 GB, free: 35.88 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00278/0.3004, allocations: 1.253 MB / 0.9282 GB, free: 34.6 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003961/0.3008, allocations: 0.8872 MB / 0.929 GB, free: 33.69 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.0008865/0.3017, allocations: 152.2 kB / 0.9292 GB, free: 33.54 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002517/0.302, allocations: 39.44 kB / 0.9292 GB, free: 33.5 MB / 0.6042 GB Notification: Performance of SimCode: time 1.573e-06/0.302, allocations: 0 / 0.9292 GB, free: 33.5 MB / 0.6042 GB Notification: Performance of Templates: time 0.02007/0.3221, allocations: 7.559 MB / 0.9366 GB, free: 26.01 MB / 0.6042 GB make -j1 -f Buildings_7.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.makefile (rm -f Buildings_7.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe ; mkfifo Buildings_7.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe ; head -c 1048576 < Buildings_7.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe >> ../files/Buildings_7.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.sim & ./Buildings_7.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_7.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe 2>&1)