Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.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_8.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.659/2.659, allocations: 287.5 MB / 302.4 MB, free: 8.273 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.001493/0.001493, allocations: 178.3 kB / 371 MB, free: 10.86 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.242/2.242, allocations: 205.4 MB / 0.6297 GB, free: 10.6 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009436/0.0009436, allocations: 100.2 kB / 0.743 GB, free: 6.594 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0006703/0.0006706, allocations: 12.45 kB / 0.8658 GB, free: 140.8 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2346/0.2353, allocations: 115.3 MB / 0.9784 GB, free: 28.37 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery): time 0.007936/0.2433, allocations: 5.352 MB / 0.9836 GB, free: 22.99 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.004636/0.248, allocations: 2.095 MB / 0.9856 GB, free: 20.89 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004647/0.2485, allocations: 15.94 kB / 0.9857 GB, free: 20.87 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0002987/0.2488, allocations: 67.42 kB / 0.9857 GB, free: 20.8 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0009447/0.2498, allocations: 254.6 kB / 0.986 GB, free: 20.55 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.001227/0.251, allocations: 293.6 kB / 0.9862 GB, free: 20.27 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.001282/0.2523, allocations: 0.8293 MB / 0.987 GB, free: 19.44 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001771/0.2541, allocations: 0.7184 MB / 0.9877 GB, free: 18.69 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006111/0.2547, allocations: 231 kB / 0.988 GB, free: 18.46 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006774/0.2554, allocations: 298.8 kB / 0.9883 GB, free: 18.17 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 0.0001164/0.2556, allocations: 20 kB / 0.9883 GB, free: 18.15 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006022/0.2562, allocations: 187.8 kB / 0.9885 GB, free: 17.96 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 0.0001978/0.2564, allocations: 147.5 kB / 0.9886 GB, free: 17.82 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 0.0001932/0.2566, allocations: 129.4 kB / 0.9887 GB, free: 17.69 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.001084/0.2577, allocations: 0.7405 MB / 0.9894 GB, free: 16.95 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 6.553e-06/0.2578, allocations: 0 / 0.9894 GB, free: 16.95 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.745e-06/0.2578, allocations: 0 / 0.9894 GB, free: 16.95 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 2.409e-05/0.2578, allocations: 0 / 0.9894 GB, free: 16.95 MB / 0.6198 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.002264/0.2601, allocations: 0.8325 MB / 0.9903 GB, free: 16.05 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.557e-05/0.2601, allocations: 8.031 kB / 0.9903 GB, free: 16.05 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001045/0.2612, allocations: 131.1 kB / 0.9904 GB, free: 15.92 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008948/0.2621, allocations: 421.8 kB / 0.9908 GB, free: 15.46 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.134e-05/0.2622, allocations: 41 kB / 0.9908 GB, free: 15.43 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001349/0.2624, allocations: 47.94 kB / 0.9909 GB, free: 15.38 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00182/0.2642, allocations: 0.6926 MB / 0.9915 GB, free: 14.66 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.691e-05/0.2643, allocations: 7.938 kB / 0.9916 GB, free: 14.65 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.434e-05/0.2644, allocations: 23.98 kB / 0.9916 GB, free: 14.62 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001084/0.2645, allocations: 56.97 kB / 0.9916 GB, free: 14.57 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001758/0.2663, allocations: 0.5659 MB / 0.9922 GB, free: 14 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005291/0.2716, allocations: 2.916 MB / 0.995 GB, free: 10.84 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001629/0.2733, allocations: 0.5561 MB / 0.9956 GB, free: 10.27 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006611/0.274, allocations: 257.4 kB / 0.9958 GB, free: 10.01 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005692/0.2746, allocations: 0.5662 MB / 0.9964 GB, free: 9.312 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009747/0.2756, allocations: 400.5 kB / 0.9968 GB, free: 8.902 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=46): time 3.256e-06/0.2756, allocations: 0 / 0.9968 GB, free: 8.902 MB / 0.6198 GB Notification: Performance of matching and sorting (n=46): time 0.002272/0.2779, allocations: 0.746 MB / 0.9975 GB, free: 8.148 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.522e-05/0.278, allocations: 93.03 kB / 0.9976 GB, free: 8.039 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000529/0.2785, allocations: 337.7 kB / 0.9979 GB, free: 7.707 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 9.537e-05/0.2786, allocations: 49.69 kB / 0.9979 GB, free: 7.652 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002304/0.2789, allocations: 280.3 kB / 0.9982 GB, free: 7.371 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001531/0.279, allocations: 142 kB / 0.9983 GB, free: 7.23 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.249e-05/0.2791, allocations: 16 kB / 0.9984 GB, free: 7.215 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 0.0001052/0.2792, allocations: 354.9 kB / 0.9987 GB, free: 6.859 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007054/0.2799, allocations: 241 kB / 0.9989 GB, free: 6.625 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007877/0.2807, allocations: 358.7 kB / 0.9993 GB, free: 6.23 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007614/0.2815, allocations: 298.3 kB / 0.9996 GB, free: 5.934 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.542e-06/0.2815, allocations: 0 / 0.9996 GB, free: 5.934 MB / 0.6198 GB Notification: Performance of matching and sorting (n=67) (initialization): time 0.00188/0.2834, allocations: 0.6756 MB / 1 GB, free: 5.246 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001238/0.2836, allocations: 197 kB / 1 GB, free: 5.008 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.067e-05/0.2836, allocations: 0 / 1 GB, free: 5.008 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.532e-05/0.2836, allocations: 8 kB / 1 GB, free: 5 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009419/0.2846, allocations: 115.8 kB / 1.001 GB, free: 4.887 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.645e-05/0.2846, allocations: 11.94 kB / 1.001 GB, free: 4.875 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008603/0.2855, allocations: 75.47 kB / 1.001 GB, free: 4.801 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.725e-05/0.2856, allocations: 20 kB / 1.001 GB, free: 4.781 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.198e-05/0.2856, allocations: 5.875 kB / 1.001 GB, free: 4.777 MB / 0.6198 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001619/0.2872, allocations: 0.5835 MB / 1.001 GB, free: 4.188 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.826e-06/0.2873, allocations: 4 kB / 1.001 GB, free: 4.184 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.146e-05/0.2873, allocations: 4 kB / 1.001 GB, free: 4.18 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007656/0.2881, allocations: 112.1 kB / 1.001 GB, free: 4.07 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.19e-05/0.2881, allocations: 7.984 kB / 1.001 GB, free: 4.062 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007223/0.2888, allocations: 63.64 kB / 1.001 GB, free: 4 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.434e-05/0.2889, allocations: 19.94 kB / 1.001 GB, free: 3.98 MB / 0.6198 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.000454/0.2893, allocations: 295.2 kB / 1.002 GB, free: 3.684 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001091/0.2895, allocations: 55.47 kB / 1.002 GB, free: 3.629 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001728/0.2912, allocations: 0.5891 MB / 1.002 GB, free: 3.031 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.001e-05/0.2912, allocations: 8 kB / 1.002 GB, free: 3.023 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.067e-06/0.2913, allocations: 0 / 1.002 GB, free: 3.023 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.648e-06/0.2913, allocations: 4 kB / 1.002 GB, free: 3.02 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009739/0.2923, allocations: 0.618 MB / 1.003 GB, free: 2.352 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.152e-06/0.2923, allocations: 3.984 kB / 1.003 GB, free: 2.348 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001016/0.2933, allocations: 99.84 kB / 1.003 GB, free: 2.25 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.244e-05/0.2934, allocations: 4 kB / 1.003 GB, free: 2.246 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.589e-05/0.2934, allocations: 12 kB / 1.003 GB, free: 2.234 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.751e-06/0.2934, allocations: 0 / 1.003 GB, free: 2.234 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.036e-06/0.2934, allocations: 0 / 1.003 GB, free: 2.234 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002375/0.2958, allocations: 0.8904 MB / 1.004 GB, free: 1.32 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003364/0.2962, allocations: 184.5 kB / 1.004 GB, free: 1.121 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001182/0.2964, allocations: 12 kB / 1.004 GB, free: 1.109 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005899/0.297, allocations: 43.88 kB / 1.004 GB, free: 1.066 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001889/0.2972, allocations: 43.94 kB / 1.004 GB, free: 1.023 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.424e-05/0.2972, allocations: 19.98 kB / 1.004 GB, free: 1.004 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0003428/0.2976, allocations: 243.2 kB / 1.004 GB, free: 0.7656 MB / 0.6198 GB Notification: Performance of sort global known variables: time 3.9e-07/0.2976, allocations: 0 / 1.004 GB, free: 0.7656 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.001023/0.2986, allocations: 259.1 kB / 1.005 GB, free: 0.5117 MB / 0.6198 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.0002441/0.2989, allocations: 131.2 kB / 1.005 GB, free: 380 kB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.002739/0.3016, allocations: 0.9711 MB / 1.006 GB, free: 15.37 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 1.008e-05/0.3017, allocations: 4 kB / 1.006 GB, free: 15.37 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.0009239/0.3026, allocations: 276.4 kB / 1.006 GB, free: 15.1 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001484/0.3041, allocations: 173.5 kB / 1.006 GB, free: 14.93 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003319/0.3075, allocations: 1.26 MB / 1.007 GB, free: 13.65 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007014/0.3082, allocations: 0.895 MB / 1.008 GB, free: 12.73 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 0.001014/0.3093, allocations: 136.3 kB / 1.008 GB, free: 12.59 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003747/0.3097, allocations: 47.42 kB / 1.008 GB, free: 12.54 MB / 0.6355 GB Notification: Performance of SimCode: time 1.673e-06/0.3097, allocations: 0 / 1.008 GB, free: 12.54 MB / 0.6355 GB Notification: Performance of Templates: time 0.02486/0.3346, allocations: 7.557 MB / 1.016 GB, free: 5.055 MB / 0.6355 GB make -j1 -f Buildings_8.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.makefile (rm -f Buildings_8.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe ; mkfifo Buildings_8.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe >> ../files/Buildings_8.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.sim & ./Buildings_8.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe 2>&1)