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


Performing analysis on: 4FGL_J0253.5+3216_daily_bin1387
RA = 43.3829, Dec = 32.2826
tmin = 598838401, tmax = 599097601
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='937775', job_status='RUN', time_executed='2021-08-17 03:19:50.914136', time_epoch_executed='1629195590.91' WHERE source_name='4FGL J0253.5+3216' and cadence='daily' and bin_id='1387'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/937775

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/937775/ft1_4FGL_J0253.5+3216_daily_bin1387.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/937775/ft2_4FGL_J0253.5+3216_daily_bin1387.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/937775/ft1_4FGL_J0253.5+3216_daily_bin1387.fits outfile=/scratch/kocevski/937775/ft1_filteredMKT_4FGL_J0253.5+3216_daily_bin1387.fits ra=43.3829 dec=32.2826 rad=12.0 tmin=598838401.0 tmax=599097601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.70
user 2.66
sys 0.50

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/937775/ft2_4FGL_J0253.5+3216_daily_bin1387.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/937775/ft2_4FGL_J0253.5+3216_daily_bin1387.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/937775/ft1_filteredMKT_4FGL_J0253.5+3216_daily_bin1387.fits evtable="EVENTS" outfile="/scratch/kocevski/937775/ft1_filtered_4FGL_J0253.5+3216_daily_bin1387.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 1.05
user 0.33
sys 0.47

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/937775/ft1_filtered_4FGL_J0253.5+3216_daily_bin1387.fits" evtable="EVENTS" scfile=/scratch/kocevski/937775/ft2_4FGL_J0253.5+3216_daily_bin1387.fits sctable="SC_DATA" outfile=/scratch/kocevski/937775/ltcube_598838401_599097601_4FGL_J0253.5+3216_daily_bin1387.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/937775/ft2_4FGL_J0253.5+3216_daily_bin1387.fits
.....................!
real 14.34
user 13.36
sys 0.69

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/937775/ft1_filtered_4FGL_J0253.5+3216_daily_bin1387.fits evtable="EVENTS" scfile=/scratch/kocevski/937775/ft2_4FGL_J0253.5+3216_daily_bin1387.fits sctable="SC_DATA" expcube=/scratch/kocevski/937775/ltcube_598838401_599097601_4FGL_J0253.5+3216_daily_bin1387.fits outfile=/scratch/kocevski/937775/expmap_598838401_599097601_4FGL_J0253.5+3216_daily_bin1387.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/937775/ltcube_598838401_599097601_4FGL_J0253.5+3216_daily_bin1387.fits
.....................!
real 194.15
user 186.16
sys 4.67

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
Added 166 point sources and 0 extended sources

Setting source of interest to:
4FGL J0253.5+3216 @ 43.3829 32.2826

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/937775/ft1_filtered_4FGL_J0253.5+3216_daily_bin1387.fits scfile=/scratch/kocevski/937775/ft2_4FGL_J0253.5+3216_daily_bin1387.fits outfile=/scratch/kocevski/937775/cmap_598838401_599097601_4FGL_J0253.5+3216_daily_bin1387.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.3829 yref=32.2826 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.88
user 0.37
sys 0.46

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/937775/ft1_filtered_4FGL_J0253.5+3216_daily_bin1387.fits scfile=/scratch/kocevski/937775/ft2_4FGL_J0253.5+3216_daily_bin1387.fits outfile=/scratch/kocevski/937775/cmap_HighResolution_598838401_599097601_4FGL_J0253.5+3216_daily_bin1387.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.3829 yref=32.2826 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.90
user 0.35
sys 0.49

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/937775/ft1_filtered_4FGL_J0253.5+3216_daily_bin1387.fits evtable="EVENTS" scfile=/scratch/kocevski/937775/ft2_4FGL_J0253.5+3216_daily_bin1387.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/937775/Model_4FGL_J0253.5+3216_daily_bin1387.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 GAL_V02
Working on...
/scratch/kocevski/937775/ft1_filtered_4FGL_J0253.5+3216_daily_bin1387.fits.....................!
real 88.33
user 83.93
sys 1.70

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/937775/ft1_filtered_4FGL_J0253.5+3216_daily_bin1387.fits', '/scratch/kocevski/937775/ft2_4FGL_J0253.5+3216_daily_bin1387.fits', expMap='/scratch/kocevski/937775/expmap_598838401_599097601_4FGL_J0253.5+3216_daily_bin1387.fits', expCube='/scratch/kocevski/937775/ltcube_598838401_599097601_4FGL_J0253.5+3216_daily_bin1387.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/937775/Model_4FGL_J0253.5+3216_daily_bin1387.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0253.5+3216'

4FGL J0253.5+3216
   Spectrum: PowerLaw
282    Prefactor:  8.270e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
283        Index:  2.173e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
284        Scale:  2.051e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/937775/ft1_filtered_4FGL_J0253.5+3216_daily_bin1387.fits
Spacecraft file(s): /scratch/kocevski/937775/ft2_4FGL_J0253.5+3216_daily_bin1387.fits
Exposure map: /scratch/kocevski/937775/expmap_598838401_599097601_4FGL_J0253.5+3216_daily_bin1387.fits
Exposure cube: /scratch/kocevski/937775/ltcube_598838401_599097601_4FGL_J0253.5+3216_daily_bin1387.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/937775/Model_4FGL_J0253.5+3216_daily_bin1387.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) = 5924.66562318

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .18876E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.083       1.0000         .10000E-03   10000.    
     4 'norm      '    7.5826       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.0519       1.0000         .10000E-03   10000.    
     6 'norm      '    .10047E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .34672E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    107.35       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.9939       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.2404       1.0000         .10000E-03   10000.    
    16 'norm      '    30.965       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .31267E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    2.6736       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    33.133       1.0000         .10000E-03   10000.    
    22 'norm      '    4.2379       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .14584E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2842       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .80514       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5540E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5924.649     FROM MIGRAD    STATUS=CONVERGED    602 CALLS     3001 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.957        .21855E-06** at limit **
   2  norm          .10000E-03    3.2844       -.14709E-05** at limit **
   3  Prefactor     10.081        9.3989       -.74527E-06    .23096E-03
   4  norm          7.5886        3.8514       -.11197E-05   -.22485E-02
   5  Prefactor     5.0573        11.692       -.10678E-05   -.10345E-03
   6  norm          .10000E-03    .33457        .70119E-06** at limit **
   7  norm          .10000E-03    31.046       -.21015E-06** at limit **
   8  Prefactor     .10001E-03    30.008        .17766E-04** at limit **
   9  Prefactor     107.35        68.805        .28732E-06   -.94041E-05
  10  norm          .10000E-03    3.0608        .10345E-06** at limit **
  11  Prefactor     .10004E-03    106.61       -.21891E-05** at limit **
  12  norm          1.9937        2.2284        .39013E-07    .10728E-02
  13  Prefactor     .10000E-03    6.1794        .11888E-06** at limit **
  14  Prefactor     .10000E-03    52.505        .50434E-06** at limit **
  15  norm          3.2409        20.811        .63547E-07    .16528E-03
  16  norm          30.964        31.535        .16837E-06   -.53640E-04
  17  Prefactor     .10001E-03    13.311       -.44957E-06** at limit **
  18  Prefactor     .10000E-03    32.069        .29574E-06** at limit **
  19  norm          2.6737        .98891       -.26752E-07   -.22671E-02
  20  Prefactor     .10000E-03    2.4145        .25722E-06** at limit **
  21  norm          33.130        29.657        .23706E-06   -.82775E-05
  22  norm          4.2375        4.4123        .45571E-07    .80659E-03
  23  Prefactor     .10004E-03    171.42        .43755E-05** at limit **
  24  Normalizat    1.2843        .28861       -.96449E-06   -.34703E-03
  25  Prefactor     .80516        .10110       -.46423E-06   -.75255E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.000100004
  Prefactor  = 10.0806
  norm       = 7.58865
  Prefactor  = 5.05727
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 107.352
  norm       = 0.0001
  Prefactor  = 0.000100044
  norm       = 1.99371
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.24091
  norm       = 30.9637
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  norm       = 2.67371
  Prefactor  = 0.0001
  norm       = 33.1303
  norm       = 4.2375
  Prefactor  = 0.000100037
  Normalizat = 1.28426
  Prefactor  = 0.805156
 **********
 **   18 **HESSE 
 **********

 FCN=   5924.649     FROM HESSE     STATUS=OK           425 CALLS     3426 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.971        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    16.468        .24187E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10.081        8.9942        .12619E-03   -1.5073    
   4  norm          7.5886        3.9324        .10369E-03   -1.5157    
   5  Prefactor     5.0573        11.710        .17890E-03   -1.5258    
   6  norm          .10000E-03    .55047        .82335E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    31.047        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    30.497        .26160E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     107.35        68.797        .38815E-04   -1.3632    
  10  norm          .10000E-03    3.0683        .13143E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10004E-03    106.57        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.9937        2.2082        .11538E-03   -1.5426    
  13  Prefactor     .10000E-03    6.2209        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    52.533        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.2409        20.909        .22501E-03   -1.5348    
  16  norm          30.964        31.541        .72004E-04   -1.4594    
  17  Prefactor     .10001E-03    74.000        .49480E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    32.071        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.6737        .92980        .42005E-04   -1.5381    
  20  Prefactor     .10000E-03    2.5122        .23277E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          33.130        29.758        .69615E-04   -1.4556    
  22  norm          4.2375        4.4093        .15415E-03   -1.5296    
  23  Prefactor     .10004E-03    171.44        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.2843        .31613        .37413E-03   -.84038    
  25  Prefactor     .80516        .11458        .17334E-03   -.99539    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.98531e-09
Minuit parameter uncertainties:
  1  4.20908e-05
  2  0.000543987
  3  8.99545
  4  3.9325
  5  11.7156
  6  1.98144e-05
  7  0.000104489
  8  0.000879389
  9  68.8485
  10  9.46625e-06
  11  0.00434938
  12  2.20825
  13  1.19558e-05
  14  0.000202432
  15  16.4721
  16  31.5584
  17  0.00148834
  18  0.000145279
  19  0.929808
  20  5.85197e-06
  21  29.7717
  22  4.40967
  23  0.00507053
  24  0.316602
  25  0.114616
Done.

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

Extracting fit parameters...

4FGL J0253.5+3216
   Spectrum: PowerLaw
282    Prefactor:  1.000e-04  2.024e-04  1.000e-04  1.000e+04 ( 1.000e-14)
283        Index:  2.173e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
284        Scale:  2.051e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
551    Prefactor:  8.052e-01  1.146e-01  0.000e+00  1.000e+01 ( 1.000e+00)
552        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
553        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
550   Normalization:  1.284e+00  3.166e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 43.383 32.283
Photon Flux Upper Limit: 1.14e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.71e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/937775/likelihoodResults_598838401_599097601_4FGL_J0253.5+3216_daily_bin1387.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) = 5924.6487371
delta logL = -8.9694520284e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5924.64864745
delta logL = -4.98321242048e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1187       1.0000          .0000       10.000    
     3 'Normalizat'    1.2842       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80518       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5540E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5924.649     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      231 TOTAL
                     EDM=   .30E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6358.5        .90712E-02** at limit **
   2  Index         2.1230        5.8287        .50000       -.71800E-06
   3  Normalizat    1.2843        .60803E-01    .84501E-01    .12206E-04
   4  Prefactor     .80516        .23022E-01    .43785E-01    .36597E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.12299
  Normalizat = 1.28426
  Prefactor  = 0.805157
 **********
 **   18 **HESSE 
 **********

 FCN=   5924.649     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      264 TOTAL
                     EDM=   .82E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8109.3        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1230        5.2874        .50000       -.61310    
   3  Normalizat    1.2843        .12356        .37413E-03   -.84038    
   4  Prefactor     .80516        .46866E-01    .17334E-03   -.99539    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.15344e-11
Minuit parameter uncertainties:
  1  1.02919e-05
  2  51.9971
  3  0.123591
  4  0.0468686
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/937775': 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) = 5924.64864741
delta logL = -9.14769771043e-09

Extracting fit parameters...

4FGL J0253.5+3216
   Spectrum: PowerLaw
282    Prefactor:  1.000e-04  1.029e-05  1.000e-04  1.000e+04 ( 1.000e-14)
283        Index:  2.123e+00  5.200e+01  0.000e+00  1.000e+01 (-1.000e+00)
284        Scale:  2.051e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
551    Prefactor:  8.052e-01  4.687e-02  0.000e+00  1.000e+01 ( 1.000e+00)
552        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
553        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
550   Normalization:  1.284e+00  1.236e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 43.383 32.283

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/937775/cmap_HighResolution_598838401_599097601_4FGL_J0253.5+3216_daily_bin1387.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.71e-03', job_status='DONE', photon_flux_upper_limit='1.14e-07', time_completed='2021-08-17 03:31:50.177840', job_id='937775', GAL2='0.81', fit_tolerance='1e-08', EG2='1.28', EG='1.28', time_epoch_completed='1629196310.18', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='-9.15e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='1387' AND source_name='4FGL J0253.5+3216' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 17 03:31:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 937775: <4FGL_J0253.5+3216_daily_bin1387> in cluster <slac> Done

Job <4FGL_J0253.5+3216_daily_bin1387> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Aug 17 03:15:58 2021
Job was executed on host(s) <bullet0215>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 17 03:19:09 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 17 03:19:09 2021
Terminated at Tue Aug 17 03:31:50 2021
Results reported at Tue Aug 17 03:31:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0253.5+3216_daily_bin1387 43.3829 32.2826 598838401 599097601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0253.5+3216 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   712.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             351.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   761 sec.
    Turnaround time :                            952 sec.

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

