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


Performing analysis on: 4FGL_J1253.8+6242_daily_bin1070
RA = 193.467, Dec = 62.7052
tmin = 516672001, tmax = 516931201
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='970078', job_status='RUN', time_executed='2021-09-06 08:07:35.522176', time_epoch_executed='1630940855.52' WHERE source_name='4FGL J1253.8+6242' and cadence='daily' and bin_id='1070'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/970078

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/970078/ft1_4FGL_J1253.8+6242_daily_bin1070.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/970078/ft2_4FGL_J1253.8+6242_daily_bin1070.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/970078/ft1_4FGL_J1253.8+6242_daily_bin1070.fits outfile=/scratch/kocevski/970078/ft1_filteredMKT_4FGL_J1253.8+6242_daily_bin1070.fits ra=193.467 dec=62.7052 rad=12.0 tmin=516672001.0 tmax=516931201.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.24
user 2.54
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/970078/ft2_4FGL_J1253.8+6242_daily_bin1070.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/970078/ft1_filteredMKT_4FGL_J1253.8+6242_daily_bin1070.fits evtable="EVENTS" outfile="/scratch/kocevski/970078/ft1_filtered_4FGL_J1253.8+6242_daily_bin1070.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.99
user 0.28
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/970078/ft1_filtered_4FGL_J1253.8+6242_daily_bin1070.fits" evtable="EVENTS" scfile=/scratch/kocevski/970078/ft2_4FGL_J1253.8+6242_daily_bin1070.fits sctable="SC_DATA" outfile=/scratch/kocevski/970078/ltcube_516672001_516931201_4FGL_J1253.8+6242_daily_bin1070.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/970078/ft2_4FGL_J1253.8+6242_daily_bin1070.fits
.....................!
real 10.33
user 9.59
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/970078/ft1_filtered_4FGL_J1253.8+6242_daily_bin1070.fits evtable="EVENTS" scfile=/scratch/kocevski/970078/ft2_4FGL_J1253.8+6242_daily_bin1070.fits sctable="SC_DATA" expcube=/scratch/kocevski/970078/ltcube_516672001_516931201_4FGL_J1253.8+6242_daily_bin1070.fits outfile=/scratch/kocevski/970078/expmap_516672001_516931201_4FGL_J1253.8+6242_daily_bin1070.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/970078/ltcube_516672001_516931201_4FGL_J1253.8+6242_daily_bin1070.fits
.....................!
real 150.27
user 145.93
sys 3.53

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/970078/ft1_filtered_4FGL_J1253.8+6242_daily_bin1070.fits scfile=/scratch/kocevski/970078/ft2_4FGL_J1253.8+6242_daily_bin1070.fits outfile=/scratch/kocevski/970078/cmap_516672001_516931201_4FGL_J1253.8+6242_daily_bin1070.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.50
user 0.29
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/970078/ft1_filtered_4FGL_J1253.8+6242_daily_bin1070.fits scfile=/scratch/kocevski/970078/ft2_4FGL_J1253.8+6242_daily_bin1070.fits outfile=/scratch/kocevski/970078/cmap_HighResolution_516672001_516931201_4FGL_J1253.8+6242_daily_bin1070.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.48
user 0.31
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.4165       1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.9506       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.4098       1.0000         .10000E-03   10000.    
     4 'norm      '    7.8588       1.0000         .10000E-03   10000.    
     5 'norm      '    7.1971       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    5.7784       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.9485       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    12.774       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    4.3321       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.8255       1.0000         .10000E-03   10000.    
    17 'Prefactor '    40.106       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10140E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.0388       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.2070       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.3934       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .16510E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .57624       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.3771       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=   6209.466     FROM MIGRAD    STATUS=CONVERGED    794 CALLS     4079 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.4140        22.484        .93756E-06   -.27625E-04
   2  Prefactor     8.9511        14.841       -.78815E-07   -.18465E-04
   3  Prefactor     2.4096        2.6997        .33268E-07    .55841E-04
   4  norm          7.8609        16.648       -.81599E-06   -.45672E-04
   5  norm          7.1982        5.1991       -.17963E-06   -.34163E-03
   6  Prefactor     .10000E-03    5.3848        .79451E-06** at limit **
   7  Prefactor     .10000E-03    7.5086        .57806E-06** at limit **
   8  norm          5.7785        2.3153        .15826E-07   -.13857E-03
   9  Prefactor     9.9492        16.085       -.12624E-06   -.41358E-04
  10  Prefactor     .10000E-03    22.973        .59320E-05** at limit **
  11  norm          12.775        6.7274        .38580E-07   -.91946E-04
  12  Prefactor     .10000E-03    1.9888        .79320E-08** at limit **
  13  norm          4.3323        2.2191        .87978E-08   -.98114E-04
  14  norm          .10000E-03    .66180       -.96450E-08** at limit **
  15  Prefactor     .10000E-03    12.175       -.11598E-05** at limit **
  16  Prefactor     4.8256        5.2816        .28777E-07    .16080E-04
  17  Prefactor     40.092        37.695       -.86738E-05   -.13233E-04
  18  Prefactor     .10000E-03    26.132       -.11376E-04** at limit **
  19  Prefactor     9.0394        11.884       -.65707E-06   -.40827E-03
  20  Prefactor     .10000E-03    25.129       -.88267E-05** at limit **
  21  Prefactor     2.2066        2.7521       -.12687E-06   -.65584E-03
  22  Prefactor     .10000E-03    4.6688       -.18703E-07** at limit **
  23  Prefactor     6.4026        37.598        .67066E-05   -.89117E-05
  24  Prefactor     .10000E-03    2.5402       -.15489E-07** at limit **
  25  Prefactor     .10000E-03    5.7789       -.99732E-06** at limit **
  26  norm          .10000E-03    22.543        .10806E-04** at limit **
  27  norm          .10000E-03    2.1059       -.54276E-07** at limit **
  28  Prefactor     .10003E-03    107.60        .10988E-03** at limit **
  29  Prefactor     .10000E-03    152.02       -.16382E-03** at limit **
  30  Normalizat    .57637        .15360       -.31149E-06   -.27435E-03
  31  Prefactor     1.3769        .18908        .75505E-07   -.39191E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.41395
  Prefactor  = 8.95109
  Prefactor  = 2.40963
  norm       = 7.86087
  norm       = 7.19818
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.7785
  Prefactor  = 9.94924
  Prefactor  = 0.0001
  norm       = 12.775
  Prefactor  = 0.0001
  norm       = 4.33227
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.82563
  Prefactor  = 40.0915
  Prefactor  = 0.0001
  Prefactor  = 9.03942
  Prefactor  = 0.0001
  Prefactor  = 2.20662
  Prefactor  = 0.0001
  Prefactor  = 6.40256
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100028
  Prefactor  = 0.0001
  Normalizat = 0.57637
  Prefactor  = 1.37692
 **********
 **   18 **HESSE 
 **********

 FCN=   6209.466     FROM HESSE     STATUS=OK           618 CALLS     4697 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.4140        22.492        .15845E-03   -1.5201    
   2  Prefactor     8.9511        14.834        .13397E-03   -1.5110    
   3  Prefactor     2.4096        2.6987        .13332E-03   -1.5397    
   4  norm          7.8609        16.655        .14303E-03   -1.5147    
   5  norm          7.1982        5.1776        .13878E-03   -1.5171    
   6  Prefactor     .10000E-03    5.5214        .35645E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.5212        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          5.7785        2.3165        .72676E-04   -1.5227    
   9  Prefactor     9.9492        16.081        .12704E-03   -1.5077    
  10  Prefactor     .10000E-03    23.024        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          12.775        6.7259        .11207E-03   -1.4993    
  12  Prefactor     .10000E-03    1.9968        .10844E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.3323        2.2162        .80784E-04   -1.5292    
  14  norm          .10000E-03    .66971        .62590E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    12.185        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.8256        5.2806        .18299E-03   -1.5269    
  17  Prefactor     40.092        37.701        .63294E-04   -1.4441    
  18  Prefactor     .10000E-03    26.305        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9.0394        11.886        .66656E-03   -1.5107    
  20  Prefactor     .10000E-03    25.195        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.2066        2.7385        .13974E-03   -1.5411    
  22  Prefactor     .10000E-03    4.6854        .16628E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     6.4026        37.618        .15874E-03   -1.5202    
  24  Prefactor     .10000E-03    2.5446        .12261E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    5.8610        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    22.547        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    2.1403        .11160E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10003E-03    108.98        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    152.82        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .57637        .18281        .26662E-03   -1.0900    
  31  Prefactor     1.3769        .22675        .22930E-03   -.81048    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.81901e-10
Minuit parameter uncertainties:
  1  22.5215
  2  14.8401
  3  2.69886
  4  16.6652
  5  5.17794
  6  3.33487e-06
  7  1.6376e-06
  8  2.31657
  9  16.0883
  10  2.24847e-06
  11  6.72627
  12  1.62315e-07
  13  2.21629
  14  1.72933e-07
  15  2.13475e-06
  16  5.2811
  17  37.723
  18  6.65026e-05
  19  11.8888
  20  1.28279e-05
  21  2.73868
  22  6.27398e-06
  23  31.0679
  24  2.33823e-07
  25  7.95969e-06
  26  9.95238e-07
  27  5.52696e-06
  28  0.00352872
  29  7.8691e-06
  30  0.182997
  31  0.226913
Done.

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

Extracting fit parameters...

4FGL J1253.8+6242
   Spectrum: PowerLaw
369    Prefactor:  1.000e-04  2.135e-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:  1.377e+00  2.269e-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:  5.764e-01  1.830e-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: 2.97e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.22e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/970078/likelihoodResults_516672001_516931201_4FGL_J1253.8+6242_daily_bin1070.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) = 6209.46632788
delta logL = -0.000386887952118

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6209.46594081
delta logL = 1.80401912075e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9524       1.0000          .0000       10.000    
     3 'Normalizat'    .57636       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3769       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=   6209.466     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      250 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10133E-03    72.513        .18142E-02** at limit **
   2  Index         1.8965        9.0285        .50000        .17285E-04
   3  Normalizat    .57637        .82714E-02    .26662E-03    .17530E-03
   4  Prefactor     1.3769        .10624E-01    .22930E-03   -.83772E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101333
  Index      = 1.89653
  Normalizat = 0.576373
  Prefactor  = 1.37691
 **********
 **   18 **HESSE 
 **********

 FCN=   6209.466     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      279 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10133E-03    316.22        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8965        6.6883        .50000       -.66963    
   3  Normalizat    .57637        .17684E-01    .10665E-04   -1.0900    
   4  Prefactor     1.3769        .22715E-01    .45859E-04   -.81048    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.7685e-09
Minuit parameter uncertainties:
  1  0.0412857
  2  342.005
  3  0.0176845
  4  0.0227148
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/970078': 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) = 6209.46594059
delta logL = 3.99894815928e-07

Extracting fit parameters...

4FGL J1253.8+6242
   Spectrum: PowerLaw
369    Prefactor:  1.013e-04  4.129e-02  1.000e-04  1.000e+04 ( 1.000e-14)
370        Index:  1.897e+00  3.420e+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:  1.377e+00  2.271e-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:  5.764e-01  1.768e-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/970078/cmap_HighResolution_516672001_516931201_4FGL_J1253.8+6242_daily_bin1070.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.22e-03', job_status='DONE', photon_flux_upper_limit='2.97e-08', time_completed='2021-09-06 08:20:56.292562', job_id='970078', GAL2='1.38', fit_tolerance='1e-08', EG2='0.58', EG='0.58', time_epoch_completed='1630941656.29', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.38', dlogl='4.00e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='1070' AND source_name='4FGL J1253.8+6242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 08:20:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0095>
Subject: Job 970078: <4FGL_J1253.8+6242_daily_bin1070> in cluster <slac> Done

Job <4FGL_J1253.8+6242_daily_bin1070> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Sep  6 08:06:16 2021
Job was executed on host(s) <bullet0095>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 08:06:17 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:17 2021
Terminated at Mon Sep  6 08:20:57 2021
Results reported at Mon Sep  6 08:20:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1253.8+6242_daily_bin1070 193.467 62.7052 516672001 516931201 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 :                                   785.21 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             319.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   879 sec.
    Turnaround time :                            881 sec.

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

