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


Performing analysis on: 4FGL_J1253.8+6242_daily_bin1401
RA = 193.467, Dec = 62.7052
tmin = 602467201, tmax = 602726401
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='974621', job_status='RUN', time_executed='2021-09-06 08:22:01.220110', time_epoch_executed='1630941721.22' WHERE source_name='4FGL J1253.8+6242' and cadence='daily' and bin_id='1401'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/974621

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/974621/ft1_4FGL_J1253.8+6242_daily_bin1401.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/974621/ft2_4FGL_J1253.8+6242_daily_bin1401.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/974621/ft1_4FGL_J1253.8+6242_daily_bin1401.fits outfile=/scratch/kocevski/974621/ft1_filteredMKT_4FGL_J1253.8+6242_daily_bin1401.fits ra=193.467 dec=62.7052 rad=12.0 tmin=602467201.0 tmax=602726401.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.46
user 3.00
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/974621/ft1_filtered_4FGL_J1253.8+6242_daily_bin1401.fits" evtable="EVENTS" scfile=/scratch/kocevski/974621/ft2_4FGL_J1253.8+6242_daily_bin1401.fits sctable="SC_DATA" outfile=/scratch/kocevski/974621/ltcube_602467201_602726401_4FGL_J1253.8+6242_daily_bin1401.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/974621/ft2_4FGL_J1253.8+6242_daily_bin1401.fits
.....................!
real 12.99
user 12.17
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/974621/ft1_filtered_4FGL_J1253.8+6242_daily_bin1401.fits evtable="EVENTS" scfile=/scratch/kocevski/974621/ft2_4FGL_J1253.8+6242_daily_bin1401.fits sctable="SC_DATA" expcube=/scratch/kocevski/974621/ltcube_602467201_602726401_4FGL_J1253.8+6242_daily_bin1401.fits outfile=/scratch/kocevski/974621/expmap_602467201_602726401_4FGL_J1253.8+6242_daily_bin1401.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/974621/ltcube_602467201_602726401_4FGL_J1253.8+6242_daily_bin1401.fits
.....................!
real 191.02
user 185.74
sys 4.54

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/974621/ft1_filtered_4FGL_J1253.8+6242_daily_bin1401.fits scfile=/scratch/kocevski/974621/ft2_4FGL_J1253.8+6242_daily_bin1401.fits outfile=/scratch/kocevski/974621/cmap_602467201_602726401_4FGL_J1253.8+6242_daily_bin1401.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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/974621/ft1_filtered_4FGL_J1253.8+6242_daily_bin1401.fits scfile=/scratch/kocevski/974621/ft2_4FGL_J1253.8+6242_daily_bin1401.fits outfile=/scratch/kocevski/974621/cmap_HighResolution_602467201_602726401_4FGL_J1253.8+6242_daily_bin1401.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.57
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10259E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    10000.       1.0000         .10000E-03   10000.    
     6 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
     7 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.7094       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .12677E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    38.363       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.5692       1.0000         .10000E-03   10000.    
    23 'Prefactor '    26.264       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    9.2750       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .65923E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.1383       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=   3303.888     FROM MIGRAD    STATUS=CONVERGED    852 CALLS     4246 TOTAL
                     EDM=   .36E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10000.        1500.4        .12176E-02** at limit **
   2  Prefactor     .10000E-03    12.101       -.74140E-08** at limit **
   3  Prefactor     .10000E-03    6.9648        .24025E-06** at limit **
   4  norm          .10000E-03    1611.8       -.12641E-02** at limit **
   5  norm          10000.        112.38        .97338E-05** at limit **
   6  Prefactor    10000.0        288.80       -.16673E-03** at limit **
   7  Prefactor     10000.        381.99        .22871E-04** at limit **
   8  norm          .10000E-03    8.3453       -.33867E-06** at limit **
   9  Prefactor     10000.        380.51       -.46286E-04** at limit **
  10  Prefactor     .10000E-03    340.62        .65050E-04** at limit **
  11  norm          2.7125        3.2279        .48197E-07   -.43821E-04
  12  Prefactor     .10000E-03    4.8096        .14245E-08** at limit **
  13  norm          .10000E-03    1.9705        .17237E-07** at limit **
  14  norm          .10000E-03    1.6184       -.47720E-08** at limit **
  15  Prefactor     .10000E-03    18.664        .16267E-05** at limit **
  16  Prefactor     .10000E-03    13.456        .11478E-05** at limit **
  17  Prefactor     .10000E-03    13.627        .16187E-05** at limit **
  18  Prefactor     .10000E-03    14.483       -.36296E-05** at limit **
  19  Prefactor     .10000E-03    106.12       -.28182E-04** at limit **
  20  Prefactor     38.388        61.181        .12586E-04    .75752E-04
  21  Prefactor     .10000E-03    .80663        .56615E-08** at limit **
  22  Prefactor     7.5829        9.8948        .79050E-06   -.50035E-04
  23  Prefactor     26.283        47.717        .27997E-06    .97375E-05
  24  Prefactor     .10000E-03    1.5049       -.33173E-07** at limit **
  25  Prefactor     .10000E-03    2.9208       -.35254E-08** at limit **
  26  norm          .10000E-03    28.003       -.16184E-05** at limit **
  27  norm          9.2734        5.5971       -.72671E-06    .49978E-05
  28  Prefactor     .10000E-03    64.469        .11651E-04** at limit **
  29  Prefactor     .10000E-03    497.82       -.74714E-06** at limit **
  30  Normalizat    .10000E-01    .32474E-01   -.24296E-06** at limit **
  31  Prefactor     1.1386        .12523       -.56420E-06    .47585E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10000
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  norm       = 0.0001
  Prefactor  = 10000
  Prefactor  = 0.0001
  norm       = 2.71255
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 38.3877
  Prefactor  = 0.0001
  Prefactor  = 7.58292
  Prefactor  = 26.2833
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 9.27341
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 1.13855
 **********
 **   18 **HESSE 
 **********

 FCN=   3303.888     FROM HESSE     STATUS=OK           602 CALLS     4848 TOTAL
                     EDM=   .68E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10000.        1500.3        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    12.101        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.1922        .29627E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1611.6        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          10000.        112.38        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor    10000.0        288.88        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     10000.        381.99        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    8.3457        .16219E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     10000.        380.52        .20886E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    340.62        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.7125        3.2229        .10970E-03   -1.5379    
  12  Prefactor     .10000E-03    4.8103        .12312E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.9719        .78804E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.6218        .71416E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    18.664        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    13.665        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    13.634        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    14.492        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    109.65        .36345E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     38.388        61.100        .64711E-04   -1.4468    
  21  Prefactor     .10000E-03    .82280        .50406E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     7.5829        9.8965        .14577E-03   -1.5157    
  23  Prefactor     26.283        47.669        .78168E-04   -1.4682    
  24  Prefactor     .10000E-03    1.5074        .68863E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    2.9354        .95933E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    28.003        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          9.2734        5.5948        .96658E-04   -1.5099    
  28  Prefactor     .10000E-03    65.834        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    497.99        .21013E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .10000E-01    .33683E-01    .60981E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     1.1386        .12088        .20113E-03   -.88244    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.7592e-11
Minuit parameter uncertainties:
  1  3.83063e-05
  2  1.48262e-07
  3  2.96044e-06
  4  3.43954e-05
  5  2.98965e-06
  6  0.00010312
  7  5.13001e-06
  8  3.24272e-07
  9  8.46116e-06
  10  3.37667e-06
  11  3.22315
  12  5.45055e-07
  13  2.90506e-07
  14  1.41488e-08
  15  1.2494e-07
  16  1.08383e-05
  17  2.06141e-09
  18  1.17062e-05
  19  0.000308953
  20  61.1998
  21  7.86832e-08
  22  9.89859
  23  47.738
  24  1.74737e-07
  25  4.23708e-08
  26  3.65437e-07
  27  5.5951
  28  0.000142421
  29  9.90904e-05
  30  1.35979e-07
  31  0.120907
Done.

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

Extracting fit parameters...

4FGL J1253.8+6242
   Spectrum: PowerLaw
369    Prefactor:  1.000e-04  1.249e-07  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.139e+00  1.209e-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.000e-02  1.360e-07  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/974621/likelihoodResults_602467201_602726401_4FGL_J1253.8+6242_daily_bin1401.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) = 3303.88841293
delta logL = -0.000255158146956

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3303.88816031
delta logL = -2.54620908891e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14031E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1670       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1385       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=   3303.888     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      276 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10213E-03    72.381        .18142E-02** at limit **
   2  Index         2.0964        7.2063        .50000        .23457E-04
   3  Normalizat    .10000E-01    .31721E-03    .60981E-02** at limit **
   4  Prefactor     1.1386        .11039E-01    .20113E-03    .12337E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102127
  Index      = 2.09639
  Normalizat = 0.01
  Prefactor  = 1.13855
 **********
 **   18 **HESSE 
 **********

 FCN=   3303.888     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      305 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10213E-03    309.33        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0964        6.0475        .50000       -.61961    
   3  Normalizat    .10000E-01    .14107E-02    .12196E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.1386        .23278E-01    .40227E-04   -.88244    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.3497e-08
Minuit parameter uncertainties:
  1  0.0515681
  2  310.683
  3  5.64311e-08
  4  0.0232778
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/974621': 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) = 3303.88815838
delta logL = -6.07841684541e-07

Extracting fit parameters...

4FGL J1253.8+6242
   Spectrum: PowerLaw
369    Prefactor:  1.021e-04  5.157e-02  1.000e-04  1.000e+04 ( 1.000e-14)
370        Index:  2.096e+00  3.107e+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.139e+00  2.328e-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.000e-02  5.643e-08  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/974621/cmap_HighResolution_602467201_602726401_4FGL_J1253.8+6242_daily_bin1401.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.21e-03', job_status='DONE', photon_flux_upper_limit='5.62e-08', time_completed='2021-09-06 08:34:00.247984', job_id='974621', GAL2='1.14', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630942440.25', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='-6.08e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='1401' AND source_name='4FGL J1253.8+6242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 08:34:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0159>
Subject: Job 974621: <4FGL_J1253.8+6242_daily_bin1401> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1253.8+6242_daily_bin1401 193.467 62.7052 602467201 602726401 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 :                                   710.32 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             283.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   766 sec.
    Turnaround time :                            769 sec.

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

