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


Performing analysis on: 4FGL_J0252.8-2219_daily_bin1102
RA = 43.2007, Dec = -22.3203
tmin = 524966401, tmax = 525225601
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='894549', job_status='RUN', time_executed='2021-08-17 01:06:14.647572', time_epoch_executed='1629187574.65' WHERE source_name='4FGL J0252.8-2219' and cadence='daily' and bin_id='1102'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/894549

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/894549/ft1_4FGL_J0252.8-2219_daily_bin1102.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/894549/ft2_4FGL_J0252.8-2219_daily_bin1102.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/894549/ft1_4FGL_J0252.8-2219_daily_bin1102.fits outfile=/scratch/kocevski/894549/ft1_filteredMKT_4FGL_J0252.8-2219_daily_bin1102.fits ra=43.2007 dec=-22.3203 rad=12.0 tmin=524966401.0 tmax=525225601.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.84
user 3.28
sys 0.47

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/894549/ft1_filtered_4FGL_J0252.8-2219_daily_bin1102.fits" evtable="EVENTS" scfile=/scratch/kocevski/894549/ft2_4FGL_J0252.8-2219_daily_bin1102.fits sctable="SC_DATA" outfile=/scratch/kocevski/894549/ltcube_524966401_525225601_4FGL_J0252.8-2219_daily_bin1102.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/894549/ft2_4FGL_J0252.8-2219_daily_bin1102.fits
.....................!
real 13.07
user 12.21
sys 0.62

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/894549/ft1_filtered_4FGL_J0252.8-2219_daily_bin1102.fits evtable="EVENTS" scfile=/scratch/kocevski/894549/ft2_4FGL_J0252.8-2219_daily_bin1102.fits sctable="SC_DATA" expcube=/scratch/kocevski/894549/ltcube_524966401_525225601_4FGL_J0252.8-2219_daily_bin1102.fits outfile=/scratch/kocevski/894549/expmap_524966401_525225601_4FGL_J0252.8-2219_daily_bin1102.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/894549/ltcube_524966401_525225601_4FGL_J0252.8-2219_daily_bin1102.fits
.....................!
real 194.54
user 186.30
sys 5.82

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/894549/ft1_filtered_4FGL_J0252.8-2219_daily_bin1102.fits scfile=/scratch/kocevski/894549/ft2_4FGL_J0252.8-2219_daily_bin1102.fits outfile=/scratch/kocevski/894549/cmap_524966401_525225601_4FGL_J0252.8-2219_daily_bin1102.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 3.17
user 0.38
sys 0.40

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/894549/ft1_filtered_4FGL_J0252.8-2219_daily_bin1102.fits scfile=/scratch/kocevski/894549/ft2_4FGL_J0252.8-2219_daily_bin1102.fits outfile=/scratch/kocevski/894549/cmap_HighResolution_524966401_525225601_4FGL_J0252.8-2219_daily_bin1102.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.62
user 0.38
sys 0.41

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/894549/ft1_filtered_4FGL_J0252.8-2219_daily_bin1102.fits evtable="EVENTS" scfile=/scratch/kocevski/894549/ft2_4FGL_J0252.8-2219_daily_bin1102.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/894549/Model_4FGL_J0252.8-2219_daily_bin1102.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/894549/ft1_filtered_4FGL_J0252.8-2219_daily_bin1102.fits.....................!
real 159.34
user 136.95
sys 1.62

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/894549/ft1_filtered_4FGL_J0252.8-2219_daily_bin1102.fits', '/scratch/kocevski/894549/ft2_4FGL_J0252.8-2219_daily_bin1102.fits', expMap='/scratch/kocevski/894549/expmap_524966401_525225601_4FGL_J0252.8-2219_daily_bin1102.fits', expCube='/scratch/kocevski/894549/ltcube_524966401_525225601_4FGL_J0252.8-2219_daily_bin1102.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/894549/Model_4FGL_J0252.8-2219_daily_bin1102.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/894549/ft1_filtered_4FGL_J0252.8-2219_daily_bin1102.fits
Spacecraft file(s): /scratch/kocevski/894549/ft2_4FGL_J0252.8-2219_daily_bin1102.fits
Exposure map: /scratch/kocevski/894549/expmap_524966401_525225601_4FGL_J0252.8-2219_daily_bin1102.fits
Exposure cube: /scratch/kocevski/894549/ltcube_524966401_525225601_4FGL_J0252.8-2219_daily_bin1102.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/894549/Model_4FGL_J0252.8-2219_daily_bin1102.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) = 6914.93723333

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.8746       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.1184       1.0000         .10000E-03   10000.    
     4 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.5267       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.816       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.3817       1.0000         .10000E-03   10000.    
    11 'norm      '    3.4613       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10223E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    34.683       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    5.2715       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10561E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .23404       1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.0840       1.0000         .10000E-03   10000.    
    20 'Prefactor '    23.521       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .27532       1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.4990       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .90028       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .97536       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=   6914.931     FROM MIGRAD    STATUS=CONVERGED    545 CALLS     2735 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.8743        6.2096        .20891E-05    .44507E-04
   2  Prefactor     .10000E-03    1.8216        .16276E-06** at limit **
   3  Prefactor     2.1191        5.8610        .77061E-05   -.25754E-04
   4  norm          .10000E-03    22.802        .35840E-05** at limit **
   5  Prefactor     4.5252        6.5821        .40749E-06   -.32810E-03
   6  Prefactor     .10000E-03    13.394       -.56497E-06** at limit **
   7  Prefactor     .10000E-03    46.078        .36416E-06** at limit **
   8  Prefactor     15.810        23.749       -.17218E-05   -.39028E-03
   9  Prefactor     .10000E-03    1.8891       -.20797E-07** at limit **
  10  Prefactor     1.3156        113.30        .16928E-04   -.37568E-04
  11  norm          3.4610        1.6352       -.45118E-07   -.12743E-02
  12  Prefactor     .10026E-03    5.3711        .51706E-05** at limit **
  13  Prefactor     34.663        62.488        .51666E-05   -.35901E-04
  14  Prefactor     .10000E-03    5.6301       -.93608E-06** at limit **
  15  norm          5.2713        2.6479       -.69631E-07   -.71073E-03
  16  Prefactor     .10000E-03    10.831       -.55273E-06** at limit **
  17  Prefactor     .10000E-03    42.835       -.22079E-05** at limit **
  18  Prefactor     .22995        2.2561       -.21233E-08   -.20991E-03
  19  Prefactor     9.0831        9.8223        .19298E-06   -.14756E-03
  20  Prefactor     23.519        32.247        .63700E-06   -.11717E-04
  21  Prefactor     .27486        1.3537        .37148E-06   -.26333E-03
  22  Prefactor     5.4979        4.8659        .17662E-06   -.17091E-03
  23  Normalizat    .90041        .14671       -.15146E-05   -.12878E-02
  24  Prefactor     .97523        .14745       -.17676E-05   -.13510E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.87434
  Prefactor  = 0.0001
  Prefactor  = 2.11914
  norm       = 0.000100001
  Prefactor  = 4.52518
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.8098
  Prefactor  = 0.0001
  Prefactor  = 1.3156
  norm       = 3.46099
  Prefactor  = 0.000100256
  Prefactor  = 34.6634
  Prefactor  = 0.000100001
  norm       = 5.27127
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.229952
  Prefactor  = 9.08311
  Prefactor  = 23.5191
  Prefactor  = 0.274865
  Prefactor  = 5.49792
  Normalizat = 0.900409
  Prefactor  = 0.975226
 **********
 **   18 **HESSE 
 **********

 FCN=   6914.931     FROM HESSE     STATUS=OK           401 CALLS     3136 TOTAL
                     EDM=   .96E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.8743        6.2118        .10250E-02   -1.5314    
   2  Prefactor     .10000E-03    1.8474        .10954E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.1191        5.9704        .14169E-02   -1.5417    
   4  norm          .10000E-03    22.961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.5252        6.5848        .18922E-03   -1.5282    
   6  Prefactor     .10000E-03    13.407        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    46.213        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     15.810        23.742        .10071E-03   -1.4913    
   9  Prefactor     .10000E-03    1.9199        .11158E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.3156        115.01        .37023E-02   -1.5479    
  11  norm          3.4610        1.6341        .69850E-04   -1.5336    
  12  Prefactor     .10026E-03    28.770        .31384E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     34.663        62.507        .68046E-04   -1.4530    
  14  Prefactor     .10000E-03    5.6735        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.2713        2.6478        .92712E-04   -1.5249    
  16  Prefactor     .10000E-03    10.873        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    42.848        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .22995        6.0524        .23710E-02   -1.5612    
  19  Prefactor     9.0831        9.7702        .13298E-03   -1.5105    
  20  Prefactor     23.519        32.245        .82592E-04   -1.4738    
  21  Prefactor     .27486        2.7094        .18375E-02   -1.5603    
  22  Prefactor     5.4979        4.8606        .16530E-03   -1.5239    
  23  Normalizat    .90041        .17218        .22526E-03   -.96446    
  24  Prefactor     .97523        .17397        .23065E-03   -.93560    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.5542e-08
Minuit parameter uncertainties:
  1  6.21283
  2  1.28132e-05
  3  5.97207
  4  0.000344388
  5  6.58589
  6  1.45742e-07
  7  0.000113421
  8  23.7564
  9  1.01493e-06
  10  24.6497
  11  1.63408
  12  0.00542716
  13  62.6257
  14  0.000119791
  15  2.64782
  16  0.000152952
  17  0.000220921
  18  2.35921
  19  9.7719
  20  32.2685
  21  1.72572
  22  4.86099
  23  0.172283
  24  0.174066
Done.

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

Extracting fit parameters...

4FGL J0252.8-2219
   Spectrum: LogParabola
257         norm:  3.461e+00  1.634e+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:  9.752e-01  1.741e-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:  9.004e-01  1.723e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.21
Ra Dec: 43.201 -22.320
Photon Index (Fixed Index): 2.25 +/- 0.00
Photon Flux (Fixed Index): 6.01e-08 +/- 2.84e-08
Energy Flux (Fixed Index): 2.03e-05 +/- 9.59e-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) = 6914.90341096
delta logL = 0.0277577077004

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6914.90292106
delta logL = 0.0282476080729

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.4715       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3675       1.0000          .0000       5.0000    
     3 'Normalizat'    .89405       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97953       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=   6914.903     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      198 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.4715        6.3182        .54259E-02   -.11029E-03
   2  alpha         2.3675        1.5894        .35225       -.50896E-04
   3  Normalizat    .89405        .14246        .44826E-01   -.47962E-03
   4  Prefactor     .97953        .15422        .46011E-01   -.47624E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.47151
  alpha      = 2.3675
  Normalizat = 0.894051
  Prefactor  = 0.979526
 **********
 **   18 **HESSE 
 **********

 FCN=   6914.903     FROM HESSE     STATUS=OK            29 CALLS      227 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.4715        1.6063        .68513E-04   -1.5335    
   2  alpha         2.3675        .48690        .13910E-01   -.53025E-01
   3  Normalizat    .89405        .16213        .22594E-03   -.96669    
   4  Prefactor     .97953        .17069        .23020E-03   -.93415    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.60329e-10
Minuit parameter uncertainties:
  1  1.60631
  2  0.490041
  3  0.162219
  4  0.170786
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/894549': 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) = 6914.90292106
delta logL = 0.0282476139164

Extracting fit parameters...

4FGL J0252.8-2219
   Spectrum: LogParabola
257         norm:  3.472e+00  1.606e+00  1.000e-04  1.000e+04 ( 1.000e-11)
258        alpha:  2.367e+00  4.900e-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:  9.795e-01  1.708e-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:  8.941e-01  1.622e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.27
Ra Dec: 43.201 -22.320
Photon Index (Free Index): 2.37 +/- 0.49
Photon Flux (Free Index): 6.49e-08 +/- 3.52e-08
Energy Flux (Free Index): 1.95e-05 +/- 9.60e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/894549/cmap_HighResolution_524966401_525225601_4FGL_J0252.8-2219_daily_bin1102.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.01e-08', energy_flux2='1.95e-05', photon_flux_error='2.84e-08', dlogl='2.82e-02', energy_flux='2.03e-05', photon_flux2='6.49e-08', job_status='DONE', time_completed='2021-08-17 01:18:36.332982', photon_index_error2='0.49', photon_index2='2.37', ts='9.21', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='9.60e-06', EG='0.90', time_epoch_completed='1629188316.33', return_code='0', job_id='894549', GAL2='0.98', EG2='0.89', return_code2='0', energy_flux_error='9.59e-06', photon_flux_error2='3.52e-08', ts2='9.27', photon_index='2.25' WHERE bin_id='1102' AND source_name='4FGL J0252.8-2219' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 17 01:18:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0259>
Subject: Job 894549: <4FGL_J0252.8-2219_daily_bin1102> in cluster <slac> Done

Job <4FGL_J0252.8-2219_daily_bin1102> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Aug 17 00:55:32 2021
Job was executed on host(s) <bullet0259>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 17 01:05:54 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 17 01:05:54 2021
Terminated at Tue Aug 17 01:18:37 2021
Results reported at Tue Aug 17 01:18:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0252.8-2219_daily_bin1102 43.2007 -22.3203 524966401 525225601 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 :                                   705.00 sec.
    Max Memory :                                 618 MB
    Average Memory :                             329.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   762 sec.
    Turnaround time :                            1385 sec.

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

