/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 4 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 = 7376
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0252.8-2219_daily_bin417
RA = 43.2007, Dec = -22.3203
tmin = 347414401, tmax = 347673601
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='889484', job_status='RUN', time_executed='2021-08-17 00:42:26.949732', time_epoch_executed='1629186146.95' WHERE source_name='4FGL J0252.8-2219' and cadence='daily' and bin_id='417'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/889484

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/889484/ft1_4FGL_J0252.8-2219_daily_bin417.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/889484/ft2_4FGL_J0252.8-2219_daily_bin417.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/889484/ft1_4FGL_J0252.8-2219_daily_bin417.fits outfile=/scratch/kocevski/889484/ft1_filteredMKT_4FGL_J0252.8-2219_daily_bin417.fits ra=43.2007 dec=-22.3203 rad=12.0 tmin=347414401.0 tmax=347673601.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.96
user 3.22
sys 0.63

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/889484/ft1_filtered_4FGL_J0252.8-2219_daily_bin417.fits" evtable="EVENTS" scfile=/scratch/kocevski/889484/ft2_4FGL_J0252.8-2219_daily_bin417.fits sctable="SC_DATA" outfile=/scratch/kocevski/889484/ltcube_347414401_347673601_4FGL_J0252.8-2219_daily_bin417.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/889484/ft2_4FGL_J0252.8-2219_daily_bin417.fits
.....................!
real 14.01
user 13.01
sys 0.79

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/889484/ft1_filtered_4FGL_J0252.8-2219_daily_bin417.fits evtable="EVENTS" scfile=/scratch/kocevski/889484/ft2_4FGL_J0252.8-2219_daily_bin417.fits sctable="SC_DATA" expcube=/scratch/kocevski/889484/ltcube_347414401_347673601_4FGL_J0252.8-2219_daily_bin417.fits outfile=/scratch/kocevski/889484/expmap_347414401_347673601_4FGL_J0252.8-2219_daily_bin417.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/889484/ltcube_347414401_347673601_4FGL_J0252.8-2219_daily_bin417.fits
.....................!
real 193.58
user 186.08
sys 6.35

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/889484/ft1_filtered_4FGL_J0252.8-2219_daily_bin417.fits scfile=/scratch/kocevski/889484/ft2_4FGL_J0252.8-2219_daily_bin417.fits outfile=/scratch/kocevski/889484/cmap_347414401_347673601_4FGL_J0252.8-2219_daily_bin417.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.97
user 0.38
sys 0.56

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/889484/ft1_filtered_4FGL_J0252.8-2219_daily_bin417.fits scfile=/scratch/kocevski/889484/ft2_4FGL_J0252.8-2219_daily_bin417.fits outfile=/scratch/kocevski/889484/cmap_HighResolution_347414401_347673601_4FGL_J0252.8-2219_daily_bin417.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 1.02
user 0.40
sys 0.56

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/889484/ft1_filtered_4FGL_J0252.8-2219_daily_bin417.fits evtable="EVENTS" scfile=/scratch/kocevski/889484/ft2_4FGL_J0252.8-2219_daily_bin417.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/889484/Model_4FGL_J0252.8-2219_daily_bin417.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/889484/ft1_filtered_4FGL_J0252.8-2219_daily_bin417.fits.....................!
real 86.86
user 84.30
sys 1.85

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.1420       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10548E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10151E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.4778       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    54.180       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.3326       1.0000         .10000E-03   10000.    
    10 'Prefactor '    55.292       1.0000         .10000E-03   10000.    
    11 'norm      '    1.1667       1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.637       1.0000         .10000E-03   10000.    
    13 'Prefactor '    36.759       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10276E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.0567       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10306E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .75476E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.8582       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3064       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .76194       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=   3947.473     FROM MIGRAD    STATUS=CONVERGED    563 CALLS     2730 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.600       -.13907E-05** at limit **
   2  Prefactor     1.1660        12.997        .35324E-05   -.85191E-04
   3  Prefactor     .10004E-03    5.7727        .22422E-05** at limit **
   4  norm          .10000E-03    23.853        .95649E-06** at limit **
   5  Prefactor     .10000E-03    8.1760       -.20287E-06** at limit **
   6  Prefactor     6.4971        48.520       -.33436E-05   -.78623E-04
   7  Prefactor     .10000E-03    44.102       -.19658E-05** at limit **
   8  Prefactor     54.208        52.775       -.17285E-06    .62517E-05
   9  Prefactor     8.3344        6.4207        .22257E-08   -.10832E-04
  10  Prefactor     55.297        71.525        .32873E-06   -.48619E-05
  11  norm          1.1688        2.3231        .23426E-06    .25111E-04
  12  Prefactor     11.646        13.087        .55222E-06   -.67286E-05
  13  Prefactor     36.553        90.699       -.24021E-04   -.28225E-03
  14  Prefactor     .10000E-03    9.8401        .39311E-06** at limit **
  15  norm          3.0571        4.1612        .13823E-06   -.38175E-04
  16  Prefactor     .10000E-03    7.0268       -.82227E-06** at limit **
  17  Prefactor     .10001E-03    421.50        .79098E-05** at limit **
  18  Prefactor     1.8570        4.0156        .74883E-05   -.78755E-03
  19  Prefactor     .10000E-03    10.757       -.53147E-06** at limit **
  20  Prefactor     .10000E-03    48.282        .21234E-05** at limit **
  21  Prefactor     .10000E-03    1.7514        .18649E-06** at limit **
  22  Prefactor     .10000E-03    8.0324        .72987E-06** at limit **
  23  Normalizat    1.3060        .22689       -.92695E-06   -.19950E-03
  24  Prefactor     .76204        .21488       -.17619E-06   -.16445E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 1.166
  Prefactor  = 0.000100042
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.49709
  Prefactor  = 0.000100001
  Prefactor  = 54.2076
  Prefactor  = 8.33438
  Prefactor  = 55.2972
  norm       = 1.16884
  Prefactor  = 11.6459
  Prefactor  = 36.5535
  Prefactor  = 0.0001
  norm       = 3.05714
  Prefactor  = 0.0001
  Prefactor  = 0.00010001
  Prefactor  = 1.85703
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.30604
  Prefactor  = 0.76204
 **********
 **   18 **HESSE 
 **********

 FCN=   3947.473     FROM HESSE     STATUS=OK           395 CALLS     3125 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.784        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.1660        13.258        .41736E-03   -1.5492    
   3  Prefactor     .10004E-03    16.492        .29020E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    23.878        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8.2531        .17520E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.4971        48.533        .15769E-03   -1.5198    
   7  Prefactor     .10000E-03    44.180        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     54.208        52.773        .54493E-04   -1.4234    
   9  Prefactor     8.3344        6.4209        .13460E-03   -1.5130    
  10  Prefactor     55.297        71.761        .53945E-04   -1.4219    
  11  norm          1.1688        2.2705        .12736E-03   -1.5492    
  12  Prefactor     11.646        13.088        .11743E-03   -1.5025    
  13  Prefactor     36.553        95.834        .33051E-03   -1.4498    
  14  Prefactor     .10000E-03    9.8552        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.0571        4.1396        .14269E-03   -1.5358    
  16  Prefactor     .10000E-03    7.0287        .16262E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10001E-03    422.29        .18576E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.8570        4.1191        .91941E-03   -1.5435    
  19  Prefactor     .10000E-03    10.778        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    48.341        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    1.7682        .81168E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    8.1154        .17385E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.3060        .27093        .22635E-03   -.83386    
  24  Prefactor     .76204        .25551        .28119E-03   -1.0114    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.22229e-09
Minuit parameter uncertainties:
  1  0.000227251
  2  7.86543
  3  0.00166139
  4  0.000105054
  5  4.58075e-05
  6  35.5548
  7  0.000421675
  8  52.8189
  9  6.42142
  10  71.8737
  11  2.27063
  12  13.0909
  13  96.2413
  14  2.32095e-05
  15  4.13995
  16  5.29038e-05
  17  0.00422846
  18  4.11974
  19  6.4115e-05
  20  0.000353282
  21  3.70727e-06
  22  1.66804e-05
  23  0.271225
  24  0.255909
Done.

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

Extracting fit parameters...

4FGL J0252.8-2219
   Spectrum: LogParabola
257         norm:  1.169e+00  2.271e+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.620e-01  2.559e-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.306e+00  2.712e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/889484/likelihoodResults_347414401_347673601_4FGL_J0252.8-2219_daily_bin417.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) = 3947.34551763
delta logL = 0.127409079618

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3947.34359762
delta logL = 0.129329091663

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1903       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.0006       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2870       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77427       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3947.344     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      265 TOTAL
                     EDM=   .22E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1911        2.1576        .98485E-04   -.39883E-04
   2  alpha         3.0012        1.5468        .30962E-01    .30430E-05
   3  Normalizat    1.2866        .25842        .22774E-03    .95259E-04
   4  Prefactor     .77474        .25005        .27902E-03    .77905E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.19107
  alpha      = 3.00124
  Normalizat = 1.28657
  Prefactor  = 0.77474
 **********
 **   18 **HESSE 
 **********

 FCN=   3947.344     FROM HESSE     STATUS=OK            25 CALLS      290 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1911        2.0499        .39394E-05   -1.5490    
   2  alpha         3.0012        1.4804        .12385E-02    .20186    
   3  Normalizat    1.2866        .25871        .45549E-04   -.83968    
   4  Prefactor     .77474        .25018        .11161E-04   -1.0067    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.663e-11
Minuit parameter uncertainties:
  1  2.05002
  2  1.58972
  3  0.258971
  4  0.250547
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/889484': 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) = 3947.34359568
delta logL = 0.129331033475

Extracting fit parameters...

4FGL J0252.8-2219
   Spectrum: LogParabola
257         norm:  1.191e+00  2.050e+00  1.000e-04  1.000e+04 ( 1.000e-11)
258        alpha:  3.001e+00  1.590e+00  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.747e-01  2.505e-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.287e+00  2.590e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.34
Ra Dec: 43.201 -22.320

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/889484/cmap_HighResolution_347414401_347673601_4FGL_J0252.8-2219_daily_bin417.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.15e-05', job_status='DONE', photon_flux_upper_limit='1.23e-07', time_completed='2021-08-17 00:52:10.550847', job_id='889484', GAL2='0.77', fit_tolerance='1e-08', EG2='1.29', EG='1.31', time_epoch_completed='1629186730.55', return_code2='0', ts='0.34', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='1.29e-01', ts2='0.61', photon_index_error='0.00', photon_index='2.25' WHERE bin_id='417' AND source_name='4FGL J0252.8-2219' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 17 00:52:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0250>
Subject: Job 889484: <4FGL_J0252.8-2219_daily_bin417> in cluster <slac> Done

Job <4FGL_J0252.8-2219_daily_bin417> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Aug 17 00:40:51 2021
Job was executed on host(s) <bullet0250>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 17 00:42:04 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:42:04 2021
Terminated at Tue Aug 17 00:52:11 2021
Results reported at Tue Aug 17 00:52:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0252.8-2219_daily_bin417 43.2007 -22.3203 347414401 347673601 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 :                                   584.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             341.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   606 sec.
    Turnaround time :                            680 sec.

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

