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


Performing analysis on: 4FGL_J0252.8-2219_daily_bin828
RA = 43.2007, Dec = -22.3203
tmin = 453945601, tmax = 454204801
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='892509', job_status='RUN', time_executed='2021-08-17 00:53:29.784310', time_epoch_executed='1629186809.78' WHERE source_name='4FGL J0252.8-2219' and cadence='daily' and bin_id='828'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/892509

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/892509/ft1_4FGL_J0252.8-2219_daily_bin828.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/892509/ft2_4FGL_J0252.8-2219_daily_bin828.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/892509/ft1_4FGL_J0252.8-2219_daily_bin828.fits outfile=/scratch/kocevski/892509/ft1_filteredMKT_4FGL_J0252.8-2219_daily_bin828.fits ra=43.2007 dec=-22.3203 rad=12.0 tmin=453945601.0 tmax=454204801.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 9.03
user 3.82
sys 5.01

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/892509/ft2_4FGL_J0252.8-2219_daily_bin828.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/892509/ft1_filteredMKT_4FGL_J0252.8-2219_daily_bin828.fits evtable="EVENTS" outfile="/scratch/kocevski/892509/ft1_filtered_4FGL_J0252.8-2219_daily_bin828.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 6.50
user 0.35
sys 5.47

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/892509/ft1_filtered_4FGL_J0252.8-2219_daily_bin828.fits" evtable="EVENTS" scfile=/scratch/kocevski/892509/ft2_4FGL_J0252.8-2219_daily_bin828.fits sctable="SC_DATA" outfile=/scratch/kocevski/892509/ltcube_453945601_454204801_4FGL_J0252.8-2219_daily_bin828.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/892509/ft2_4FGL_J0252.8-2219_daily_bin828.fits
.....................!
real 20.19
user 13.63
sys 5.69

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/892509/ft1_filtered_4FGL_J0252.8-2219_daily_bin828.fits evtable="EVENTS" scfile=/scratch/kocevski/892509/ft2_4FGL_J0252.8-2219_daily_bin828.fits sctable="SC_DATA" expcube=/scratch/kocevski/892509/ltcube_453945601_454204801_4FGL_J0252.8-2219_daily_bin828.fits outfile=/scratch/kocevski/892509/expmap_453945601_454204801_4FGL_J0252.8-2219_daily_bin828.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/892509/ltcube_453945601_454204801_4FGL_J0252.8-2219_daily_bin828.fits
.....................!
real 198.45
user 186.13
sys 11.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/892509/ft1_filtered_4FGL_J0252.8-2219_daily_bin828.fits scfile=/scratch/kocevski/892509/ft2_4FGL_J0252.8-2219_daily_bin828.fits outfile=/scratch/kocevski/892509/cmap_453945601_454204801_4FGL_J0252.8-2219_daily_bin828.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 5.66
user 0.39
sys 5.23

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/892509/ft1_filtered_4FGL_J0252.8-2219_daily_bin828.fits scfile=/scratch/kocevski/892509/ft2_4FGL_J0252.8-2219_daily_bin828.fits outfile=/scratch/kocevski/892509/cmap_HighResolution_453945601_454204801_4FGL_J0252.8-2219_daily_bin828.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 5.29
user 0.40
sys 4.85

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/892509/ft1_filtered_4FGL_J0252.8-2219_daily_bin828.fits evtable="EVENTS" scfile=/scratch/kocevski/892509/ft2_4FGL_J0252.8-2219_daily_bin828.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/892509/Model_4FGL_J0252.8-2219_daily_bin828.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/892509/ft1_filtered_4FGL_J0252.8-2219_daily_bin828.fits.....................!
real 85.33
user 76.08
sys 8.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.3252       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.8912       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    49.095       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .16361E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    17.999       1.0000         .10000E-03   10000.    
    11 'norm      '    .10198E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.866       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.5744       1.0000         .10000E-03   10000.    
    15 'norm      '    2.5253       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .17442E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .17778E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    9.1363       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0891       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .73739       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=   3721.015     FROM MIGRAD    STATUS=CONVERGED    546 CALLS     2706 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.3262        36.532       -.10854E-05   -.60491E-04
   2  Prefactor     6.8918        8.3176       -.16401E-05   -.58317E-04
   3  Prefactor     .10000E-03    3.6677       -.59907E-07** at limit **
   4  norm          .10000E-03    19.984       -.88282E-05** at limit **
   5  Prefactor     .10000E-03    3.3542        .91153E-07** at limit **
   6  Prefactor     49.124        63.872        .29356E-04    .24819E-04
   7  Prefactor     .10005E-03    293.41       -.19598E-03** at limit **
   8  Prefactor     .10000E-03    22.906        .11944E-04** at limit **
   9  Prefactor     .10000E-03    1.5785       -.43875E-07** at limit **
  10  Prefactor     17.978        42.938       -.22245E-04    .41494E-04
  11  norm          .10000E-03    2.4590       -.93003E-07** at limit **
  12  Prefactor     13.871        11.666        .19493E-07   -.18851E-04
  13  Prefactor     .10000E-03    46.581       -.31822E-04** at limit **
  14  Prefactor     6.5746        8.2684        .59739E-06    .43930E-04
  15  norm          2.5250        2.5350        .15907E-06    .73251E-04
  16  Prefactor     .10000E-03    14.259        .58936E-06** at limit **
  17  Prefactor     .10000E-03    117.58        .87930E-05** at limit **
  18  Prefactor     .10379E-03    3.7864        .14984E-05** at limit **
  19  Prefactor     .10000E-03    9.0749       -.43446E-06** at limit **
  20  Prefactor     .10000E-03    57.650        .33672E-04** at limit **
  21  Prefactor     .10000E-03    1.9485        .13867E-06** at limit **
  22  Prefactor     9.1358        7.7109        .27322E-06   -.10899E-03
  23  Normalizat    1.0891        .20723        .14197E-06    .33759E-03
  24  Prefactor     .73713        .19259       -.87276E-06    .81245E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.32615
  Prefactor  = 6.89179
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 49.1237
  Prefactor  = 0.000100048
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.9777
  norm       = 0.0001
  Prefactor  = 13.871
  Prefactor  = 0.0001
  Prefactor  = 6.57461
  norm       = 2.52498
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000103793
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.13583
  Normalizat = 1.08906
  Prefactor  = 0.737134
 **********
 **   18 **HESSE 
 **********

 FCN=   3721.015     FROM HESSE     STATUS=OK           395 CALLS     3101 TOTAL
                     EDM=   .36E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.3262        35.851        .26897E-03   -1.5403    
   2  Prefactor     6.8918        8.2506        .15283E-03   -1.5183    
   3  Prefactor     .10000E-03    3.6709        .11408E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    20.011        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.3644        .10908E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     49.124        64.020        .57231E-04   -1.4305    
   7  Prefactor     .10005E-03    293.58        .20401E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    22.961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.5808        .74842E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     17.978        43.242        .94405E-04   -1.4860    
  11  norm          .10000E-03    2.5646        .18625E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     13.871        11.668        .10756E-03   -1.4963    
  13  Prefactor     .10000E-03    46.645        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.5746        8.2650        .15651E-03   -1.5195    
  15  norm          2.5250        2.5366        .94593E-04   -1.5390    
  16  Prefactor     .10000E-03    14.385        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    117.60        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10379E-03    98.645        .22593E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    9.0867        .17945E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    57.767        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.1127        .16516E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     9.1358        7.7110        .13260E-03   -1.5103    
  23  Normalizat    1.0891        .23909        .21662E-03   -.90104    
  24  Prefactor     .73713        .21813        .25169E-03   -1.0209    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.60221e-08
Minuit parameter uncertainties:
  1  18.2769
  2  8.25194
  3  4.06673e-05
  4  0.00014018
  5  1.78113e-05
  6  64.1097
  7  0.00751059
  8  0.000160332
  9  8.6819e-06
  10  43.3175
  11  1.55716e-05
  12  11.6695
  13  1.09544e-05
  14  8.26644
  15  2.5367
  16  1.11321e-06
  17  4.88542e-06
  18  0.0387497
  19  1.1478e-05
  20  4.7857e-05
  21  5.32229e-05
  22  7.71185
  23  0.239329
  24  0.21838
Done.

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

Extracting fit parameters...

4FGL J0252.8-2219
   Spectrum: LogParabola
257         norm:  1.000e-04  1.557e-05  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.371e-01  2.184e-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.089e+00  2.393e-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: 1.03e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.49e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/892509/likelihoodResults_453945601_454204801_4FGL_J0252.8-2219_daily_bin828.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) = 3721.01660414
delta logL = -0.00186027245627

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3721.01474407
delta logL = -2.00740942091e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2688       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0891       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73718       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=   3721.015     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      236 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    444.53        .18796E-02** at limit **
   2  alpha         2.5077        3.7357        .16550       -.10929E-06
   3  Normalizat    1.0891        .85895E-01    .21662E-03   -.64095E-03
   4  Prefactor     .73714        .83875E-01    .25169E-03   -.56679E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.50766
  Normalizat = 1.08905
  Prefactor  = 0.737136
 **********
 **   18 **HESSE 
 **********

 FCN=   3721.015     FROM HESSE     STATUS=OK            23 CALLS      259 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.7946        .37592E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.5077        3.3804        .66202E-02    .30639E-02
   3  Normalizat    1.0891        .22003        .43324E-04   -.90104    
   4  Prefactor     .73714        .21529        .50338E-04   -1.0209    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.66938e-10
Minuit parameter uncertainties:
  1  2.94886e-05
  2  147.29
  3  0.220216
  4  0.215538
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/892509': 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) = 3721.01474227
delta logL = 1.60098943525e-06

Extracting fit parameters...

4FGL J0252.8-2219
   Spectrum: LogParabola
257         norm:  1.000e-04  2.949e-05  1.000e-04  1.000e+04 ( 1.000e-11)
258        alpha:  2.508e+00  1.473e+02  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.371e-01  2.155e-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.089e+00  2.202e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/892509/cmap_HighResolution_453945601_454204801_4FGL_J0252.8-2219_daily_bin828.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.49e-05', job_status='DONE', photon_flux_upper_limit='1.03e-07', time_completed='2021-08-17 01:04:02.379873', job_id='892509', GAL2='0.74', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1629187442.38', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.74', dlogl='1.60e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.25' WHERE bin_id='828' AND source_name='4FGL J0252.8-2219' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 17 01:04:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0265>
Subject: Job 892509: <4FGL_J0252.8-2219_daily_bin828> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0252.8-2219_daily_bin828 43.2007 -22.3203 453945601 454204801 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 :                                   702.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             289.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   792 sec.
    Turnaround time :                            806 sec.

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

