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


Performing analysis on: 4FGL_J0252.8-2219_daily_bin635
RA = 43.2007, Dec = -22.3203
tmin = 403920001, tmax = 404179201
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='891151', job_status='RUN', time_executed='2021-08-17 00:50:55.881163', time_epoch_executed='1629186655.88' WHERE source_name='4FGL J0252.8-2219' and cadence='daily' and bin_id='635'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/891151

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

Retrieving the FT1 file...

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

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

Retrieving 39 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/891151/ft1_4FGL_J0252.8-2219_daily_bin635.fits


Retrieving the FT1 file...

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

Retrieving 39 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/891151/ft2_4FGL_J0252.8-2219_daily_bin635.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/891151/ft1_4FGL_J0252.8-2219_daily_bin635.fits outfile=/scratch/kocevski/891151/ft1_filteredMKT_4FGL_J0252.8-2219_daily_bin635.fits ra=43.2007 dec=-22.3203 rad=12.0 tmin=403920001.0 tmax=404179201.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 19.52
user 9.78
sys 7.09

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/891151/ft2_4FGL_J0252.8-2219_daily_bin635.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/891151/ft1_filteredMKT_4FGL_J0252.8-2219_daily_bin635.fits evtable="EVENTS" outfile="/scratch/kocevski/891151/ft1_filtered_4FGL_J0252.8-2219_daily_bin635.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 9.37
user 0.32
sys 6.82

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/891151/ft1_filtered_4FGL_J0252.8-2219_daily_bin635.fits" evtable="EVENTS" scfile=/scratch/kocevski/891151/ft2_4FGL_J0252.8-2219_daily_bin635.fits sctable="SC_DATA" outfile=/scratch/kocevski/891151/ltcube_403920001_404179201_4FGL_J0252.8-2219_daily_bin635.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/891151/ft2_4FGL_J0252.8-2219_daily_bin635.fits
.....................!
real 21.58
user 10.36
sys 7.82

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/891151/ft1_filtered_4FGL_J0252.8-2219_daily_bin635.fits evtable="EVENTS" scfile=/scratch/kocevski/891151/ft2_4FGL_J0252.8-2219_daily_bin635.fits sctable="SC_DATA" expcube=/scratch/kocevski/891151/ltcube_403920001_404179201_4FGL_J0252.8-2219_daily_bin635.fits outfile=/scratch/kocevski/891151/expmap_403920001_404179201_4FGL_J0252.8-2219_daily_bin635.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/891151/ltcube_403920001_404179201_4FGL_J0252.8-2219_daily_bin635.fits
.....................!
real 206.42
user 186.62
sys 13.19

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/891151/ft1_filtered_4FGL_J0252.8-2219_daily_bin635.fits scfile=/scratch/kocevski/891151/ft2_4FGL_J0252.8-2219_daily_bin635.fits outfile=/scratch/kocevski/891151/cmap_403920001_404179201_4FGL_J0252.8-2219_daily_bin635.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.40
user 0.38
sys 6.64

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/891151/ft1_filtered_4FGL_J0252.8-2219_daily_bin635.fits scfile=/scratch/kocevski/891151/ft2_4FGL_J0252.8-2219_daily_bin635.fits outfile=/scratch/kocevski/891151/cmap_HighResolution_403920001_404179201_4FGL_J0252.8-2219_daily_bin635.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.15
user 0.39
sys 6.63

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/891151/ft1_filtered_4FGL_J0252.8-2219_daily_bin635.fits evtable="EVENTS" scfile=/scratch/kocevski/891151/ft2_4FGL_J0252.8-2219_daily_bin635.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/891151/Model_4FGL_J0252.8-2219_daily_bin635.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/891151/ft1_filtered_4FGL_J0252.8-2219_daily_bin635.fits.....................!
real 78.88
user 66.93
sys 9.99

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    31.245       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .14212E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    17.217       1.0000         .10000E-03   10000.    
     4 'norm      '    .10395E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.0495       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    128.68       1.0000         .10000E-03   10000.    
     8 'Prefactor '    183.95       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.6330       1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.393       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11252E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    5.2399       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .18434E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.811       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10459E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .87909       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .63377       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=   2892.997     FROM MIGRAD    STATUS=CONVERGED    571 CALLS     3387 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.235        31.366       -.49294E-05   -.11447E-03
   2  Prefactor     .10062E-03    32.884       -.12361E-04** at limit **
   3  Prefactor     17.215        16.784       -.17463E-06   -.51086E-04
   4  norm          .10000E-03    64.954        .67553E-07** at limit **
   5  Prefactor     1.0765        78.549        .26469E-04    .26178E-04
   6  Prefactor     .10000E-03    18.849       -.21071E-06** at limit **
   7  Prefactor     128.59        213.63       -.10825E-05    .62715E-05
   8  Prefactor     183.72        119.41       -.26984E-05   -.21145E-04
   9  Prefactor     .10000E-03    4.8734        .47258E-06** at limit **
  10  Prefactor     .10000E-03    65.223        .23856E-05** at limit **
  11  norm          1.6344        3.0094        .28318E-06   -.16388E-04
  12  Prefactor     13.396        10.953        .57846E-06    .62192E-04
  13  Prefactor     .10001E-03    341.69        .36812E-05** at limit **
  14  Prefactor     .10000E-03    24.976        .11425E-05** at limit **
  15  norm          5.2400        4.4770        .89508E-07   -.10264E-03
  16  Prefactor     .10000E-03    9.6144        .19135E-06** at limit **
  17  Prefactor     .10000E-03    165.94       -.49005E-05** at limit **
  18  Prefactor     .10000E-03    3.7709       -.77220E-06** at limit **
  19  Prefactor     10.821        15.597        .23577E-05   -.11270E-03
  20  Prefactor     .10000E-03    18.502        .29008E-06** at limit **
  21  Prefactor     .10000E-03    1.9253        .98424E-06** at limit **
  22  Prefactor     .10000E-03    3.1478        .22381E-06** at limit **
  23  Normalizat    .87871        .24268       -.17229E-05   -.93931E-05
  24  Prefactor     .63401        .19974       -.34893E-05   -.47965E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.2346
  Prefactor  = 0.000100616
  Prefactor  = 17.2146
  norm       = 0.000100001
  Prefactor  = 1.07648
  Prefactor  = 0.0001
  Prefactor  = 128.59
  Prefactor  = 183.717
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.6344
  Prefactor  = 13.3955
  Prefactor  = 0.000100015
  Prefactor  = 0.0001
  norm       = 5.23997
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 10.8209
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.87871
  Prefactor  = 0.634005
 **********
 **   18 **HESSE 
 **********

 FCN=   2892.997     FROM HESSE     STATUS=OK           401 CALLS     3788 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.235        31.328        .71682E-04   -1.4590    
   2  Prefactor     .10062E-03    147.97        .39575E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     17.215        16.788        .96525E-04   -1.4878    
   4  norm          .10000E-03    64.972        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.0765        103.83        .45069E-02   -1.5500    
   6  Prefactor     .10000E-03    18.850        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     128.59        214.30        .17746E-03   -1.3435    
   8  Prefactor     183.72        124.58        .14884E-03   -1.2989    
   9  Prefactor     .10000E-03    4.8798        .11597E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    65.366        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.6344        2.9861        .11704E-03   -1.5452    
  12  Prefactor     13.396        10.968        .54724E-03   -1.4976    
  13  Prefactor     .10001E-03    344.88        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    25.123        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.2400        4.4741        .10092E-03   -1.5250    
  16  Prefactor     .10000E-03    9.6442        .16290E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    165.64        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.8933        .19599E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     10.821        15.301        .12185E-03   -1.5050    
  20  Prefactor     .10000E-03    18.506        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.9877        .14431E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    3.1626        .93215E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .87871        .27717        .22629E-03   -.97212    
  24  Prefactor     .63401        .23294        .23658E-03   -1.0617    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.27552e-09
Minuit parameter uncertainties:
  1  31.3449
  2  0.0191436
  3  16.7926
  4  0.000422936
  5  21.1816
  6  5.31694e-05
  7  215.611
  8  124.756
  9  4.02321e-06
  10  5.08137e-05
  11  2.98635
  12  10.9693
  13  0.00455857
  14  0.000102534
  15  4.4744
  16  5.50095e-05
  17  0.000791018
  18  7.50875e-06
  19  15.3068
  20  1.17108e-05
  21  7.69127e-05
  22  2.56572e-05
  23  0.277616
  24  0.233295
Done.

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

Extracting fit parameters...

4FGL J0252.8-2219
   Spectrum: LogParabola
257         norm:  1.634e+00  2.986e+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.340e-01  2.333e-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:  8.787e-01  2.776e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/891151/likelihoodResults_403920001_404179201_4FGL_J0252.8-2219_daily_bin635.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) = 2891.91887455
delta logL = 1.07813646629

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2891.91239392
delta logL = 1.08461709639

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5015       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.0728       1.0000          .0000       5.0000    
     3 'Normalizat'    .77185       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69883       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2891.912     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      245 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5012        2.7435        .17471E-03   -.61168E-05
   2  alpha         4.0731        1.5065        .19836E-01    .39314E-04
   3  Normalizat    .77188        .26641        .23944E-03   -.59351E-06
   4  Prefactor     .69880        .23533        .22615E-03    .15081E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 1.50118
  alpha      = 4.07309
  Normalizat = 0.771885
  Prefactor  = 0.698803
 **********
 **   18 **HESSE 
 **********

 FCN=   2891.912     FROM HESSE     STATUS=OK            27 CALLS      272 TOTAL
                     EDM=   .26E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5012        2.3121        .69883E-05   -1.5463    
   2  alpha         4.0731        1.3207        .39672E-02    .68057    
   3  Normalizat    .77188        .26691        .95775E-05   -1.0112    
   4  Prefactor     .69880        .23554        .90462E-05   -1.0357    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.56953e-14
Minuit parameter uncertainties:
  1  2.3122
  2  1.4522
  3  0.267364
  4  0.235873
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/891151': 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) = 2891.91239388
delta logL = 1.08461713603

Extracting fit parameters...

4FGL J0252.8-2219
   Spectrum: LogParabola
257         norm:  1.501e+00  2.312e+00  1.000e-04  1.000e+04 ( 1.000e-11)
258        alpha:  4.073e+00  1.452e+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:  6.988e-01  2.359e-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.719e-01  2.674e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.76
Ra Dec: 43.201 -22.320
Photon Index (Free Index): 4.07 +/- 1.45
Photon Flux (Free Index): 1.34e-07 +/- 1.07e-07
Energy Flux (Free Index): 2.01e-05 +/- 1.55e-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/891151/cmap_HighResolution_403920001_404179201_4FGL_J0252.8-2219_daily_bin635.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.14e-05', comment='SUCCESS', energy_flux2='2.01e-05', dlogl='1.08e+00', photon_flux2='1.34e-07', job_status='DONE', time_completed='2021-08-17 01:01:58.785377', photon_index_error2='1.45', photon_index2='4.07', ts='0.39', fit_tolerance='1e-08', GAL='0.63', photon_index_error='0.00', photon_flux_upper_limit='1.52e-07', energy_flux_error2='1.55e-05', EG='0.88', time_epoch_completed='1629187318.79', return_code='0', job_id='891151', GAL2='0.70', EG2='0.77', return_code2='0', photon_flux_error2='1.07e-07', ts2='2.76', photon_index='2.25' WHERE bin_id='635' AND source_name='4FGL J0252.8-2219' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 17 01:01:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0263>
Subject: Job 891151: <4FGL_J0252.8-2219_daily_bin635> in cluster <slac> Done

Job <4FGL_J0252.8-2219_daily_bin635> 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) <bullet0263>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 17 00:46:38 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:38 2021
Terminated at Tue Aug 17 01:02:00 2021
Results reported at Tue Aug 17 01:02:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0252.8-2219_daily_bin635 43.2007 -22.3203 403920001 404179201 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 :                                   745.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             212.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   921 sec.
    Turnaround time :                            959 sec.

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

