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


Performing analysis on: 4FGL_J1245.1+5709_daily_bin756
RA = 191.288, Dec = 57.158
tmin = 435283201, tmax = 435542401
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='891479', job_status='RUN', time_executed='2021-09-06 04:11:16.923498', time_epoch_executed='1630926676.92' WHERE source_name='4FGL J1245.1+5709' and cadence='daily' and bin_id='756'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/891479

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/891479/ft1_4FGL_J1245.1+5709_daily_bin756.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/891479/ft2_4FGL_J1245.1+5709_daily_bin756.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/891479/ft1_4FGL_J1245.1+5709_daily_bin756.fits outfile=/scratch/kocevski/891479/ft1_filteredMKT_4FGL_J1245.1+5709_daily_bin756.fits ra=191.288 dec=57.158 rad=12.0 tmin=435283201.0 tmax=435542401.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.18
user 4.91
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/891479/ft1_filtered_4FGL_J1245.1+5709_daily_bin756.fits evtable="EVENTS" scfile=/scratch/kocevski/891479/ft2_4FGL_J1245.1+5709_daily_bin756.fits sctable="SC_DATA" expcube=/scratch/kocevski/891479/ltcube_435283201_435542401_4FGL_J1245.1+5709_daily_bin756.fits outfile=/scratch/kocevski/891479/expmap_435283201_435542401_4FGL_J1245.1+5709_daily_bin756.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/891479/ltcube_435283201_435542401_4FGL_J1245.1+5709_daily_bin756.fits
.....................!
real 189.73
user 185.14
sys 4.21

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

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

This is gtbin version HEAD
real 0.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/891479/ft1_filtered_4FGL_J1245.1+5709_daily_bin756.fits scfile=/scratch/kocevski/891479/ft2_4FGL_J1245.1+5709_daily_bin756.fits outfile=/scratch/kocevski/891479/cmap_HighResolution_435283201_435542401_4FGL_J1245.1+5709_daily_bin756.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/891479/ft1_filtered_4FGL_J1245.1+5709_daily_bin756.fits evtable="EVENTS" scfile=/scratch/kocevski/891479/ft2_4FGL_J1245.1+5709_daily_bin756.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/891479/Model_4FGL_J1245.1+5709_daily_bin756.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/891479/ft1_filtered_4FGL_J1245.1+5709_daily_bin756.fits.....................!
real 43.13
user 41.68
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .63120E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.0364       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .13896E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    21.427       1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.5479       1.0000         .10000E-03   10000.    
     8 'Prefactor '    19.582       1.0000         .10000E-03   10000.    
     9 'norm      '    1.3452       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10438E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    6.1745       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.9969       1.0000         .10000E-03   10000.    
    18 'Prefactor '    16.979       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    10.069       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    47.430       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    78.504       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .85012       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.1234       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=   4392.270     FROM MIGRAD    STATUS=CONVERGED    938 CALLS     4655 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .31530E-03    6.9098        .98802E-06** at limit **
   2  Prefactor     .10000E-03    30.346       -.15304E-06** at limit **
   3  norm          1.0392        26.334        .22359E-05    .25796E-05
   4  Prefactor     .10000E-03    3.1417        .14532E-05** at limit **
   5  norm          .10000E-03    2.2064       -.38194E-07** at limit **
   6  Prefactor     21.362        23.506       -.30076E-05   -.16402E-03
   7  Prefactor     9.5480        9.1129        .50374E-08    .17045E-04
   8  Prefactor     19.586        33.292       -.67658E-06    .32133E-04
   9  norm          1.3450        1.8568       -.19033E-07   -.26139E-04
  10  Prefactor     .10000E-03    15.235       -.19697E-06** at limit **
  11  Prefactor     .10000E-03    360.81       -.27944E-05** at limit **
  12  norm          .10000E-03    9.9809       -.34405E-06** at limit **
  13  Prefactor     .10000E-03    9.5264        .79804E-07** at limit **
  14  Prefactor     .10000E-03    2.1715       -.87830E-08** at limit **
  15  norm          6.1739        2.9439        .19821E-07   -.70801E-05
  16  Prefactor     .10000E-03    8.3296       -.28723E-07** at limit **
  17  norm          1.9965        2.3731        .41250E-07   -.44339E-06
  18  Prefactor     16.956        72.185        .14321E-05    .24303E-05
  19  Prefactor     .10000E-03    2.8359        .38254E-07** at limit **
  20  norm          10.066        5.8343        .10891E-06   -.65606E-05
  21  Prefactor     .10000E-03    20.489        .92595E-07** at limit **
  22  Prefactor     .10000E-03    27.018        .16259E-06** at limit **
  23  Prefactor     .10000E-03    13.146        .33306E-06** at limit **
  24  norm          .10000E-03    2.5627        .15743E-07** at limit **
  25  Prefactor     47.403        58.566        .67709E-06   -.81504E-05
  26  Prefactor     .10000E-03    2.7930        .11439E-07** at limit **
  27  Prefactor     78.468        57.881        .71407E-06   -.10525E-04
  28  Prefactor     .10000E-03    4.7883       -.19156E-07** at limit **
  29  norm          .10000E-03    28.512       -.60931E-07** at limit **
  30  norm          .10000E-03    2.1067        .21252E-06** at limit **
  31  Prefactor     .10000E-03    626.01        .76885E-05** at limit **
  32  Normalizat    .85075        .19953       -.10391E-05   -.10905E-03
  33  Prefactor     1.1229        .23914        .25355E-06   -.16645E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0003153
  Prefactor  = 0.0001
  norm       = 1.03921
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 21.362
  Prefactor  = 9.54804
  Prefactor  = 19.5859
  norm       = 1.34497
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.17389
  Prefactor  = 0.0001
  norm       = 1.99655
  Prefactor  = 16.9563
  Prefactor  = 0.0001
  norm       = 10.0663
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 47.4031
  Prefactor  = 0.0001
  Prefactor  = 78.4679
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 0.85075
  Prefactor  = 1.12294
 **********
 **   18 **HESSE 
 **********

 FCN=   4392.270     FROM HESSE     STATUS=OK           693 CALLS     5348 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .31530E-03    6.9332        .50417E-01   -1.5711    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    30.462        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.0392        26.480        .24728E-02   -1.5504    
   4  Prefactor     .10000E-03    5.3152        .21626E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    2.2124        .96075E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     21.362        24.787        .86530E-04   -1.4783    
   7  Prefactor     9.5480        9.1051        .12969E-03   -1.5090    
   8  Prefactor     19.586        33.185        .90510E-04   -1.4823    
   9  norm          1.3450        1.8287        .10215E-03   -1.5476    
  10  Prefactor     .10000E-03    15.273        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    363.51        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    10.161        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    9.5400        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.1750        .95364E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          6.1739        2.9449        .76157E-04   -1.5211    
  16  Prefactor     .10000E-03    8.3349        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.9965        2.3580        .10758E-03   -1.5425    
  18  Prefactor     16.956        72.647        .97199E-04   -1.4884    
  19  Prefactor     .10000E-03    2.8377        .10900E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          10.066        5.8389        .11743E-03   -1.5073    
  21  Prefactor     .10000E-03    20.491        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    27.040        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    13.201        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    2.5934        .10357E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     47.403        58.604        .58222E-04   -1.4330    
  26  Prefactor     .10000E-03    2.8367        .10812E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     78.468        58.006        .45325E-04   -1.3934    
  28  Prefactor     .10000E-03    4.8043        .14163E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    28.513        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          .10000E-03    2.1189        .93818E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    627.82        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .85075        .23921        .23791E-03   -.98213    
  33  Prefactor     1.1229        .28702        .26129E-03   -.88737    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.90642e-10
Minuit parameter uncertainties:
  1  0.0772804
  2  4.20028e-05
  3  10.4962
  4  7.56769e-05
  5  4.12988e-06
  6  24.799
  7  9.10645
  8  33.2161
  9  1.82878
  10  1.62236e-05
  11  0.000747682
  12  4.31226e-05
  13  1.19916e-05
  14  1.46405e-06
  15  2.94493
  16  4.02728e-06
  17  2.35814
  18  70.3398
  19  5.36444e-07
  20  5.83926
  21  4.45767e-06
  22  1.96995e-05
  23  8.50469e-06
  24  7.88871e-07
  25  58.675
  26  3.21394e-06
  27  58.0483
  28  2.96767e-06
  29  3.22778e-06
  30  5.98848e-06
  31  0.00148485
  32  0.239512
  33  0.287422
Done.

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

Extracting fit parameters...

4FGL J1245.1+5709
   Spectrum: PowerLaw
355    Prefactor:  1.000e-04  1.464e-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:  1.123e+00  2.874e-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.507e-01  2.395e-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: 4.97e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.76e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/891479/likelihoodResults_435283201_435542401_4FGL_J1245.1+5709_daily_bin756.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) = 4392.27172606
delta logL = -0.00212301322608

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4392.26960251
delta logL = 5.37253981747e-07

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 'Index     '    2.1041       1.0000          .0000       10.000    
     3 'Normalizat'    .85075       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1230       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=   4392.270     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      242 TOTAL
                     EDM=   .77E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10254E-03    1.9361        .97680E-02** at limit **
   2  Index         2.0186        5.9931        .50000        .74480E-04
   3  Normalizat    .85075        .40846E-02    .23790E-03   -.28481E-04
   4  Prefactor     1.1229        .51057E-02    .26129E-03   -.13749E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102545
  Index      = 2.0186
  Normalizat = 0.850748
  Prefactor  = 1.12294
 **********
 **   18 **HESSE 
 **********

 FCN=   4392.270     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      271 TOTAL
                     EDM=   .17E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10254E-03    43.392        .10044E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0186        5.8060        .50000       -.63886    
   3  Normalizat    .85075        .19688E-01    .95161E-05   -.98213    
   4  Prefactor     1.1229        .24609E-01    .10452E-04   -.88737    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.71925e-07
Minuit parameter uncertainties:
  1  0.0210309
  2  254.31
  3  0.0196884
  4  0.0246092
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/891479': 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) = 4392.26960132
delta logL = 1.73105399881e-06

Extracting fit parameters...

4FGL J1245.1+5709
   Spectrum: PowerLaw
355    Prefactor:  1.025e-04  2.103e-02  1.000e-04  1.000e+04 ( 1.000e-13)
356        Index:  2.019e+00  2.543e+02  0.000e+00  1.000e+01 (-1.000e+00)
357        Scale:  1.843e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
689    Prefactor:  1.123e+00  2.461e-02  0.000e+00  1.000e+01 ( 1.000e+00)
690        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
691        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
688   Normalization:  8.507e-01  1.969e-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/891479/cmap_HighResolution_435283201_435542401_4FGL_J1245.1+5709_daily_bin756.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.76e-03', job_status='DONE', photon_flux_upper_limit='4.97e-08', time_completed='2021-09-06 04:26:15.392177', job_id='891479', GAL2='1.12', fit_tolerance='1e-08', EG2='0.85', EG='0.85', time_epoch_completed='1630927575.39', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='1.73e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='756' AND source_name='4FGL J1245.1+5709' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 04:26:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0120>
Subject: Job 891479: <4FGL_J1245.1+5709_daily_bin756> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1245.1+5709_daily_bin756 191.288 57.158 435283201 435542401 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 :                                   891.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             328.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   919 sec.
    Turnaround time :                            921 sec.

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

