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


Performing analysis on: 4FGL_J1245.1+5709_daily_bin677
RA = 191.288, Dec = 57.158
tmin = 414806401, tmax = 415065601
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='891347', job_status='RUN', time_executed='2021-09-06 04:14:31.586709', time_epoch_executed='1630926871.59' WHERE source_name='4FGL J1245.1+5709' and cadence='daily' and bin_id='677'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/891347

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/891347/ft1_4FGL_J1245.1+5709_daily_bin677.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/891347/ft2_4FGL_J1245.1+5709_daily_bin677.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/891347/ft1_4FGL_J1245.1+5709_daily_bin677.fits outfile=/scratch/kocevski/891347/ft1_filteredMKT_4FGL_J1245.1+5709_daily_bin677.fits ra=191.288 dec=57.158 rad=12.0 tmin=414806401.0 tmax=415065601.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.92
user 5.66
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/891347/ft2_4FGL_J1245.1+5709_daily_bin677.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/891347/ft1_filteredMKT_4FGL_J1245.1+5709_daily_bin677.fits evtable="EVENTS" outfile="/scratch/kocevski/891347/ft1_filtered_4FGL_J1245.1+5709_daily_bin677.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/891347/ft1_filtered_4FGL_J1245.1+5709_daily_bin677.fits" evtable="EVENTS" scfile=/scratch/kocevski/891347/ft2_4FGL_J1245.1+5709_daily_bin677.fits sctable="SC_DATA" outfile=/scratch/kocevski/891347/ltcube_414806401_415065601_4FGL_J1245.1+5709_daily_bin677.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/891347/ft2_4FGL_J1245.1+5709_daily_bin677.fits
.....................!
real 12.53
user 12.13
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/891347/ft1_filtered_4FGL_J1245.1+5709_daily_bin677.fits evtable="EVENTS" scfile=/scratch/kocevski/891347/ft2_4FGL_J1245.1+5709_daily_bin677.fits sctable="SC_DATA" expcube=/scratch/kocevski/891347/ltcube_414806401_415065601_4FGL_J1245.1+5709_daily_bin677.fits outfile=/scratch/kocevski/891347/expmap_414806401_415065601_4FGL_J1245.1+5709_daily_bin677.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/891347/ltcube_414806401_415065601_4FGL_J1245.1+5709_daily_bin677.fits
.....................!
real 190.39
user 185.61
sys 4.38

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/891347/ft1_filtered_4FGL_J1245.1+5709_daily_bin677.fits scfile=/scratch/kocevski/891347/ft2_4FGL_J1245.1+5709_daily_bin677.fits outfile=/scratch/kocevski/891347/cmap_414806401_415065601_4FGL_J1245.1+5709_daily_bin677.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=191.288 yref=57.158 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.13

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.482       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.1822       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    22.136       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.0569       1.0000         .10000E-03   10000.    
    15 'norm      '    3.6295       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10239E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.3152       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .20100E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .25317       1.0000         .10000E-03   10000.    
    21 'Prefactor '    28.485       1.0000         .10000E-03   10000.    
    22 'Prefactor '    43.407       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .14564E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .63216E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    27.343       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .16152E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10278E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    1.5449       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10586E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .79386       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.2377       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=   4054.174     FROM MIGRAD    STATUS=CONVERGED    939 CALLS     4670 TOTAL
                     EDM=   .66E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.4693       -.58505E-07** at limit **
   2  Prefactor     13.483        25.622       -.15332E-06    .11234E-04
   3  norm          .10000E-03    6.5323       -.14144E-07** at limit **
   4  Prefactor     .10000E-03    1.9512       -.98357E-07** at limit **
   5  norm          4.1799        4.8592       -.35827E-06    .51751E-04
   6  Prefactor     .10000E-03    45.137       -.35435E-05** at limit **
   7  Prefactor     .10000E-03    8.4875        .15574E-06** at limit **
   8  Prefactor     .10000E-03    20.147       -.34189E-06** at limit **
   9  norm          .10000E-03    .89866       -.66104E-07** at limit **
  10  Prefactor     22.134        23.705       -.44071E-06    .13273E-04
  11  Prefactor     .10000E-03    38.249       -.30010E-06** at limit **
  12  norm          .10000E-03    3.3020       -.82038E-07** at limit **
  13  Prefactor     .10000E-03    14.680       -.14257E-05** at limit **
  14  Prefactor     8.0587        6.6495       -.18246E-06    .27800E-04
  15  norm          3.6301        2.4639        .26702E-07    .58770E-04
  16  Prefactor     .10000E-03    70.785        .79315E-06** at limit **
  17  norm          3.3152        2.4022       -.73511E-08    .17004E-04
  18  Prefactor     .10000E-03    70.248       -.14356E-05** at limit **
  19  Prefactor     .10000E-03    12.586       -.23380E-05** at limit **
  20  norm          .24451        6.0570       -.17789E-05    .64473E-04
  21  Prefactor     28.457        55.236       -.32788E-05   -.14535E-04
  22  Prefactor     43.362        64.061       -.46401E-06   -.12251E-04
  23  Prefactor     .10000E-03    97.407       -.68326E-05** at limit **
  24  norm          .10000E-03    16.285       -.36377E-05** at limit **
  25  Prefactor     27.245        67.863        .74347E-06    .20780E-04
  26  Prefactor     .10000E-03    4.2373       -.15203E-06** at limit **
  27  Prefactor     .10000E-03    46.166       -.23078E-05** at limit **
  28  Prefactor     .10000E-03    10.513       -.12142E-06** at limit **
  29  norm          .10000E-03    75.304        .47576E-05** at limit **
  30  norm          1.5386        9.3804       -.35286E-05    .97483E-04
  31  Prefactor     .10001E-03    980.08        .20511E-04** at limit **
  32  Normalizat    .79396        .19411        .31280E-06    .16932E-03
  33  Prefactor     1.2376        .23726        .10092E-05    .10524E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 13.4829
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.17989
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 22.1338
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.05872
  norm       = 3.63008
  Prefactor  = 0.0001
  norm       = 3.31525
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.244511
  Prefactor  = 28.4574
  Prefactor  = 43.3618
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 27.245
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.53859
  Prefactor  = 0.000100006
  Normalizat = 0.793956
  Prefactor  = 1.23763
 **********
 **   18 **HESSE 
 **********

 FCN=   4054.174     FROM HESSE     STATUS=OK           693 CALLS     5363 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.4994        .11577E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     13.483        25.618        .10909E-03   -1.4973    
   3  norm          .10000E-03    6.5497        .15893E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.0400        .17368E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.1799        4.8361        .14157E-03   -1.5299    
   6  Prefactor     .10000E-03    46.522        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.6061        .18052E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    20.303        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    .92394        .11784E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     22.134        23.753        .85134E-04   -1.4767    
  11  Prefactor     .10000E-03    38.285        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    3.3118        .11300E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    14.774        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.0587        6.6162        .14073E-03   -1.5140    
  15  norm          3.6301        2.4548        .78212E-04   -1.5327    
  16  Prefactor     .10000E-03    72.598        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.3152        2.4039        .81617E-04   -1.5344    
  18  Prefactor     .10000E-03    70.611        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    41.734        .36503E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .24451        16.918        .22953E-02   -1.5609    
  21  Prefactor     28.457        55.450        .75065E-04   -1.4641    
  22  Prefactor     43.362        63.423        .60849E-04   -1.4390    
  23  Prefactor     .10000E-03    99.787        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    20.756        .26612E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     27.245        67.692        .76614E-04   -1.4664    
  26  Prefactor     .10000E-03    9.1410        .25167E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    46.360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    10.663        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    75.896        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          1.5386        9.6873        .34287E-03   -1.5460    
  31  Prefactor     .10001E-03    990.33        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .79396        .22946        .23620E-03   -1.0029    
  33  Prefactor     1.2376        .28309        .24805E-03   -.85181    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.54981e-10
Minuit parameter uncertainties:
  1  4.21146e-06
  2  25.6392
  3  1.73855e-06
  4  2.27003e-06
  5  4.83652
  6  0.000124957
  7  1.19559e-05
  8  1.56091e-05
  9  1.8253e-06
  10  23.7631
  11  1.51652e-05
  12  2.83007e-06
  13  4.66907e-05
  14  6.61681
  15  2.45491
  16  0.000102981
  17  2.40401
  18  0.000117478
  19  0.000320528
  20  4.06817
  21  55.5506
  22  63.5224
  23  0.000185537
  24  8.87596e-05
  25  67.8833
  26  9.00312e-05
  27  8.49904e-05
  28  1.81467e-06
  29  0.000310947
  30  7.72294
  31  0.00487866
  32  0.229737
  33  0.283436
Done.

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

Extracting fit parameters...

4FGL J1245.1+5709
   Spectrum: PowerLaw
355    Prefactor:  8.059e+00  6.617e+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

GAL_V02
   Spectrum: PowerLaw
689    Prefactor:  1.238e+00  2.834e-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:  7.940e-01  2.297e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.57
Ra Dec: 191.288 57.158
Photon Index (Fixed Index): 2.13 +/- 0.00
Photon Flux (Fixed Index): 3.52e-08 +/- 2.89e-08
Energy Flux (Fixed Index): 1.82e-05 +/- 1.50e-05

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): 0
logL (Free Index) = 4053.93028235
delta logL = 0.243711399588

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4053.87168854
delta logL = 0.302305212873

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.011       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6852       1.0000          .0000       10.000    
     3 'Normalizat'    .80894       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2281       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=   4053.872     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      262 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.011        9.4817        .12074E-03    .50229E-03
   2  Index         1.6851        .54939        .72000E-02    .10701E-03
   3  Normalizat    .80899        .21916        .23422E-03   -.53659E-04
   4  Prefactor     1.2279        .28147        .24894E-03   -.53637E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.0106
  Index      = 1.68514
  Normalizat = 0.808989
  Prefactor  = 1.22793
 **********
 **   18 **HESSE 
 **********

 FCN=   4053.872     FROM HESSE     STATUS=OK            23 CALLS      285 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.011        9.4564        .24147E-04   -1.5044    
   2  Index         1.6851        .54788        .28800E-03   -.72478    
   3  Normalizat    .80899        .21937        .93689E-05   -.99736    
   4  Prefactor     1.2279        .28176        .99578E-05   -.85476    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.20856e-10
Minuit parameter uncertainties:
  1  9.45771
  2  0.549856
  3  0.219612
  4  0.282108
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/891347': 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): 0
logL (Free Index) = 4053.87168832
delta logL = 0.302305424655

Extracting fit parameters...

4FGL J1245.1+5709
   Spectrum: PowerLaw
355    Prefactor:  1.101e+01  9.458e+00  1.000e-04  1.000e+04 ( 1.000e-13)
356        Index:  1.685e+00  5.499e-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.228e+00  2.821e-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.090e-01  2.196e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.19
Ra Dec: 191.288 57.158
Photon Index (Free Index): 1.69 +/- 0.55
Photon Flux (Free Index): 2.16e-08 +/- 2.48e-08
Energy Flux (Free Index): 3.70e-05 +/- 4.89e-05

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/891347/cmap_HighResolution_414806401_415065601_4FGL_J1245.1+5709_daily_bin677.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.52e-08', energy_flux2='3.70e-05', photon_flux_error='2.89e-08', dlogl='3.02e-01', energy_flux='1.82e-05', photon_flux2='2.16e-08', job_status='DONE', time_completed='2021-09-06 04:26:50.704185', photon_index_error2='0.55', photon_index2='1.69', ts='6.57', fit_tolerance='1e-08', GAL='1.24', photon_index_error='0.00', energy_flux_error2='4.89e-05', EG='0.79', time_epoch_completed='1630927610.7', return_code='0', job_id='891347', GAL2='1.23', EG2='0.81', return_code2='0', energy_flux_error='1.50e-05', photon_flux_error2='2.48e-08', ts2='7.19', photon_index='2.13' WHERE bin_id='677' AND source_name='4FGL J1245.1+5709' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 04:26:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0295>
Subject: Job 891347: <4FGL_J1245.1+5709_daily_bin677> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1245.1+5709_daily_bin677 191.288 57.158 414806401 415065601 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 :                                   734.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             240.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   965 sec.
    Turnaround time :                            966 sec.

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

