/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 108 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 = 7418
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0252.8-2219_daily_bin836
RA = 43.2007, Dec = -22.3203
tmin = 456019201, tmax = 456278401
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='892521', job_status='RUN', time_executed='2021-08-17 00:53:37.568473', time_epoch_executed='1629186817.57' WHERE source_name='4FGL J0252.8-2219' and cadence='daily' and bin_id='836'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/892521

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/892521/ft1_4FGL_J0252.8-2219_daily_bin836.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/892521/ft2_4FGL_J0252.8-2219_daily_bin836.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/892521/ft1_4FGL_J0252.8-2219_daily_bin836.fits outfile=/scratch/kocevski/892521/ft1_filteredMKT_4FGL_J0252.8-2219_daily_bin836.fits ra=43.2007 dec=-22.3203 rad=12.0 tmin=456019201.0 tmax=456278401.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 8.68
user 6.71
sys 1.85

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/892521/ft2_4FGL_J0252.8-2219_daily_bin836.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/892521/ft2_4FGL_J0252.8-2219_daily_bin836.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/892521/ft1_filteredMKT_4FGL_J0252.8-2219_daily_bin836.fits evtable="EVENTS" outfile="/scratch/kocevski/892521/ft1_filtered_4FGL_J0252.8-2219_daily_bin836.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 2.07
user 0.34
sys 1.69

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/892521/ft1_filtered_4FGL_J0252.8-2219_daily_bin836.fits" evtable="EVENTS" scfile=/scratch/kocevski/892521/ft2_4FGL_J0252.8-2219_daily_bin836.fits sctable="SC_DATA" outfile=/scratch/kocevski/892521/ltcube_456019201_456278401_4FGL_J0252.8-2219_daily_bin836.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/892521/ft2_4FGL_J0252.8-2219_daily_bin836.fits
.....................!
real 14.70
user 12.58
sys 2.06

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/892521/ft1_filtered_4FGL_J0252.8-2219_daily_bin836.fits evtable="EVENTS" scfile=/scratch/kocevski/892521/ft2_4FGL_J0252.8-2219_daily_bin836.fits sctable="SC_DATA" expcube=/scratch/kocevski/892521/ltcube_456019201_456278401_4FGL_J0252.8-2219_daily_bin836.fits outfile=/scratch/kocevski/892521/expmap_456019201_456278401_4FGL_J0252.8-2219_daily_bin836.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/892521/ltcube_456019201_456278401_4FGL_J0252.8-2219_daily_bin836.fits
.....................!
real 193.08
user 185.39
sys 7.16

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
Extended source Fornax A in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/FornaxA.fits is the correct path to the extended template.
Added 161 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0252.8-2219 @ 43.2007 -22.3203

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/892521/ft1_filtered_4FGL_J0252.8-2219_daily_bin836.fits scfile=/scratch/kocevski/892521/ft2_4FGL_J0252.8-2219_daily_bin836.fits outfile=/scratch/kocevski/892521/cmap_456019201_456278401_4FGL_J0252.8-2219_daily_bin836.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=43.2007 yref=-22.3203 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.08
user 0.38
sys 1.65

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/892521/ft1_filtered_4FGL_J0252.8-2219_daily_bin836.fits scfile=/scratch/kocevski/892521/ft2_4FGL_J0252.8-2219_daily_bin836.fits outfile=/scratch/kocevski/892521/cmap_HighResolution_456019201_456278401_4FGL_J0252.8-2219_daily_bin836.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=43.2007 yref=-22.3203 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.16
user 0.40
sys 1.66

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/892521/ft1_filtered_4FGL_J0252.8-2219_daily_bin836.fits evtable="EVENTS" scfile=/scratch/kocevski/892521/ft2_4FGL_J0252.8-2219_daily_bin836.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/892521/Model_4FGL_J0252.8-2219_daily_bin836.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 Fornax A
adding source GAL_V02
Working on...
/scratch/kocevski/892521/ft1_filtered_4FGL_J0252.8-2219_daily_bin836.fits.....................!
real 95.17
user 91.37
sys 3.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/892521/ft1_filtered_4FGL_J0252.8-2219_daily_bin836.fits', '/scratch/kocevski/892521/ft2_4FGL_J0252.8-2219_daily_bin836.fits', expMap='/scratch/kocevski/892521/expmap_456019201_456278401_4FGL_J0252.8-2219_daily_bin836.fits', expCube='/scratch/kocevski/892521/ltcube_456019201_456278401_4FGL_J0252.8-2219_daily_bin836.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/892521/Model_4FGL_J0252.8-2219_daily_bin836.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0252.8-2219'

4FGL J0252.8-2219
   Spectrum: LogParabola
257         norm:  4.837e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
258        alpha:  2.252e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
259         beta:  8.603e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
260           Eb:  4.069e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/892521/ft1_filtered_4FGL_J0252.8-2219_daily_bin836.fits
Spacecraft file(s): /scratch/kocevski/892521/ft2_4FGL_J0252.8-2219_daily_bin836.fits
Exposure map: /scratch/kocevski/892521/expmap_456019201_456278401_4FGL_J0252.8-2219_daily_bin836.fits
Exposure cube: /scratch/kocevski/892521/ltcube_456019201_456278401_4FGL_J0252.8-2219_daily_bin836.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/892521/Model_4FGL_J0252.8-2219_daily_bin836.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) = 4480.97286867

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.4379       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.0339       1.0000         .10000E-03   10000.    
     4 'norm      '    4.6957       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .75037E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    108.15       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.3973       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.2963       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.8057       1.0000         .10000E-03   10000.    
    11 'norm      '    2.0561       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10498E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    31.251       1.0000         .10000E-03   10000.    
    14 'Prefactor '    18.074       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10331E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.9673       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .75590       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.1948       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .21778E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .61288       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0350       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5110E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4480.934     FROM MIGRAD    STATUS=CONVERGED    585 CALLS     3250 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.1034       -.84395E-08** at limit **
   2  Prefactor     1.4409        4.3669        .27782E-06    .59688E-03
   3  Prefactor     1.0234        18.974       -.14861E-05    .17760E-03
   4  norm          4.7005        153.45        .11051E-04    .61628E-04
   5  Prefactor     .34760E-01    4.1204       -.32533E-06    .26494E-04
   6  Prefactor     108.16        50.450        .49934E-06    .94629E-04
   7  Prefactor     2.4118        194.18       -.63922E-05    .76974E-05
   8  Prefactor     .10000E-03    18.283        .46032E-07** at limit **
   9  Prefactor     5.2965        3.7274        .58771E-07    .24916E-03
  10  Prefactor     5.8187        48.796       -.10544E-05    .42326E-04
  11  norm          2.0558        1.8287       -.46001E-07    .43220E-03
  12  Prefactor     .10000E-03    5.2112       -.11507E-06** at limit **
  13  Prefactor     31.233        43.610        .89824E-06    .16737E-04
  14  Prefactor     18.061        18.925       -.47328E-06    .12254E-03
  15  norm          .10000E-03    2.5115        .22904E-07** at limit **
  16  Prefactor     .10000E-03    4.2971       -.78704E-07** at limit **
  17  Prefactor     .10000E-03    81.928       -.49810E-06** at limit **
  18  Prefactor     3.9646        4.0423        .42502E-06    .54493E-03
  19  Prefactor     .74153        67.515       -.21706E-04    .11885E-03
  20  Prefactor     2.1551        306.40        .14011E-04    .26815E-04
  21  Prefactor     .10001E-03    1.4706        .21222E-06** at limit **
  22  Prefactor     .10000E-03    4.6070       -.13059E-06** at limit **
  23  Normalizat    .61325        .17167        .17877E-06    .36213E-03
  24  Prefactor     1.0349        .17043        .15078E-05    .86301E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.44089
  Prefactor  = 1.0234
  norm       = 4.7005
  Prefactor  = 0.0347598
  Prefactor  = 108.156
  Prefactor  = 2.41176
  Prefactor  = 0.0001
  Prefactor  = 5.29651
  Prefactor  = 5.81873
  norm       = 2.05576
  Prefactor  = 0.0001
  Prefactor  = 31.2332
  Prefactor  = 18.0608
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.96455
  Prefactor  = 0.741532
  Prefactor  = 2.15509
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  Normalizat = 0.613252
  Prefactor  = 1.03488
 **********
 **   18 **HESSE 
 **********

 FCN=   4480.934     FROM HESSE     STATUS=OK           415 CALLS     3665 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.1086        .11516E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.4409        4.3638        .22627E-03   -1.5468    
   3  Prefactor     1.0234        39.694        .34706E-02   -1.5506    
   4  norm          4.7005        193.64        .18570E-03   -1.5274    
   5  Prefactor     .34760E-01    12.584        .39419E-01   -1.5671    
   6  Prefactor     108.16        50.294        .38673E-04   -1.3624    
   7  Prefactor     2.4118        192.73        .26448E-03   -1.5397    
   8  Prefactor     .10000E-03    18.325        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.2965        3.7252        .10451E-03   -1.5248    
  10  Prefactor     5.8187        48.020        .16668E-03   -1.5225    
  11  norm          2.0558        1.8168        .80851E-04   -1.5421    
  12  Prefactor     .10000E-03    5.4181        .29842E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     31.233        43.669        .71675E-04   -1.4590    
  14  Prefactor     18.061        18.842        .94210E-04   -1.4858    
  15  norm          .10000E-03    2.6253        .20692E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.3006        .13553E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    81.942        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.9646        4.0153        .12547E-03   -1.5310    
  19  Prefactor     .74153        73.645        .46696E-02   -1.5536    
  20  Prefactor     2.1551        314.61        .27777E-03   -1.5414    
  21  Prefactor     .10001E-03    11.711        .15378E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    4.6849        .14024E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .61325        .20127        .23692E-03   -1.0742    
  24  Prefactor     1.0349        .19969        .20464E-03   -.91576    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.71212e-09
Minuit parameter uncertainties:
  1  2.38944e-06
  2  4.36479
  3  12.7557
  4  60.5493
  5  1.32115
  6  50.3136
  7  43.2629
  8  7.28811e-05
  9  3.72538
  10  33.4677
  11  1.81681
  12  2.11924e-05
  13  43.7138
  14  18.8479
  15  1.55848e-05
  16  1.71987e-05
  17  2.87943e-06
  18  4.01556
  19  14.7975
  20  52.3591
  21  0.000610852
  22  1.13488e-05
  23  0.201515
  24  0.199838
Done.

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

Extracting fit parameters...

4FGL J0252.8-2219
   Spectrum: LogParabola
257         norm:  2.056e+00  1.817e+00  1.000e-04  1.000e+04 ( 1.000e-11)
258        alpha:  2.252e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
259         beta:  8.603e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
260           Eb:  4.069e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
508    Prefactor:  1.035e+00  1.998e-01  0.000e+00  1.000e+01 ( 1.000e+00)
509        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
510        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
504   Normalization:  6.133e-01  2.015e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.08
Ra Dec: 43.201 -22.320
Photon Index (Fixed Index): 2.25 +/- 0.00
Photon Flux (Fixed Index): 3.57e-08 +/- 3.15e-08
Energy Flux (Fixed Index): 1.21e-05 +/- 1.07e-05

TS (Fixed Index): 2.08
Ra Dec: 43.201 -22.320
Photon Flux Upper Limit: 1.06e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.59e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/892521/likelihoodResults_456019201_456278401_4FGL_J0252.8-2219_daily_bin836.txt

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) = 4480.92034805
delta logL = 0.0139723413531

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4480.92011826
delta logL = 0.0142021293123

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4480.920     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      218 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.0625        78.796        .71968E-02    .32248E-03
   2  alpha         2.3672        3.0748        .40287       -.23091E-05
   3  Normalizat    .60975        .11912        .41073E-01    .18762E-04
   4  Prefactor     1.0371        .19752        .40733E-01   -.20152E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.06254
  alpha      = 2.36717
  Normalizat = 0.609748
  Prefactor  = 1.03709
 **********
 **   18 **HESSE 
 **********

 FCN=   4480.920     FROM HESSE     STATUS=OK            33 CALLS      251 TOTAL
                     EDM=   .34E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.0625        1.7996        .79748E-04   -1.5421    
   2  alpha         2.3672        .68225        .15911E-01   -.53156E-01
   3  Normalizat    .60975        .17543        .23756E-03   -1.0757    
   4  Prefactor     1.0371        .19227        .20445E-03   -.91503    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.39905e-13
Minuit parameter uncertainties:
  1  1.79966
  2  0.691039
  3  0.175587
  4  0.192394
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/892521': 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) = 4480.92011702
delta logL = 0.014203374968

Extracting fit parameters...

4FGL J0252.8-2219
   Spectrum: LogParabola
257         norm:  2.063e+00  1.800e+00  1.000e-04  1.000e+04 ( 1.000e-11)
258        alpha:  2.367e+00  6.910e-01  0.000e+00  5.000e+00 ( 1.000e+00)
259         beta:  8.603e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
260           Eb:  4.069e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
508    Prefactor:  1.037e+00  1.924e-01  0.000e+00  1.000e+01 ( 1.000e+00)
509        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
510        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
504   Normalization:  6.097e-01  1.756e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.10
Ra Dec: 43.201 -22.320
Photon Index (Free Index): 2.37 +/- 0.69
Photon Flux (Free Index): 3.86e-08 +/- 3.65e-08
Energy Flux (Free Index): 1.16e-05 +/- 1.05e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/892521/cmap_HighResolution_456019201_456278401_4FGL_J0252.8-2219_daily_bin836.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.59e-05', comment='SUCCESS', photon_flux='3.57e-08', energy_flux2='1.16e-05', photon_flux_error='3.15e-08', dlogl='1.42e-02', energy_flux='1.21e-05', photon_flux2='3.86e-08', job_status='DONE', time_completed='2021-08-17 01:05:00.943235', photon_index_error2='0.69', photon_index2='2.37', ts='2.08', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='1.06e-07', energy_flux_error2='1.05e-05', EG='0.61', time_epoch_completed='1629187500.94', return_code='0', job_id='892521', GAL2='1.04', EG2='0.61', return_code2='0', energy_flux_error='1.07e-05', photon_flux_error2='3.65e-08', ts2='2.10', photon_index='2.25' WHERE bin_id='836' AND source_name='4FGL J0252.8-2219' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 17 01:05:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 892521: <4FGL_J0252.8-2219_daily_bin836> in cluster <slac> Done

Job <4FGL_J0252.8-2219_daily_bin836> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Aug 17 00:50:38 2021
Job was executed on host(s) <bullet0073>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 17 00:50:59 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 17 00:50:59 2021
Terminated at Tue Aug 17 01:05:01 2021
Results reported at Tue Aug 17 01:05:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0252.8-2219_daily_bin836 43.2007 -22.3203 456019201 456278401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0252.8-2219 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   701.51 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             327.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   842 sec.
    Turnaround time :                            863 sec.

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

