/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


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


Performing analysis on: 4FGL_J1245.1+5709_daily_bin660
RA = 191.288, Dec = 57.158
tmin = 410400001, tmax = 410659201
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='891319', job_status='RUN', time_executed='2021-09-06 04:12:35.604428', time_epoch_executed='1630926755.6' WHERE source_name='4FGL J1245.1+5709' and cadence='daily' and bin_id='660'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/891319

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/891319/ft1_4FGL_J1245.1+5709_daily_bin660.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/891319/ft2_4FGL_J1245.1+5709_daily_bin660.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/891319/ft1_4FGL_J1245.1+5709_daily_bin660.fits outfile=/scratch/kocevski/891319/ft1_filteredMKT_4FGL_J1245.1+5709_daily_bin660.fits ra=191.288 dec=57.158 rad=12.0 tmin=410400001.0 tmax=410659201.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 6.74
user 6.32
sys 0.27

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/891319/ft2_4FGL_J1245.1+5709_daily_bin660.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/891319/ft1_filteredMKT_4FGL_J1245.1+5709_daily_bin660.fits evtable="EVENTS" outfile="/scratch/kocevski/891319/ft1_filtered_4FGL_J1245.1+5709_daily_bin660.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.50
user 0.35
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/891319/ft1_filtered_4FGL_J1245.1+5709_daily_bin660.fits evtable="EVENTS" scfile=/scratch/kocevski/891319/ft2_4FGL_J1245.1+5709_daily_bin660.fits sctable="SC_DATA" expcube=/scratch/kocevski/891319/ltcube_410400001_410659201_4FGL_J1245.1+5709_daily_bin660.fits outfile=/scratch/kocevski/891319/expmap_410400001_410659201_4FGL_J1245.1+5709_daily_bin660.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/891319/ltcube_410400001_410659201_4FGL_J1245.1+5709_daily_bin660.fits
.....................!
real 190.07
user 185.69
sys 3.97

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/891319/ft1_filtered_4FGL_J1245.1+5709_daily_bin660.fits scfile=/scratch/kocevski/891319/ft2_4FGL_J1245.1+5709_daily_bin660.fits outfile=/scratch/kocevski/891319/cmap_410400001_410659201_4FGL_J1245.1+5709_daily_bin660.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.56
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/891319/ft1_filtered_4FGL_J1245.1+5709_daily_bin660.fits scfile=/scratch/kocevski/891319/ft2_4FGL_J1245.1+5709_daily_bin660.fits outfile=/scratch/kocevski/891319/cmap_HighResolution_410400001_410659201_4FGL_J1245.1+5709_daily_bin660.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.61
user 0.39
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/891319/ft1_filtered_4FGL_J1245.1+5709_daily_bin660.fits', '/scratch/kocevski/891319/ft2_4FGL_J1245.1+5709_daily_bin660.fits', expMap='/scratch/kocevski/891319/expmap_410400001_410659201_4FGL_J1245.1+5709_daily_bin660.fits', expCube='/scratch/kocevski/891319/ltcube_410400001_410659201_4FGL_J1245.1+5709_daily_bin660.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/891319/Model_4FGL_J1245.1+5709_daily_bin660.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/891319/ft1_filtered_4FGL_J1245.1+5709_daily_bin660.fits
Spacecraft file(s): /scratch/kocevski/891319/ft2_4FGL_J1245.1+5709_daily_bin660.fits
Exposure map: /scratch/kocevski/891319/expmap_410400001_410659201_4FGL_J1245.1+5709_daily_bin660.fits
Exposure cube: /scratch/kocevski/891319/ltcube_410400001_410659201_4FGL_J1245.1+5709_daily_bin660.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/891319/Model_4FGL_J1245.1+5709_daily_bin660.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) = 2743.33889059

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    59.737       1.0000         .10000E-03   10000.    
     3 'norm      '    .95447E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.1856       1.0000         .10000E-03   10000.    
     5 'norm      '    2.6770       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10131E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    35.143       1.0000         .10000E-03   10000.    
     9 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .20079E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.4069       1.0000         .10000E-03   10000.    
    13 'Prefactor '    26.591       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.0700       1.0000         .10000E-03   10000.    
    15 'norm      '    4.9911       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    7.0548       1.0000         .10000E-03   10000.    
    18 'Prefactor '    151.73       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10135E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    5.1330       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    32.200       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    22.284       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .13954E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .53413E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    263.07       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10801E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .11759E-02   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .62523       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.0495       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=   2743.183     FROM MIGRAD    STATUS=CONVERGED    905 CALLS     4668 TOTAL
                     EDM=   .49E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.3236       -.10707E-05** at limit **
   2  Prefactor     59.727        35.737        .11642E-05    .35777E-04
   3  norm          .10003E-03    12.045        .28426E-06** at limit **
   4  Prefactor     7.1856        4.4849        .25402E-06    .48847E-04
   5  norm          2.6692        6.7332        .84781E-06    .51414E-04
   6  Prefactor     .10000E-03    15.996       -.25600E-06** at limit **
   7  Prefactor     .10000E-03    13.133       -.54969E-06** at limit **
   8  Prefactor     35.153        34.733       -.55095E-06   -.68511E-04
   9  norm          .10000E-03    .80728       -.32434E-06** at limit **
  10  Prefactor     .10000E-03    11.360        .78359E-06** at limit **
  11  Prefactor     .10000E-03    276.62        .60505E-05** at limit **
  12  norm          1.4066        6.1650        .89849E-06    .91208E-04
  13  Prefactor     26.596        31.520        .49809E-06    .10722E-05
  14  Prefactor     2.0682        16.684        .32062E-05    .73698E-04
  15  norm          4.9912        4.6027       -.28033E-06   -.29020E-04
  16  Prefactor     .10000E-03    16.237       -.45703E-06** at limit **
  17  norm          7.0551        4.1608        .14182E-06    .20206E-04
  18  Prefactor     152.16        160.24        .32713E-06   -.44250E-04
  19  Prefactor     .10000E-03    18.495        .61220E-06** at limit **
  20  norm          5.1332        5.0789        .42847E-07    .51605E-05
  21  Prefactor     .10000E-03    42.882        .13632E-06** at limit **
  22  Prefactor     32.204        53.976        .93827E-06    .11814E-04
  23  Prefactor     .10000E-03    212.30       -.49321E-05** at limit **
  24  norm          22.285        12.382        .11275E-05    .28268E-03
  25  Prefactor     .10000E-03    104.93       -.17721E-05** at limit **
  26  Prefactor     .10022E-03    19.570        .37960E-05** at limit **
  27  Prefactor     262.97        213.88        .11069E-05   -.27645E-04
  28  Prefactor     .10000E-03    12.446        .70564E-08** at limit **
  29  norm          .10000E-03    107.68       -.45865E-07** at limit **
  30  norm          .10000E-03    6.3784       -.63557E-06** at limit **
  31  Prefactor     .10000E-03    1193.8       -.89683E-06** at limit **
  32  Normalizat    .62475        .26657       -.89636E-05   -.20396E-03
  33  Prefactor     1.0501        .30968        .58181E-05   -.31543E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 59.7274
  norm       = 0.000100029
  Prefactor  = 7.18556
  norm       = 2.66916
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 35.1533
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 1.40657
  Prefactor  = 26.5961
  Prefactor  = 2.06823
  norm       = 4.99117
  Prefactor  = 0.0001
  norm       = 7.05506
  Prefactor  = 152.157
  Prefactor  = 0.0001
  norm       = 5.13316
  Prefactor  = 0.0001
  Prefactor  = 32.2036
  Prefactor  = 0.000100004
  norm       = 22.2852
  Prefactor  = 0.0001
  Prefactor  = 0.000100223
  Prefactor  = 262.974
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 0.62475
  Prefactor  = 1.05012
 **********
 **   18 **HESSE 
 **********

 FCN=   2743.183     FROM HESSE     STATUS=OK           685 CALLS     5353 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.4724        .27597E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     59.727        35.690        .51911E-04   -1.4161    
   3  norm          .10003E-03    67.603        .34182E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.1856        4.4844        .83917E-04   -1.5172    
   5  norm          2.6692        6.5084        .17687E-03   -1.5381    
   6  Prefactor     .10000E-03    16.021        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    13.176        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     35.153        34.217        .67600E-04   -1.4521    
   9  norm          .10000E-03    .81173        .45862E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    11.424        .17265E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    278.79        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.4066        5.9503        .22759E-03   -1.5471    
  13  Prefactor     26.596        31.124        .77687E-04   -1.4676    
  14  Prefactor     2.0682        16.636        .28713E-03   -1.5420    
  15  norm          4.9912        4.5682        .86931E-04   -1.5261    
  16  Prefactor     .10000E-03    16.251        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          7.0551        4.1596        .79436E-04   -1.5177    
  18  Prefactor     152.16        160.17        .16361E-03   -1.3235    
  19  Prefactor     .10000E-03    18.613        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          5.1332        5.0808        .11310E-03   -1.5255    
  21  Prefactor     .10000E-03    42.886        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     32.204        53.943        .70613E-04   -1.4572    
  23  Prefactor     .10000E-03    217.95        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          22.285        12.496        .84852E-04   -1.4763    
  25  Prefactor     .10000E-03    105.04        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10022E-03    87.602        .40430E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     262.97        213.97        .12496E-03   -1.2450    
  28  Prefactor     .10000E-03    12.453        .18044E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    107.68        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          .10000E-03    6.3877        .12924E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    1193.8        .20652E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .62475        .27798        .25785E-03   -1.0694    
  33  Prefactor     1.0501        .32624        .25612E-03   -.91077    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.41455e-09
Minuit parameter uncertainties:
  1  2.79986e-05
  2  35.7029
  3  0.00278155
  4  4.48457
  5  6.51016
  6  1.41224e-05
  7  2.32498e-05
  8  34.2357
  9  2.28153e-06
  10  5.97092e-05
  11  0.00218756
  12  5.78681
  13  31.1425
  14  11.7356
  15  4.56847
  16  1.43466e-05
  17  4.15979
  18  160.628
  19  6.05414e-05
  20  5.08123
  21  1.13829e-05
  22  54.0247
  23  0.00176549
  24  12.4974
  25  0.000333768
  26  0.00884789
  27  214.608
  28  8.01604e-06
  29  2.91951e-05
  30  2.70816e-05
  31  0.00242215
  32  0.278607
  33  0.326861
Done.

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

Extracting fit parameters...

4FGL J1245.1+5709
   Spectrum: PowerLaw
355    Prefactor:  2.068e+00  1.174e+01  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.050e+00  3.269e-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:  6.247e-01  2.786e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.05
Ra Dec: 191.288 57.158
Photon Flux Upper Limit: 1.24e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.42e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/891319/likelihoodResults_410400001_410659201_4FGL_J1245.1+5709_daily_bin660.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): 0
logL (Free Index) = 2743.16758624
delta logL = 0.0150286198341

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2743.15937427
delta logL = 0.0232405910592

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.6566       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6795       1.0000          .0000       10.000    
     3 'Normalizat'    .62888       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0463       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.

 FCN=   2743.159     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      217 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.6499        977.53        .52811E-02    .10335E-03
   2  Index         1.6790        7.4490        .28037        .51899E-05
   3  Normalizat    .62882        .69924E-01    .41333E-01    .44442E-04
   4  Prefactor     1.0462        .75001E-01    .58001E-01    .39807E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.64988
  Index      = 1.67904
  Normalizat = 0.628816
  Prefactor  = 1.04621
 **********
 **   18 **HESSE 
 **********

 FCN=   2743.159     FROM HESSE     STATUS=OK            33 CALLS      250 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.6499        12.922        .21124E-03   -1.5326    
   2  Index         1.6790        1.5623        .14715E-01   -.72641    
   3  Normalizat    .62882        .25564        .25708E-03   -1.0677    
   4  Prefactor     1.0462        .32365        .25647E-03   -.91205    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.03652e-11
Minuit parameter uncertainties:
  1  12.932
  2  1.61175
  3  0.256124
  4  0.324252
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/891319': 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) = 2743.1593737
delta logL = 0.0232411588058

Extracting fit parameters...

4FGL J1245.1+5709
   Spectrum: PowerLaw
355    Prefactor:  3.650e+00  1.293e+01  1.000e-04  1.000e+04 ( 1.000e-13)
356        Index:  1.679e+00  1.612e+00  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.046e+00  3.243e-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:  6.288e-01  2.561e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.05
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/891319/cmap_HighResolution_410400001_410659201_4FGL_J1245.1+5709_daily_bin660.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.42e-03', job_status='DONE', photon_flux_upper_limit='1.24e-07', time_completed='2021-09-06 04:23:52.438735', job_id='891319', GAL2='1.05', fit_tolerance='1e-08', EG2='0.63', EG='0.62', time_epoch_completed='1630927432.44', return_code2='0', ts='0.05', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='2.32e-02', ts2='0.10', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='660' AND source_name='4FGL J1245.1+5709' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 04:23:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0265>
Subject: Job 891319: <4FGL_J1245.1+5709_daily_bin660> in cluster <slac> Done

Job <4FGL_J1245.1+5709_daily_bin660> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Mon Sep  6 04:10:43 2021
Job was executed on host(s) <bullet0265>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 04:10:44 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:10:44 2021
Terminated at Mon Sep  6 04:23:53 2021
Results reported at Mon Sep  6 04:23:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1245.1+5709_daily_bin660 191.288 57.158 410400001 410659201 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 :                                   669.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             285.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   788 sec.
    Turnaround time :                            790 sec.

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

