/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 36 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7458
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0051.5-4220_daily_bin1633
RA = 12.8793, Dec = -42.3455
tmin = 662601601, tmax = 662860801
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository Job = True

LAT data Source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='683910', job_status='RUN', time_executed='2022-01-03 00:05:47.410166', time_epoch_executed='1641197147.41' WHERE source_name='4FGL J0051.5-4220' and cadence='daily' and bin_id='1633'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/683910

Creating custom pfile directory:
/scratch/kocevski/683910/pfiles/

Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStop>=662601601.0 && nMetStart<662860801.0' /Data/Flight/Reprocess/P305

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=662601601.0 && nMetStart<662860801.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/683910/ft1_4FGL_J0051.5-4220_daily_bin1633.fits


Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT2 --filter 'nMetStop>=662601601.0 && nMetStart<662860801.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/683910/ft2_4FGL_J0051.5-4220_daily_bin1633.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/683910/ft1_4FGL_J0051.5-4220_daily_bin1633.fits outfile=/scratch/kocevski/683910/ft1_filteredMKT_4FGL_J0051.5-4220_daily_bin1633.fits ra=12.8793 dec=-42.3455 rad=12.0 tmin=662601601.0 tmax=662860801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.52
user 2.73
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/683910/ft2_4FGL_J0051.5-4220_daily_bin1633.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/683910/ft2_4FGL_J0051.5-4220_daily_bin1633.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/683910/ft1_filteredMKT_4FGL_J0051.5-4220_daily_bin1633.fits evtable="EVENTS" outfile="/scratch/kocevski/683910/ft1_filtered_4FGL_J0051.5-4220_daily_bin1633.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 1.05
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/683910/ft1_filtered_4FGL_J0051.5-4220_daily_bin1633.fits" evtable="EVENTS" scfile=/scratch/kocevski/683910/ft2_4FGL_J0051.5-4220_daily_bin1633.fits sctable="SC_DATA" outfile=/scratch/kocevski/683910/ltcube_662601601_662860801_4FGL_J0051.5-4220_daily_bin1633.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Working on file /scratch/kocevski/683910/ft2_4FGL_J0051.5-4220_daily_bin1633.fits
.....................!
real 16.08
user 15.48
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/683910/ft1_filtered_4FGL_J0051.5-4220_daily_bin1633.fits evtable="EVENTS" scfile=/scratch/kocevski/683910/ft2_4FGL_J0051.5-4220_daily_bin1633.fits sctable="SC_DATA" expcube=/scratch/kocevski/683910/ltcube_662601601_662860801_4FGL_J0051.5-4220_daily_bin1633.fits outfile=/scratch/kocevski/683910/expmap_662601601_662860801_4FGL_J0051.5-4220_daily_bin1633.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /scratch/kocevski/683910/ltcube_662601601_662860801_4FGL_J0051.5-4220_daily_bin1633.fits
.....................!
real 190.98
user 185.64
sys 4.58

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 195 point sources and 0 extended sources

Setting source of interest to:
4FGL J0051.5-4220 @ 12.8793 -42.3455

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/683910/ft1_filtered_4FGL_J0051.5-4220_daily_bin1633.fits scfile=/scratch/kocevski/683910/ft2_4FGL_J0051.5-4220_daily_bin1633.fits outfile=/scratch/kocevski/683910/cmap_662601601_662860801_4FGL_J0051.5-4220_daily_bin1633.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=12.8793 yref=-42.3455 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 2.25
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/683910/ft1_filtered_4FGL_J0051.5-4220_daily_bin1633.fits scfile=/scratch/kocevski/683910/ft2_4FGL_J0051.5-4220_daily_bin1633.fits outfile=/scratch/kocevski/683910/cmap_HighResolution_662601601_662860801_4FGL_J0051.5-4220_daily_bin1633.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=12.8793 yref=-42.3455 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 1.94
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/683910/ft1_filtered_4FGL_J0051.5-4220_daily_bin1633.fits evtable="EVENTS" scfile=/scratch/kocevski/683910/ft2_4FGL_J0051.5-4220_daily_bin1633.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/683910/Model_4FGL_J0051.5-4220_daily_bin1633.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/683910/ft1_filtered_4FGL_J0051.5-4220_daily_bin1633.fits.....................!
real 80.46
user 56.88
sys 1.36

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/683910/ft1_filtered_4FGL_J0051.5-4220_daily_bin1633.fits', '/scratch/kocevski/683910/ft2_4FGL_J0051.5-4220_daily_bin1633.fits', expMap='/scratch/kocevski/683910/expmap_662601601_662860801_4FGL_J0051.5-4220_daily_bin1633.fits', expCube='/scratch/kocevski/683910/ltcube_662601601_662860801_4FGL_J0051.5-4220_daily_bin1633.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/683910/Model_4FGL_J0051.5-4220_daily_bin1633.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0051.5-4220'

4FGL J0051.5-4220
   Spectrum: LogParabola
165         norm:  8.835e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
166        alpha:  2.556e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
167         beta:  2.805e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
168           Eb:  3.304e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/683910/ft1_filtered_4FGL_J0051.5-4220_daily_bin1633.fits
Spacecraft file(s): /scratch/kocevski/683910/ft2_4FGL_J0051.5-4220_daily_bin1633.fits
Exposure map: /scratch/kocevski/683910/expmap_662601601_662860801_4FGL_J0051.5-4220_daily_bin1633.fits
Exposure cube: /scratch/kocevski/683910/ltcube_662601601_662860801_4FGL_J0051.5-4220_daily_bin1633.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/683910/Model_4FGL_J0051.5-4220_daily_bin1633.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 8459.8206515

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 8459.78722132

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    16.783       1.0000         .10000E-03   10000.    
     3 'Prefactor '    37.991       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.2220       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10498E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .70136       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .76775       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.9319       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    79.045       1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.7786       1.0000         .10000E-03   10000.    
    12 'norm      '    2.6620       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.7228       1.0000         .10000E-03   10000.    
    16 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    26.910       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.4689       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .84028       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .98083       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6230E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8459.787     FROM MIGRAD    STATUS=CONVERGED    463 CALLS     2222 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.672        .93536E-07** at limit **
   2  Prefactor     16.780        15.178       -.21386E-08   -.41893E-05
   3  Prefactor     38.026        29.915       -.59030E-06   -.50517E-04
   4  Prefactor     3.2181        5.1461        .30075E-05   -.44793E-04
   5  Prefactor     .10000E-03    7.4857        .24677E-07** at limit **
   6  Prefactor     .70109        4.1359        .85900E-06   -.63352E-05
   7  Prefactor     .76904        2.5600       -.46764E-07   -.32943E-03
   8  Prefactor     7.9309        17.671        .27261E-06   -.58468E-05
   9  Prefactor     .10000E-03    1.5599       -.26893E-08** at limit **
  10  norm          79.081        26.796        .38812E-06   -.29708E-03
  11  Prefactor     8.6769        32.535        .98376E-06   -.53344E-04
  12  norm          2.6623        1.9983        .51037E-07   -.14298E-04
  13  Prefactor     .10000E-03    3.5547       -.29873E-07** at limit **
  14  Prefactor     .10000E-03    1.4666        .99949E-07** at limit **
  15  Prefactor     4.7134        13.471        .31378E-06   -.39105E-04
  16  norm          .10000E-03    3.3994       -.23379E-09** at limit **
  17  Prefactor     26.913        21.740        .19924E-06   -.66609E-04
  18  Prefactor     6.4682        3.1048       -.14904E-09   -.45701E-04
  19  Prefactor     .10000E-03    .86915        .42337E-07** at limit **
  20  Normalizat    .84009        .12744        .10553E-05    .40392E-04
  21  Prefactor     .98104        .14922       -.17964E-05   -.11724E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 16.7798
  Prefactor  = 38.0264
  Prefactor  = 3.21809
  Prefactor  = 0.0001
  Prefactor  = 0.701089
  Prefactor  = 0.769044
  Prefactor  = 7.93093
  Prefactor  = 0.0001
  norm       = 79.0808
  Prefactor  = 8.67688
  norm       = 2.66234
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.71344
  norm       = 0.0001
  Prefactor  = 26.9134
  Prefactor  = 6.46819
  Prefactor  = 0.0001
  Normalizat = 0.84009
  Prefactor  = 0.981035
 **********
 **   18 **HESSE 
 **********

 FCN=   8459.787     FROM HESSE     STATUS=OK           321 CALLS     2543 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.704        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     16.780        15.167        .97765E-04   -1.4888    
   3  Prefactor     38.026        29.916        .65025E-04   -1.4474    
   4  Prefactor     3.2181        5.1805        .11284E-02   -1.5349    
   5  Prefactor     .10000E-03    7.5038        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .70109        4.0190        .36000E-03   -1.5541    
   7  Prefactor     .76904        2.4469        .24268E-03   -1.5533    
   8  Prefactor     7.9309        17.261        .14237E-03   -1.5145    
   9  Prefactor     .10000E-03    1.5641        .11217E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          79.081        26.979        .45170E-04   -1.3927    
  11  Prefactor     8.6769        32.592        .13528E-03   -1.5119    
  12  norm          2.6623        1.9953        .10921E-03   -1.5382    
  13  Prefactor     .10000E-03    3.5575        .16936E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.5325        .21738E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.7134        13.488        .18516E-03   -1.5274    
  16  norm          .10000E-03    3.4166        .16560E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     26.913        21.760        .77225E-04   -1.4670    
  18  Prefactor     6.4682        3.1030        .10800E-03   -1.5199    
  19  Prefactor     .10000E-03    .87724        .83714E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .84009        .15239        .21713E-03   -.98598    
  21  Prefactor     .98104        .17709        .24174E-03   -.93364    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.33761e-10
Minuit parameter uncertainties:
  1  2.4724e-05
  2  15.1706
  3  29.928
  4  5.18119
  5  4.60477e-06
  6  3.35728
  7  2.44717
  8  17.2716
  9  4.10769e-07
  10  26.9834
  11  32.6584
  12  1.99535
  13  3.3496e-06
  14  7.09578e-06
  15  13.4972
  16  3.30886e-07
  17  21.7666
  18  3.10309
  19  2.28074e-06
  20  0.152465
  21  0.17719
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 8459.7872127

Extracting fit parameters...

4FGL J0051.5-4220
   Spectrum: LogParabola
165         norm:  7.908e+01  2.698e+01  1.000e-04  1.000e+04 ( 1.000e-12)
166        alpha:  2.556e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
167         beta:  2.805e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
168           Eb:  3.304e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
620    Prefactor:  9.810e-01  1.772e-01  0.000e+00  1.000e+01 ( 1.000e+00)
621        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
622        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
619   Normalization:  8.401e-01  1.525e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 20.18
Ra Dec: 12.879 -42.346
Photon Index (Fixed Index): 2.56 +/- 0.00
Photon Flux (Fixed Index): 8.97e-08 +/- 3.06e-08
Energy Flux (Fixed Index): 2.13e-05 +/- 7.28e-06

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8459.42606267
delta logL = 0.361150032732

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8459.42562838
delta logL = 0.361584316033

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    72.596       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.0503       1.0000          .0000       5.0000    
     3 'Normalizat'    .80200       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0150       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6230E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8459.426     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      258 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          72.529        313.35        .11780E-02   -.16774E-04
   2  alpha         3.0481        3.7028        .39247        .26604E-04
   3  Normalizat    .80216        .10260        .43636E-01   -.12516E-04
   4  Prefactor     1.0150        .10661        .42675E-01   -.29116E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 72.5291
  alpha      = 3.04814
  Normalizat = 0.802163
  Prefactor  = 1.01501
 **********
 **   18 **HESSE 
 **********

 FCN=   8459.426     FROM HESSE     STATUS=OK            33 CALLS      291 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          72.529        27.850        .47119E-04   -1.4003    
   2  alpha         3.0481        .60664        .16346E-01    .22105    
   3  Normalizat    .80216        .15541        .22156E-03   -.99989    
   4  Prefactor     1.0150        .18133        .23815E-03   -.92231    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11387e-09
Minuit parameter uncertainties:
  1  27.8554
  2  0.613071
  3  0.155495
  4  0.181441
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/683910': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8459.42560776
delta logL = 0.361604939801

Extracting fit parameters...

4FGL J0051.5-4220
   Spectrum: LogParabola
165         norm:  7.253e+01  2.786e+01  1.000e-04  1.000e+04 ( 1.000e-12)
166        alpha:  3.048e+00  6.131e-01  0.000e+00  5.000e+00 ( 1.000e+00)
167         beta:  2.805e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
168           Eb:  3.304e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
620    Prefactor:  1.015e+00  1.814e-01  0.000e+00  1.000e+01 ( 1.000e+00)
621        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
622        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
619   Normalization:  8.022e-01  1.555e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 21.09
Ra Dec: 12.879 -42.346
Photon Index (Free Index): 3.05 +/- 0.61
Photon Flux (Free Index): 1.11e-07 +/- 4.14e-08
Energy Flux (Free Index): 2.17e-05 +/- 6.87e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/683910/cmap_HighResolution_662601601_662860801_4FGL_J0051.5-4220_daily_bin1633.png

Cleaning up...

** Nuclear option initiated! **
rmdir /scratch/kocevski/683910

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.97e-08', energy_flux2='2.17e-05', photon_flux_error='3.06e-08', dlogl='3.62e-01', energy_flux='2.13e-05', photon_flux2='1.11e-07', job_status='DONE', time_completed='2022-01-03 00:18:12.792890', photon_index_error2='0.61', photon_index2='3.05', ts='20.18', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='6.87e-06', EG='0.84', time_epoch_completed='1641197892.79', return_code='0', job_id='683910', GAL2='1.02', EG2='0.80', return_code2='0', energy_flux_error='7.28e-06', photon_flux_error2='4.14e-08', ts2='21.09', photon_index='2.56' WHERE bin_id='1633' AND source_name='4FGL J0051.5-4220' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jan  3 00:18:12 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0240>
Subject: Job 683910: <4FGL_J0051.5-4220_daily_bin1633> in cluster <slac> Done

Job <4FGL_J0051.5-4220_daily_bin1633> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Jan  3 00:04:53 2022
Job was executed on host(s) <bullet0240>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jan  3 00:04:55 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Jan  3 00:04:55 2022
Terminated at Mon Jan  3 00:18:13 2022
Results reported at Mon Jan  3 00:18:13 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0051.5-4220_daily_bin1633 12.8793 -42.3455 662601601 662860801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0051.5-4220 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   672.18 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             332.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   798 sec.
    Turnaround time :                            800 sec.

The output (if any) is above this job summary.

