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


Performing analysis on: 4FGL_J0252.8-2219_daily_bin633
RA = 43.2007, Dec = -22.3203
tmin = 403401601, tmax = 403660801
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='891147', job_status='RUN', time_executed='2021-08-17 00:48:58.710010', time_epoch_executed='1629186538.71' WHERE source_name='4FGL J0252.8-2219' and cadence='daily' and bin_id='633'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/891147

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/891147/ft1_4FGL_J0252.8-2219_daily_bin633.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/891147/ft2_4FGL_J0252.8-2219_daily_bin633.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/891147/ft1_4FGL_J0252.8-2219_daily_bin633.fits outfile=/scratch/kocevski/891147/ft1_filteredMKT_4FGL_J0252.8-2219_daily_bin633.fits ra=43.2007 dec=-22.3203 rad=12.0 tmin=403401601.0 tmax=403660801.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 11.16
user 3.76
sys 7.30

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/891147/ft1_filtered_4FGL_J0252.8-2219_daily_bin633.fits" evtable="EVENTS" scfile=/scratch/kocevski/891147/ft2_4FGL_J0252.8-2219_daily_bin633.fits sctable="SC_DATA" outfile=/scratch/kocevski/891147/ltcube_403401601_403660801_4FGL_J0252.8-2219_daily_bin633.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/891147/ft2_4FGL_J0252.8-2219_daily_bin633.fits
.....................!
real 22.18
user 13.65
sys 8.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/891147/ft1_filtered_4FGL_J0252.8-2219_daily_bin633.fits evtable="EVENTS" scfile=/scratch/kocevski/891147/ft2_4FGL_J0252.8-2219_daily_bin633.fits sctable="SC_DATA" expcube=/scratch/kocevski/891147/ltcube_403401601_403660801_4FGL_J0252.8-2219_daily_bin633.fits outfile=/scratch/kocevski/891147/expmap_403401601_403660801_4FGL_J0252.8-2219_daily_bin633.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/891147/ltcube_403401601_403660801_4FGL_J0252.8-2219_daily_bin633.fits
.....................!
real 203.00
user 185.08
sys 14.15

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/891147/ft1_filtered_4FGL_J0252.8-2219_daily_bin633.fits scfile=/scratch/kocevski/891147/ft2_4FGL_J0252.8-2219_daily_bin633.fits outfile=/scratch/kocevski/891147/cmap_403401601_403660801_4FGL_J0252.8-2219_daily_bin633.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 7.62
user 0.38
sys 7.04

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/891147/ft1_filtered_4FGL_J0252.8-2219_daily_bin633.fits scfile=/scratch/kocevski/891147/ft2_4FGL_J0252.8-2219_daily_bin633.fits outfile=/scratch/kocevski/891147/cmap_HighResolution_403401601_403660801_4FGL_J0252.8-2219_daily_bin633.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 7.66
user 0.38
sys 7.08

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/891147/ft1_filtered_4FGL_J0252.8-2219_daily_bin633.fits evtable="EVENTS" scfile=/scratch/kocevski/891147/ft2_4FGL_J0252.8-2219_daily_bin633.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/891147/Model_4FGL_J0252.8-2219_daily_bin633.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/891147/ft1_filtered_4FGL_J0252.8-2219_daily_bin633.fits.....................!
real 95.84
user 84.01
sys 10.59

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.631       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10175E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10441E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    18.207       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.7858       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10235E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    5.2518       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.6729       1.0000         .10000E-03   10000.    
    13 'Prefactor '    23.078       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.1361       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.0328       1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.019       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10244E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .85772E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3407       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .60983       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=   3995.927     FROM MIGRAD    STATUS=CONVERGED    568 CALLS     2752 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.632        17.489       -.82496E-06   -.11211E-03
   2  Prefactor     .10000E-03    43.368       -.32228E-05** at limit **
   3  Prefactor     .10000E-03    5.6708        .41274E-06** at limit **
   4  norm          18.188        40.683        .32891E-06    .48319E-05
   5  Prefactor     .10000E-03    5.1672        .24930E-06** at limit **
   6  Prefactor     .10000E-03    23.579        .25279E-06** at limit **
   7  Prefactor     .10000E-03    16.697        .31369E-07** at limit **
   8  Prefactor     .10000E-03    13.856        .14965E-06** at limit **
   9  Prefactor     1.7850        4.2720        .23753E-06   -.43890E-04
  10  Prefactor     .10000E-03    59.848        .84784E-06** at limit **
  11  norm          5.2514        2.9261       -.50487E-07   -.18360E-03
  12  Prefactor     7.6695        12.295        .12120E-06   -.10327E-04
  13  Prefactor     23.358        255.37        .50242E-06   -.19444E-04
  14  Prefactor     .10000E-03    6.6331        .14965E-06** at limit **
  15  norm          .10000E-03    2.8712        .22578E-06** at limit **
  16  Prefactor     4.0582        93.273        .11901E-05   -.47596E-04
  17  Prefactor     .10000E-03    135.21       -.14526E-06** at limit **
  18  Prefactor     2.0324        3.7745        .11629E-06   -.36921E-04
  19  Prefactor     10.017        21.062       -.11349E-06   -.40642E-04
  20  Prefactor     .10000E-03    95.958        .28800E-06** at limit **
  21  Prefactor     .10000E-03    2.2407        .22171E-06** at limit **
  22  Prefactor     .10001E-03    8.6498        .48684E-06** at limit **
  23  Normalizat    1.3406        .23055        .17182E-05   -.38177E-03
  24  Prefactor     .61004        .22407       -.46915E-05   -.18988E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.6317
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 18.1878
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.78496
  Prefactor  = 0.0001
  norm       = 5.2514
  Prefactor  = 7.66948
  Prefactor  = 23.3575
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.0582
  Prefactor  = 0.000100002
  Prefactor  = 2.0324
  Prefactor  = 10.0168
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Normalizat = 1.34059
  Prefactor  = 0.610035
 **********
 **   18 **HESSE 
 **********

 FCN=   3995.927     FROM HESSE     STATUS=OK           393 CALLS     3145 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.632        17.234        .90398E-04   -1.4822    
   2  Prefactor     .10000E-03    44.545        .34509E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.6962        .14701E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          18.188        40.624        .93865E-04   -1.4855    
   5  Prefactor     .10000E-03    5.2246        .14042E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    23.603        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    16.698        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    13.874        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.7850        4.2546        .19478E-03   -1.5441    
  10  Prefactor     .10000E-03    60.158        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.2514        2.9221        .76286E-04   -1.5250    
  12  Prefactor     7.6695        12.281        .14477E-03   -1.5154    
  13  Prefactor     23.358        255.12        .83381E-04   -1.4741    
  14  Prefactor     .10000E-03    6.6421        .15904E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.9279        .10479E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.0582        95.632        .19820E-03   -1.5305    
  17  Prefactor     .10000E-03    135.11        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.0324        3.7270        .15399E-03   -1.5423    
  19  Prefactor     10.017        20.906        .12659E-03   -1.5075    
  20  Prefactor     .10000E-03    96.224        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.3217        .18509E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10001E-03    20.477        .33162E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.3406        .23359        .21059E-03   -.82363    
  24  Prefactor     .61004        .22674        .28659E-03   -1.0717    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.76721e-10
Minuit parameter uncertainties:
  1  17.238
  2  0.000759609
  3  2.6844e-05
  4  40.6857
  5  1.3663e-05
  6  2.69037e-05
  7  2.1666e-05
  8  6.993e-06
  9  4.25537
  10  0.000208233
  11  2.9222
  12  12.2849
  13  155.238
  14  9.33189e-06
  15  1.20679e-05
  16  39.4708
  17  0.00102138
  18  3.72746
  19  20.9216
  20  0.000411814
  21  8.65497e-06
  22  0.000757879
  23  0.233771
  24  0.227085
Done.

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

Extracting fit parameters...

4FGL J0252.8-2219
   Spectrum: LogParabola
257         norm:  5.251e+00  2.922e+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:  6.100e-01  2.271e-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.341e+00  2.338e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.04
Ra Dec: 43.201 -22.320
Photon Index (Fixed Index): 2.25 +/- 0.00
Photon Flux (Fixed Index): 9.12e-08 +/- 5.07e-08
Energy Flux (Fixed Index): 3.08e-05 +/- 1.72e-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) = 3995.52243683
delta logL = 0.404937194518

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3995.51247388
delta logL = 0.41490014479

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.1161       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7452       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3040       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .63263       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=   3995.512     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      243 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.1159        2.8714        .69496E-04    .16190E-02
   2  alpha         2.7452        .57108        .12211E-01    .93338E-04
   3  Normalizat    1.3039        .23035        .21298E-03   -.43206E-04
   4  Prefactor     .63268        .21601        .28175E-03   -.38574E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.11594
  alpha      = 2.74517
  Normalizat = 1.30394
  Prefactor  = 0.63268
 **********
 **   18 **HESSE 
 **********

 FCN=   3995.512     FROM HESSE     STATUS=OK            23 CALLS      266 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.1159        2.8432        .27798E-05   -1.5256    
   2  alpha         2.7452        .56529        .48843E-03    .98227E-01
   3  Normalizat    1.3039        .23054        .42595E-04   -.83449    
   4  Prefactor     .63268        .21613        .11270E-04   -1.0623    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.6577e-10
Minuit parameter uncertainties:
  1  2.84323
  2  0.570271
  3  0.230719
  4  0.216418
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/891147': 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) = 3995.51247382
delta logL = 0.41490019875

Extracting fit parameters...

4FGL J0252.8-2219
   Spectrum: LogParabola
257         norm:  5.116e+00  2.843e+00  1.000e-04  1.000e+04 ( 1.000e-11)
258        alpha:  2.745e+00  5.703e-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:  6.327e-01  2.164e-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.304e+00  2.307e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.88
Ra Dec: 43.201 -22.320
Photon Index (Free Index): 2.75 +/- 0.57
Photon Flux (Free Index): 1.27e-07 +/- 7.35e-08
Energy Flux (Free Index): 2.89e-05 +/- 1.51e-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/891147/cmap_HighResolution_403401601_403660801_4FGL_J0252.8-2219_daily_bin633.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.12e-08', energy_flux2='2.89e-05', photon_flux_error='5.07e-08', dlogl='4.15e-01', energy_flux='3.08e-05', photon_flux2='1.27e-07', job_status='DONE', time_completed='2021-08-17 00:59:54.082386', photon_index_error2='0.57', photon_index2='2.75', ts='6.04', fit_tolerance='1e-08', GAL='0.61', photon_index_error='0.00', energy_flux_error2='1.51e-05', EG='1.34', time_epoch_completed='1629187194.08', return_code='0', job_id='891147', GAL2='0.63', EG2='1.30', return_code2='0', energy_flux_error='1.72e-05', photon_flux_error2='7.35e-08', ts2='6.88', photon_index='2.25' WHERE bin_id='633' AND source_name='4FGL J0252.8-2219' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 17 00:59:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0289>
Subject: Job 891147: <4FGL_J0252.8-2219_daily_bin633> in cluster <slac> Done

Job <4FGL_J0252.8-2219_daily_bin633> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Aug 17 00:46:01 2021
Job was executed on host(s) <bullet0289>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 17 00:46:37 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:46:37 2021
Terminated at Tue Aug 17 00:59:55 2021
Results reported at Tue Aug 17 00:59:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0252.8-2219_daily_bin633 43.2007 -22.3203 403401601 403660801 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 :                                   751.19 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             273.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   798 sec.
    Turnaround time :                            834 sec.

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

