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


Performing analysis on: 4FGL_J0253.5+3216_daily_bin1244
RA = 43.3829, Dec = 32.2826
tmin = 561772801, tmax = 562032001
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='937555', job_status='RUN', time_executed='2021-08-17 03:20:46.620448', time_epoch_executed='1629195646.62' WHERE source_name='4FGL J0253.5+3216' and cadence='daily' and bin_id='1244'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/937555

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/937555/ft1_4FGL_J0253.5+3216_daily_bin1244.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/937555/ft2_4FGL_J0253.5+3216_daily_bin1244.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/937555/ft1_4FGL_J0253.5+3216_daily_bin1244.fits outfile=/scratch/kocevski/937555/ft1_filteredMKT_4FGL_J0253.5+3216_daily_bin1244.fits ra=43.3829 dec=32.2826 rad=12.0 tmin=561772801.0 tmax=562032001.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 5.32
user 3.80
sys 1.30

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/937555/ft2_4FGL_J0253.5+3216_daily_bin1244.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/937555/ft1_filteredMKT_4FGL_J0253.5+3216_daily_bin1244.fits evtable="EVENTS" outfile="/scratch/kocevski/937555/ft1_filtered_4FGL_J0253.5+3216_daily_bin1244.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.72
user 0.35
sys 1.24

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/937555/ft1_filtered_4FGL_J0253.5+3216_daily_bin1244.fits" evtable="EVENTS" scfile=/scratch/kocevski/937555/ft2_4FGL_J0253.5+3216_daily_bin1244.fits sctable="SC_DATA" outfile=/scratch/kocevski/937555/ltcube_561772801_562032001_4FGL_J0253.5+3216_daily_bin1244.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/937555/ft2_4FGL_J0253.5+3216_daily_bin1244.fits
.....................!
real 14.56
user 12.33
sys 1.56

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/937555/ft1_filtered_4FGL_J0253.5+3216_daily_bin1244.fits evtable="EVENTS" scfile=/scratch/kocevski/937555/ft2_4FGL_J0253.5+3216_daily_bin1244.fits sctable="SC_DATA" expcube=/scratch/kocevski/937555/ltcube_561772801_562032001_4FGL_J0253.5+3216_daily_bin1244.fits outfile=/scratch/kocevski/937555/expmap_561772801_562032001_4FGL_J0253.5+3216_daily_bin1244.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/937555/ltcube_561772801_562032001_4FGL_J0253.5+3216_daily_bin1244.fits
.....................!
real 193.50
user 186.55
sys 5.97

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/937555/ft1_filtered_4FGL_J0253.5+3216_daily_bin1244.fits scfile=/scratch/kocevski/937555/ft2_4FGL_J0253.5+3216_daily_bin1244.fits outfile=/scratch/kocevski/937555/cmap_561772801_562032001_4FGL_J0253.5+3216_daily_bin1244.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 1.61
user 0.37
sys 1.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/937555/ft1_filtered_4FGL_J0253.5+3216_daily_bin1244.fits scfile=/scratch/kocevski/937555/ft2_4FGL_J0253.5+3216_daily_bin1244.fits outfile=/scratch/kocevski/937555/cmap_HighResolution_561772801_562032001_4FGL_J0253.5+3216_daily_bin1244.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 1.69
user 0.39
sys 1.23

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/937555/ft1_filtered_4FGL_J0253.5+3216_daily_bin1244.fits evtable="EVENTS" scfile=/scratch/kocevski/937555/ft2_4FGL_J0253.5+3216_daily_bin1244.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/937555/Model_4FGL_J0253.5+3216_daily_bin1244.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/937555/ft1_filtered_4FGL_J0253.5+3216_daily_bin1244.fits.....................!
real 57.56
user 53.87
sys 2.69

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/937555/ft1_filtered_4FGL_J0253.5+3216_daily_bin1244.fits', '/scratch/kocevski/937555/ft2_4FGL_J0253.5+3216_daily_bin1244.fits', expMap='/scratch/kocevski/937555/expmap_561772801_562032001_4FGL_J0253.5+3216_daily_bin1244.fits', expCube='/scratch/kocevski/937555/ltcube_561772801_562032001_4FGL_J0253.5+3216_daily_bin1244.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/937555/Model_4FGL_J0253.5+3216_daily_bin1244.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/937555/ft1_filtered_4FGL_J0253.5+3216_daily_bin1244.fits
Spacecraft file(s): /scratch/kocevski/937555/ft2_4FGL_J0253.5+3216_daily_bin1244.fits
Exposure map: /scratch/kocevski/937555/expmap_561772801_562032001_4FGL_J0253.5+3216_daily_bin1244.fits
Exposure cube: /scratch/kocevski/937555/ltcube_561772801_562032001_4FGL_J0253.5+3216_daily_bin1244.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/937555/Model_4FGL_J0253.5+3216_daily_bin1244.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) = 3065.08080492

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    11.299       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .95105E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.9068       1.0000         .10000E-03   10000.    
     6 'norm      '    3.7950       1.0000         .10000E-03   10000.    
     7 'norm      '    .42251E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .19889E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .24350E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .22687E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    50.231       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.5026       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10116E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    591.55       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .35389E-02   1.0000         .10000E-03   10000.    
    19 'norm      '    .20532E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .24759E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3154       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .69055       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=   3065.002     FROM MIGRAD    STATUS=CONVERGED    590 CALLS     2886 TOTAL
                     EDM=   .48E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.789       -.34478E-07** at limit **
   2  norm          11.299        9.6896       -.19548E-06   -.35138E-04
   3  Prefactor     .10000E-03    10.174       -.16394E-06** at limit **
   4  norm          .10000E-03    16.582       -.22644E-07** at limit **
   5  Prefactor     3.9056        18.575        .10014E-04   -.18193E-04
   6  norm          3.7888        2.7744       -.30639E-06   -.40823E-04
   7  norm          .10000E-03    274.71        .59527E-06** at limit **
   8  Prefactor     .10000E-03    84.911       -.63930E-06** at limit **
   9  Prefactor     .10000E-03    78.838        .36194E-06** at limit **
  10  norm          .10000E-03    134.95       -.11206E-05** at limit **
  11  Prefactor     .10000E-03    251.02        .96527E-06** at limit **
  12  norm          50.233        8.4802       -.20715E-07    .77170E-04
  13  Prefactor     6.5060        10.733        .16052E-06   -.35810E-04
  14  Prefactor     .10000E-03    64.782       -.78166E-07** at limit **
  15  norm          .10000E-03    4.7384        .87336E-08** at limit **
  16  norm          .10000E-03    79.233       -.83623E-07** at limit **
  17  Prefactor     591.12        403.53        .29790E-06   -.64120E-05
  18  Prefactor     .10000E-03    860.46       -.45763E-05** at limit **
  19  norm          .10000E-03    18.272       -.60950E-05** at limit **
  20  Prefactor     .10000E-03    4.8385       -.36256E-06** at limit **
  21  norm          .10000E-03    14.717        .18291E-07** at limit **
  22  norm          .10000E-03    6.0089       -.98536E-07** at limit **
  23  Prefactor     .10005E-03    1131.6       -.49795E-05** at limit **
  24  Normalizat    1.3151        .45889       -.11458E-05   -.17181E-05
  25  Prefactor     .69045        .14518        .15312E-09   -.11730E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 11.2991
  Prefactor  = 0.0001
  norm       = 0.000100002
  Prefactor  = 3.90561
  norm       = 3.7888
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100004
  norm       = 50.2329
  Prefactor  = 6.50599
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 591.119
  Prefactor  = 0.000100004
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100051
  Normalizat = 1.3151
  Prefactor  = 0.690448
 **********
 **   18 **HESSE 
 **********

 FCN=   3065.002     FROM HESSE     STATUS=OK           415 CALLS     3301 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.789        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          11.299        9.7189        .11918E-03   -1.5036    
   3  Prefactor     .10000E-03    10.190        .17242E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    45.357        .37935E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.9056        18.575        .10206E-02   -1.5313    
   6  norm          3.7888        2.4493        .65436E-04   -1.5319    
   7  norm          .10000E-03    275.85        .21238E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    85.998        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    78.975        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    135.82        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    251.35        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          50.233        8.4948        .56583E-04   -1.4289    
  13  Prefactor     6.5060        10.727        .15738E-03   -1.5198    
  14  Prefactor     .10000E-03    64.791        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    4.7392        .11771E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    79.382        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     591.12        402.72        .84776E-04   -1.0796    
  18  Prefactor     .10000E-03    860.99        .19642E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    18.288        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.8873        .11890E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    14.725        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    6.0608        .13250E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10005E-03    1131.6        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.3151        .51627        .44613E-03   -.83117    
  25  Prefactor     .69045        .16360        .19688E-03   -1.0390    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19553e-10
Minuit parameter uncertainties:
  1  6.21695e-06
  2  9.72023
  3  1.46236e-05
  4  0.000576643
  5  17.0431
  6  2.44934
  7  0.000246966
  8  7.57401e-05
  9  0.000140019
  10  0.000502541
  11  0.00201995
  12  8.49499
  13  10.7301
  14  6.77808e-05
  15  8.65862e-07
  16  0.000126547
  17  404.707
  18  0.00355288
  19  5.09837e-05
  20  3.7366e-06
  21  9.0423e-07
  22  3.08805e-06
  23  0.0155222
  24  0.518314
  25  0.163713
Done.

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

Extracting fit parameters...

4FGL J0253.5+3216
   Spectrum: PowerLaw
282    Prefactor:  1.000e-04  6.778e-05  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:  6.904e-01  1.637e-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.315e+00  5.183e-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.90e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.44e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/937555/likelihoodResults_561772801_562032001_4FGL_J0253.5+3216_daily_bin1244.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) = 3065.00226685
delta logL = -7.32786998014e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3065.0021938
delta logL = -2.30630121223e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4291       1.0000          .0000       10.000    
     3 'Normalizat'    1.3151       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69045       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3065.002     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      271 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10116E-03    265.90        .18142E-02** at limit **
   2  Index         2.3805        5.0117        .50000        .45697E-05
   3  Normalizat    1.3151        .28034E-01    .44612E-03   -.21928E-04
   4  Prefactor     .69045        .93386E-02    .19688E-03    .84594E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101161
  Index      = 2.38052
  Normalizat = 1.3151
  Prefactor  = 0.690449
 **********
 **   18 **HESSE 
 **********

 FCN=   3065.002     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      300 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10116E-03    1142.0        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3805        5.8754        .50000       -.55142    
   3  Normalizat    1.3151        .60107E-01    .17845E-04   -.83117    
   4  Prefactor     .69045        .20023E-01    .78753E-05   -1.0390    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.84016e-09
Minuit parameter uncertainties:
  1  0.0742859
  2  694.143
  3  0.0601098
  4  0.0200228
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/937555': 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) = 3065.00219376
delta logL = -1.87344994629e-07

Extracting fit parameters...

4FGL J0253.5+3216
   Spectrum: PowerLaw
282    Prefactor:  1.012e-04  7.429e-02  1.000e-04  1.000e+04 ( 1.000e-14)
283        Index:  2.381e+00  6.941e+02  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:  6.904e-01  2.002e-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.315e+00  6.011e-02  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/937555/cmap_HighResolution_561772801_562032001_4FGL_J0253.5+3216_daily_bin1244.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.44e-02', job_status='DONE', photon_flux_upper_limit='1.90e-07', time_completed='2021-08-17 03:29:49.273859', job_id='937555', GAL2='0.69', fit_tolerance='1e-08', EG2='1.32', EG='1.32', time_epoch_completed='1629196189.27', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.69', dlogl='-1.87e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='1244' AND source_name='4FGL J0253.5+3216' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 17 03:29:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0016>
Subject: Job 937555: <4FGL_J0253.5+3216_daily_bin1244> in cluster <slac> Done

Job <4FGL_J0253.5+3216_daily_bin1244> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Aug 17 03:15:44 2021
Job was executed on host(s) <bullet0016>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 17 03:15:57 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:15:57 2021
Terminated at Tue Aug 17 03:29:50 2021
Results reported at Tue Aug 17 03:29:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0253.5+3216_daily_bin1244 43.3829 32.2826 561772801 562032001 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 :                                   544.26 sec.
    Max Memory :                                 1193 MB
    Average Memory :                             251.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   832 sec.
    Turnaround time :                            846 sec.

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

