Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Electrical.AC.OnePhase.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.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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 1.834/1.834, allocations: 287.5 MB / 302.6 MB, free: 8.238 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.002255/0.002254, allocations: 186.7 kB / 371.2 MB, free: 10.84 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.875/1.875, allocations: 205.4 MB / 0.6298 GB, free: 10.59 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.0008484/0.0008483, allocations: 91.53 kB / 0.7432 GB, free: 6.59 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004575/0.0004578, allocations: 12.38 kB / 0.8661 GB, free: 140.4 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2477/0.2481, allocations: 115.3 MB / 0.9787 GB, free: 28.2 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery): time 0.004576/0.2528, allocations: 3.871 MB / 0.9825 GB, free: 24.3 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.003274/0.2561, allocations: 2.087 MB / 0.9845 GB, free: 22.21 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003605/0.2565, allocations: 7.938 kB / 0.9845 GB, free: 22.2 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0002416/0.2568, allocations: 67.42 kB / 0.9846 GB, free: 22.13 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0006404/0.2574, allocations: 258.6 kB / 0.9848 GB, free: 21.88 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008315/0.2583, allocations: 292.8 kB / 0.9851 GB, free: 21.59 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0006942/0.259, allocations: 0.8333 MB / 0.9859 GB, free: 20.76 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001084/0.26, allocations: 0.7921 MB / 0.9867 GB, free: 19.93 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000291/0.2604, allocations: 239 kB / 0.9869 GB, free: 19.7 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003977/0.2608, allocations: 294.8 kB / 0.9872 GB, free: 19.41 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 5.669e-05/0.2608, allocations: 27.94 kB / 0.9872 GB, free: 19.38 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003986/0.2612, allocations: 187.7 kB / 0.9874 GB, free: 19.2 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 0.0001376/0.2614, allocations: 143.5 kB / 0.9875 GB, free: 19.06 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 0.0001076/0.2615, allocations: 129.4 kB / 0.9877 GB, free: 18.93 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0005741/0.2621, allocations: 0.7405 MB / 0.9884 GB, free: 18.18 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 8.897e-06/0.2621, allocations: 0 / 0.9884 GB, free: 18.18 MB / 0.6198 GB Notification: Performance of FrontEnd: time 3.146e-06/0.2621, allocations: 0 / 0.9884 GB, free: 18.18 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 9.277e-06/0.2621, allocations: 0 / 0.9884 GB, free: 18.18 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.001351/0.2635, allocations: 0.821 MB / 0.9892 GB, free: 17.3 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.36e-05/0.2635, allocations: 12.03 kB / 0.9892 GB, free: 17.29 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005589/0.2641, allocations: 131.9 kB / 0.9893 GB, free: 17.16 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004766/0.2646, allocations: 438.9 kB / 0.9897 GB, free: 16.7 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.07e-05/0.2646, allocations: 41.38 kB / 0.9898 GB, free: 16.66 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.609e-05/0.2647, allocations: 48.36 kB / 0.9898 GB, free: 16.61 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000958/0.2657, allocations: 0.6929 MB / 0.9905 GB, free: 15.89 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.949e-05/0.2657, allocations: 0 / 0.9905 GB, free: 15.89 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.431e-05/0.2658, allocations: 31.92 kB / 0.9905 GB, free: 15.86 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.37e-05/0.2658, allocations: 52.97 kB / 0.9906 GB, free: 15.8 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008769/0.2667, allocations: 0.5698 MB / 0.9911 GB, free: 15.23 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002687/0.2694, allocations: 2.904 MB / 0.994 GB, free: 12.08 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008661/0.2703, allocations: 0.5638 MB / 0.9945 GB, free: 11.5 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003522/0.2707, allocations: 261.4 kB / 0.9948 GB, free: 11.24 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003777/0.2711, allocations: 0.5623 MB / 0.9953 GB, free: 10.55 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005578/0.2716, allocations: 409.8 kB / 0.9957 GB, free: 10.13 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=46): time 2.254e-06/0.2716, allocations: 0 / 0.9957 GB, free: 10.13 MB / 0.6198 GB Notification: Performance of matching and sorting (n=46): time 0.001222/0.2729, allocations: 0.746 MB / 0.9965 GB, free: 9.375 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.328e-05/0.2729, allocations: 85.11 kB / 0.9965 GB, free: 9.273 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002735/0.2732, allocations: 345.6 kB / 0.9969 GB, free: 8.934 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 4.091e-05/0.2732, allocations: 37.7 kB / 0.9969 GB, free: 8.891 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001329/0.2734, allocations: 284.4 kB / 0.9972 GB, free: 8.605 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 8.202e-05/0.2735, allocations: 145.9 kB / 0.9973 GB, free: 8.461 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.49e-05/0.2735, allocations: 12 kB / 0.9973 GB, free: 8.449 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 8.224e-05/0.2736, allocations: 358.7 kB / 0.9977 GB, free: 8.09 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000372/0.274, allocations: 241 kB / 0.9979 GB, free: 7.855 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004142/0.2744, allocations: 362.6 kB / 0.9982 GB, free: 7.457 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000725/0.2751, allocations: 0.5789 MB / 0.9988 GB, free: 6.836 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.336e-06/0.2752, allocations: 0 / 0.9988 GB, free: 6.836 MB / 0.6198 GB Notification: Performance of matching and sorting (n=67) (initialization): time 0.000943/0.2761, allocations: 0.6758 MB / 0.9995 GB, free: 6.148 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 9.49e-05/0.2762, allocations: 200.6 kB / 0.9997 GB, free: 5.906 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.395e-06/0.2762, allocations: 4 kB / 0.9997 GB, free: 5.902 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.991e-05/0.2762, allocations: 8 kB / 0.9997 GB, free: 5.895 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005067/0.2768, allocations: 107.8 kB / 0.9998 GB, free: 5.789 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.868e-06/0.2768, allocations: 7.984 kB / 0.9998 GB, free: 5.781 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004052/0.2772, allocations: 83.42 kB / 0.9999 GB, free: 5.699 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.848e-05/0.2772, allocations: 27.98 kB / 0.9999 GB, free: 5.672 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 5.76e-06/0.2773, allocations: 4 kB / 0.9999 GB, free: 5.668 MB / 0.6198 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008219/0.2781, allocations: 0.5717 MB / 1 GB, free: 5.09 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.168e-06/0.2781, allocations: 4.375 kB / 1 GB, free: 5.086 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.488e-06/0.2781, allocations: 4 kB / 1 GB, free: 5.082 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003544/0.2785, allocations: 107.8 kB / 1.001 GB, free: 4.977 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.005e-06/0.2785, allocations: 8 kB / 1.001 GB, free: 4.969 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003398/0.2788, allocations: 71.73 kB / 1.001 GB, free: 4.898 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.02e-05/0.2789, allocations: 20 kB / 1.001 GB, free: 4.879 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.0002395/0.2791, allocations: 299.2 kB / 1.001 GB, free: 4.578 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.485e-05/0.2792, allocations: 47.52 kB / 1.001 GB, free: 4.531 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008986/0.2801, allocations: 0.5853 MB / 1.002 GB, free: 3.938 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.715e-06/0.2801, allocations: 7.938 kB / 1.002 GB, free: 3.93 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.382e-06/0.2801, allocations: 4 kB / 1.002 GB, free: 3.926 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.071e-06/0.2801, allocations: 3.984 kB / 1.002 GB, free: 3.922 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00055/0.2807, allocations: 0.618 MB / 1.002 GB, free: 3.254 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.933e-06/0.2807, allocations: 0 / 1.002 GB, free: 3.254 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00047/0.2812, allocations: 103.8 kB / 1.002 GB, free: 3.152 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.785e-06/0.2812, allocations: 0 / 1.002 GB, free: 3.152 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.402e-05/0.2812, allocations: 12 kB / 1.002 GB, free: 3.141 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.936e-06/0.2812, allocations: 4 kB / 1.002 GB, free: 3.137 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/0.2812, allocations: 3.984 kB / 1.002 GB, free: 3.133 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001194/0.2824, allocations: 0.8862 MB / 1.003 GB, free: 2.223 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001621/0.2826, allocations: 180.4 kB / 1.003 GB, free: 2.027 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.734e-05/0.2827, allocations: 8 kB / 1.003 GB, free: 2.02 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002898/0.283, allocations: 47.94 kB / 1.003 GB, free: 1.973 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001227/0.2831, allocations: 43.94 kB / 1.003 GB, free: 1.93 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.921e-05/0.2831, allocations: 19.98 kB / 1.003 GB, free: 1.91 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.000203/0.2834, allocations: 243.2 kB / 1.004 GB, free: 1.672 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.31e-07/0.2834, allocations: 0 / 1.004 GB, free: 1.672 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0006289/0.284, allocations: 259.1 kB / 1.004 GB, free: 1.418 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.0002025/0.2842, allocations: 139.1 kB / 1.004 GB, free: 1.27 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.001351/0.2856, allocations: 0.971 MB / 1.005 GB, free: 280 kB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.2856, allocations: 0 / 1.005 GB, free: 280 kB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0003818/0.286, allocations: 279.9 kB / 1.005 GB, free: 0 / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007985/0.2868, allocations: 162.5 kB / 1.005 GB, free: 15.84 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001975/0.2888, allocations: 1.256 MB / 1.007 GB, free: 14.55 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005006/0.2893, allocations: 0.8911 MB / 1.008 GB, free: 13.64 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 0.0005112/0.2898, allocations: 144.3 kB / 1.008 GB, free: 13.49 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000137/0.2899, allocations: 43.42 kB / 1.008 GB, free: 13.45 MB / 0.6355 GB Notification: Performance of SimCode: time 3.4e-07/0.29, allocations: 0 / 1.008 GB, free: 13.45 MB / 0.6355 GB Notification: Performance of Templates: time 0.0124/0.3024, allocations: 7.565 MB / 1.015 GB, free: 5.957 MB / 0.6355 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)