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


Performing analysis on: 4FGL_J0252.8-2219_daily_bin1604
RA = 43.2007, Dec = -22.3203
tmin = 655084801, tmax = 655344001
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='4340', job_status='RUN', time_executed='2021-10-08 00:04:51.184846', time_epoch_executed='1633676691.18' WHERE source_name='4FGL J0252.8-2219' and cadence='daily' and bin_id='1604'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/4340

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/4340/ft1_4FGL_J0252.8-2219_daily_bin1604.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/4340/ft2_4FGL_J0252.8-2219_daily_bin1604.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/4340/ft1_4FGL_J0252.8-2219_daily_bin1604.fits outfile=/scratch/kocevski/4340/ft1_filteredMKT_4FGL_J0252.8-2219_daily_bin1604.fits ra=43.2007 dec=-22.3203 rad=12.0 tmin=655084801.0 tmax=655344001.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 2.96
user 2.69
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/4340/ft2_4FGL_J0252.8-2219_daily_bin1604.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/4340/ft1_filteredMKT_4FGL_J0252.8-2219_daily_bin1604.fits evtable="EVENTS" outfile="/scratch/kocevski/4340/ft1_filtered_4FGL_J0252.8-2219_daily_bin1604.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.54
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/4340/ft1_filtered_4FGL_J0252.8-2219_daily_bin1604.fits" evtable="EVENTS" scfile=/scratch/kocevski/4340/ft2_4FGL_J0252.8-2219_daily_bin1604.fits sctable="SC_DATA" outfile=/scratch/kocevski/4340/ltcube_655084801_655344001_4FGL_J0252.8-2219_daily_bin1604.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/4340/ft2_4FGL_J0252.8-2219_daily_bin1604.fits
.....................!
real 15.20
user 14.71
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/4340/ft1_filtered_4FGL_J0252.8-2219_daily_bin1604.fits evtable="EVENTS" scfile=/scratch/kocevski/4340/ft2_4FGL_J0252.8-2219_daily_bin1604.fits sctable="SC_DATA" expcube=/scratch/kocevski/4340/ltcube_655084801_655344001_4FGL_J0252.8-2219_daily_bin1604.fits outfile=/scratch/kocevski/4340/expmap_655084801_655344001_4FGL_J0252.8-2219_daily_bin1604.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/4340/ltcube_655084801_655344001_4FGL_J0252.8-2219_daily_bin1604.fits
.....................!
real 193.47
user 186.78
sys 5.81

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/4340/ft1_filtered_4FGL_J0252.8-2219_daily_bin1604.fits scfile=/scratch/kocevski/4340/ft2_4FGL_J0252.8-2219_daily_bin1604.fits outfile=/scratch/kocevski/4340/cmap_655084801_655344001_4FGL_J0252.8-2219_daily_bin1604.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 0.56
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/4340/ft1_filtered_4FGL_J0252.8-2219_daily_bin1604.fits scfile=/scratch/kocevski/4340/ft2_4FGL_J0252.8-2219_daily_bin1604.fits outfile=/scratch/kocevski/4340/cmap_HighResolution_655084801_655344001_4FGL_J0252.8-2219_daily_bin1604.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 0.91
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/4340/ft1_filtered_4FGL_J0252.8-2219_daily_bin1604.fits evtable="EVENTS" scfile=/scratch/kocevski/4340/ft2_4FGL_J0252.8-2219_daily_bin1604.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/4340/Model_4FGL_J0252.8-2219_daily_bin1604.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/4340/ft1_filtered_4FGL_J0252.8-2219_daily_bin1604.fits.....................!
real 87.74
user 85.15
sys 1.71

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.324       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .58215       1.0000         .10000E-03   10000.    
     3 'Prefactor '    24.932       1.0000         .10000E-03   10000.    
     4 'norm      '    .14319E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.649       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.042       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.5305       1.0000         .10000E-03   10000.    
    10 'Prefactor '    35.019       1.0000         .10000E-03   10000.    
    11 'norm      '    4.5730       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10182E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    5.8234       1.0000         .10000E-03   10000.    
    16 'Prefactor '    15.263       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10405E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    27.585       1.0000         .10000E-03   10000.    
    20 'Prefactor '    47.082       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.3066       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.1382       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0290       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .72938       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=   4126.404     FROM MIGRAD    STATUS=CONVERGED    552 CALLS     2749 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.326        16.314        .94958E-06    .37998E-03
   2  Prefactor     .57598        5.4081       -.53296E-05    .76883E-03
   3  Prefactor     24.909        19.631       -.81897E-05    .15127E-03
   4  norm          .10002E-03    141.60       -.16772E-04** at limit **
   5  Prefactor     .10000E-03    3.7542        .10314E-06** at limit **
   6  Prefactor     15.712        69.795        .11663E-03    .10808E-03
   7  Prefactor     .10000E-03    11.419        .60815E-07** at limit **
   8  Prefactor     10.032        29.843       -.28661E-05    .73103E-04
   9  Prefactor     3.5303        3.6612        .12235E-06   -.16033E-03
  10  Prefactor     35.023        43.985        .50325E-05    .29869E-04
  11  norm          4.5731        2.5520       -.10644E-06    .12467E-03
  12  Prefactor     .10000E-03    5.9549        .29603E-07** at limit **
  13  Prefactor     .10000E-03    66.836       -.32434E-04** at limit **
  14  Prefactor     .10000E-03    23.286        .52800E-06** at limit **
  15  norm          5.8231        3.3239        .62670E-07    .64468E-04
  16  Prefactor     15.264        14.222        .64949E-06    .38228E-04
  17  Prefactor     .10000E-03    77.313        .45826E-04** at limit **
  18  Prefactor     .10000E-03    2.2928        .22230E-07** at limit **
  19  Prefactor     27.585        21.148        .20171E-05   -.21300E-04
  20  Prefactor     47.067        46.002       -.97776E-05   -.25647E-05
  21  Prefactor     1.3065        2.2327        .16304E-06   -.43657E-03
  22  Prefactor     1.1381        4.0235       -.29078E-06   -.61928E-03
  23  Normalizat    1.0290        .20996       -.40081E-05    .66483E-03
  24  Prefactor     .72946        .20030        .18357E-06    .27560E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.3265
  Prefactor  = 0.575981
  Prefactor  = 24.909
  norm       = 0.000100019
  Prefactor  = 0.0001
  Prefactor  = 15.7118
  Prefactor  = 0.0001
  Prefactor  = 10.0318
  Prefactor  = 3.53028
  Prefactor  = 35.023
  norm       = 4.57306
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.82315
  Prefactor  = 15.2639
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.5851
  Prefactor  = 47.0675
  Prefactor  = 1.30647
  Prefactor  = 1.13807
  Normalizat = 1.02897
  Prefactor  = 0.729463
 **********
 **   18 **HESSE 
 **********

 FCN=   4126.404     FROM HESSE     STATUS=OK           399 CALLS     3148 TOTAL
                     EDM=   .75E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.326        16.291        .10231E-03   -1.4925    
   2  Prefactor     .57598        26.860        .27144E-02   -1.5556    
   3  Prefactor     24.909        19.614        .80226E-04   -1.4709    
   4  norm          .10002E-03    142.02        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.7804        .12148E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     15.712        69.683        .10125E-03   -1.4915    
   7  Prefactor     .10000E-03    11.422        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     10.032        29.822        .12645E-03   -1.5074    
   9  Prefactor     3.5303        3.6540        .12083E-03   -1.5332    
  10  Prefactor     35.023        44.310        .67720E-04   -1.4524    
  11  norm          4.5731        2.5541        .72922E-04   -1.5280    
  12  Prefactor     .10000E-03    5.9654        .15309E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    66.855        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    23.488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.8231        3.3243        .85507E-04   -1.5225    
  16  Prefactor     15.264        14.229        .10252E-03   -1.4926    
  17  Prefactor     .10000E-03    77.217        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.2975        .94915E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     27.585        21.130        .76277E-04   -1.4657    
  20  Prefactor     47.067        45.986        .58436E-04   -1.4335    
  21  Prefactor     1.3065        2.1968        .12013E-03   -1.5479    
  22  Prefactor     1.1381        3.9709        .23220E-03   -1.5495    
  23  Normalizat    1.0290        .24463        .22590E-03   -.92066    
  24  Prefactor     .72946        .23271        .26500E-03   -1.0238    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.51605e-09
Minuit parameter uncertainties:
  1  16.2952
  2  7.86964
  3  19.6189
  4  0.00333488
  5  1.72058e-05
  6  66.3061
  7  5.46059e-06
  8  29.8658
  9  3.65418
  10  44.3516
  11  2.55418
  12  5.77046e-06
  13  5.92696e-05
  14  8.56019e-06
  15  3.3244
  16  14.2322
  17  1.78223e-05
  18  9.26045e-07
  19  21.1354
  20  46.0211
  21  2.19692
  22  3.97183
  23  0.2449
  24  0.233017
Done.

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

Extracting fit parameters...

4FGL J0252.8-2219
   Spectrum: LogParabola
257         norm:  4.573e+00  2.554e+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:  7.295e-01  2.330e-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:  1.029e+00  2.449e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.75
Ra Dec: 43.201 -22.320
Photon Index (Fixed Index): 2.25 +/- 0.00
Photon Flux (Fixed Index): 7.94e-08 +/- 4.43e-08
Energy Flux (Fixed Index): 2.68e-05 +/- 1.50e-05

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) = 4126.39580427
delta logL = 0.00802686885709

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4126.39413961
delta logL = 0.00969152824473

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.7129       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3332       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0219       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73331       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=   4126.394     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      195 TOTAL
                     EDM=   .76E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.7177        2.7047        .46339E-02    .19925E-03
   2  alpha         2.3345        .54014        .30856       -.24256E-04
   3  Normalizat    1.0219        .19861        .43084E-01    .65752E-04
   4  Prefactor     .73322        .19756        .42843E-01    .12029E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.71766
  alpha      = 2.33454
  Normalizat = 1.02195
  Prefactor  = 0.733222
 **********
 **   18 **HESSE 
 **********

 FCN=   4126.394     FROM HESSE     STATUS=OK            33 CALLS      228 TOTAL
                     EDM=   .50E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.7177        2.6808        .72102E-04   -1.5274    
   2  alpha         2.3345        .57384        .12668E-01   -.66231E-01
   3  Normalizat    1.0219        .23321        .22653E-03   -.92299    
   4  Prefactor     .73322        .22936        .26434E-03   -1.0224    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.96179e-11
Minuit parameter uncertainties:
  1  2.68087
  2  0.579028
  3  0.233445
  4  0.229659
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/4340': 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) = 4126.39413598
delta logL = 0.009695158049

Extracting fit parameters...

4FGL J0252.8-2219
   Spectrum: LogParabola
257         norm:  4.718e+00  2.681e+00  1.000e-04  1.000e+04 ( 1.000e-11)
258        alpha:  2.335e+00  5.790e-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:  7.332e-01  2.297e-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:  1.022e+00  2.334e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.75
Ra Dec: 43.201 -22.320
Photon Index (Free Index): 2.33 +/- 0.58
Photon Flux (Free Index): 8.63e-08 +/- 6.65e-08
Energy Flux (Free Index): 2.68e-05 +/- 1.45e-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/4340/cmap_HighResolution_655084801_655344001_4FGL_J0252.8-2219_daily_bin1604.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.94e-08', energy_flux2='2.68e-05', photon_flux_error='4.43e-08', dlogl='9.70e-03', energy_flux='2.68e-05', photon_flux2='8.63e-08', job_status='DONE', time_completed='2021-10-08 00:14:01.526472', photon_index_error2='0.58', photon_index2='2.33', ts='11.75', fit_tolerance='1e-08', GAL='0.73', photon_index_error='0.00', energy_flux_error2='1.45e-05', EG='1.03', time_epoch_completed='1633677241.53', return_code='0', job_id='4340', GAL2='0.73', EG2='1.02', return_code2='0', energy_flux_error='1.50e-05', photon_flux_error2='6.65e-08', ts2='11.75', photon_index='2.25' WHERE bin_id='1604' AND source_name='4FGL J0252.8-2219' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Oct  8 00:14:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0047>
Subject: Job 4340: <4FGL_J0252.8-2219_daily_bin1604> in cluster <slac> Done

Job <4FGL_J0252.8-2219_daily_bin1604> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Fri Oct  8 00:00:49 2021
Job was executed on host(s) <bullet0047>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Oct  8 00:03:27 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Oct  8 00:03:27 2021
Terminated at Fri Oct  8 00:14:01 2021
Results reported at Fri Oct  8 00:14:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0252.8-2219_daily_bin1604 43.2007 -22.3203 655084801 655344001 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 :                                   541.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             352.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   636 sec.
    Turnaround time :                            792 sec.

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

