aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 133 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 = 7654
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1253.8+6242_daily_bin1685
RA = 193.467, Dec = 62.7052
tmin = 676080001, tmax = 676339201
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='366763', job_status='RUN', time_executed='2022-06-08 00:50:49.923977', time_epoch_executed='1654674649.92' WHERE source_name='4FGL J1253.8+6242' and cadence='daily' and bin_id='1685'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/366763

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/366763/ft1_4FGL_J1253.8+6242_daily_bin1685.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/366763/ft2_4FGL_J1253.8+6242_daily_bin1685.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/366763/ft1_4FGL_J1253.8+6242_daily_bin1685.fits outfile=/scratch/kocevski/366763/ft1_filteredMKT_4FGL_J1253.8+6242_daily_bin1685.fits ra=193.467 dec=62.7052 rad=12.0 tmin=676080001.0 tmax=676339201.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.58
user 3.35
sys 0.22

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

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

Number of photons that the gtmktime cut: 889

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/366763/ft1_filtered_4FGL_J1253.8+6242_daily_bin1685.fits" evtable="EVENTS" scfile=/scratch/kocevski/366763/ft2_4FGL_J1253.8+6242_daily_bin1685.fits sctable="SC_DATA" outfile=/scratch/kocevski/366763/ltcube_676080001_676339201_4FGL_J1253.8+6242_daily_bin1685.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/366763/ft2_4FGL_J1253.8+6242_daily_bin1685.fits
.....................!
real 12.80
user 12.40
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/366763/ft1_filtered_4FGL_J1253.8+6242_daily_bin1685.fits evtable="EVENTS" scfile=/scratch/kocevski/366763/ft2_4FGL_J1253.8+6242_daily_bin1685.fits sctable="SC_DATA" expcube=/scratch/kocevski/366763/ltcube_676080001_676339201_4FGL_J1253.8+6242_daily_bin1685.fits outfile=/scratch/kocevski/366763/expmap_676080001_676339201_4FGL_J1253.8+6242_daily_bin1685.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/366763/ltcube_676080001_676339201_4FGL_J1253.8+6242_daily_bin1685.fits
.....................!
real 193.19
user 187.51
sys 5.34

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/366763/ft1_filtered_4FGL_J1253.8+6242_daily_bin1685.fits scfile=/scratch/kocevski/366763/ft2_4FGL_J1253.8+6242_daily_bin1685.fits outfile=/scratch/kocevski/366763/cmap_676080001_676339201_4FGL_J1253.8+6242_daily_bin1685.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.56
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/366763/ft1_filtered_4FGL_J1253.8+6242_daily_bin1685.fits scfile=/scratch/kocevski/366763/ft2_4FGL_J1253.8+6242_daily_bin1685.fits outfile=/scratch/kocevski/366763/cmap_HighResolution_676080001_676339201_4FGL_J1253.8+6242_daily_bin1685.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.59
user 0.38
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8863       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   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 '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.253       1.0000         .10000E-03   10000.    
     8 'norm      '    .14573       1.0000         .10000E-03   10000.    
     9 'Prefactor '    21.015       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.0854       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .13040E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    6.6322       1.0000         .10000E-03   10000.    
    14 'norm      '    1.7326       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.5045       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    4.8659       1.0000         .10000E-03   10000.    
    26 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    2.9963       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .81639       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.1886       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=   9679.006     FROM MIGRAD    STATUS=CONVERGED    810 CALLS     3515 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8669        25.506        .98732E-06   -.44786E-04
   2  Prefactor     .10000E-03    4.6305       -.18150E-06** at limit **
   3  Prefactor     .10000E-03    1.1224        .16215E-07** at limit **
   4  norm          .10000E-03    4.1715        .13974E-06** at limit **
   5  norm          .10000E-03    .95993        .33604E-08** at limit **
   6  Prefactor     .10000E-03    3.1431        .19836E-07** at limit **
   7  Prefactor     16.251        14.542        .69661E-07    .25399E-04
   8  norm          .14558        .63803        .99961E-07   -.78049E-04
   9  Prefactor     21.016        14.939        .14728E-06    .10670E-04
  10  Prefactor     .10001E-03    34.602       -.44157E-05** at limit **
  11  norm          3.0856        2.8214        .54005E-07   -.73394E-04
  12  Prefactor     .10001E-03    2.5939       -.78432E-06** at limit **
  13  norm          6.6306        2.0265        .86517E-09    .90925E-03
  14  norm          1.7326        1.2427        .43754E-07    .13156E-04
  15  Prefactor     .10000E-03    26.250        .10460E-05** at limit **
  16  Prefactor     .10000E-03    3.6294        .47506E-07** at limit **
  17  Prefactor     .10001E-03    31.518       -.47245E-05** at limit **
  18  Prefactor     .10000E-03    6.4406       -.11089E-05** at limit **
  19  Prefactor     .10000E-03    5.8301        .14689E-05** at limit **
  20  Prefactor     .10000E-03    25.119        .27146E-05** at limit **
  21  Prefactor     2.5043        2.5445        .11753E-06   -.52171E-04
  22  Prefactor     .10000E-03    9.4934       -.17411E-05** at limit **
  23  Prefactor     .10000E-03    6.9287        .13984E-05** at limit **
  24  Prefactor     .10000E-03    6.0438       -.48708E-06** at limit **
  25  Prefactor     4.8670        7.1538        .42115E-05   -.13958E-02
  26  norm          .10005E-03    49.266        .11816E-04** at limit **
  27  norm          2.9965        2.6599        .17423E-06   -.28991E-03
  28  Prefactor     .10000E-03    9.3143        .13116E-05** at limit **
  29  Prefactor     .10003E-03    92.712       -.94256E-05** at limit **
  30  Normalizat    .81642        .12113       -.64292E-06    .15355E-03
  31  Prefactor     1.1885        .14721       -.25419E-06    .96480E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.86694
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.2513
  norm       = 0.145583
  Prefactor  = 21.0163
  Prefactor  = 0.000100007
  norm       = 3.0856
  Prefactor  = 0.000100006
  norm       = 6.63063
  norm       = 1.73256
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100002
  Prefactor  = 2.50429
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 4.86695
  norm       = 0.000100049
  norm       = 2.99649
  Prefactor  = 0.000100001
  Prefactor  = 0.000100032
  Normalizat = 0.816422
  Prefactor  = 1.18854  **********
 **   18 **HESSE 
 **********

 FCN=   9679.006     FROM HESSE     STATUS=OK           618 CALLS     4133 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8669        25.700        .30303E-03   -1.5435    
   2  Prefactor     .10000E-03    4.6373        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.1324        .10178E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    4.1920        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .96651        .94069E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.2076        .16999E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     16.251        14.509        .99346E-04   -1.4901    
   8  norm          .14558        4.4062        .14898E-02   -1.5632    
   9  Prefactor     21.016        14.963        .87373E-04   -1.4791    
  10  Prefactor     .10001E-03    35.230        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.0856        2.8174        .15324E-03   -1.5357    
  12  Prefactor     .10001E-03    6.4105        .29493E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          6.6306        1.9795        .73114E-04   -1.5193    
  14  norm          1.7326        1.2354        .90248E-04   -1.5445    
  15  Prefactor     .10000E-03    26.415        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.6533        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10001E-03    32.170        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.4761        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.9083        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    25.459        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.5043        2.5216        .15022E-03   -1.5391    
  22  Prefactor     .10000E-03    9.7005        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    6.9878        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    6.1570        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     4.8670        8.0082        .91178E-03   -1.5267    
  26  norm          .10005E-03    53.097        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          2.9965        2.6548        .14608E-03   -1.5362    
  28  Prefactor     .10000E-03    9.3710        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10003E-03    95.142        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .81642        .14469        .22938E-03   -.99462    
  31  Prefactor     1.1885        .17674        .24332E-03   -.86685    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.42857e-08
Minuit parameter uncertainties:
  1  13.8605
  2  1.46895e-05
  3  6.73808e-07
  4  1.09692e-05
  5  5.71332e-07
  6  3.24794e-06
  7  14.5124
  8  1.60141
  9  14.966
  10  0.000967704
  11  2.81757
  12  0.000391794
  13  1.9795
  14  1.23543
  15  0.00020319
  16  7.99382e-06
  17  0.000998038
  18  0.000105035
  19  0.000132659
  20  0.000502147
  21  2.52172
  22  0.000186143
  23  0.000139453
  24  3.67435e-05
  25  8.00992
  26  0.00322483
  27  2.65488
  28  0.000152389
  29  0.00349146
  30  0.144762
  31  0.176832DDone.

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

Extracting fit parameters...

4FGL J1253.8+6242
   Spectrum: PowerLaw
369    Prefactor:  1.000e-04  2.032e-04  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.189e+00  1.768e-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:  8.164e-01  1.448e-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.24e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.43e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/366763/likelihoodResults_676080001_676339201_4FGL_J1253.8+6242_daily_bin1685.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) = 9679.00647496
delta logL = -0.000180353787073

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9679.00629464
delta logL = -3.57704266207e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0639       1.0000          .0000       10.000    
     3 'Normalizat'    .81642       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1885       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=   9679.006     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      232 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    592.88        .90712E-02** at limit **
   2  Index         2.0559        8.2540        .50000        .23424E-05
   3  Normalizat    .81642        .14465E-01    .43824E-01   -.12609E-04
   4  Prefactor     1.1885        .18246E-01    .55028E-01   -.13772E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 2.05591
  Normalizat = 0.816422
  Prefactor  = 1.18854
 **********
 **   18 **HESSE 
 **********

 FCN=   9679.006     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      265 TOTAL
                     EDM=   .86E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6784.5        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0559        5.0904        .50000       -.62960    
   3  Normalizat    .81642        .48591E-01    .22938E-03   -.99462    
   4  Prefactor     1.1885        .61289E-01    .24332E-03   -.86685    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.59774e-09
Minuit parameter uncertainties:
  1  0.00636792
  2  50.9687
  3  0.0485937
  4  0.0612927
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/366763': 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) = 9679.00629464
delta logL = -2.88036972051e-08

Extracting fit parameters...

4FGL J1253.8+6242
   Spectrum: PowerLaw
369    Prefactor:  1.000e-04  6.368e-03  1.000e-04  1.000e+04 ( 1.000e-14)
370        Index:  2.056e+00  5.097e+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:  1.189e+00  6.129e-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:  8.164e-01  4.859e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/366763/cmap_HighResolution_676080001_676339201_4FGL_J1253.8+6242_daily_bin1685.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.43e-03', job_status='DONE', photon_flux_upper_limit='3.24e-08', time_completed='2022-06-08 01:13:06.263561', job_id='366763', GAL2='1.19', fit_tolerance='1e-08', EG2='0.82', EG='0.82', time_epoch_completed='1654675986.26', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.19', dlogl='-2.88e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='1685' AND source_name='4FGL J1253.8+6242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jun  8 01:13:06 PDT 2022

------------------------------------------------------------
Sender: LSF System <lsf@bullet0120>
Subject: Job 366764: <4FGL_J1253.8+6242_daily_bin1685> in cluster <slac> Done

Job <4FGL_J1253.8+6242_daily_bin1685> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Wed Jun  8 00:06:20 2022
Job was executed on host(s) <bullet0120>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jun  8 00:48:30 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jun  8 00:48:30 2022
Terminated at Wed Jun  8 01:13:00 2022
Results reported at Wed Jun  8 01:13:00 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1253.8+6242_daily_bin1685 193.467 62.7052 676080001 676339201 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 :                                   1336.00 sec.
    Max Memory :                                 618 MB
    Average Memory :                             302.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1469 sec.
    Turnaround time :                            4000 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0063>
Subject: Job 366763: <4FGL_J1253.8+6242_daily_bin1685> in cluster <slac> Done

Job <4FGL_J1253.8+6242_daily_bin1685> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Jun  8 00:06:20 2022
Job was executed on host(s) <bullet0063>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jun  8 00:48:30 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jun  8 00:48:30 2022
Terminated at Wed Jun  8 01:13:06 2022
Results reported at Wed Jun  8 01:13:06 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1253.8+6242_daily_bin1685 193.467 62.7052 676080001 676339201 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 :                                   1333.78 sec.
    Max Memory :                                 624 MB
    Average Memory :                             297.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   18706 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   1476 sec.
    Turnaround time :                            4006 sec.

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

