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


Performing analysis on: 4FGL_J1253.8+6242_daily_bin1347
RA = 193.467, Dec = 62.7052
tmin = 588470401, tmax = 588729601
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='974544', job_status='RUN', time_executed='2021-09-06 08:21:45.578823', time_epoch_executed='1630941705.58' WHERE source_name='4FGL J1253.8+6242' and cadence='daily' and bin_id='1347'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/974544

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/974544/ft1_4FGL_J1253.8+6242_daily_bin1347.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/974544/ft2_4FGL_J1253.8+6242_daily_bin1347.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/974544/ft1_4FGL_J1253.8+6242_daily_bin1347.fits outfile=/scratch/kocevski/974544/ft1_filteredMKT_4FGL_J1253.8+6242_daily_bin1347.fits ra=193.467 dec=62.7052 rad=12.0 tmin=588470401.0 tmax=588729601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 5.31
user 4.62
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/974544/ft2_4FGL_J1253.8+6242_daily_bin1347.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/974544/ft1_filteredMKT_4FGL_J1253.8+6242_daily_bin1347.fits evtable="EVENTS" outfile="/scratch/kocevski/974544/ft1_filtered_4FGL_J1253.8+6242_daily_bin1347.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 1.67
user 0.32
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/974544/ft1_filtered_4FGL_J1253.8+6242_daily_bin1347.fits" evtable="EVENTS" scfile=/scratch/kocevski/974544/ft2_4FGL_J1253.8+6242_daily_bin1347.fits sctable="SC_DATA" outfile=/scratch/kocevski/974544/ltcube_588470401_588729601_4FGL_J1253.8+6242_daily_bin1347.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/974544/ft2_4FGL_J1253.8+6242_daily_bin1347.fits
.....................!
real 12.63
user 11.51
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/974544/ft1_filtered_4FGL_J1253.8+6242_daily_bin1347.fits evtable="EVENTS" scfile=/scratch/kocevski/974544/ft2_4FGL_J1253.8+6242_daily_bin1347.fits sctable="SC_DATA" expcube=/scratch/kocevski/974544/ltcube_588470401_588729601_4FGL_J1253.8+6242_daily_bin1347.fits outfile=/scratch/kocevski/974544/expmap_588470401_588729601_4FGL_J1253.8+6242_daily_bin1347.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/974544/ltcube_588470401_588729601_4FGL_J1253.8+6242_daily_bin1347.fits
.....................!
real 195.04
user 187.78
sys 4.52

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/974544/ft1_filtered_4FGL_J1253.8+6242_daily_bin1347.fits scfile=/scratch/kocevski/974544/ft2_4FGL_J1253.8+6242_daily_bin1347.fits outfile=/scratch/kocevski/974544/cmap_588470401_588729601_4FGL_J1253.8+6242_daily_bin1347.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/974544/ft1_filtered_4FGL_J1253.8+6242_daily_bin1347.fits scfile=/scratch/kocevski/974544/ft2_4FGL_J1253.8+6242_daily_bin1347.fits outfile=/scratch/kocevski/974544/cmap_HighResolution_588470401_588729601_4FGL_J1253.8+6242_daily_bin1347.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=193.467 yref=62.7052 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.40
sys 0.12

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    50.972       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.4040       1.0000         .10000E-03   10000.    
     5 'norm      '    3.9010       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .29450       1.0000         .10000E-03   10000.    
     7 'Prefactor '    20.353       1.0000         .10000E-03   10000.    
     8 'norm      '    2.8915       1.0000         .10000E-03   10000.    
     9 'Prefactor '    39.029       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.2382       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.4669       1.0000         .10000E-03   10000.    
    13 'norm      '    1.9685       1.0000         .10000E-03   10000.    
    14 'norm      '    1.1249       1.0000         .10000E-03   10000.    
    15 'Prefactor '    39.939       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.7820       1.0000         .10000E-03   10000.    
    20 'Prefactor '    66.843       1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.6122       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .12078E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    1.7569       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10874E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .98173       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .75573       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=   5721.189     FROM MIGRAD    STATUS=CONVERGED    846 CALLS     4209 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     50.977        28.801        .19510E-06    .87330E-04
   2  Prefactor     .10000E-03    24.597       -.40913E-05** at limit **
   3  Prefactor     .10000E-03    1.3024        .39218E-08** at limit **
   4  norm          1.4033        1.9868        .41065E-06   -.31678E-03
   5  norm          3.8988        4.2596        .90550E-06    .88308E-03
   6  Prefactor     .31209        9.1009       -.35993E-05    .98452E-03
   7  Prefactor     20.343        18.783       -.22583E-05    .61909E-04
   8  norm          2.8917        2.1952        .57391E-07    .17568E-03
   9  Prefactor     39.032        23.428        .11381E-05    .21107E-03
  10  Prefactor     .10000E-03    74.885       -.43790E-06** at limit **
  11  norm          2.2382        3.4101        .25107E-07   -.18163E-04
  12  Prefactor     4.4671        5.0805       -.20314E-07    .11255E-03
  13  norm          1.9686        2.0123        .53472E-07    .24364E-03
  14  norm          1.1248        1.9108        .25256E-07    .22750E-04
  15  Prefactor     39.943        37.347       -.24600E-06    .11141E-04
  16  Prefactor     .10002E-03    5.6212       -.12324E-05** at limit **
  17  Prefactor     .10000E-03    16.461       -.72853E-07** at limit **
  18  Prefactor     .10000E-03    8.3262        .32965E-08** at limit **
  19  Prefactor     1.7856        61.557       -.56292E-05   -.28556E-04
  20  Prefactor     66.862        63.247        .88456E-05    .24732E-03
  21  Prefactor     5.6125        4.6800        .32945E-07   -.61610E-05
  22  Prefactor     .10000E-03    4.4215        .74247E-08** at limit **
  23  Prefactor     .10000E-03    164.23        .25786E-05** at limit **
  24  Prefactor     .10000E-03    6.2668        .15507E-07** at limit **
  25  Prefactor     .10000E-03    3.0695        .43927E-08** at limit **
  26  norm          .10000E-03    25.301        .71767E-05** at limit **
  27  norm          1.7570        2.3179       -.20436E-06   -.90762E-04
  28  Prefactor     .10000E-03    9.2436        .19060E-07** at limit **
  29  Prefactor     .10000E-03    384.97       -.71041E-05** at limit **
  30  Normalizat    .98159        .15694       -.66633E-06    .49162E-03
  31  Prefactor     .75589        .17522        .32404E-06    .22194E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 50.9774
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 1.40331
  norm       = 3.89884
  Prefactor  = 0.312093
  Prefactor  = 20.3431
  norm       = 2.89173
  Prefactor  = 39.0317
  Prefactor  = 0.0001
  norm       = 2.23822
  Prefactor  = 4.46712
  norm       = 1.96861
  norm       = 1.12485
  Prefactor  = 39.9428
  Prefactor  = 0.000100022
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.78564
  Prefactor  = 66.8618
  Prefactor  = 5.61247
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100003
  norm       = 1.75704
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Normalizat = 0.981593
  Prefactor  = 0.755887
 **********
 **   18 **HESSE 
 **********

 FCN=   5721.189     FROM HESSE     STATUS=OK           618 CALLS     4827 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     50.977        28.853        .56172E-04   -1.4279    
   2  Prefactor     .10000E-03    24.845        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.3133        .84293E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.4033        25.896        .18300E-02   -1.5471    
   5  norm          3.8988        4.3262        .14495E-03   -1.5313    
   6  Prefactor     .31209        33.165        .34835E-02   -1.5596    
   7  Prefactor     20.343        19.325        .88781E-04   -1.4806    
   8  norm          2.8917        2.1925        .93531E-04   -1.5368    
   9  Prefactor     39.032        23.485        .64158E-04   -1.4458    
  10  Prefactor     .10000E-03    75.424        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.2382        3.3937        .16608E-03   -1.5409    
  12  Prefactor     4.4671        5.0731        .17031E-03   -1.5285    
  13  norm          1.9686        1.9959        .10174E-03   -1.5427    
  14  norm          1.1248        1.8646        .13137E-03   -1.5496    
  15  Prefactor     39.943        37.375        .63426E-04   -1.4443    
  16  Prefactor     .10002E-03    24.024        .33970E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    16.464        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    8.3282        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.7856        62.025        .31348E-03   -1.5441    
  20  Prefactor     66.862        63.881        .49091E-04   -1.4071    
  21  Prefactor     5.6125        4.6863        .13929E-03   -1.5234    
  22  Prefactor     .10000E-03    4.4291        .15532E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    165.92        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    6.2795        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    3.0846        .12941E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    25.435        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          1.7570        2.3007        .12828E-03   -1.5443    
  28  Prefactor     .10000E-03    9.2480        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    385.15        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .98159        .18793        .20521E-03   -.93650    
  31  Prefactor     .75589        .21026        .27650E-03   -1.0138    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.5988e-08
Minuit parameter uncertainties:
  1  28.8608
  2  0.000280737
  3  5.52214e-07
  4  12.0623
  5  4.32653
  6  6.43708
  7  19.331
  8  2.19261
  9  23.4905
  10  0.000226852
  11  3.39401
  12  5.07361
  13  1.99592
  14  1.86474
  15  37.3971
  16  0.00147025
  17  3.02137e-06
  18  1.01848e-06
  19  21.0711
  20  63.9468
  21  4.68661
  22  1.47365e-06
  23  0.00105563
  24  2.12026e-06
  25  1.12641e-06
  26  0.000543242
  27  2.30077
  28  1.40944e-06
  29  0.00210004
  30  0.188059
  31  0.210485
Done.

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

Extracting fit parameters...

4FGL J1253.8+6242
   Spectrum: PowerLaw
369    Prefactor:  3.994e+01  3.740e+01  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:  7.559e-01  2.105e-01  0.000e+00  1.000e+01 ( 1.000e+00)
708        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
709        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
706   Normalization:  9.816e-01  1.881e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.98
Ra Dec: 193.467 62.705
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 2.01e-08 +/- 1.88e-08
Energy Flux (Fixed Index): 1.44e-05 +/- 1.35e-05

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5720.93975008
delta logL = 0.249381296031

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5720.93536405
delta logL = 0.253767333282

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    42.792       1.0000         .10000E-03   10000.    
     2 'Index     '    1.4240       1.0000          .0000       10.000    
     3 'Normalizat'    .99480       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74882       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=   5720.935     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      261 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     42.793        43.249        .61283E-04   -.22128E-03
   2  Index         1.4240        .68322        .11196E-01   -.69196E-04
   3  Normalizat    .99489        .17091        .20395E-03    .13235E-03
   4  Prefactor     .74872        .20519        .27769E-03    .96578E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 42.7931
  Index      = 1.42398
  Normalizat = 0.994892
  Prefactor  = 0.748717
 **********
 **   18 **HESSE 
 **********

 FCN=   5720.935     FROM HESSE     STATUS=OK            25 CALLS      286 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     42.793        43.580        .12257E-04   -1.4399    
   2  Index         1.4240        .68835        .44785E-03   -.79692    
   3  Normalizat    .99489        .17104        .40791E-04   -.93202    
   4  Prefactor     .74872        .20535        .11108E-04   -1.0165    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.17013e-10
Minuit parameter uncertainties:
  1  43.612
  2  0.692877
  3  0.171131
  4  0.205563
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/974544': 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): 0
logL (Free Index) = 5720.93536391
delta logL = 0.253767474

Extracting fit parameters...

4FGL J1253.8+6242
   Spectrum: PowerLaw
369    Prefactor:  4.279e+01  4.361e+01  1.000e-04  1.000e+04 ( 1.000e-14)
370        Index:  1.424e+00  6.929e-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:  7.487e-01  2.056e-01  0.000e+00  1.000e+01 ( 1.000e+00)
708        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
709        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
706   Normalization:  9.949e-01  1.711e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.49
Ra Dec: 193.467 62.705
Photon Index (Free Index): 1.42 +/- 0.69
Photon Flux (Free Index): 8.18e-09 +/- 1.19e-08
Energy Flux (Free Index): 3.34e-05 +/- 5.26e-05

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/974544/cmap_HighResolution_588470401_588729601_4FGL_J1253.8+6242_daily_bin1347.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.01e-08', energy_flux2='3.34e-05', photon_flux_error='1.88e-08', dlogl='2.54e-01', energy_flux='1.44e-05', photon_flux2='8.18e-09', job_status='DONE', time_completed='2021-09-06 08:36:26.569116', photon_index_error2='0.69', photon_index2='1.42', ts='4.98', fit_tolerance='1e-08', GAL='0.76', photon_index_error='0.00', energy_flux_error2='5.26e-05', EG='0.98', time_epoch_completed='1630942586.57', return_code='0', job_id='974544', GAL2='0.75', EG2='0.99', return_code2='0', energy_flux_error='1.35e-05', photon_flux_error2='1.19e-08', ts2='5.49', photon_index='1.99' WHERE bin_id='1347' AND source_name='4FGL J1253.8+6242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 08:36:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0209>
Subject: Job 974544: <4FGL_J1253.8+6242_daily_bin1347> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1253.8+6242_daily_bin1347 193.467 62.7052 588470401 588729601 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 :                                   868.18 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             329.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   917 sec.
    Turnaround time :                            920 sec.

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

