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


Performing analysis on: 4FGL_J1245.1+5709_daily_bin652
RA = 191.288, Dec = 57.158
tmin = 408326401, tmax = 408585601
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='891307', job_status='RUN', time_executed='2021-09-06 04:13:56.017533', time_epoch_executed='1630926836.02' WHERE source_name='4FGL J1245.1+5709' and cadence='daily' and bin_id='652'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/891307

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/891307/ft1_4FGL_J1245.1+5709_daily_bin652.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/891307/ft2_4FGL_J1245.1+5709_daily_bin652.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/891307/ft1_4FGL_J1245.1+5709_daily_bin652.fits outfile=/scratch/kocevski/891307/ft1_filteredMKT_4FGL_J1245.1+5709_daily_bin652.fits ra=191.288 dec=57.158 rad=12.0 tmin=408326401.0 tmax=408585601.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 4.99
user 4.64
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/891307/ft1_filtered_4FGL_J1245.1+5709_daily_bin652.fits" evtable="EVENTS" scfile=/scratch/kocevski/891307/ft2_4FGL_J1245.1+5709_daily_bin652.fits sctable="SC_DATA" outfile=/scratch/kocevski/891307/ltcube_408326401_408585601_4FGL_J1245.1+5709_daily_bin652.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/891307/ft2_4FGL_J1245.1+5709_daily_bin652.fits
.....................!
real 12.04
user 11.67
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/891307/ft1_filtered_4FGL_J1245.1+5709_daily_bin652.fits evtable="EVENTS" scfile=/scratch/kocevski/891307/ft2_4FGL_J1245.1+5709_daily_bin652.fits sctable="SC_DATA" expcube=/scratch/kocevski/891307/ltcube_408326401_408585601_4FGL_J1245.1+5709_daily_bin652.fits outfile=/scratch/kocevski/891307/expmap_408326401_408585601_4FGL_J1245.1+5709_daily_bin652.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/891307/ltcube_408326401_408585601_4FGL_J1245.1+5709_daily_bin652.fits
.....................!
real 190.73
user 185.45
sys 4.84

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/891307/ft1_filtered_4FGL_J1245.1+5709_daily_bin652.fits scfile=/scratch/kocevski/891307/ft2_4FGL_J1245.1+5709_daily_bin652.fits outfile=/scratch/kocevski/891307/cmap_408326401_408585601_4FGL_J1245.1+5709_daily_bin652.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.53
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/891307/ft1_filtered_4FGL_J1245.1+5709_daily_bin652.fits scfile=/scratch/kocevski/891307/ft2_4FGL_J1245.1+5709_daily_bin652.fits outfile=/scratch/kocevski/891307/cmap_HighResolution_408326401_408585601_4FGL_J1245.1+5709_daily_bin652.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0688       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    22.144       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    7.4309       1.0000         .10000E-03   10000.    
     6 'Prefactor '    40.314       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    16.951       1.0000         .10000E-03   10000.    
     9 'norm      '    2.7615       1.0000         .10000E-03   10000.    
    10 'Prefactor '    32.491       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    15.945       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .79108E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.2357       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    7.9132       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    29.684       1.0000         .10000E-03   10000.    
    20 'norm      '    13.213       1.0000         .10000E-03   10000.    
    21 'Prefactor '    17.039       1.0000         .10000E-03   10000.    
    22 'Prefactor '    42.831       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    4.0576       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10133E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .26249E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    96.652       1.0000         .10000E-03   10000.    
    30 'norm      '    .10076E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    306.87       1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.6109       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .22502       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=   3156.353     FROM MIGRAD    STATUS=CONVERGED    956 CALLS     5348 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0713        12.047       -.44349E-05    .73229E-03
   2  Prefactor     .10000E-03    22.982       -.23660E-07** at limit **
   3  norm          22.140        19.308       -.50806E-07    .41535E-04
   4  Prefactor     .10000E-03    4.2075       -.37583E-07** at limit **
   5  norm          7.4289        7.2099       -.80545E-07    .29931E-03
   6  Prefactor     40.311        33.938        .19422E-06    .15790E-03
   7  Prefactor     .10000E-03    4.4460        .84387E-07** at limit **
   8  Prefactor     16.916        33.140        .10505E-05    .90935E-04
   9  norm          2.7607        2.5713       -.10306E-06    .35834E-03
  10  Prefactor     32.503        37.211       -.26338E-05   -.72510E-04
  11  Prefactor     .10000E-03    82.491        .27165E-05** at limit **
  12  norm          15.942        12.356        .22675E-05    .10594E-02
  13  Prefactor     .26587E-03    50.519       -.85349E-05** at limit **
  14  Prefactor     .10000E-03    6.5397        .84693E-07** at limit **
  15  norm          4.2349        3.5662       -.10047E-06    .81713E-04
  16  Prefactor     .10000E-03    8.3056       -.22742E-07** at limit **
  17  norm          7.9110        4.3233        .48607E-08    .22131E-03
  18  Prefactor     .10000E-03    40.084        .12164E-07** at limit **
  19  Prefactor     29.674        20.363       -.22107E-06    .10783E-03
  20  norm          13.204        9.3958        .13056E-06   -.40169E-04
  21  Prefactor     17.072        166.34       -.23091E-05    .24474E-05
  22  Prefactor     42.885        71.823       -.61299E-05   -.13885E-03
  23  Prefactor     .10000E-03    11.084       -.32874E-07** at limit **
  24  norm          4.0552        5.0808        .35558E-07    .56106E-04
  25  Prefactor     .10000E-03    29.526        .72040E-06** at limit **
  26  Prefactor     .10000E-03    7.6031        .55000E-06** at limit **
  27  Prefactor     .10000E-03    95.448       -.25525E-05** at limit **
  28  Prefactor     .10000E-03    13.205        .61099E-07** at limit **
  29  norm          96.668        125.71        .70700E-06    .18453E-04
  30  norm          .10000E-03    9.1141        .23171E-06** at limit **
  31  Prefactor     307.03        831.30        .10678E-04    .17947E-04
  32  Normalizat    1.6107        .34841        .37642E-05    .62960E-03
  33  Prefactor     .22538        .41870       -.67521E-05    .14394E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.07126
  Prefactor  = 0.0001
  norm       = 22.14
  Prefactor  = 0.0001
  norm       = 7.42889
  Prefactor  = 40.3108
  Prefactor  = 0.0001
  Prefactor  = 16.9163
  norm       = 2.76074
  Prefactor  = 32.5027
  Prefactor  = 0.000100002
  norm       = 15.942
  Prefactor  = 0.000265867
  Prefactor  = 0.0001
  norm       = 4.23486
  Prefactor  = 0.0001
  norm       = 7.91101
  Prefactor  = 0.0001
  Prefactor  = 29.6743
  norm       = 13.2045
  Prefactor  = 17.0722
  Prefactor  = 42.8848
  Prefactor  = 0.0001
  norm       = 4.05521
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 96.668
  norm       = 0.0001
  Prefactor  = 307.027
  Normalizat = 1.61069
  Prefactor  = 0.225377
 **********
 **   18 **HESSE 
 **********

 FCN=   3156.353     FROM HESSE     STATUS=OK           697 CALLS     6045 TOTAL
                     EDM=   .86E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0713        32.030        .30898E-02   -1.5501    
   2  Prefactor     .10000E-03    23.000        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          22.140        19.273        .85118E-04   -1.4767    
   4  Prefactor     .10000E-03    4.2523        .11213E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          7.4289        7.1982        .13903E-03   -1.5163    
   6  Prefactor     40.311        33.812        .63131E-04   -1.4437    
   7  Prefactor     .10000E-03    4.4468        .11566E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     16.916        32.980        .97279E-04   -1.4885    
   9  norm          2.7607        2.5737        .83759E-04   -1.5376    
  10  Prefactor     32.503        37.173        .70298E-04   -1.4567    
  11  Prefactor     .10000E-03    82.505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          15.942        14.384        .10030E-03   -1.4909    
  13  Prefactor     .26587E-03    62.624        .91626E-01   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.5640        .14021E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.2349        3.5664        .92981E-04   -1.5296    
  16  Prefactor     .10000E-03    8.3069        .15815E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          7.9110        4.2907        .82561E-04   -1.5145    
  18  Prefactor     .10000E-03    40.102        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     29.674        20.318        .73538E-04   -1.4618    
  20  norm          13.204        9.3477        .11020E-03   -1.4981    
  21  Prefactor     17.072        158.40        .97027E-04   -1.4881    
  22  Prefactor     42.885        71.905        .61255E-04   -1.4397    
  23  Prefactor     .10000E-03    11.096        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          4.0552        5.0662        .13680E-03   -1.5305    
  25  Prefactor     .10000E-03    29.532        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    14.142        .29054E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    96.032        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    13.285        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          96.668        125.48        .20443E-03   -1.3738    
  30  norm          .10000E-03    9.2949        .16539E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     307.03        827.66        .11596E-03   -1.2185    
  32  Normalizat    1.6107        .30920        .19913E-03   -.74714    
  33  Prefactor     .22538        .34100        .57605E-03   -1.2694    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.56085e-09
Minuit parameter uncertainties:
  1  11.7218
  2  2.15856e-05
  3  19.2789
  4  7.44976e-06
  5  7.19899
  6  33.8282
  7  2.1268e-06
  8  33.0159
  9  2.57378
  10  37.1993
  11  0.000716746
  12  14.3876
  13  0.204049
  14  4.00068e-07
  15  3.56662
  16  3.32981e-07
  17  4.29087
  18  1.35532e-05
  19  20.3226
  20  9.34877
  21  104.372
  22  72.0506
  23  2.44935e-06
  24  5.06676
  25  0.000114275
  26  0.000323273
  27  0.00101374
  28  1.69623e-05
  29  125.828
  30  1.22473e-05
  31  863.24
  32  0.309565
  33  0.344073
Done.

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

Extracting fit parameters...

4FGL J1245.1+5709
   Spectrum: PowerLaw
355    Prefactor:  1.000e-04  4.001e-07  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:  2.254e-01  3.441e-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.611e+00  3.096e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/891307/likelihoodResults_408326401_408585601_4FGL_J1245.1+5709_daily_bin652.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) = 3156.35333554
delta logL = -0.000720462634945

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3156.35261556
delta logL = -4.86839780933e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1177       1.0000          .0000       10.000    
     3 'Normalizat'    1.6104       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .22571       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=   3156.353     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      241 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10026E-03    61.719        .14084E-02** at limit **
   2  Index         2.0933        7.1038        .50000        .11754E-04
   3  Normalizat    1.6107        .18281E-01    .19913E-03    .19900E-03
   4  Prefactor     .22538        .21444E-01    .57607E-03    .12674E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100259
  Index      = 2.09328
  Normalizat = 1.61068
  Prefactor  = 0.225385
 **********
 **   18 **HESSE 
 **********

 FCN=   3156.353     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      270 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10026E-03    281.37        .28168E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0933        5.8833        .50000       -.62038    
   3  Normalizat    1.6107        .40719E-01    .39825E-04   -.74714    
   4  Prefactor     .22538        .47748E-01    .23043E-04   -1.2694    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.21449e-09
Minuit parameter uncertainties:
  1  0.0171382
  2  462.501
  3  0.0407199
  4  0.0477558
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/891307': 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) = 3156.35261499
delta logL = 8.7522494141e-08

Extracting fit parameters...

4FGL J1245.1+5709
   Spectrum: PowerLaw
355    Prefactor:  1.003e-04  1.714e-02  1.000e-04  1.000e+04 ( 1.000e-13)
356        Index:  2.093e+00  4.625e+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:  2.254e-01  4.776e-02  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.611e+00  4.072e-02  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/891307/cmap_HighResolution_408326401_408585601_4FGL_J1245.1+5709_daily_bin652.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.64e-03', job_status='DONE', photon_flux_upper_limit='1.01e-07', time_completed='2021-09-06 04:26:41.757590', job_id='891307', GAL2='0.23', fit_tolerance='1e-08', EG2='1.61', EG='1.61', time_epoch_completed='1630927601.76', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.23', dlogl='8.75e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='652' AND source_name='4FGL J1245.1+5709' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 04:26:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 891307: <4FGL_J1245.1+5709_daily_bin652> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1245.1+5709_daily_bin652 191.288 57.158 408326401 408585601 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 :                                   763.39 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             280.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   959 sec.
    Turnaround time :                            960 sec.

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

