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


Performing analysis on: 4FGL_J1245.1+5709_daily_bin1171
RA = 191.288, Dec = 57.158
tmin = 542851201, tmax = 543110401
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='894424', job_status='RUN', time_executed='2021-09-06 04:20:47.415737', time_epoch_executed='1630927247.42' WHERE source_name='4FGL J1245.1+5709' and cadence='daily' and bin_id='1171'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/894424

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

Retrieving the FT1 file...

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

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

Retrieving 4 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/894424/ft1_4FGL_J1245.1+5709_daily_bin1171.fits


Retrieving the FT1 file...

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

Retrieving 4 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/894424/ft2_4FGL_J1245.1+5709_daily_bin1171.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/894424/ft1_4FGL_J1245.1+5709_daily_bin1171.fits outfile=/scratch/kocevski/894424/ft1_filteredMKT_4FGL_J1245.1+5709_daily_bin1171.fits ra=191.288 dec=57.158 rad=12.0 tmin=542851201.0 tmax=543110401.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 0.78
user 0.58
sys 0.17

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/894424/ft2_4FGL_J1245.1+5709_daily_bin1171.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/894424/ft2_4FGL_J1245.1+5709_daily_bin1171.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/894424/ft1_filteredMKT_4FGL_J1245.1+5709_daily_bin1171.fits evtable="EVENTS" outfile="/scratch/kocevski/894424/ft1_filtered_4FGL_J1245.1+5709_daily_bin1171.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.30
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/894424/ft1_filtered_4FGL_J1245.1+5709_daily_bin1171.fits" evtable="EVENTS" scfile=/scratch/kocevski/894424/ft2_4FGL_J1245.1+5709_daily_bin1171.fits sctable="SC_DATA" outfile=/scratch/kocevski/894424/ltcube_542851201_543110401_4FGL_J1245.1+5709_daily_bin1171.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/894424/ft2_4FGL_J1245.1+5709_daily_bin1171.fits
.....................!
real 1.92
user 1.54
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/894424/ft1_filtered_4FGL_J1245.1+5709_daily_bin1171.fits evtable="EVENTS" scfile=/scratch/kocevski/894424/ft2_4FGL_J1245.1+5709_daily_bin1171.fits sctable="SC_DATA" expcube=/scratch/kocevski/894424/ltcube_542851201_543110401_4FGL_J1245.1+5709_daily_bin1171.fits outfile=/scratch/kocevski/894424/expmap_542851201_543110401_4FGL_J1245.1+5709_daily_bin1171.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/894424/ltcube_542851201_543110401_4FGL_J1245.1+5709_daily_bin1171.fits
.....................!
real 190.81
user 185.06
sys 4.98

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 217 point sources and 0 extended sources

Setting source of interest to:
4FGL J1245.1+5709 @ 191.288 57.158

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/894424/ft1_filtered_4FGL_J1245.1+5709_daily_bin1171.fits scfile=/scratch/kocevski/894424/ft2_4FGL_J1245.1+5709_daily_bin1171.fits outfile=/scratch/kocevski/894424/cmap_542851201_543110401_4FGL_J1245.1+5709_daily_bin1171.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=191.288 yref=57.158 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.52
user 0.34
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/894424/ft1_filtered_4FGL_J1245.1+5709_daily_bin1171.fits scfile=/scratch/kocevski/894424/ft2_4FGL_J1245.1+5709_daily_bin1171.fits outfile=/scratch/kocevski/894424/cmap_HighResolution_542851201_543110401_4FGL_J1245.1+5709_daily_bin1171.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=191.288 yref=57.158 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.54
user 0.36
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/894424/ft1_filtered_4FGL_J1245.1+5709_daily_bin1171.fits evtable="EVENTS" scfile=/scratch/kocevski/894424/ft2_4FGL_J1245.1+5709_daily_bin1171.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/894424/Model_4FGL_J1245.1+5709_daily_bin1171.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/894424/ft1_filtered_4FGL_J1245.1+5709_daily_bin1171.fits.........!
real 14.33
user 12.84
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/894424/ft1_filtered_4FGL_J1245.1+5709_daily_bin1171.fits', '/scratch/kocevski/894424/ft2_4FGL_J1245.1+5709_daily_bin1171.fits', expMap='/scratch/kocevski/894424/expmap_542851201_543110401_4FGL_J1245.1+5709_daily_bin1171.fits', expCube='/scratch/kocevski/894424/ltcube_542851201_543110401_4FGL_J1245.1+5709_daily_bin1171.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/894424/Model_4FGL_J1245.1+5709_daily_bin1171.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1245.1+5709'

4FGL J1245.1+5709
   Spectrum: PowerLaw
355    Prefactor:  1.104e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
356        Index:  2.128e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
357        Scale:  1.843e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/894424/ft1_filtered_4FGL_J1245.1+5709_daily_bin1171.fits
Spacecraft file(s): /scratch/kocevski/894424/ft2_4FGL_J1245.1+5709_daily_bin1171.fits
Exposure map: /scratch/kocevski/894424/expmap_542851201_543110401_4FGL_J1245.1+5709_daily_bin1171.fits
Exposure cube: /scratch/kocevski/894424/ltcube_542851201_543110401_4FGL_J1245.1+5709_daily_bin1171.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/894424/Model_4FGL_J1245.1+5709_daily_bin1171.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) = 97.5235586549

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11679E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11508E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    677.51       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .14002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12283E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .14871E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12135E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .13133E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .17235E-01   1.0000         .10000E-03   10000.    
    12 'norm      '    .12596E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .15697E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10563E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10054E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11132E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .11659E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .58704E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10651E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10045E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.0724       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11773E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    290.72       1.0000         .10000E-03   10000.    
    24 'norm      '    69.999       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .17120E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .12367E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .15305E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    29 'norm      '    .47966E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    .12341E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .30417E-01   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.6246       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6920E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   95.52477     FROM MIGRAD    STATUS=CONVERGED    822 CALLS     5138 TOTAL
                     EDM=   .30E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    80.896       -.15128E-09** at limit **
   2  Prefactor     .10000E-03    344.22       -.23927E-07** at limit **
   3  norm          677.40        715.90        .44156E-06   -.77719E-05
   4  Prefactor     .10000E-03    58.703       -.36539E-08** at limit **
   5  norm          .10000E-03    80.429       -.28592E-07** at limit **
   6  Prefactor     .10000E-03    345.31        .18863E-07** at limit **
   7  Prefactor     .10000E-03    228.39       -.17500E-07** at limit **
   8  Prefactor     .10000E-03    389.41       -.31753E-09** at limit **
   9  norm          .10000E-03    34.125        .38681E-08** at limit **
  10  Prefactor     .10000E-03    1759.6       -.42453E-06** at limit **
  11  Prefactor     .10000E-03    1392.1       -.17503E-06** at limit **
  12  norm          .10000E-03    80.232        .78487E-08** at limit **
  13  Prefactor     .10000E-03    204.30        .42450E-08** at limit **
  14  Prefactor     .10000E-03    103.32        .15204E-07** at limit **
  15  norm          .10000E-03    46.693        .17091E-07** at limit **
  16  Prefactor     .10000E-03    181.93        .67644E-08** at limit **
  17  norm          .10000E-03    56.856        .22663E-06** at limit **
  18  Prefactor     .10000E-03    2053.1       -.21409E-07** at limit **
  19  Prefactor     .10000E-03    151.32        .25020E-07** at limit **
  20  norm          .10000E-03    29.654        .28874E-07** at limit **
  21  Prefactor     .10012E-03    5267.1        .14857E-05** at limit **
  22  Prefactor     .10000E-03    209.08        .45064E-07** at limit **
  23  Prefactor     290.74        618.44       -.86825E-05    .16877E-04
  24  norm          70.074        107.33        .47289E-06    .14704E-04
  25  Prefactor     .10002E-03    7820.8        .11030E-04** at limit **
  26  Prefactor     .10000E-03    624.91       -.12225E-07** at limit **
  27  Prefactor     .10000E-03    400.57        .10371E-06** at limit **
  28  Prefactor    10000.0        6941.0        .86356E-07** at limit **
  29  norm          .10000E-03    1037.9       -.42145E-08** at limit **
  30  norm          .10000E-03    36.688        .22355E-06** at limit **
  31  Prefactor     .10000E-03    9697.0       -.10650E-05** at limit **
  32  Normalizat    .10000E-01    1.7902        .32622E-04** at limit **
  33  Prefactor     1.6229        1.5816       -.76299E-05   -.26508E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 677.402
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100121
  Prefactor  = 0.0001
  Prefactor  = 290.744
  norm       = 70.074
  Prefactor  = 0.000100018
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10000
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 1.6229
 **********
 **   18 **HESSE 
 **********

 FCN=   95.52477     FROM HESSE     STATUS=OK           665 CALLS     5803 TOTAL
                     EDM=   .65E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    80.896        .86187E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    344.22        .17858E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          677.40        718.99        .79580E-04   -1.0442    
   4  Prefactor     .10000E-03    58.703        .73392E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    80.429        .85937E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    345.31        .17887E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    228.39        .14518E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    389.40        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    34.124        .55934E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1759.7        .20572E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1392.0        .18218E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    80.231        .85832E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    204.29        .13725E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    103.32        .97441E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    46.693        .65442E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    181.93        .12947E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    56.921        .72228E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2053.0        .21076E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    151.32        .11802E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    29.654        .52138E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10012E-03    5264.0        .14347E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    209.08        .13886E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     290.74        633.12        .11904E-03   -1.2281    
  24  norm          70.074        107.33        .23989E-03   -1.4032    
  25  Prefactor     .10002E-03    7817.1        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    624.90        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    400.56        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor    10000.0        6941.0        .20402E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    1037.9        .21178E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          .10000E-03    36.694        .57997E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    9696.8        .18348E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .10000E-01    6.1630        .86440E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     1.6229        1.6553        .32671E-03   -.74153    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.53127e-11
Minuit parameter uncertainties:
  1  6.50688e-06
  2  7.84389e-05
  3  729.178
  4  3.49284e-06
  5  2.12712e-05
  6  3.5289e-05
  7  3.40634e-05
  8  4.81296e-05
  9  7.46124e-07
  10  0.000774459
  11  0.000667783
  12  4.23284e-06
  13  8.38946e-07
  14  4.56483e-06
  15  3.69713e-06
  16  8.28395e-06
  17  3.11906e-05
  18  0.000161664
  19  1.83005e-05
  20  2.31115e-07
  21  0.234208
  22  1.13885e-05
  23  649.152
  24  107.632
  25  0.0230267
  26  4.85819e-05
  27  3.81763e-06
  28  0.000359615
  29  3.85307e-05
  30  2.74802e-05
  31  0.00242738
  32  2.10667e-05
  33  1.71661
Done.

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

Extracting fit parameters...

4FGL J1245.1+5709
   Spectrum: PowerLaw
355    Prefactor:  1.000e-04  4.565e-06  1.000e-04  1.000e+04 ( 1.000e-13)
356        Index:  2.128e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
357        Scale:  1.843e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
689    Prefactor:  1.623e+00  1.717e+00  0.000e+00  1.000e+01 ( 1.000e+00)
690        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
691        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
688   Normalization:  1.000e-02  2.107e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 191.288 57.158
Photon Flux Upper Limit: 2.69e-06 ph cm-2 s-1
Energy Flux Upper Limit: 2.04e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/894424/likelihoodResults_542851201_543110401_4FGL_J1245.1+5709_daily_bin1171.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) = 95.5248092377
delta logL = -4.37058097447e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 95.5247676358
delta logL = -2.10388050448e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .20783E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3099       1.0000          .0000       10.000    
     3 'Normalizat'    .10003E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.6244       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6920E+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=   95.52477     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      273 TOTAL
                     EDM=   .80E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10310E-03    94.234        .86433E-02** at limit **
   2  Index         2.2316        6.1067        .50000        .44231E-05
   3  Normalizat    .10000E-01    .55466E-02    .86434E-02** at limit **
   4  Prefactor     1.6229        .58722E-01    .32671E-03    .56469E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103097
  Index      = 2.23161
  Normalizat = 0.01
  Prefactor  = 1.6229
 **********
 **   18 **HESSE 
 **********

 FCN=   95.52477     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      302 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10310E-03    818.58        .89133E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2316        5.0576        .50000       -.58677    
   3  Normalizat    .10000E-01    .50212E-01    .17287E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.6229        .17672        .65343E-04   -.74153    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.25457e-10
Minuit parameter uncertainties:
  1  0.102124
  2  557.69
  3  1.49613e-06
  4  0.176788
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/894424': 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) = 95.5247656438
delta logL = -1.11932848768e-07

Extracting fit parameters...

4FGL J1245.1+5709
   Spectrum: PowerLaw
355    Prefactor:  1.031e-04  1.021e-01  1.000e-04  1.000e+04 ( 1.000e-13)
356        Index:  2.232e+00  5.577e+02  0.000e+00  1.000e+01 (-1.000e+00)
357        Scale:  1.843e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
689    Prefactor:  1.623e+00  1.768e-01  0.000e+00  1.000e+01 ( 1.000e+00)
690        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
691        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
688   Normalization:  1.000e-02  1.496e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 191.288 57.158

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/894424/cmap_HighResolution_542851201_543110401_4FGL_J1245.1+5709_daily_bin1171.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.04e-01', job_status='DONE', photon_flux_upper_limit='2.69e-06', time_completed='2021-09-06 04:26:06.804031', job_id='894424', GAL2='1.62', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630927566.8', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.62', dlogl='-1.12e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='1171' AND source_name='4FGL J1245.1+5709' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 04:26:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0048>
Subject: Job 894424: <4FGL_J1245.1+5709_daily_bin1171> in cluster <slac> Done

Job <4FGL_J1245.1+5709_daily_bin1171> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 04:20:33 2021
Job was executed on host(s) <bullet0048>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 04:20:34 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 04:20:34 2021
Terminated at Mon Sep  6 04:26:07 2021
Results reported at Mon Sep  6 04:26:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1245.1+5709_daily_bin1171 191.288 57.158 542851201 543110401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1245.1+5709 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   320.14 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             279.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   333 sec.
    Turnaround time :                            334 sec.

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

