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


Performing analysis on: 4FGL_J1245.1+5709_daily_bin976
RA = 191.288, Dec = 57.158
tmin = 492307201, tmax = 492566401
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='892869', job_status='RUN', time_executed='2021-09-06 04:17:37.200145', time_epoch_executed='1630927057.2' WHERE source_name='4FGL J1245.1+5709' and cadence='daily' and bin_id='976'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/892869

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/892869/ft1_4FGL_J1245.1+5709_daily_bin976.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/892869/ft2_4FGL_J1245.1+5709_daily_bin976.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/892869/ft1_4FGL_J1245.1+5709_daily_bin976.fits outfile=/scratch/kocevski/892869/ft1_filteredMKT_4FGL_J1245.1+5709_daily_bin976.fits ra=191.288 dec=57.158 rad=12.0 tmin=492307201.0 tmax=492566401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.88
user 3.53
sys 0.25

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/892869/ft1_filtered_4FGL_J1245.1+5709_daily_bin976.fits evtable="EVENTS" scfile=/scratch/kocevski/892869/ft2_4FGL_J1245.1+5709_daily_bin976.fits sctable="SC_DATA" expcube=/scratch/kocevski/892869/ltcube_492307201_492566401_4FGL_J1245.1+5709_daily_bin976.fits outfile=/scratch/kocevski/892869/expmap_492307201_492566401_4FGL_J1245.1+5709_daily_bin976.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/892869/ltcube_492307201_492566401_4FGL_J1245.1+5709_daily_bin976.fits
.....................!
real 189.44
user 184.97
sys 4.01

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/892869/ft1_filtered_4FGL_J1245.1+5709_daily_bin976.fits scfile=/scratch/kocevski/892869/ft2_4FGL_J1245.1+5709_daily_bin976.fits outfile=/scratch/kocevski/892869/cmap_492307201_492566401_4FGL_J1245.1+5709_daily_bin976.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/892869/ft1_filtered_4FGL_J1245.1+5709_daily_bin976.fits scfile=/scratch/kocevski/892869/ft2_4FGL_J1245.1+5709_daily_bin976.fits outfile=/scratch/kocevski/892869/cmap_HighResolution_492307201_492566401_4FGL_J1245.1+5709_daily_bin976.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    88.397       1.0000         .10000E-03   10000.    
     3 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .80345       1.0000         .10000E-03   10000.    
     6 'Prefactor '    23.832       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .13429E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.4277       1.0000         .10000E-03   10000.    
     9 'norm      '    4.7129       1.0000         .10000E-03   10000.    
    10 'Prefactor '    45.724       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    23.353       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .31925E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.2005       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.6878       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10403E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    169.68       1.0000         .10000E-03   10000.    
    22 'Prefactor '    39.180       1.0000         .10000E-03   10000.    
    23 'Prefactor '    13.833       1.0000         .10000E-03   10000.    
    24 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    49.120       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .14606E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .45061E-01   1.0000         .10000E-03   10000.    
    29 'norm      '    63.209       1.0000         .10000E-03   10000.    
    30 'norm      '    9.0636       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .40432E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .82797       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .82140       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=   4255.680     FROM MIGRAD    STATUS=CONVERGED    912 CALLS     4685 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.1866        .11712E-06** at limit **
   2  Prefactor     88.424        43.694       -.97772E-06   -.38406E-04
   3  norm          .10000E-03    5.7978       -.12166E-06** at limit **
   4  Prefactor     .10000E-03    2.9803        .38628E-06** at limit **
   5  norm          .80739        9.7727        .47161E-05    .11211E-06
   6  Prefactor     23.836        24.968       -.45683E-05   -.96038E-04
   7  Prefactor     .10001E-03    10.853       -.72590E-05** at limit **
   8  Prefactor     6.3891        19.045        .15288E-04    .54590E-03
   9  norm          4.7130        2.6005       -.60902E-07   -.36198E-04
  10  Prefactor     45.727        30.157       -.44846E-05    .16015E-03
  11  Prefactor     .10000E-03    30.301       -.32827E-05** at limit **
  12  norm          23.357        11.383       -.43424E-06   -.93457E-03
  13  Prefactor     .10000E-03    98.619        .32893E-04** at limit **
  14  Prefactor     .10000E-03    2.7952        .81049E-07** at limit **
  15  norm          4.1999        2.5315        .88460E-07    .30834E-03
  16  Prefactor     .10000E-03    14.453        .88315E-05** at limit **
  17  norm          4.6875        2.9436       -.31575E-07   -.17448E-03
  18  Prefactor     .10000E-03    27.398        .36297E-05** at limit **
  19  Prefactor     .10000E-03    15.079       -.71707E-05** at limit **
  20  norm          .10000E-03    2.7273       -.23853E-06** at limit **
  21  Prefactor     169.65        99.395       -.18014E-04   -.16105E-04
  22  Prefactor     39.126        40.240        .23486E-05    .19968E-04
  23  Prefactor     13.826        22.655        .28185E-05   -.15250E-04
  24  norm          .10000E-03    1.4696       -.89856E-07** at limit **
  25  Prefactor     49.130        65.984        .57921E-05    .54816E-05
  26  Prefactor     .10000E-03    4.7046        .29741E-06** at limit **
  27  Prefactor     .10000E-03    11.831       -.21142E-05** at limit **
  28  Prefactor     .27850E-01    7.9155        .79135E-06   -.20713E-04
  29  norm          63.136        71.162       -.51564E-04    .47582E-05
  30  norm          9.0636        5.5593        .93743E-06   -.89967E-04
  31  Prefactor     .10000E-03    550.21       -.38024E-04** at limit **
  32  Normalizat    .82792        .19500       -.11455E-05    .18122E-03
  33  Prefactor     .82155        .22315        .18286E-05    .73932E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 88.4242
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.807391
  Prefactor  = 23.8359
  Prefactor  = 0.000100009
  Prefactor  = 6.38909
  norm       = 4.71298
  Prefactor  = 45.7272
  Prefactor  = 0.0001
  norm       = 23.3573
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 4.19992
  Prefactor  = 0.0001
  norm       = 4.68754
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100005
  Prefactor  = 169.651
  Prefactor  = 39.1264
  Prefactor  = 13.8259
  norm       = 0.0001
  Prefactor  = 49.13
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.02785
  norm       = 63.1363
  norm       = 9.06357
  Prefactor  = 0.0001
  Normalizat = 0.827924
  Prefactor  = 0.821553
 **********
 **   18 **HESSE 
 **********

 FCN=   4255.680     FROM HESSE     STATUS=OK           705 CALLS     5390 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.2426        .13030E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     88.424        42.841        .42734E-04   -1.3824    
   3  norm          .10000E-03    5.8003        .15341E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.0734        .21909E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .80739        11.137        .27884E-02   -1.5528    
   6  Prefactor     23.836        24.920        .82053E-04   -1.4731    
   7  Prefactor     .10001E-03    54.965        .31205E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.3891        18.577        .15831E-03   -1.5202    
   9  norm          4.7130        2.6051        .74138E-04   -1.5274    
  10  Prefactor     45.727        30.250        .59294E-04   -1.4354    
  11  Prefactor     .10000E-03    30.314        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          23.357        11.336        .82889E-04   -1.4741    
  13  Prefactor     .10000E-03    100.68        .42727E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.8113        .10646E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.1999        2.5324        .77763E-04   -1.5298    
  16  Prefactor     .10000E-03    14.520        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.6875        2.9424        .85189E-04   -1.5275    
  18  Prefactor     .10000E-03    27.424        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    15.427        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    11.000        .20227E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     169.65        99.409        .15486E-03   -1.3096    
  22  Prefactor     39.126        39.090        .64035E-04   -1.4456    
  23  Prefactor     13.826        22.635        .10769E-03   -1.4964    
  24  norm          .10000E-03    1.4709        .77175E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     49.130        66.047        .57217E-04   -1.4305    
  26  Prefactor     .10000E-03    4.8732        .27532E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    11.834        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .27850E-01    9.1395        .60430E-01   -1.5675    
  29  norm          63.136        70.666        .25237E-03   -1.4117    
  30  norm          9.0636        5.5557        .11484E-03   -1.5106    
  31  Prefactor     .10000E-03    550.32        .21259E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .82792        .23082        .22821E-03   -.99041    
  33  Prefactor     .82155        .26245        .28372E-03   -.98939    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.90761e-09
Minuit parameter uncertainties:
  1  4.08843e-06
  2  42.8559
  3  7.29445e-06
  4  4.70024e-05
  5  5.99821
  6  24.931
  7  0.00142916
  8  18.5937
  9  2.60513
  10  30.2597
  11  8.39477e-05
  12  11.3371
  13  0.000501441
  14  1.15348e-06
  15  2.53246
  16  3.24193e-05
  17  2.9425
  18  2.86643e-05
  19  4.20115e-05
  20  0.000460986
  21  99.5078
  22  39.1151
  23  22.6487
  24  9.96867e-06
  25  66.1452
  26  6.72659e-05
  27  1.1953e-05
  28  1.00737
  29  70.7597
  30  5.55598
  31  2.45562e-06
  32  0.231097
  33  0.262854
Done.

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

Extracting fit parameters...

4FGL J1245.1+5709
   Spectrum: PowerLaw
355    Prefactor:  1.000e-04  1.153e-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:  8.216e-01  2.629e-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:  8.279e-01  2.311e-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: 5.17e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.92e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/892869/likelihoodResults_492307201_492566401_4FGL_J1245.1+5709_daily_bin976.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) = 4255.68145966
delta logL = -0.00168536956153

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4255.67977774
delta logL = -3.4515032894e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12554E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0928       1.0000          .0000       10.000    
     3 'Normalizat'    .82786       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82166       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=   4255.680     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      245 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11340E-03    2.4014        .11259E-01** at limit **
   2  Index         1.9056        8.1074        .50000        .91382E-04
   3  Normalizat    .82792        .34213E-02    .22821E-03   -.78111E-04
   4  Prefactor     .82156        .42610E-02    .28372E-03    .56419E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000113397
  Index      = 1.90561
  Normalizat = 0.827921
  Prefactor  = 0.821557
 **********
 **   18 **HESSE 
 **********

 FCN=   4255.680     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      274 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11340E-03    63.454        .12650E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9056        8.0740        .50000       -.66731    
   3  Normalizat    .82792        .17777E-01    .91286E-05   -.99041    
   4  Prefactor     .82156        .22139E-01    .11349E-04   -.98939    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.11859e-07
Minuit parameter uncertainties:
  1  0.0583741
  2  315.598
  3  0.0177774
  4  0.0221397
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/892869': 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) = 4255.67977071
delta logL = 3.58180022886e-06

Extracting fit parameters...

4FGL J1245.1+5709
   Spectrum: PowerLaw
355    Prefactor:  1.134e-04  5.837e-02  1.000e-04  1.000e+04 ( 1.000e-13)
356        Index:  1.906e+00  3.156e+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:  8.216e-01  2.214e-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:  8.279e-01  1.778e-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/892869/cmap_HighResolution_492307201_492566401_4FGL_J1245.1+5709_daily_bin976.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.92e-03', job_status='DONE', photon_flux_upper_limit='5.17e-08', time_completed='2021-09-06 04:31:59.402391', job_id='892869', GAL2='0.82', fit_tolerance='1e-08', EG2='0.83', EG='0.83', time_epoch_completed='1630927919.4', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='3.58e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='976' AND source_name='4FGL J1245.1+5709' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 04:31:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 892869: <4FGL_J1245.1+5709_daily_bin976> in cluster <slac> Done

Job <4FGL_J1245.1+5709_daily_bin976> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Mon Sep  6 04:15:32 2021
Job was executed on host(s) <bullet0204>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 04:15: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:15:34 2021
Terminated at Mon Sep  6 04:32:00 2021
Results reported at Mon Sep  6 04:32:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1245.1+5709_daily_bin976 191.288 57.158 492307201 492566401 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 :                                   855.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             290.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   985 sec.
    Turnaround time :                            988 sec.

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

