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


Performing analysis on: 4FGL_J1253.8+6242_daily_bin1416
RA = 193.467, Dec = 62.7052
tmin = 606355201, tmax = 606614401
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='974643', job_status='RUN', time_executed='2021-09-06 08:22:21.922406', time_epoch_executed='1630941741.92' WHERE source_name='4FGL J1253.8+6242' and cadence='daily' and bin_id='1416'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/974643

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/974643/ft1_4FGL_J1253.8+6242_daily_bin1416.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/974643/ft2_4FGL_J1253.8+6242_daily_bin1416.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/974643/ft1_4FGL_J1253.8+6242_daily_bin1416.fits outfile=/scratch/kocevski/974643/ft1_filteredMKT_4FGL_J1253.8+6242_daily_bin1416.fits ra=193.467 dec=62.7052 rad=12.0 tmin=606355201.0 tmax=606614401.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.32
user 2.69
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/974643/ft1_filtered_4FGL_J1253.8+6242_daily_bin1416.fits" evtable="EVENTS" scfile=/scratch/kocevski/974643/ft2_4FGL_J1253.8+6242_daily_bin1416.fits sctable="SC_DATA" outfile=/scratch/kocevski/974643/ltcube_606355201_606614401_4FGL_J1253.8+6242_daily_bin1416.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/974643/ft2_4FGL_J1253.8+6242_daily_bin1416.fits
.....................!
real 9.83
user 9.44
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/974643/ft1_filtered_4FGL_J1253.8+6242_daily_bin1416.fits evtable="EVENTS" scfile=/scratch/kocevski/974643/ft2_4FGL_J1253.8+6242_daily_bin1416.fits sctable="SC_DATA" expcube=/scratch/kocevski/974643/ltcube_606355201_606614401_4FGL_J1253.8+6242_daily_bin1416.fits outfile=/scratch/kocevski/974643/expmap_606355201_606614401_4FGL_J1253.8+6242_daily_bin1416.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/974643/ltcube_606355201_606614401_4FGL_J1253.8+6242_daily_bin1416.fits
.....................!
real 154.66
user 148.78
sys 4.81

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/974643/ft1_filtered_4FGL_J1253.8+6242_daily_bin1416.fits scfile=/scratch/kocevski/974643/ft2_4FGL_J1253.8+6242_daily_bin1416.fits outfile=/scratch/kocevski/974643/cmap_606355201_606614401_4FGL_J1253.8+6242_daily_bin1416.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.47
user 0.31
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/974643/ft1_filtered_4FGL_J1253.8+6242_daily_bin1416.fits scfile=/scratch/kocevski/974643/ft2_4FGL_J1253.8+6242_daily_bin1416.fits outfile=/scratch/kocevski/974643/cmap_HighResolution_606355201_606614401_4FGL_J1253.8+6242_daily_bin1416.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.47
user 0.33
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.503       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .13010E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .27075E-02   1.0000         .10000E-03   10000.    
     5 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    5.2257       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .15194E-02   1.0000         .10000E-03   10000.    
    13 'norm      '    5.9649       1.0000         .10000E-03   10000.    
    14 'norm      '    4.4743       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.147       1.0000         .10000E-03   10000.    
    17 'Prefactor '    60.836       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    20.750       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    11.503       1.0000         .10000E-03   10000.    
    23 'Prefactor '    19.768       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    11.844       1.0000         .10000E-03   10000.    
    26 'norm      '    34.788       1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    49.136       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.2384       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .39961       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7100E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6135.071     FROM MIGRAD    STATUS=CONVERGED    125 CALLS     3499 TOTAL
                     EDM=   .99E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.507        1.0435       -.61492E-07   -.38288E-04
   2  Prefactor     .11243E-03    65.660        .44380E-04** at limit **
   3  Prefactor     .10000E-03    1.8553        .57643E-07** at limit **
   4  norm          .10229E-03    28.708       -.34254E-04** at limit **
   5  norm          .10000E-03    2.6013       -.12607E-06** at limit **
   6  Prefactor     .10000E-03    1.8079       -.87359E-07** at limit **
   7  Prefactor     .10000E-03    4.3270       -.49910E-06** at limit **
   8  norm          .10000E-03    1.1343        .50146E-07** at limit **
   9  Prefactor     .10000E-03    4.7765        .65865E-07** at limit **
  10  Prefactor     .10000E-03    12.813        .13246E-05** at limit **
  11  norm          5.2250        4.4167       -.19837E-05   -.32003E-03
  12  Prefactor     .10181E-03    10.096        .18537E-04** at limit **
  13  norm          5.9662        2.5970        .29736E-06    .42648E-04
  14  norm          4.4742        2.4533        .63240E-07    .41631E-03
  15  Prefactor     .10033E-03    17.853       -.27587E-04** at limit **
  16  Prefactor     14.148        1.0110       -.23702E-07    .55402E-04
  17  Prefactor     60.831        1.6579       -.10073E-05    .16860E-02
  18  Prefactor     .10077E-03    18.627        .36382E-04** at limit **
  19  Prefactor     20.750        1.0015       -.52113E-09    .44403E-04
  20  Prefactor     .10171E-03    50.356        .15875E-06** at limit **
  21  Prefactor     .10000E-03    1.7394        .91978E-07** at limit **
  22  Prefactor     11.502        1.0023        .45941E-07   -.24018E-04
  23  Prefactor     19.766        1.0267       -.17198E-06    .54644E-04
  24  Prefactor     .10000E-03    9.4427        .16591E-06** at limit **
  25  Prefactor     11.844        1.0031       -.97330E-07   -.35607E-04
  26  norm          34.787        1.0013       -.46990E-07    .40613E-04
  27  norm          .10000E-03    1.0129       -.11483E-06** at limit **
  28  Prefactor     49.126        1.8070       -.10527E-05    .94170E-03
  29  Prefactor     .12204E-03    130.65       -.89786E-04** at limit **
  30  Normalizat    1.2384        .16648        .63051E-06    .27013E-03
  31  Prefactor     .39965        .19404        .93040E-06    .86001E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.5071
  Prefactor  = 0.000112426
  Prefactor  = 0.0001
  norm       = 0.000102294
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.22503
  Prefactor  = 0.00010181
  norm       = 5.96618
  norm       = 4.47425
  Prefactor  = 0.000100327
  Prefactor  = 14.148
  Prefactor  = 60.8306
  Prefactor  = 0.00010077
  Prefactor  = 20.7498
  Prefactor  = 0.000101706
  Prefactor  = 0.0001
  Prefactor  = 11.5018
  Prefactor  = 19.7658
  Prefactor  = 0.0001
  Prefactor  = 11.8436
  norm       = 34.7873
  norm       = 0.0001
  Prefactor  = 49.1263
  Prefactor  = 0.000122037
  Normalizat = 1.2384
  Prefactor  = 0.399647
 **********
 **   18 **HESSE 
 **********

 FCN=   6135.071     FROM HESSE     STATUS=OK           706 CALLS     4205 TOTAL
                     EDM=   .24E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.507        16.685        .29529E-02   -1.5029    
   2  Prefactor     .11243E-03    10.038        .13318       -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.8274        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10229E-03    6.1731        .99685E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.5542        .38523E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.8051        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.3252        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.0828        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.7696        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    12.811        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.2250        4.4348        .43960E-02   -1.5251    
  12  Prefactor     .10181E-03    3.8176        .82254E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          5.9662        2.8465        .41103E-02   -1.5219    
  14  norm          4.4742        2.4635        .47589E-02   -1.5285    
  15  Prefactor     .10033E-03    18.608        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     14.148        12.005        .26622E-02   -1.4956    
  17  Prefactor     60.831        56.764        .12861E-02   -1.4146    
  18  Prefactor     .10077E-03    20.510        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     20.750        20.271        .21982E-02   -1.4797    
  20  Prefactor     .10171E-03    54.339        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    1.7037        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     11.502        11.847        .29529E-02   -1.5030    
  23  Prefactor     19.766        27.409        .22521E-02   -1.4818    
  24  Prefactor     .10000E-03    9.1344        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     11.844        9.2324        .29100E-02   -1.5020    
  26  norm          34.787        42.028        .16986E-02   -1.4528    
  27  norm          .10000E-03    1.0094        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     49.126        34.260        .14302E-02   -1.4305    
  29  Prefactor     .12204E-03    187.98        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.2384        .15502        .34011E-01   -.85424    
  31  Prefactor     .39965        .18040        .80175E-01   -1.1683    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.43201e-07
Minuit parameter uncertainties:
  1  16.6918
  2  0.0223403
  3  4.41203e-06
  4  0.00752738
  5  6.66213e-06
  6  1.02467e-05
  7  1.62822e-05
  8  2.68812e-06
  9  3.37561e-06
  10  0.000132833
  11  4.43507
  12  0.00525805
  13  2.84658
  14  2.4636
  15  0.00493213
  16  12.0073
  17  56.8147
  18  0.00795138
  19  20.278
  20  0.0192734
  21  1.79997e-06
  22  11.8499
  23  27.426
  24  0.000132937
  25  9.23347
  26  42.0633
  27  1.20597e-05
  28  34.2737
  29  0.12913
  30  0.155082
  31  0.180656
Done.

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

Extracting fit parameters...

4FGL J1253.8+6242
   Spectrum: PowerLaw
369    Prefactor:  1.003e-04  4.932e-03  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:  3.996e-01  1.807e-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.238e+00  1.551e-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: 3.54e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.65e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/974643/likelihoodResults_606355201_606614401_4FGL_J1253.8+6242_daily_bin1416.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6135.07135982
delta logL = -0.000255530958384

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6135.07110733
delta logL = -3.04277364194e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.0669       1.0000          .0000       10.000    
     3 'Normalizat'    1.2384       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .39965       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=   6135.071     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      240 TOTAL
                     EDM=   .48E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .11599        .64444E-01** at limit **
   2  Index         3.0551        1.0286        .50000        .12620E-04
   3  Normalizat    1.2384        .77834E-03    .34011E-01    .36690E-03
   4  Prefactor     .39965        .91426E-03    .80175E-01    .13177E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Index      = 3.05514
  Normalizat = 1.2384
  Prefactor  = 0.399647
 **********
 **   18 **HESSE 
 **********

 FCN=   6135.071     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      273 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    55.998        .23147E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.0551        5.4559        .50000       -.39952    
   3  Normalizat    1.2384        .88128E-02    .18038E-03   -.85424    
   4  Prefactor     .39965        .10323E-01    .35515E-03   -1.1683    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.49211e-10
Minuit parameter uncertainties:
  1  0.000839379
  2  11.6721
  3  0.00881283
  4  0.0103229
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/974643': 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) = 6135.07110727
delta logL = -2.98291524814e-06

Extracting fit parameters...

4FGL J1253.8+6242
   Spectrum: PowerLaw
369    Prefactor:  1.000e-04  8.394e-04  1.000e-04  1.000e+04 ( 1.000e-14)
370        Index:  3.055e+00  1.167e+01  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:  3.996e-01  1.032e-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.238e+00  8.813e-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/974643/cmap_HighResolution_606355201_606614401_4FGL_J1253.8+6242_daily_bin1416.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.65e-03', job_status='DONE', photon_flux_upper_limit='3.54e-08', time_completed='2021-09-06 08:36:02.714293', job_id='974643', GAL2='0.40', fit_tolerance='1e-08', EG2='1.24', EG='1.24', time_epoch_completed='1630942562.71', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.40', dlogl='-2.98e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='1416' AND source_name='4FGL J1253.8+6242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 08:36:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0033>
Subject: Job 974643: <4FGL_J1253.8+6242_daily_bin1416> in cluster <slac> Done

Job <4FGL_J1253.8+6242_daily_bin1416> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Mon Sep  6 08:21:13 2021
Job was executed on host(s) <bullet0033>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 08:21:15 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:21:15 2021
Terminated at Mon Sep  6 08:36:03 2021
Results reported at Mon Sep  6 08:36:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1253.8+6242_daily_bin1416 193.467 62.7052 606355201 606614401 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 :                                   808.40 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             322.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   887 sec.
    Turnaround time :                            890 sec.

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

