/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 40 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 = 7438
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1253.8+6242_daily_bin1004
RA = 193.467, Dec = 62.7052
tmin = 499564801, tmax = 499824001
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='969978', job_status='RUN', time_executed='2021-09-06 08:07:28.259751', time_epoch_executed='1630940848.26' WHERE source_name='4FGL J1253.8+6242' and cadence='daily' and bin_id='1004'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/969978

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/969978/ft1_4FGL_J1253.8+6242_daily_bin1004.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/969978/ft2_4FGL_J1253.8+6242_daily_bin1004.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/969978/ft1_4FGL_J1253.8+6242_daily_bin1004.fits outfile=/scratch/kocevski/969978/ft1_filteredMKT_4FGL_J1253.8+6242_daily_bin1004.fits ra=193.467 dec=62.7052 rad=12.0 tmin=499564801.0 tmax=499824001.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.44
user 4.86
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/969978/ft2_4FGL_J1253.8+6242_daily_bin1004.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/969978/ft1_filteredMKT_4FGL_J1253.8+6242_daily_bin1004.fits evtable="EVENTS" outfile="/scratch/kocevski/969978/ft1_filtered_4FGL_J1253.8+6242_daily_bin1004.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.63
user 0.35
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/969978/ft1_filtered_4FGL_J1253.8+6242_daily_bin1004.fits" evtable="EVENTS" scfile=/scratch/kocevski/969978/ft2_4FGL_J1253.8+6242_daily_bin1004.fits sctable="SC_DATA" outfile=/scratch/kocevski/969978/ltcube_499564801_499824001_4FGL_J1253.8+6242_daily_bin1004.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/969978/ft2_4FGL_J1253.8+6242_daily_bin1004.fits
.....................!
real 12.88
user 12.28
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/969978/ft1_filtered_4FGL_J1253.8+6242_daily_bin1004.fits evtable="EVENTS" scfile=/scratch/kocevski/969978/ft2_4FGL_J1253.8+6242_daily_bin1004.fits sctable="SC_DATA" expcube=/scratch/kocevski/969978/ltcube_499564801_499824001_4FGL_J1253.8+6242_daily_bin1004.fits outfile=/scratch/kocevski/969978/expmap_499564801_499824001_4FGL_J1253.8+6242_daily_bin1004.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/969978/ltcube_499564801_499824001_4FGL_J1253.8+6242_daily_bin1004.fits
.....................!
real 191.98
user 186.37
sys 4.17

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/969978/ft1_filtered_4FGL_J1253.8+6242_daily_bin1004.fits scfile=/scratch/kocevski/969978/ft2_4FGL_J1253.8+6242_daily_bin1004.fits outfile=/scratch/kocevski/969978/cmap_499564801_499824001_4FGL_J1253.8+6242_daily_bin1004.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/969978/ft1_filtered_4FGL_J1253.8+6242_daily_bin1004.fits scfile=/scratch/kocevski/969978/ft2_4FGL_J1253.8+6242_daily_bin1004.fits outfile=/scratch/kocevski/969978/cmap_HighResolution_499564801_499824001_4FGL_J1253.8+6242_daily_bin1004.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.41
sys 0.13

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/969978/ft1_filtered_4FGL_J1253.8+6242_daily_bin1004.fits', '/scratch/kocevski/969978/ft2_4FGL_J1253.8+6242_daily_bin1004.fits', expMap='/scratch/kocevski/969978/expmap_499564801_499824001_4FGL_J1253.8+6242_daily_bin1004.fits', expCube='/scratch/kocevski/969978/ltcube_499564801_499824001_4FGL_J1253.8+6242_daily_bin1004.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/969978/Model_4FGL_J1253.8+6242_daily_bin1004.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/969978/ft1_filtered_4FGL_J1253.8+6242_daily_bin1004.fits
Spacecraft file(s): /scratch/kocevski/969978/ft2_4FGL_J1253.8+6242_daily_bin1004.fits
Exposure map: /scratch/kocevski/969978/expmap_499564801_499824001_4FGL_J1253.8+6242_daily_bin1004.fits
Exposure cube: /scratch/kocevski/969978/ltcube_499564801_499824001_4FGL_J1253.8+6242_daily_bin1004.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/969978/Model_4FGL_J1253.8+6242_daily_bin1004.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) = 3868.34279112

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.352       1.0000         .10000E-03   10000.    
     2 'Prefactor '    27.934       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.5478       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .67639       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.5257       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    94.894       1.0000         .10000E-03   10000.    
    11 'norm      '    3.9060       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.8290       1.0000         .10000E-03   10000.    
    13 'norm      '    .42000E-01   1.0000         .10000E-03   10000.    
    14 'norm      '    2.2376       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    18.896       1.0000         .10000E-03   10000.    
    17 'Prefactor '    27.392       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    15.455       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.8071       1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.7552       1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .96162       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .82368       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=   3868.330     FROM MIGRAD    STATUS=CONVERGED    815 CALLS     4130 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.352        20.979       -.48955E-06   -.51827E-04
   2  Prefactor     27.934        25.252        .28948E-07   -.32522E-04
   3  Prefactor     4.5477        5.5183        .19642E-06   -.44158E-04
   4  norm          .10000E-03    9.8776        .25678E-06** at limit **
   5  norm          .10000E-03    2.5218        .35100E-06** at limit **
   6  Prefactor     .67690        14.287        .33167E-04   -.92274E-04
   7  Prefactor     .10000E-03    12.842        .69951E-06** at limit **
   8  norm          2.5258        2.7004       -.57837E-07   -.11998E-03
   9  Prefactor     .10000E-03    11.723        .68570E-07** at limit **
  10  Prefactor     94.899        79.079       -.46018E-05   -.74032E-04
  11  norm          3.9060        4.1577        .14107E-06   -.15862E-03
  12  Prefactor     6.8272        6.8145       -.32948E-07   -.11589E-03
  13  norm          .49722E-01    1.8855       -.13171E-05    .38226E-03
  14  norm          2.2376        3.3044        .28094E-06    .30080E-06
  15  Prefactor     .10000E-03    14.645       -.27385E-06** at limit **
  16  Prefactor     18.892        14.955       -.19719E-07   -.15622E-03
  17  Prefactor     27.239        97.605        .15040E-04   -.76029E-04
  18  Prefactor     .10000E-03    20.383       -.12146E-05** at limit **
  19  Prefactor     .10000E-03    45.350        .89571E-06** at limit **
  20  Prefactor     .10000E-03    72.396        .24040E-05** at limit **
  21  Prefactor     .10000E-03    2.2690       -.11519E-05** at limit **
  22  Prefactor     15.466        23.364       -.24279E-05   -.28398E-03
  23  Prefactor     .10000E-03    80.155        .16231E-05** at limit **
  24  Prefactor     3.8091        8.5585       -.66362E-06   -.28439E-03
  25  Prefactor     2.7546        10.110        .63304E-06   -.21905E-04
  26  norm          .10000E-03    98.253       -.21370E-05** at limit **
  27  norm          .10000E-03    2.5432        .30831E-06** at limit **
  28  Prefactor     .10000E-03    14.165        .44357E-07** at limit **
  29  Prefactor     .10000E-03    184.52        .32346E-06** at limit **
  30  Normalizat    .96162        .19622        .21355E-05    .14580E-03
  31  Prefactor     .82369        .22298       -.58973E-05   -.37689E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.3515
  Prefactor  = 27.9337
  Prefactor  = 4.54766
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.6769
  Prefactor  = 0.0001
  norm       = 2.52577
  Prefactor  = 0.0001
  Prefactor  = 94.8991
  norm       = 3.90598
  Prefactor  = 6.82719
  norm       = 0.0497218
  norm       = 2.23763
  Prefactor  = 0.0001
  Prefactor  = 18.8915
  Prefactor  = 27.2389
  Prefactor  = 0.000100002
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 15.4662
  Prefactor  = 0.000100002
  Prefactor  = 3.80908
  Prefactor  = 2.75459
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.961625
  Prefactor  = 0.823687
 **********
 **   18 **HESSE 
 **********

 FCN=   3868.330     FROM HESSE     STATUS=OK           610 CALLS     4740 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.352        20.991        .91047E-04   -1.4828    
   2  Prefactor     27.934        25.275        .75800E-04   -1.4650    
   3  Prefactor     4.5477        5.5113        .15468E-03   -1.5281    
   4  norm          .10000E-03    9.8996        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    2.5386        .96434E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .67690        14.489        .22168E-02   -1.5543    
   7  Prefactor     .10000E-03    12.857        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.5258        2.7063        .10055E-03   -1.5390    
   9  Prefactor     .10000E-03    11.741        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     94.899        79.220        .41259E-04   -1.3757    
  11  norm          3.9060        4.1547        .63430E-03   -1.5313    
  12  Prefactor     6.8272        6.8503        .15172E-03   -1.5185    
  13  norm          .49722E-01    26.498        .15605E-02   -1.5663    
  14  norm          2.2376        3.2908        .13151E-03   -1.5409    
  15  Prefactor     .10000E-03    14.647        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     18.892        15.146        .92138E-04   -1.4838    
  17  Prefactor     27.239        97.794        .76545E-04   -1.4664    
  18  Prefactor     .10000E-03    20.401        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    45.818        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    72.580        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.2876        .91421E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     15.466        23.350        .10188E-03   -1.4921    
  23  Prefactor     .10000E-03    80.499        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     3.8091        8.5208        .20687E-03   -1.5318    
  25  Prefactor     2.7546        10.096        .24523E-03   -1.5376    
  26  norm          .10000E-03    98.348        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    2.5613        .96859E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    14.170        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    184.52        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .96162        .23613        .21088E-03   -.94327    
  31  Prefactor     .82369        .26517        .26953E-03   -.98861    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.0128e-09
Minuit parameter uncertainties:
  1  20.9986
  2  25.2849
  3  5.51192
  4  4.81918e-05
  5  3.1663e-05
  6  6.2646
  7  4.43314e-05
  8  2.70639
  9  6.09209e-05
  10  79.3081
  11  4.15502
  12  6.85109
  13  2.2944
  14  3.29103
  15  5.42329e-06
  16  15.1494
  17  98.377
  18  0.000434994
  19  0.000624202
  20  0.000206441
  21  0.000120291
  22  23.3634
  23  0.000701964
  24  8.52352
  25  10.1021
  26  0.000640762
  27  3.42376e-05
  28  2.61692e-05
  29  3.52533e-05
  30  0.236388
  31  0.265583
Done.

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

Extracting fit parameters...

4FGL J1253.8+6242
   Spectrum: PowerLaw
369    Prefactor:  1.000e-04  5.423e-06  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:  8.237e-01  2.656e-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:  9.616e-01  2.364e-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: 4.13e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.10e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/969978/likelihoodResults_499564801_499824001_4FGL_J1253.8+6242_daily_bin1004.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) = 3868.33019007
delta logL = -0.000323068494254

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3868.32986701
delta logL = -5.99357008468e-10

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3868.330     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      240 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10372E-03    8.4298        .18142E-01** at limit **
   2  Index         1.8486        8.2968        .50000        .10123E-04
   3  Normalizat    .96162        .32373E-02    .21088E-03   -.34287E-04
   4  Prefactor     .82370        .38789E-02    .26953E-03   -.64007E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103716
  Index      = 1.8486
  Normalizat = 0.961616
  Prefactor  = 0.823698
 **********
 **   18 **HESSE 
 **********

 FCN=   3868.330     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      269 TOTAL
                     EDM=   .84E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10372E-03    157.52        .24784E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8486        6.6791        .50000       -.68191    
   3  Normalizat    .96162        .14157E-01    .84352E-05   -.94328    
   4  Prefactor     .82370        .16963E-01    .10781E-04   -.98861    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.39452e-09
Minuit parameter uncertainties:
  1  0.0485163
  2  582.56
  3  0.0141573
  4  0.0169628
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/969978': 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) = 3868.32986671
delta logL = 2.98716713587e-07

Extracting fit parameters...

4FGL J1253.8+6242
   Spectrum: PowerLaw
369    Prefactor:  1.037e-04  4.852e-02  1.000e-04  1.000e+04 ( 1.000e-14)
370        Index:  1.849e+00  5.826e+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:  8.237e-01  1.696e-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:  9.616e-01  1.416e-02  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/969978/cmap_HighResolution_499564801_499824001_4FGL_J1253.8+6242_daily_bin1004.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.10e-03', job_status='DONE', photon_flux_upper_limit='4.13e-08', time_completed='2021-09-06 08:20:24.479157', job_id='969978', GAL2='0.82', fit_tolerance='1e-08', EG2='0.96', EG='0.96', time_epoch_completed='1630941624.48', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='2.99e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='1004' AND source_name='4FGL J1253.8+6242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 08:20:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 969978: <4FGL_J1253.8+6242_daily_bin1004> in cluster <slac> Done

Job <4FGL_J1253.8+6242_daily_bin1004> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Sep  6 08:06:09 2021
Job was executed on host(s) <bullet0040>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 08:06:10 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 08:06:10 2021
Terminated at Mon Sep  6 08:20:25 2021
Results reported at Mon Sep  6 08:20:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1253.8+6242_daily_bin1004 193.467 62.7052 499564801 499824001 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 :                                   760.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             312.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   854 sec.
    Turnaround time :                            856 sec.

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

