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


Performing analysis on: 4FGL_J1245.1+5709_daily_bin766
RA = 191.288, Dec = 57.158
tmin = 437875201, tmax = 438134401
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='891492', job_status='RUN', time_executed='2021-09-06 04:13:19.520744', time_epoch_executed='1630926799.52' WHERE source_name='4FGL J1245.1+5709' and cadence='daily' and bin_id='766'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/891492

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/891492/ft1_4FGL_J1245.1+5709_daily_bin766.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/891492/ft2_4FGL_J1245.1+5709_daily_bin766.fits


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

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

Done.
real 5.90
user 5.59
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/891492/ft1_filtered_4FGL_J1245.1+5709_daily_bin766.fits" evtable="EVENTS" scfile=/scratch/kocevski/891492/ft2_4FGL_J1245.1+5709_daily_bin766.fits sctable="SC_DATA" outfile=/scratch/kocevski/891492/ltcube_437875201_438134401_4FGL_J1245.1+5709_daily_bin766.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/891492/ft2_4FGL_J1245.1+5709_daily_bin766.fits
.....................!
real 13.04
user 12.69
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/891492/ft1_filtered_4FGL_J1245.1+5709_daily_bin766.fits evtable="EVENTS" scfile=/scratch/kocevski/891492/ft2_4FGL_J1245.1+5709_daily_bin766.fits sctable="SC_DATA" expcube=/scratch/kocevski/891492/ltcube_437875201_438134401_4FGL_J1245.1+5709_daily_bin766.fits outfile=/scratch/kocevski/891492/expmap_437875201_438134401_4FGL_J1245.1+5709_daily_bin766.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/891492/ltcube_437875201_438134401_4FGL_J1245.1+5709_daily_bin766.fits
.....................!
real 190.87
user 185.86
sys 4.64

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/891492/ft1_filtered_4FGL_J1245.1+5709_daily_bin766.fits scfile=/scratch/kocevski/891492/ft2_4FGL_J1245.1+5709_daily_bin766.fits outfile=/scratch/kocevski/891492/cmap_437875201_438134401_4FGL_J1245.1+5709_daily_bin766.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.66
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/891492/ft1_filtered_4FGL_J1245.1+5709_daily_bin766.fits scfile=/scratch/kocevski/891492/ft2_4FGL_J1245.1+5709_daily_bin766.fits outfile=/scratch/kocevski/891492/cmap_HighResolution_437875201_438134401_4FGL_J1245.1+5709_daily_bin766.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.60
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.6131       1.0000         .10000E-03   10000.    
     2 'Prefactor '    16.101       1.0000         .10000E-03   10000.    
     3 'norm      '    .10178E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .38319       1.0000         .10000E-03   10000.    
     5 'norm      '    .10488E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.301       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.9790       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    9.8762       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.4497       1.0000         .10000E-03   10000.    
    16 'Prefactor '    37.800       1.0000         .10000E-03   10000.    
    17 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.009       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.926       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    82.696       1.0000         .10000E-03   10000.    
    26 'Prefactor '    7.3562       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .11677E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .62046E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.0275       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .71857       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=   3175.509     FROM MIGRAD    STATUS=CONVERGED    913 CALLS     4592 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6146        6.0096        .92836E-05   -.15371E-03
   2  Prefactor     16.116        23.874       -.10941E-05    .20667E-03
   3  norm          .10000E-03    28.829       -.82191E-06** at limit **
   4  Prefactor     .38358        4.1772        .65873E-06   -.28630E-03
   5  norm          .10063E-03    4.6397       -.36487E-05** at limit **
   6  Prefactor     .10000E-03    6.3763       -.34887E-07** at limit **
   7  Prefactor     11.331        11.369        .26936E-05    .13919E-02
   8  Prefactor     .10000E-03    10.333       -.39844E-06** at limit **
   9  norm          2.9791        2.8674        .21701E-07    .17090E-03
  10  Prefactor     .10000E-03    4.0205       -.46200E-07** at limit **
  11  Prefactor     .10000E-03    90.559       -.19541E-05** at limit **
  12  norm          9.8759        9.0744        .24682E-06   -.36886E-04
  13  Prefactor     .10000E-03    13.876        .75867E-07** at limit **
  14  Prefactor     .10000E-03    5.3220       -.17280E-06** at limit **
  15  norm          4.4494        3.5540       -.14413E-08    .14509E-03
  16  Prefactor     37.795        32.839        .36849E-06    .10268E-04
  17  norm          .10000E-03    1.6648       -.16268E-06** at limit **
  18  Prefactor     13.022        82.909        .10804E-05    .16852E-04
  19  Prefactor     .10000E-03    14.044       -.39416E-06** at limit **
  20  norm          .10000E-03    4.2195       -.13820E-06** at limit **
  21  Prefactor     11.215        165.63        .10128E-05    .12763E-03
  22  Prefactor     .10000E-03    51.898        .14519E-06** at limit **
  23  Prefactor     .10000E-03    6.7107       -.26920E-07** at limit **
  24  norm          .10000E-03    2.0012       -.31774E-07** at limit **
  25  Prefactor     82.702        88.693        .49667E-06    .45113E-05
  26  Prefactor     7.3488        10.311        .78303E-06   -.10419E-04
  27  Prefactor     .10000E-03    56.697        .54301E-07** at limit **
  28  Prefactor     .10000E-03    8.3417        .59545E-06** at limit **
  29  norm          .10002E-03    259.14        .29785E-05** at limit **
  30  norm          .10000E-03    5.8662       -.64231E-07** at limit **
  31  Prefactor     .10001E-03    1008.9       -.24048E-05** at limit **
  32  Normalizat    1.0275        .21188       -.88962E-06    .63893E-03
  33  Prefactor     .71855        .24339        .66278E-07    .35917E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.61462
  Prefactor  = 16.1158
  norm       = 0.0001
  Prefactor  = 0.383581
  norm       = 0.000100628
  Prefactor  = 0.0001
  Prefactor  = 11.3307
  Prefactor  = 0.0001
  norm       = 2.97914
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 9.87594
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.44937
  Prefactor  = 37.795
  norm       = 0.0001
  Prefactor  = 13.0223
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 11.2152
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 82.7015
  Prefactor  = 7.34877
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100023
  norm       = 0.0001
  Prefactor  = 0.000100014
  Normalizat = 1.0275
  Prefactor  = 0.718548
 **********
 **   18 **HESSE 
 **********

 FCN=   3175.509     FROM HESSE     STATUS=OK           681 CALLS     5273 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6146        5.8903        .96593E-03   -1.5385    
   2  Prefactor     16.116        23.747        .99815E-04   -1.4905    
   3  norm          .10000E-03    29.325        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .38358        8.5459        .21442E-02   -1.5584    
   5  norm          .10063E-03    40.536        .20085E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.3768        .13896E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     11.331        10.643        .11917E-03   -1.5035    
   8  Prefactor     .10000E-03    10.342        .17691E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.9791        2.8646        .87455E-04   -1.5363    
  10  Prefactor     .10000E-03    4.0226        .11036E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    90.776        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          9.8759        9.0661        .12751E-03   -1.5079    
  13  Prefactor     .10000E-03    13.891        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.3435        .12686E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.4494        3.5556        .91034E-04   -1.5286    
  16  Prefactor     37.795        32.937        .65189E-04   -1.4478    
  17  norm          .10000E-03    1.6954        .70981E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     13.022        82.757        .11105E-03   -1.4986    
  19  Prefactor     .10000E-03    14.105        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    4.2539        .11302E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     11.215        161.45        .12121E-03   -1.5038    
  22  Prefactor     .10000E-03    52.036        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    6.7113        .14258E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    2.0028        .77856E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     82.702        88.673        .44170E-04   -1.3887    
  26  Prefactor     7.3488        10.295        .14788E-03   -1.5166    
  27  Prefactor     .10000E-03    56.724        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    8.3400        .15889E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10002E-03    259.30        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          .10000E-03    5.8809        .13329E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10001E-03    1008.9        .21046E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.0275        .24803        .20201E-03   -.92115    
  33  Prefactor     .71855        .28274        .28978E-03   -1.0280    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.79128e-08
Minuit parameter uncertainties:
  1  5.89161
  2  23.7609
  3  0.000141455
  4  3.6212
  5  0.0101003
  6  3.78863e-06
  7  10.6449
  8  1.72233e-05
  9  2.86472
  10  5.91469e-07
  11  0.000890455
  12  9.06738
  13  5.68714e-05
  14  4.19193e-06
  15  3.55574
  16  32.953
  17  2.43295e-06
  18  65.79
  19  4.86974e-05
  20  4.15509e-06
  21  85.3842
  22  0.000266472
  23  2.05735e-07
  24  5.47202e-07
  25  88.8151
  26  10.297
  27  0.000143476
  28  1.69516e-05
  29  0.00486902
  30  1.4751e-06
  31  0.00767842
  32  0.248307
  33  0.28331
Done.

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

Extracting fit parameters...

4FGL J1245.1+5709
   Spectrum: PowerLaw
355    Prefactor:  1.000e-04  4.192e-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:  7.185e-01  2.833e-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.028e+00  2.483e-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: 8.54e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.47e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/891492/likelihoodResults_437875201_438134401_4FGL_J1245.1+5709_daily_bin766.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) = 3175.50968901
delta logL = -0.0008906311582

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3175.50879839
delta logL = -1.4266333892e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1397       1.0000          .0000       10.000    
     3 'Normalizat'    1.0275       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71859       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=   3175.509     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      204 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    78.646        .90712E-02** at limit **
   2  Index         2.1519        8.8327        .50000       -.20177E-04
   3  Normalizat    1.0275        .19288E-01    .42423E-01    .26483E-04
   4  Prefactor     .71855        .23630E-01    .65501E-01    .27535E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.15186
  Normalizat = 1.0275
  Prefactor  = 0.718549
 **********
 **   18 **HESSE 
 **********

 FCN=   3175.509     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      237 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    381.31        .12756E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1519        5.5488        .50000       -.60605    
   3  Normalizat    1.0275        .45728E-01    .20201E-03   -.92115    
   4  Prefactor     .71855        .55948E-01    .28979E-03   -1.0280    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.59957e-08
Minuit parameter uncertainties:
  1  0.000102831
  2  34.7707
  3  0.0457297
  4  0.055952
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/891492': 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) = 3175.50879827
delta logL = 1.09320353658e-07

Extracting fit parameters...

4FGL J1245.1+5709
   Spectrum: PowerLaw
355    Prefactor:  1.000e-04  1.028e-04  1.000e-04  1.000e+04 ( 1.000e-13)
356        Index:  2.152e+00  3.477e+01  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:  7.185e-01  5.595e-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.028e+00  4.573e-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/891492/cmap_HighResolution_437875201_438134401_4FGL_J1245.1+5709_daily_bin766.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.47e-03', job_status='DONE', photon_flux_upper_limit='8.54e-08', time_completed='2021-09-06 04:25:47.449470', job_id='891492', GAL2='0.72', fit_tolerance='1e-08', EG2='1.03', EG='1.03', time_epoch_completed='1630927547.45', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.72', dlogl='1.09e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='766' AND source_name='4FGL J1245.1+5709' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 04:25:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0055>
Subject: Job 891492: <4FGL_J1245.1+5709_daily_bin766> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1245.1+5709_daily_bin766 191.288 57.158 437875201 438134401 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 :                                   744.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             308.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   889 sec.
    Turnaround time :                            892 sec.

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

