/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 164 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 = 7443
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1253.8+6242_daily_bin2
RA = 193.467, Dec = 62.7052
tmin = 239846401, tmax = 240105601
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='961933', job_status='RUN', time_executed='2021-09-06 07:48:50.287517', time_epoch_executed='1630939730.29' WHERE source_name='4FGL J1253.8+6242' and cadence='daily' and bin_id='2'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/961933

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/961933/ft1_4FGL_J1253.8+6242_daily_bin2.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/961933/ft2_4FGL_J1253.8+6242_daily_bin2.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/961933/ft1_4FGL_J1253.8+6242_daily_bin2.fits outfile=/scratch/kocevski/961933/ft1_filteredMKT_4FGL_J1253.8+6242_daily_bin2.fits ra=193.467 dec=62.7052 rad=12.0 tmin=239846401.0 tmax=240105601.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 1.61
user 1.28
sys 0.16

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/961933/ft2_4FGL_J1253.8+6242_daily_bin2.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/961933/ft2_4FGL_J1253.8+6242_daily_bin2.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/961933/ft1_filteredMKT_4FGL_J1253.8+6242_daily_bin2.fits evtable="EVENTS" outfile="/scratch/kocevski/961933/ft1_filtered_4FGL_J1253.8+6242_daily_bin2.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 0.51
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/961933/ft1_filtered_4FGL_J1253.8+6242_daily_bin2.fits" evtable="EVENTS" scfile=/scratch/kocevski/961933/ft2_4FGL_J1253.8+6242_daily_bin2.fits sctable="SC_DATA" outfile=/scratch/kocevski/961933/ltcube_239846401_240105601_4FGL_J1253.8+6242_daily_bin2.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/961933/ft2_4FGL_J1253.8+6242_daily_bin2.fits
.....................!
real 12.73
user 12.37
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/961933/ft1_filtered_4FGL_J1253.8+6242_daily_bin2.fits evtable="EVENTS" scfile=/scratch/kocevski/961933/ft2_4FGL_J1253.8+6242_daily_bin2.fits sctable="SC_DATA" expcube=/scratch/kocevski/961933/ltcube_239846401_240105601_4FGL_J1253.8+6242_daily_bin2.fits outfile=/scratch/kocevski/961933/expmap_239846401_240105601_4FGL_J1253.8+6242_daily_bin2.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/961933/ltcube_239846401_240105601_4FGL_J1253.8+6242_daily_bin2.fits
.....................!
real 191.07
user 186.55
sys 4.04

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

Setting source of interest to:
4FGL J1253.8+6242 @ 193.467 62.7052

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/961933/ft1_filtered_4FGL_J1253.8+6242_daily_bin2.fits scfile=/scratch/kocevski/961933/ft2_4FGL_J1253.8+6242_daily_bin2.fits outfile=/scratch/kocevski/961933/cmap_239846401_240105601_4FGL_J1253.8+6242_daily_bin2.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=193.467 yref=62.7052 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.54
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/961933/ft1_filtered_4FGL_J1253.8+6242_daily_bin2.fits scfile=/scratch/kocevski/961933/ft2_4FGL_J1253.8+6242_daily_bin2.fits outfile=/scratch/kocevski/961933/cmap_HighResolution_239846401_240105601_4FGL_J1253.8+6242_daily_bin2.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=193.467 yref=62.7052 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.55
user 0.40
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/961933/ft1_filtered_4FGL_J1253.8+6242_daily_bin2.fits evtable="EVENTS" scfile=/scratch/kocevski/961933/ft2_4FGL_J1253.8+6242_daily_bin2.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/961933/Model_4FGL_J1253.8+6242_daily_bin2.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/961933/ft1_filtered_4FGL_J1253.8+6242_daily_bin2.fits.....................!
real 45.87
user 44.49
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/961933/ft1_filtered_4FGL_J1253.8+6242_daily_bin2.fits', '/scratch/kocevski/961933/ft2_4FGL_J1253.8+6242_daily_bin2.fits', expMap='/scratch/kocevski/961933/expmap_239846401_240105601_4FGL_J1253.8+6242_daily_bin2.fits', expCube='/scratch/kocevski/961933/ltcube_239846401_240105601_4FGL_J1253.8+6242_daily_bin2.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/961933/Model_4FGL_J1253.8+6242_daily_bin2.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1253.8+6242'

4FGL J1253.8+6242
   Spectrum: PowerLaw
369    Prefactor:  7.997e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
370        Index:  1.987e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
371        Scale:  2.277e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/961933/ft1_filtered_4FGL_J1253.8+6242_daily_bin2.fits
Spacecraft file(s): /scratch/kocevski/961933/ft2_4FGL_J1253.8+6242_daily_bin2.fits
Exposure map: /scratch/kocevski/961933/expmap_239846401_240105601_4FGL_J1253.8+6242_daily_bin2.fits
Exposure cube: /scratch/kocevski/961933/ltcube_239846401_240105601_4FGL_J1253.8+6242_daily_bin2.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/961933/Model_4FGL_J1253.8+6242_daily_bin2.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) = 4364.00564438

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.9061       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.1536       1.0000         .10000E-03   10000.    
     7 'Prefactor '    25.857       1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.5093       1.0000         .10000E-03   10000.    
    10 'Prefactor '    40.605       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.3330       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10142E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    83.450       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    89.588       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    121.70       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .11668E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.0724       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .79638       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7100E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4363.970     FROM MIGRAD    STATUS=CONVERGED    821 CALLS     4125 TOTAL
                     EDM=   .81E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    26.219       -.21096E-05** at limit **
   2  Prefactor     .10000E-03    11.425       -.21431E-05** at limit **
   3  Prefactor     .10000E-03    3.3329        .18317E-06** at limit **
   4  norm          .10000E-03    7.1273        .13845E-06** at limit **
   5  norm          1.9063        1.3736        .43338E-07   -.28798E-03
   6  Prefactor     8.1537        10.091       -.41693E-06   -.23346E-04
   7  Prefactor     25.852        32.376       -.49159E-06   -.40139E-05
   8  norm          .10000E-03    1.3399        .33826E-07** at limit **
   9  Prefactor     9.5031        24.776        .28281E-05   -.15986E-05
  10  Prefactor     40.612        78.985        .75062E-05   -.47003E-06
  11  norm          .10000E-03    5.3159       -.37722E-08** at limit **
  12  Prefactor     .10000E-03    3.9478       -.22618E-06** at limit **
  13  norm          2.3330        2.0220        .17510E-06    .88520E-05
  14  norm          .10000E-03    1.7438        .53183E-07** at limit **
  15  Prefactor     .10000E-03    64.799        .23429E-05** at limit **
  16  Prefactor     .10000E-03    12.462       -.11261E-06** at limit **
  17  Prefactor     .10000E-03    18.816       -.66265E-06** at limit **
  18  Prefactor     .10000E-03    11.006        .11620E-05** at limit **
  19  Prefactor     83.449        40.523       -.79068E-08    .75538E-05
  20  Prefactor     .10000E-03    38.754       -.64362E-05** at limit **
  21  Prefactor     .10000E-03    4.1508       -.19042E-06** at limit **
  22  Prefactor     .10000E-03    6.2017       -.21694E-06** at limit **
  23  Prefactor     89.584        63.310       -.21100E-05    .40046E-06
  24  Prefactor     .10000E-03    8.5070       -.53916E-06** at limit **
  25  Prefactor     .10000E-03    5.6405        .38041E-06** at limit **
  26  norm          .10000E-03    34.672        .63161E-05** at limit **
  27  norm          .10000E-03    2.3641        .32332E-06** at limit **
  28  Prefactor     121.70        67.694        .74748E-06    .59472E-05
  29  Prefactor     .10000E-03    287.43       -.20521E-05** at limit **
  30  Normalizat    1.0725        .19250       -.53424E-06    .34574E-04
  31  Prefactor     .79620        .21999        .14291E-06   -.46976E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.90634
  Prefactor  = 8.15371
  Prefactor  = 25.8522
  norm       = 0.0001
  Prefactor  = 9.50307
  Prefactor  = 40.612
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.33297
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 83.4487
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 89.5841
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 121.703
  Prefactor  = 0.0001
  Normalizat = 1.07254
  Prefactor  = 0.796204
 **********
 **   18 **HESSE 
 **********

 FCN=   4363.970     FROM HESSE     STATUS=OK           606 CALLS     4731 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    26.334        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    11.436        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.4052        .11774E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    7.1360        .17225E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.9063        9.1096        .15059E-02   -1.5432    
   6  Prefactor     8.1537        10.638        .70203E-03   -1.5137    
   7  Prefactor     25.852        32.803        .78780E-04   -1.4691    
   8  norm          .10000E-03    1.3576        .74617E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.5031        24.799        .12996E-03   -1.5091    
  10  Prefactor     40.612        78.937        .62905E-04   -1.4433    
  11  norm          .10000E-03    5.4209        .14863E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.9860        .12815E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.3330        2.0174        .85092E-04   -1.5402    
  14  norm          .10000E-03    1.7985        .17031E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    64.894        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    13.007        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    18.819        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    11.008        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     83.449        40.596        .43972E-04   -1.3878    
  20  Prefactor     .10000E-03    38.696        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.2717        .26255E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    6.2099        .16067E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     89.584        63.518        .42452E-04   -1.3812    
  24  Prefactor     .10000E-03    8.5710        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    5.6814        .15322E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    34.685        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    2.3811        .99230E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     121.70        67.742        .36482E-04   -1.3497    
  29  Prefactor     .10000E-03    287.43        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.0725        .23278        .21421E-03   -.90638    
  31  Prefactor     .79620        .26203        .28595E-03   -.99868    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.7009e-10
Minuit parameter uncertainties:
  1  5.71815e-06
  2  2.12506e-07
  3  3.78885e-07
  4  5.48107e-08
  5  8.33634
  6  10.6406
  7  32.8263
  8  4.46014e-08
  9  24.8256
  10  79.1414
  11  1.83822e-06
  12  2.45198e-06
  13  2.01748
  14  9.52699e-07
  15  2.86156e-05
  16  1.69233e-06
  17  1.52938e-07
  18  6.93239e-07
  19  40.6098
  20  2.40776e-05
  21  2.76305e-06
  22  6.10979e-07
  23  63.5667
  24  9.21918e-07
  25  1.02789e-06
  26  2.56566e-06
  27  4.79152e-06
  28  67.7847
  29  9.32068e-06
  30  0.233004
  31  0.262443
Done.

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

Extracting fit parameters...

4FGL J1253.8+6242
   Spectrum: PowerLaw
369    Prefactor:  1.000e-04  2.862e-05  1.000e-04  1.000e+04 ( 1.000e-14)
370        Index:  1.987e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
371        Scale:  2.277e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
707    Prefactor:  7.962e-01  2.624e-01  0.000e+00  1.000e+01 ( 1.000e+00)
708        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
709        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
706   Normalization:  1.073e+00  2.330e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 193.467 62.705
Photon Flux Upper Limit: 7.92e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.93e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/961933/likelihoodResults_239846401_240105601_4FGL_J1253.8+6242_daily_bin2.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) = 4363.96980458
delta logL = -7.33188126105e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4363.96973132
delta logL = -6.05659806752e-08

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4363.970     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      235 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    34.982        .90712E-02** at limit **
   2  Index         2.1287        5.3887        .50000        .24345E-05
   3  Normalizat    1.0725        .34585E-02    .39247E-01    .61671E-05
   4  Prefactor     .79620        .40580E-02    .64643E-01    .10221E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.12867
  Normalizat = 1.07254
  Prefactor  = 0.796204
 **********
 **   18 **HESSE 
 **********

 FCN=   4363.970     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      268 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    215.02        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1287        8.2404        .50000       -.61171    
   3  Normalizat    1.0725        .86094E-02    .21421E-03   -.90638    
   4  Prefactor     .79620        .10089E-01    .28595E-03   -.99868    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.28797e-08
Minuit parameter uncertainties:
  1  0.000209812
  2  193.692
  3  0.00860942
  4  0.0100892
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/961933': 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) = 4363.96973131
delta logL = -4.55856934423e-08

Extracting fit parameters...

4FGL J1253.8+6242
   Spectrum: PowerLaw
369    Prefactor:  1.000e-04  2.098e-04  1.000e-04  1.000e+04 ( 1.000e-14)
370        Index:  2.129e+00  1.937e+02  0.000e+00  1.000e+01 (-1.000e+00)
371        Scale:  2.277e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
707    Prefactor:  7.962e-01  1.009e-02  0.000e+00  1.000e+01 ( 1.000e+00)
708        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
709        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
706   Normalization:  1.073e+00  8.609e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 193.467 62.705

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/961933/cmap_HighResolution_239846401_240105601_4FGL_J1253.8+6242_daily_bin2.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.93e-03', job_status='DONE', photon_flux_upper_limit='7.92e-08', time_completed='2021-09-06 08:02:08.294525', job_id='961933', GAL2='0.80', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1630940528.29', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='-4.56e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='2' AND source_name='4FGL J1253.8+6242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 08:02:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0109>
Subject: Job 961933: <4FGL_J1253.8+6242_daily_bin2> in cluster <slac> Done

Job <4FGL_J1253.8+6242_daily_bin2> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Sep  6 07:45:54 2021
Job was executed on host(s) <bullet0109>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 07:45:55 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 07:45:55 2021
Terminated at Mon Sep  6 08:02:09 2021
Results reported at Mon Sep  6 08:02:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1253.8+6242_daily_bin2 193.467 62.7052 239846401 240105601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1253.8+6242 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   795.21 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             321.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   973 sec.
    Turnaround time :                            975 sec.

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

