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


Performing analysis on: 4FGL_J1245.1+5709_daily_bin732
RA = 191.288, Dec = 57.158
tmin = 429062401, tmax = 429321601
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='891445', job_status='RUN', time_executed='2021-09-06 04:14:26.431087', time_epoch_executed='1630926866.43' WHERE source_name='4FGL J1245.1+5709' and cadence='daily' and bin_id='732'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/891445

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/891445/ft1_4FGL_J1245.1+5709_daily_bin732.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/891445/ft2_4FGL_J1245.1+5709_daily_bin732.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/891445/ft1_4FGL_J1245.1+5709_daily_bin732.fits outfile=/scratch/kocevski/891445/ft1_filteredMKT_4FGL_J1245.1+5709_daily_bin732.fits ra=191.288 dec=57.158 rad=12.0 tmin=429062401.0 tmax=429321601.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.38
user 6.06
sys 0.27

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/891445/ft1_filtered_4FGL_J1245.1+5709_daily_bin732.fits" evtable="EVENTS" scfile=/scratch/kocevski/891445/ft2_4FGL_J1245.1+5709_daily_bin732.fits sctable="SC_DATA" outfile=/scratch/kocevski/891445/ltcube_429062401_429321601_4FGL_J1245.1+5709_daily_bin732.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/891445/ft2_4FGL_J1245.1+5709_daily_bin732.fits
.....................!
real 12.51
user 12.11
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/891445/ft1_filtered_4FGL_J1245.1+5709_daily_bin732.fits evtable="EVENTS" scfile=/scratch/kocevski/891445/ft2_4FGL_J1245.1+5709_daily_bin732.fits sctable="SC_DATA" expcube=/scratch/kocevski/891445/ltcube_429062401_429321601_4FGL_J1245.1+5709_daily_bin732.fits outfile=/scratch/kocevski/891445/expmap_429062401_429321601_4FGL_J1245.1+5709_daily_bin732.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/891445/ltcube_429062401_429321601_4FGL_J1245.1+5709_daily_bin732.fits
.....................!
real 192.55
user 186.95
sys 5.19

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/891445/ft1_filtered_4FGL_J1245.1+5709_daily_bin732.fits scfile=/scratch/kocevski/891445/ft2_4FGL_J1245.1+5709_daily_bin732.fits outfile=/scratch/kocevski/891445/cmap_429062401_429321601_4FGL_J1245.1+5709_daily_bin732.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.55
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/891445/ft1_filtered_4FGL_J1245.1+5709_daily_bin732.fits scfile=/scratch/kocevski/891445/ft2_4FGL_J1245.1+5709_daily_bin732.fits outfile=/scratch/kocevski/891445/cmap_HighResolution_429062401_429321601_4FGL_J1245.1+5709_daily_bin732.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.55
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.8360       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10305E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .74379E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .11674E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.354       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10641E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .40411E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    353.90       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    15.218       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10207E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    6.7792       1.0000         .10000E-03   10000.    
    16 'Prefactor '    98.834       1.0000         .10000E-03   10000.    
    17 'norm      '    5.4450       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10533E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .91454E-02   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    1.9951       1.0000         .10000E-03   10000.    
    25 'Prefactor '    48.792       1.0000         .10000E-03   10000.    
    26 'Prefactor '    6.4355       1.0000         .10000E-03   10000.    
    27 'Prefactor '    15.437       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    85.400       1.0000         .10000E-03   10000.    
    30 'norm      '    .11096E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .63241       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.0804       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=   2041.747     FROM MIGRAD    STATUS=CONVERGED    995 CALLS     4867 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.8405        10.770        .27244E-05    .15190E-03
   2  Prefactor     .10000E-03    46.887       -.13362E-05** at limit **
   3  norm          .10000E-03    31.039        .55708E-06** at limit **
   4  Prefactor     .10013E-03    8.7346       -.24166E-05** at limit **
   5  norm          .10000E-03    31.820        .10421E-05** at limit **
   6  Prefactor     .10000E-03    18.844        .60695E-07** at limit **
   7  Prefactor     11.317        24.207       -.21213E-05   -.10563E-03
   8  Prefactor     .10000E-03    139.17        .10411E-05** at limit **
   9  norm          .19072        7.5199        .26217E-05    .16120E-03
  10  Prefactor     354.30        203.63        .87142E-06    .79687E-04
  11  Prefactor     .10000E-03    161.23        .20128E-05** at limit **
  12  norm          15.210        14.160        .79295E-07   -.38643E-04
  13  Prefactor     .10000E-03    22.631        .72685E-07** at limit **
  14  Prefactor     .10654E-03    194.47        .25003E-04** at limit **
  15  norm          6.7771        6.1659       -.18639E-06   -.36682E-03
  16  Prefactor     98.915        49.232        .26933E-07   -.10735E-03
  17  norm          5.4487        4.2239        .19142E-06   -.61180E-04
  18  Prefactor     .10000E-03    50.104        .19041E-06** at limit **
  19  Prefactor     .10000E-03    10.268        .12070E-06** at limit **
  20  norm          .10000E-03    5.4902        .20921E-05** at limit **
  21  Prefactor     .10001E-03    1595.1        .18664E-04** at limit **
  22  Prefactor     .10000E-03    40.010        .58233E-06** at limit **
  23  Prefactor     .10000E-03    8.6614        .22655E-06** at limit **
  24  norm          1.9996        3.7894        .55940E-06    .33064E-04
  25  Prefactor     49.284        122.40       -.36706E-06    .62102E-04
  26  Prefactor     6.4502        8.1576        .21684E-06   -.28104E-04
  27  Prefactor     15.402        115.05       -.15912E-05   -.87247E-06
  28  Prefactor     .10000E-03    10.710        .37455E-07** at limit **
  29  norm          85.403        86.737        .14778E-06    .68139E-05
  30  norm          .10033E-03    23.814        .71659E-05** at limit **
  31  Prefactor     .10001E-03    297.54       -.31389E-05** at limit **
  32  Normalizat    .63028        .35542        .90717E-05   -.40293E-04
  33  Prefactor     1.0805        .39987       -.11362E-04   -.15411E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.84046
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 0.000100134
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.3169
  Prefactor  = 0.0001
  norm       = 0.190718
  Prefactor  = 354.301
  Prefactor  = 0.000100001
  norm       = 15.2101
  Prefactor  = 0.0001
  Prefactor  = 0.000106544
  norm       = 6.77711
  Prefactor  = 98.9151
  norm       = 5.44871
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.99964
  Prefactor  = 49.2837
  Prefactor  = 6.45024
  Prefactor  = 15.4018
  Prefactor  = 0.0001
  norm       = 85.4029
  norm       = 0.000100326
  Prefactor  = 0.000100006
  Normalizat = 0.630277
  Prefactor  = 1.0805
 **********
 **   18 **HESSE 
 **********

 FCN=   2041.747     FROM HESSE     STATUS=OK           701 CALLS     5568 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.8405        10.791        .83122E-03   -1.5225    
   2  Prefactor     .10000E-03    47.189        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    31.058        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10013E-03    33.337        .20117E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    32.205        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    18.855        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     11.317        24.163        .11889E-03   -1.5035    
   8  Prefactor     .10000E-03    139.26        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .19072        47.852        .17655E-02   -1.5621    
  10  Prefactor     354.30        204.56        .10825E-03   -1.1921    
  11  Prefactor     .10000E-03    161.29        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          15.210        14.147        .10267E-03   -1.4928    
  13  Prefactor     .10000E-03    22.650        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10654E-03    26.067        .57372E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          6.7771        6.2515        .10091E-03   -1.5187    
  16  Prefactor     98.915        49.243        .20218E-03   -1.3716    
  17  norm          5.4487        4.2245        .78746E-04   -1.5241    
  18  Prefactor     .10000E-03    50.105        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    10.274        .14144E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    8.7265        .19401E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10001E-03    1652.1        .36479E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    40.109        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    8.6649        .12988E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          1.9996        3.7608        .11652E-03   -1.5425    
  25  Prefactor     49.284        119.72        .57408E-04   -1.4303    
  26  Prefactor     6.4502        8.1555        .14005E-03   -1.5200    
  27  Prefactor     15.402        112.90        .10194E-03   -1.4923    
  28  Prefactor     .10000E-03    10.714        .14440E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          85.403        86.710        .43471E-04   -1.3857    
  30  norm          .10033E-03    51.271        .20833E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10001E-03    297.87        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .63028        .36403        .27151E-03   -1.0671    
  33  Prefactor     1.0805        .41107        .25973E-03   -.90092    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.26702e-08
Minuit parameter uncertainties:
  1  10.7949
  2  0.000775885
  3  8.07331e-05
  4  0.00422256
  5  6.58663e-06
  6  9.38101e-06
  7  24.1841
  8  0.000514081
  9  6.04524
  10  204.975
  11  0.000785836
  12  14.1499
  13  2.67477e-06
  14  0.0261321
  15  6.25207
  16  49.2636
  17  4.22472
  18  5.36821e-06
  19  3.88975e-06
  20  0.000212328
  21  0.00712863
  22  9.09181e-05
  23  5.06874e-08
  24  3.76122
  25  120.311
  26  8.15689
  27  83.6228
  28  9.69644e-06
  29  86.8393
  30  0.0081812
  31  0.0026162
  32  0.36543
  33  0.412285
Done.

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

Extracting fit parameters...

4FGL J1245.1+5709
   Spectrum: PowerLaw
355    Prefactor:  1.065e-04  2.613e-02  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.081e+00  4.123e-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.303e-01  3.654e-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.90e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.44e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/891445/likelihoodResults_429062401_429321601_4FGL_J1245.1+5709_daily_bin732.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) = 2041.74736146
delta logL = -1.1606734688e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2041.74736144
delta logL = -1.15927264233e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96363E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1281       1.0000          .0000       10.000    
     3 'Normalizat'    .63027       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0805       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=   2041.561     FROM MIGRAD    STATUS=CONVERGED    125 CALLS      301 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10060        6.1488        .58690E-02   -.79213E-03
   2  Index         4.1938        4.0862        .98638E-01    .61684E-05
   3  Normalizat    .59017        .56664E-01    .63189E-01   -.83113E-05
   4  Prefactor     1.1115        .69697E-01    .57968E-01    .43200E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.100603
  Index      = 4.19378
  Normalizat = 0.590167
  Prefactor  = 1.11148
 **********
 **   18 **HESSE 
 **********

 FCN=   2041.561     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      334 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10060        18.414        .27646E-03   -1.5645    
   2  Index         4.1938        6.2852        .54375E-02   -.16195    
   3  Normalizat    .59017        .23238        .27959E-03   -1.0840    
   4  Prefactor     1.1115        .28181        .25633E-03   -.89101    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.29126e-09
Minuit parameter uncertainties:
  1  2.72164
  2  11.0448
  3  0.232763
  4  0.282188
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/891445': 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) = 2041.56143811
delta logL = 0.185911739089

Extracting fit parameters...

4FGL J1245.1+5709
   Spectrum: PowerLaw
355    Prefactor:  1.006e-01  2.722e+00  1.000e-04  1.000e+04 ( 1.000e-13)
356        Index:  4.194e+00  1.104e+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:  1.111e+00  2.822e-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:  5.902e-01  2.328e-01  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/891445/cmap_HighResolution_429062401_429321601_4FGL_J1245.1+5709_daily_bin732.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.44e-02', job_status='DONE', photon_flux_upper_limit='1.90e-07', time_completed='2021-09-06 04:24:13.528643', job_id='891445', GAL2='1.11', fit_tolerance='1e-08', EG2='0.59', EG='0.63', time_epoch_completed='1630927453.53', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='1.86e-01', ts2='0.38', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='732' AND source_name='4FGL J1245.1+5709' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 04:24:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0236>
Subject: Job 891445: <4FGL_J1245.1+5709_daily_bin732> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1245.1+5709_daily_bin732 191.288 57.158 429062401 429321601 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 :                                   585.24 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             253.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   801 sec.
    Turnaround time :                            802 sec.

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

