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


Performing analysis on: 4FGL_J1245.1+5709_daily_bin692
RA = 191.288, Dec = 57.158
tmin = 418694401, tmax = 418953601
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='891372', job_status='RUN', time_executed='2021-09-06 04:11:09.377020', time_epoch_executed='1630926669.38' WHERE source_name='4FGL J1245.1+5709' and cadence='daily' and bin_id='692'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/891372

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/891372/ft1_4FGL_J1245.1+5709_daily_bin692.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/891372/ft2_4FGL_J1245.1+5709_daily_bin692.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/891372/ft1_4FGL_J1245.1+5709_daily_bin692.fits outfile=/scratch/kocevski/891372/ft1_filteredMKT_4FGL_J1245.1+5709_daily_bin692.fits ra=191.288 dec=57.158 rad=12.0 tmin=418694401.0 tmax=418953601.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 4.48
user 4.09
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/891372/ft1_filtered_4FGL_J1245.1+5709_daily_bin692.fits" evtable="EVENTS" scfile=/scratch/kocevski/891372/ft2_4FGL_J1245.1+5709_daily_bin692.fits sctable="SC_DATA" outfile=/scratch/kocevski/891372/ltcube_418694401_418953601_4FGL_J1245.1+5709_daily_bin692.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/891372/ft2_4FGL_J1245.1+5709_daily_bin692.fits
.....................!
real 14.15
user 13.78
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/891372/ft1_filtered_4FGL_J1245.1+5709_daily_bin692.fits evtable="EVENTS" scfile=/scratch/kocevski/891372/ft2_4FGL_J1245.1+5709_daily_bin692.fits sctable="SC_DATA" expcube=/scratch/kocevski/891372/ltcube_418694401_418953601_4FGL_J1245.1+5709_daily_bin692.fits outfile=/scratch/kocevski/891372/expmap_418694401_418953601_4FGL_J1245.1+5709_daily_bin692.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/891372/ltcube_418694401_418953601_4FGL_J1245.1+5709_daily_bin692.fits
.....................!
real 167.28
user 162.22
sys 4.61

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/891372/ft1_filtered_4FGL_J1245.1+5709_daily_bin692.fits scfile=/scratch/kocevski/891372/ft2_4FGL_J1245.1+5709_daily_bin692.fits outfile=/scratch/kocevski/891372/cmap_418694401_418953601_4FGL_J1245.1+5709_daily_bin692.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.48
user 0.33
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/891372/ft1_filtered_4FGL_J1245.1+5709_daily_bin692.fits scfile=/scratch/kocevski/891372/ft2_4FGL_J1245.1+5709_daily_bin692.fits outfile=/scratch/kocevski/891372/cmap_HighResolution_418694401_418953601_4FGL_J1245.1+5709_daily_bin692.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.46
user 0.32
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.0622       1.0000         .10000E-03   10000.    
     2 'Prefactor '    29.840       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12849E-02   1.0000         .10000E-03   10000.    
     5 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.342       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.3291       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .52882       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    34.009       1.0000         .10000E-03   10000.    
    12 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11181       1.0000         .10000E-03   10000.    
    15 'norm      '    4.9024       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    19.350       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.1560       1.0000         .10000E-03   10000.    
    24 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    45.588       1.0000         .10000E-03   10000.    
    26 'Prefactor '    7.9202       1.0000         .10000E-03   10000.    
    27 'Prefactor '    34.746       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .12311E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.4400       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .42635       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=   5615.665     FROM MIGRAD    STATUS=CONVERGED    924 CALLS     4640 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.0624        3.8774        .16447E-06   -.61697E-04
   2  Prefactor     29.842        31.399       -.52204E-06   -.27707E-04
   3  norm          .10000E-03    4.3152        .20090E-07** at limit **
   4  Prefactor     .10000E-03    1.5965        .23830E-06** at limit **
   5  norm          .10000E-03    2.3900        .83864E-08** at limit **
   6  Prefactor     12.397        18.943       -.16107E-05   -.27302E-03
   7  Prefactor     4.3301        4.8345       -.49301E-07   -.16638E-04
   8  Prefactor     .10000E-03    6.1792        .66718E-07** at limit **
   9  norm          .52862        1.4387        .38206E-06   -.18808E-03
  10  Prefactor     .10000E-03    19.491       -.71323E-07** at limit **
  11  Prefactor     34.011        37.960       -.20499E-06   -.67524E-05
  12  norm          .10000E-03    2.6202       -.13258E-07** at limit **
  13  Prefactor     .10000E-03    5.9217       -.10122E-06** at limit **
  14  Prefactor     .95228E-01    3.1845        .81555E-07   -.83767E-04
  15  norm          4.9047        2.3195       -.87717E-07    .63089E-04
  16  Prefactor     .10000E-03    5.5739        .51908E-07** at limit **
  17  norm          .10000E-03    1.5017        .12425E-06** at limit **
  18  Prefactor     .10000E-03    52.876       -.37824E-05** at limit **
  19  Prefactor     .10000E-03    2.3783        .83724E-08** at limit **
  20  norm          .10000E-03    .97566        .10496E-07** at limit **
  21  Prefactor     19.338        70.143       -.45492E-05   -.15788E-04
  22  Prefactor     .10000E-03    10.625        .17538E-07** at limit **
  23  Prefactor     3.1532        8.9619        .22838E-06   -.26565E-04
  24  norm          .10000E-03    1.9780        .40556E-08** at limit **
  25  Prefactor     45.591        45.285        .10428E-05    .27845E-04
  26  Prefactor     7.9177        4.8891        .11331E-05   -.56701E-03
  27  Prefactor     34.707        45.367       -.15175E-05   -.30383E-04
  28  Prefactor     .10000E-03    4.3636       -.25704E-06** at limit **
  29  norm          .10000E-03    44.298        .20477E-05** at limit **
  30  norm          .10000E-03    1.4998        .68465E-08** at limit **
  31  Prefactor     .10000E-03    339.72       -.21265E-05** at limit **
  32  Normalizat    1.4399        .18075        .15554E-06   -.15431E-03
  33  Prefactor     .42658        .20951       -.44243E-06   -.58214E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.06244
  Prefactor  = 29.8423
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 12.3975
  Prefactor  = 4.33011
  Prefactor  = 0.0001
  norm       = 0.528617
  Prefactor  = 0.0001
  Prefactor  = 34.0111
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0952277
  norm       = 4.90473
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 19.3385
  Prefactor  = 0.0001
  Prefactor  = 3.15324
  norm       = 0.0001
  Prefactor  = 45.591
  Prefactor  = 7.91773
  Prefactor  = 34.7073
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.43988
  Prefactor  = 0.426579
 **********
 **   18 **HESSE 
 **********

 FCN=   5615.665     FROM HESSE     STATUS=OK           691 CALLS     5331 TOTAL
                     EDM=   .54E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.0624        3.8464        .19462E-03   -1.5421    
   2  Prefactor     29.842        31.493        .73345E-04   -1.4615    
   3  norm          .10000E-03    4.3237        .15203E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    21.594        .17379E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    2.4125        .11300E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     12.397        19.570        .11402E-03   -1.5004    
   7  Prefactor     4.3301        4.8325        .16862E-03   -1.5292    
   8  Prefactor     .10000E-03    6.1817        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .52862        1.4390        .14056E-03   -1.5563    
  10  Prefactor     .10000E-03    19.638        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     34.011        37.976        .68715E-04   -1.4541    
  12  norm          .10000E-03    2.6322        .11845E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.9258        .17810E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .95228E-01    19.000        .25406E-02   -1.5646    
  15  norm          4.9047        2.3457        .37230E-03   -1.5265    
  16  Prefactor     .10000E-03    5.5791        .17279E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.6082        .17724E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    53.753        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.3812        .11286E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .97829        .72286E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     19.338        69.995        .91050E-04   -1.4828    
  22  Prefactor     .10000E-03    10.631        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     3.1532        8.9340        .22816E-03   -1.5353    
  24  norm          .10000E-03    1.9921        .10271E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     45.591        45.383        .59382E-04   -1.4357    
  26  Prefactor     7.9177        5.1108        .64204E-03   -1.5145    
  27  Prefactor     34.707        45.495        .67985E-04   -1.4529    
  28  Prefactor     .10000E-03    4.3905        .15311E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    44.465        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          .10000E-03    1.5071        .89606E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    339.94        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.4399        .19311        .18570E-03   -.79482    
  33  Prefactor     .42658        .22122        .38655E-03   -1.1547    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.44859e-08
Minuit parameter uncertainties:
  1  3.84687
  2  31.51
  3  5.94101e-07
  4  0.000127358
  5  7.74814e-07
  6  19.5799
  7  4.8329
  8  2.06227e-06
  9  1.43911
  10  1.55839e-05
  11  38.003
  12  3.17007e-07
  13  3.14107e-06
  14  2.68968
  15  2.34576
  16  4.81907e-07
  17  1.9842e-05
  18  0.000377356
  19  1.08142e-07
  20  2.12143e-07
  21  70.2943
  22  1.12783e-06
  23  8.93775
  24  1.87369e-06
  25  45.4173
  26  5.11112
  27  45.5403
  28  2.13743e-05
  29  0.000186388
  30  4.85529e-07
  31  0.000550368
  32  0.193204
  33  0.221667
Done.

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

Extracting fit parameters...

4FGL J1245.1+5709
   Spectrum: PowerLaw
355    Prefactor:  9.523e-02  2.690e+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:  4.266e-01  2.217e-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.440e+00  1.932e-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.45e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.37e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/891372/likelihoodResults_418694401_418953601_4FGL_J1245.1+5709_daily_bin692.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): 0
logL (Free Index) = 5615.66478619
delta logL = 0.000659613190692

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5615.66466055
delta logL = 0.000785250953413

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .95234E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2946       1.0000          .0000       10.000    
     3 'Normalizat'    1.4398       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .42650       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=   5615.665     FROM MIGRAD    STATUS=CONVERGED     72 CALLS      247 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11013        4.0709        .35793E-01    .92846E-03
   2  Index         2.3087        .83287        .50000        .40909E-05
   3  Normalizat    1.4397        .52219E-02    .30680E-01   -.37041E-04
   4  Prefactor     .42664        .62781E-02    .87232E-01    .23006E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.110126
  Index      = 2.30874
  Normalizat = 1.43967
  Prefactor  = 0.426636
 **********
 **   18 **HESSE 
 **********

 FCN=   5615.665     FROM HESSE     STATUS=OK            35 CALLS      282 TOTAL
                     EDM=   .16E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11013        29.266        .22478E-02   -1.5642    
   2  Index         2.3087        5.6062        .11082E-01   -.56836    
   3  Normalizat    1.4397        .18391        .18571E-03   -.79488    
   4  Prefactor     .42664        .21972        .38652E-03   -1.1547    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.62362e-07
Minuit parameter uncertainties:
  1  3.59067
  2  7.06848
  3  0.18399
  4  0.220157
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/891372': 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) = 5615.66462165
delta logL = 0.000824151516099

Extracting fit parameters...

4FGL J1245.1+5709
   Spectrum: PowerLaw
355    Prefactor:  1.101e-01  3.591e+00  1.000e-04  1.000e+04 ( 1.000e-13)
356        Index:  2.309e+00  7.068e+00  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:  4.266e-01  2.202e-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.440e+00  1.840e-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/891372/cmap_HighResolution_418694401_418953601_4FGL_J1245.1+5709_daily_bin692.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.37e-03', job_status='DONE', photon_flux_upper_limit='4.45e-08', time_completed='2021-09-06 04:25:16.054128', job_id='891372', GAL2='0.43', fit_tolerance='1e-08', EG2='1.44', EG='1.44', time_epoch_completed='1630927516.05', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.43', dlogl='8.24e-04', ts2='0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='692' AND source_name='4FGL J1245.1+5709' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 04:25:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0175>
Subject: Job 891372: <4FGL_J1245.1+5709_daily_bin692> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1245.1+5709_daily_bin692 191.288 57.158 418694401 418953601 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 :                                   838.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             330.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   868 sec.
    Turnaround time :                            872 sec.

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

