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


Performing analysis on: 4FGL_J0252.8-2219_daily_bin145
RA = 43.2007, Dec = -22.3203
tmin = 276912001, tmax = 277171201
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='886477', job_status='RUN', time_executed='2021-08-17 00:32:58.336506', time_epoch_executed='1629185578.34' WHERE source_name='4FGL J0252.8-2219' and cadence='daily' and bin_id='145'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/886477

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/886477/ft1_4FGL_J0252.8-2219_daily_bin145.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/886477/ft2_4FGL_J0252.8-2219_daily_bin145.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/886477/ft1_4FGL_J0252.8-2219_daily_bin145.fits outfile=/scratch/kocevski/886477/ft1_filteredMKT_4FGL_J0252.8-2219_daily_bin145.fits ra=43.2007 dec=-22.3203 rad=12.0 tmin=276912001.0 tmax=277171201.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 7.39
user 3.30
sys 3.73

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/886477/ft1_filtered_4FGL_J0252.8-2219_daily_bin145.fits" evtable="EVENTS" scfile=/scratch/kocevski/886477/ft2_4FGL_J0252.8-2219_daily_bin145.fits sctable="SC_DATA" outfile=/scratch/kocevski/886477/ltcube_276912001_277171201_4FGL_J0252.8-2219_daily_bin145.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/886477/ft2_4FGL_J0252.8-2219_daily_bin145.fits
.....................!
real 16.36
user 11.90
sys 4.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/886477/ft1_filtered_4FGL_J0252.8-2219_daily_bin145.fits evtable="EVENTS" scfile=/scratch/kocevski/886477/ft2_4FGL_J0252.8-2219_daily_bin145.fits sctable="SC_DATA" expcube=/scratch/kocevski/886477/ltcube_276912001_277171201_4FGL_J0252.8-2219_daily_bin145.fits outfile=/scratch/kocevski/886477/expmap_276912001_277171201_4FGL_J0252.8-2219_daily_bin145.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/886477/ltcube_276912001_277171201_4FGL_J0252.8-2219_daily_bin145.fits
.....................!
real 196.39
user 186.24
sys 9.37

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/886477/ft1_filtered_4FGL_J0252.8-2219_daily_bin145.fits scfile=/scratch/kocevski/886477/ft2_4FGL_J0252.8-2219_daily_bin145.fits outfile=/scratch/kocevski/886477/cmap_276912001_277171201_4FGL_J0252.8-2219_daily_bin145.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 4.06
user 0.37
sys 3.59

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/886477/ft1_filtered_4FGL_J0252.8-2219_daily_bin145.fits scfile=/scratch/kocevski/886477/ft2_4FGL_J0252.8-2219_daily_bin145.fits outfile=/scratch/kocevski/886477/cmap_HighResolution_276912001_277171201_4FGL_J0252.8-2219_daily_bin145.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 4.11
user 0.39
sys 3.62

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/886477/ft1_filtered_4FGL_J0252.8-2219_daily_bin145.fits evtable="EVENTS" scfile=/scratch/kocevski/886477/ft2_4FGL_J0252.8-2219_daily_bin145.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/886477/Model_4FGL_J0252.8-2219_daily_bin145.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/886477/ft1_filtered_4FGL_J0252.8-2219_daily_bin145.fits.....................!
real 131.60
user 124.57
sys 5.87

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .58702E-02   1.0000         .10000E-03   10000.    
     4 'norm      '    73.504       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .62513E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.9072       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.4800       1.0000         .10000E-03   10000.    
    10 'Prefactor '    33.650       1.0000         .10000E-03   10000.    
    11 'norm      '    .14536E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.5739       1.0000         .10000E-03   10000.    
    13 'Prefactor '    27.821       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.3783       1.0000         .10000E-03   10000.    
    15 'norm      '    2.4327       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    161.40       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10361E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    27.381       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .14181E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .62733       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .76061       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0204       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=   6259.574     FROM MIGRAD    STATUS=CONVERGED    586 CALLS     2827 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.6590        .10775E-06** at limit **
   2  Prefactor     .10000E-03    1.4146        .75423E-07** at limit **
   3  Prefactor     .10033E-03    11.509        .24494E-05** at limit **
   4  norm          73.689        56.841        .11783E-05   -.38999E-03
   5  Prefactor     .10000E-03    2.3246        .33417E-06** at limit **
   6  Prefactor     .10000E-03    49.768        .48798E-06** at limit **
   7  Prefactor     .10000E-03    40.390       -.50897E-06** at limit **
   8  Prefactor     6.9082        16.148        .83873E-07   -.41164E-04
   9  Prefactor     6.4790        3.6395        .14950E-07   -.65016E-04
  10  Prefactor     33.661        33.189        .17518E-06   -.14570E-04
  11  norm          .17901E-01    .60264        .70894E-07   -.80035E-04
  12  Prefactor     5.5739        7.6291        .34151E-06   -.66165E-04
  13  Prefactor     27.802        42.221        .30397E-06    .21702E-04
  14  Prefactor     7.3771        8.5855        .14396E-06    .62109E-04
  15  norm          2.4325        1.7999       -.22635E-07   -.10942E-03
  16  Prefactor     .10000E-03    13.165        .41936E-06** at limit **
  17  Prefactor     161.29        173.26       -.13884E-05   -.10325E-03
  18  Prefactor     .10000E-03    2.5478       -.61847E-07** at limit **
  19  Prefactor     .10000E-03    23.530       -.16706E-05** at limit **
  20  Prefactor     27.406        43.508        .41710E-06    .18332E-04
  21  Prefactor     .10000E-03    .99106       -.24102E-06** at limit **
  22  Prefactor     .62713        6.5568        .52449E-05    .35527E-03
  23  Normalizat    .76044        .14315       -.93346E-06   -.42226E-03
  24  Prefactor     1.0206        .14862       -.15866E-07   -.38104E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100332
  norm       = 73.6892
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 6.90821
  Prefactor  = 6.47902
  Prefactor  = 33.6611
  norm       = 0.0179015
  Prefactor  = 5.57392
  Prefactor  = 27.8024
  Prefactor  = 7.37709
  norm       = 2.43249
  Prefactor  = 0.0001
  Prefactor  = 161.288
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.4057
  Prefactor  = 0.000100001
  Prefactor  = 0.627127
  Normalizat = 0.760439
  Prefactor  = 1.02058
 **********
 **   18 **HESSE 
 **********

 FCN=   6259.574     FROM HESSE     STATUS=OK           403 CALLS     3230 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.6969        .16677E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.4321        .91874E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10033E-03    36.117        .36733E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          73.689        46.372        .46829E-04   -1.3989    
   5  Prefactor     .10000E-03    9.4552        .22864E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    49.935        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    40.692        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.9082        16.024        .15265E-03   -1.5182    
   9  Prefactor     6.4790        3.6397        .10943E-03   -1.5199    
  10  Prefactor     33.661        33.311        .69079E-04   -1.4547    
  11  norm          .17901E-01    20.046        .11658E-02   -1.5681    
  12  Prefactor     5.5739        7.6309        .17017E-03   -1.5236    
  13  Prefactor     27.802        42.221        .75954E-04   -1.4653    
  14  Prefactor     7.3771        8.5757        .14766E-03   -1.5165    
  15  norm          2.4325        1.8039        .88599E-04   -1.5396    
  16  Prefactor     .10000E-03    13.438        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     161.29        173.08        .15871E-03   -1.3161    
  18  Prefactor     .10000E-03    2.6146        .24646E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    23.952        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     27.406        43.574        .76560E-04   -1.4660    
  21  Prefactor     .10000E-03    6.9719        .15043E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .62713        6.8285        .38737E-02   -1.5550    
  23  Normalizat    .76044        .16434        .22777E-03   -1.0155    
  24  Prefactor     1.0206        .17157        .21661E-03   -.92047    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.33428e-08
Minuit parameter uncertainties:
  1  7.95831e-06
  2  2.53952e-06
  3  0.00692733
  4  46.395
  5  0.000107837
  6  0.000106191
  7  0.000321582
  8  16.034
  9  3.63978
  10  33.329
  11  1.19514
  12  7.63218
  13  42.2666
  14  8.5771
  15  1.80395
  16  3.66266e-05
  17  173.632
  18  1.69245e-06
  19  0.000148274
  20  43.625
  21  0.000178679
  22  4.13905
  23  0.164445
  24  0.171662
Done.

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

Extracting fit parameters...

4FGL J0252.8-2219
   Spectrum: LogParabola
257         norm:  1.790e-02  1.195e+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.021e+00  1.717e-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:  7.604e-01  1.644e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 43.201 -22.320
Photon Flux Upper Limit: 5.71e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.93e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/886477/likelihoodResults_276912001_277171201_4FGL_J0252.8-2219_daily_bin145.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): 102
logL (Free Index) = 6259.54994914
delta logL = 0.0243054663661

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6258.98540791
delta logL = 0.588846697556

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .30016       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.4322       1.0000          .0000       5.0000    
     3 'Normalizat'    .71004       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0506       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=   6258.985     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      228 TOTAL
                     EDM=   .85E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .30168        7.3346        .92060E-02    .13603E-02
   2  alpha         4.4283        2.5913        .50000        .72655E-05
   3  Normalizat    .70981        .41606E-01    .42424E-01   -.69297E-05
   4  Prefactor     1.0507        .44532E-01    .39873E-01   -.27305E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.301684
  alpha      = 4.4283
  Normalizat = 0.709814
  Prefactor  = 1.05072
 **********
 **   18 **HESSE 
 **********

 FCN=   6258.985     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      263 TOTAL
                     EDM=   .32E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .30168        14.428        .41947E-03   -1.5598    
   2  alpha         4.4283        3.7366        .47762E-01    .88091    
   3  Normalizat    .70981        .12863        .23506E-03   -1.0351    
   4  Prefactor     1.0507        .13811        .21383E-03   -.91057    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.22702e-07
Minuit parameter uncertainties:
  1  4.17296
  2  11.7485
  3  0.128684
  4  0.138153
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/886477': 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): 102
logL (Free Index) = 6258.98540438
delta logL = 0.588850222334

Extracting fit parameters...

4FGL J0252.8-2219
   Spectrum: LogParabola
257         norm:  3.017e-01  4.173e+00  1.000e-04  1.000e+04 ( 1.000e-11)
258        alpha:  4.428e+00  1.175e+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.051e+00  1.382e-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:  7.098e-01  1.287e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.26
Ra Dec: 43.201 -22.320
Photon Index (Free Index): 4.43 +/- 11.75
Photon Flux (Free Index): 3.95e-08 +/- 5.13e-08
Energy Flux (Free Index): 5.64e-06 +/- 1.43e-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/886477/cmap_HighResolution_276912001_277171201_4FGL_J0252.8-2219_daily_bin145.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.93e-05', comment='SUCCESS', energy_flux2='5.64e-06', dlogl='5.89e-01', photon_flux2='3.95e-08', job_status='DONE', time_completed='2021-08-17 00:46:11.823293', photon_index_error2='11.75', photon_index2='4.43', ts='0.00', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='5.71e-08', energy_flux_error2='1.43e-05', EG='0.76', time_epoch_completed='1629186371.82', return_code='0', job_id='886477', GAL2='1.05', EG2='0.71', return_code2='102', photon_flux_error2='5.13e-08', ts2='1.26', photon_index='2.25' WHERE bin_id='145' AND source_name='4FGL J0252.8-2219' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 17 00:46:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0297>
Subject: Job 886477: <4FGL_J0252.8-2219_daily_bin145> in cluster <slac> Done

Job <4FGL_J0252.8-2219_daily_bin145> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Aug 17 00:30:48 2021
Job was executed on host(s) <bullet0297>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 17 00:31:41 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:31:41 2021
Terminated at Tue Aug 17 00:46:13 2021
Results reported at Tue Aug 17 00:46:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0252.8-2219_daily_bin145 43.2007 -22.3203 276912001 277171201 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 :                                   840.07 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             366.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   871 sec.
    Turnaround time :                            925 sec.

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

