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


Performing analysis on: 4FGL_J1245.1+5709_daily_bin478
RA = 191.288, Dec = 57.158
tmin = 363225601, tmax = 363484801
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='890002', job_status='RUN', time_executed='2021-09-06 04:09:41.113568', time_epoch_executed='1630926581.11' WHERE source_name='4FGL J1245.1+5709' and cadence='daily' and bin_id='478'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/890002

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/890002/ft1_4FGL_J1245.1+5709_daily_bin478.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/890002/ft2_4FGL_J1245.1+5709_daily_bin478.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/890002/ft1_4FGL_J1245.1+5709_daily_bin478.fits outfile=/scratch/kocevski/890002/ft1_filteredMKT_4FGL_J1245.1+5709_daily_bin478.fits ra=191.288 dec=57.158 rad=12.0 tmin=363225601.0 tmax=363484801.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 7.02
user 6.77
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/890002/ft1_filtered_4FGL_J1245.1+5709_daily_bin478.fits" evtable="EVENTS" scfile=/scratch/kocevski/890002/ft2_4FGL_J1245.1+5709_daily_bin478.fits sctable="SC_DATA" outfile=/scratch/kocevski/890002/ltcube_363225601_363484801_4FGL_J1245.1+5709_daily_bin478.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/890002/ft2_4FGL_J1245.1+5709_daily_bin478.fits
.....................!
real 13.23
user 12.81
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/890002/ft1_filtered_4FGL_J1245.1+5709_daily_bin478.fits evtable="EVENTS" scfile=/scratch/kocevski/890002/ft2_4FGL_J1245.1+5709_daily_bin478.fits sctable="SC_DATA" expcube=/scratch/kocevski/890002/ltcube_363225601_363484801_4FGL_J1245.1+5709_daily_bin478.fits outfile=/scratch/kocevski/890002/expmap_363225601_363484801_4FGL_J1245.1+5709_daily_bin478.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/890002/ltcube_363225601_363484801_4FGL_J1245.1+5709_daily_bin478.fits
.....................!
real 191.06
user 185.19
sys 4.42

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/890002/ft1_filtered_4FGL_J1245.1+5709_daily_bin478.fits scfile=/scratch/kocevski/890002/ft2_4FGL_J1245.1+5709_daily_bin478.fits outfile=/scratch/kocevski/890002/cmap_363225601_363484801_4FGL_J1245.1+5709_daily_bin478.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/890002/ft1_filtered_4FGL_J1245.1+5709_daily_bin478.fits scfile=/scratch/kocevski/890002/ft2_4FGL_J1245.1+5709_daily_bin478.fits outfile=/scratch/kocevski/890002/cmap_HighResolution_363225601_363484801_4FGL_J1245.1+5709_daily_bin478.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10290E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    26.201       1.0000         .10000E-03   10000.    
     3 'norm      '    19.172       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    6.7545       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.3682       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    4.5359       1.0000         .10000E-03   10000.    
    10 'Prefactor '    18.581       1.0000         .10000E-03   10000.    
    11 'Prefactor '    53.481       1.0000         .10000E-03   10000.    
    12 'norm      '    3.6060       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10799E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    5.6156       1.0000         .10000E-03   10000.    
    18 'Prefactor '    29.449       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.3157       1.0000         .10000E-03   10000.    
    21 'Prefactor '    168.49       1.0000         .10000E-03   10000.    
    22 'Prefactor '    14.620       1.0000         .10000E-03   10000.    
    23 'Prefactor '    17.662       1.0000         .10000E-03   10000.    
    24 'norm      '    .10081E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    8.5404       1.0000         .10000E-03   10000.    
    29 'norm      '    103.93       1.0000         .10000E-03   10000.    
    30 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.0137       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .61986       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=   3568.309     FROM MIGRAD    STATUS=CONVERGED    898 CALLS     4558 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.4204        .28104E-07** at limit **
   2  Prefactor     26.203        32.007       -.12457E-05   -.43536E-04
   3  norm          19.172        12.753       -.21396E-06    .20182E-05
   4  Prefactor     .10000E-03    2.5878        .74735E-07** at limit **
   5  norm          6.7559        6.7072        .22436E-05   -.89302E-03
   6  Prefactor     .10000E-03    11.955        .74098E-08** at limit **
   7  Prefactor     4.3677        5.9386       -.47357E-06   -.50872E-04
   8  Prefactor     .10000E-03    7.4156       -.15147E-06** at limit **
   9  norm          4.5364        3.2608       -.18783E-07   -.58457E-04
  10  Prefactor     18.586        26.388       -.61723E-07   -.43094E-04
  11  Prefactor     53.439        69.267       -.67959E-05   -.30302E-03
  12  norm          3.6094        8.6907        .52300E-06    .35847E-05
  13  Prefactor     .10000E-03    28.265        .67091E-07** at limit **
  14  Prefactor     .10000E-03    3.7382       -.12199E-07** at limit **
  15  norm          .10000E-03    1.3030       -.14837E-07** at limit **
  16  Prefactor     .10000E-03    15.120        .24341E-07** at limit **
  17  norm          5.6162        3.6667        .17813E-06   -.25103E-03
  18  Prefactor     29.451        38.941        .11812E-06   -.52548E-05
  19  Prefactor     .10000E-03    6.4317        .18272E-07** at limit **
  20  norm          1.3185        5.8108        .98699E-06   -.11335E-03
  21  Prefactor     168.50        103.06        .91728E-06    .67951E-04
  22  Prefactor     14.612        49.031       -.11413E-05   -.22003E-04
  23  Prefactor     17.663        23.206       -.13685E-06   -.30440E-04
  24  norm          .10000E-03    3.8012       -.31468E-07** at limit **
  25  Prefactor     .10000E-03    87.842        .16715E-06** at limit **
  26  Prefactor     .10000E-03    3.5360        .42174E-07** at limit **
  27  Prefactor     .10000E-03    41.637        .69406E-07** at limit **
  28  Prefactor     8.5417        11.214        .68624E-07    .11475E-04
  29  norm          103.93        115.63       -.34292E-06   -.14303E-04
  30  norm          .10000E-03    3.9481        .38143E-07** at limit **
  31  Prefactor     .10000E-03    380.75        .13526E-05** at limit **
  32  Normalizat    1.0135        .20731       -.21346E-06   -.36207E-04
  33  Prefactor     .62006        .23622       -.24333E-06   -.24753E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 26.2028
  norm       = 19.1716
  Prefactor  = 0.0001
  norm       = 6.75588
  Prefactor  = 0.0001
  Prefactor  = 4.36774
  Prefactor  = 0.0001
  norm       = 4.53643
  Prefactor  = 18.5858
  Prefactor  = 53.4387
  norm       = 3.60944
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 5.61616
  Prefactor  = 29.4509
  Prefactor  = 0.0001
  norm       = 1.3185
  Prefactor  = 168.498
  Prefactor  = 14.6119
  Prefactor  = 17.6632
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.54168
  norm       = 103.927
  norm       = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 1.01351
  Prefactor  = 0.620059
 **********
 **   18 **HESSE 
 **********

 FCN=   3568.309     FROM HESSE     STATUS=OK           691 CALLS     5249 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.7154        .33810E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     26.203        32.106        .78263E-04   -1.4684    
   3  norm          19.172        12.761        .91474E-04   -1.4832    
   4  Prefactor     .10000E-03    2.6351        .93810E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.7559        7.0490        .71671E-03   -1.5188    
   6  Prefactor     .10000E-03    11.980        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.3677        5.9459        .16038E-03   -1.5290    
   8  Prefactor     .10000E-03    7.4167        .15887E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          4.5364        3.2616        .86466E-04   -1.5282    
  10  Prefactor     18.586        26.439        .92916E-04   -1.4845    
  11  Prefactor     53.439        75.306        .54846E-04   -1.4245    
  12  norm          3.6094        8.6646        .21278E-03   -1.5328    
  13  Prefactor     .10000E-03    28.318        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.7522        .11278E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.3123        .66569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    15.134        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          5.6162        3.6764        .44633E-03   -1.5234    
  18  Prefactor     29.451        38.972        .73830E-04   -1.4622    
  19  Prefactor     .10000E-03    6.4469        .14795E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.3185        5.7157        .26911E-03   -1.5478    
  21  Prefactor     168.50        103.21        .15539E-03   -1.3104    
  22  Prefactor     14.612        48.785        .10475E-03   -1.4943    
  23  Prefactor     17.663        23.164        .95301E-04   -1.4867    
  24  norm          .10000E-03    3.8121        .11333E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    88.131        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    3.5740        .10958E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    41.688        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     8.5417        11.202        .13717E-03   -1.5123    
  29  norm          103.93        115.66        .39442E-04   -1.3666    
  30  norm          .10000E-03    4.0355        .11588E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    380.96        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.0135        .25086        .20828E-03   -.92579    
  33  Prefactor     .62006        .28047        .30709E-03   -1.0675    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.48047e-09
Minuit parameter uncertainties:
  1  1.06348e-06
  2  32.1269
  3  12.7624
  4  1.13035e-06
  5  7.04984
  6  5.57444e-06
  7  5.94675
  8  5.66219e-06
  9  3.26176
  10  26.4559
  11  75.4408
  12  8.66761
  13  2.49505e-05
  14  1.24132e-06
  15  1.04224e-06
  16  1.46463e-06
  17  3.67655
  18  39.0055
  19  1.70598e-06
  20  5.49107
  21  103.325
  22  48.919
  23  23.1762
  24  2.08688e-06
  25  3.25514e-05
  26  3.2717e-06
  27  1.05138e-06
  28  11.2043
  29  115.916
  30  8.82295e-07
  31  0.00133939
  32  0.251155
  33  0.281107
Done.

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

Extracting fit parameters...

4FGL J1245.1+5709
   Spectrum: PowerLaw
355    Prefactor:  1.000e-04  1.241e-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:  6.201e-01  2.811e-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.014e+00  2.512e-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: 7.17e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.43e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/890002/likelihoodResults_363225601_363484801_4FGL_J1245.1+5709_daily_bin478.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) = 3568.31074087
delta logL = -0.00126464482855

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3568.30947619
delta logL = 3.98390511691e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1175       1.0000          .0000       10.000    
     3 'Normalizat'    1.0135       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .62006       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=   3568.309     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      201 TOTAL
                     EDM=   .86E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    61.748        .90712E-02** at limit **
   2  Index         2.1072        8.9442        .50000        .22283E-04
   3  Normalizat    1.0135        .19744E-01    .44556E-01    .34399E-05
   4  Prefactor     .62006        .23361E-01    .69384E-01    .16132E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.10723
  Normalizat = 1.01351
  Prefactor  = 0.620059
 **********
 **   18 **HESSE 
 **********

 FCN=   3568.309     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      234 TOTAL
                     EDM=   .10E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    808.20        .11329E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1072        5.7927        .50000       -.61695    
   3  Normalizat    1.0135        .13148        .20828E-03   -.92579    
   4  Prefactor     .62006        .15518        .30709E-03   -1.0675    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.03389e-07
Minuit parameter uncertainties:
  1  6.70804e-05
  2  60.4656
  3  0.131519
  4  0.155292
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/890002': 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) = 3568.30947611
delta logL = 1.17041963676e-07

Extracting fit parameters...

4FGL J1245.1+5709
   Spectrum: PowerLaw
355    Prefactor:  1.000e-04  6.708e-05  1.000e-04  1.000e+04 ( 1.000e-13)
356        Index:  2.107e+00  6.047e+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:  6.201e-01  1.553e-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.014e+00  1.315e-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/890002/cmap_HighResolution_363225601_363484801_4FGL_J1245.1+5709_daily_bin478.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.43e-03', job_status='DONE', photon_flux_upper_limit='7.17e-08', time_completed='2021-09-06 04:22:44.952228', job_id='890002', GAL2='0.62', fit_tolerance='1e-08', EG2='1.01', EG='1.01', time_epoch_completed='1630927364.95', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.62', dlogl='1.17e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='478' AND source_name='4FGL J1245.1+5709' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 04:22:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0197>
Subject: Job 890002: <4FGL_J1245.1+5709_daily_bin478> in cluster <slac> Done

Job <4FGL_J1245.1+5709_daily_bin478> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 04:06:30 2021
Job was executed on host(s) <bullet0197>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 04:06:31 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:06:31 2021
Terminated at Mon Sep  6 04:22:45 2021
Results reported at Mon Sep  6 04:22:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1245.1+5709_daily_bin478 191.288 57.158 363225601 363484801 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 :                                   761.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             274.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   974 sec.
    Turnaround time :                            975 sec.

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

