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


Performing analysis on: 4FGL_J1417.9+4613_daily_bin677
RA = 214.482, Dec = 46.2327
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='305374', job_status='RUN', time_executed='2021-09-09 07:25:47.842504', time_epoch_executed='1631197547.84' WHERE source_name='4FGL J1417.9+4613' and cadence='daily' and bin_id='677'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/305374

Creating custom pfile directory:
/scratch/kocevski/305374/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/305374/ft1_4FGL_J1417.9+4613_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/305374/ft2_4FGL_J1417.9+4613_daily_bin677.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/305374/ft1_4FGL_J1417.9+4613_daily_bin677.fits outfile=/scratch/kocevski/305374/ft1_filteredMKT_4FGL_J1417.9+4613_daily_bin677.fits ra=214.482 dec=46.2327 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.90
user 5.64
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/305374/ft2_4FGL_J1417.9+4613_daily_bin677.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/305374/ft2_4FGL_J1417.9+4613_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/305374/ft1_filteredMKT_4FGL_J1417.9+4613_daily_bin677.fits evtable="EVENTS" outfile="/scratch/kocevski/305374/ft1_filtered_4FGL_J1417.9+4613_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.55
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/305374/ft1_filtered_4FGL_J1417.9+4613_daily_bin677.fits" evtable="EVENTS" scfile=/scratch/kocevski/305374/ft2_4FGL_J1417.9+4613_daily_bin677.fits sctable="SC_DATA" outfile=/scratch/kocevski/305374/ltcube_414806401_415065601_4FGL_J1417.9+4613_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/305374/ft2_4FGL_J1417.9+4613_daily_bin677.fits
.....................!
real 12.41
user 12.02
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/305374/ft1_filtered_4FGL_J1417.9+4613_daily_bin677.fits evtable="EVENTS" scfile=/scratch/kocevski/305374/ft2_4FGL_J1417.9+4613_daily_bin677.fits sctable="SC_DATA" expcube=/scratch/kocevski/305374/ltcube_414806401_415065601_4FGL_J1417.9+4613_daily_bin677.fits outfile=/scratch/kocevski/305374/expmap_414806401_415065601_4FGL_J1417.9+4613_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/305374/ltcube_414806401_415065601_4FGL_J1417.9+4613_daily_bin677.fits
.....................!
real 191.81
user 186.53
sys 4.89

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 202 point sources and 0 extended sources

Setting source of interest to:
4FGL J1417.9+4613 @ 214.482 46.2327

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/305374/ft1_filtered_4FGL_J1417.9+4613_daily_bin677.fits scfile=/scratch/kocevski/305374/ft2_4FGL_J1417.9+4613_daily_bin677.fits outfile=/scratch/kocevski/305374/cmap_414806401_415065601_4FGL_J1417.9+4613_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=214.482 yref=46.2327 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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/305374/ft1_filtered_4FGL_J1417.9+4613_daily_bin677.fits scfile=/scratch/kocevski/305374/ft2_4FGL_J1417.9+4613_daily_bin677.fits outfile=/scratch/kocevski/305374/cmap_HighResolution_414806401_415065601_4FGL_J1417.9+4613_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=214.482 yref=46.2327 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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/305374/ft1_filtered_4FGL_J1417.9+4613_daily_bin677.fits evtable="EVENTS" scfile=/scratch/kocevski/305374/ft2_4FGL_J1417.9+4613_daily_bin677.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/305374/Model_4FGL_J1417.9+4613_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/305374/ft1_filtered_4FGL_J1417.9+4613_daily_bin677.fits.....................!
real 30.21
user 28.88
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/305374/ft1_filtered_4FGL_J1417.9+4613_daily_bin677.fits', '/scratch/kocevski/305374/ft2_4FGL_J1417.9+4613_daily_bin677.fits', expMap='/scratch/kocevski/305374/expmap_414806401_415065601_4FGL_J1417.9+4613_daily_bin677.fits', expCube='/scratch/kocevski/305374/ltcube_414806401_415065601_4FGL_J1417.9+4613_daily_bin677.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/305374/Model_4FGL_J1417.9+4613_daily_bin677.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1417.9+4613'

4FGL J1417.9+4613
   Spectrum: PowerLaw
310    Prefactor:  2.996e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
311        Index:  2.971e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
312        Scale:  3.446e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/305374/ft1_filtered_4FGL_J1417.9+4613_daily_bin677.fits
Spacecraft file(s): /scratch/kocevski/305374/ft2_4FGL_J1417.9+4613_daily_bin677.fits
Exposure map: /scratch/kocevski/305374/expmap_414806401_415065601_4FGL_J1417.9+4613_daily_bin677.fits
Exposure cube: /scratch/kocevski/305374/ltcube_414806401_415065601_4FGL_J1417.9+4613_daily_bin677.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/305374/Model_4FGL_J1417.9+4613_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) = 2655.59363014

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8754       1.0000         .10000E-03   10000.    
     2 'Prefactor '    71.711       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .44660       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .30793E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .11169E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    54.346       1.0000         .10000E-03   10000.    
     7 'Prefactor '    125.73       1.0000         .10000E-03   10000.    
     8 'norm      '    11.600       1.0000         .10000E-03   10000.    
     9 'norm      '    .10425E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.3736       1.0000         .10000E-03   10000.    
    11 'norm      '    .11667E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    105.24       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.2071       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .48821E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11217E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    41.643       1.0000         .10000E-03   10000.    
    21 'norm      '    15.719       1.0000         .10000E-03   10000.    
    22 'Prefactor '    89.339       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10596E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    24.646       1.0000         .10000E-03   10000.    
    26 'Prefactor '    129.25       1.0000         .10000E-03   10000.    
    27 'norm      '    7.4126       1.0000         .10000E-03   10000.    
    28 'Prefactor '    101.39       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10931E-03   1.0000         .10000E-03   10000.    
    32 'norm      '    3.6835       1.0000         .10000E-03   10000.    
    33 'Prefactor '    .10368E-03   1.0000         .10000E-03   10000.    
    34 'Prefactor '    45.213       1.0000         .10000E-03   10000.    
    35 'Prefactor '    .22391E-03   1.0000         .10000E-03   10000.    
    36 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    37 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    38 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    39 'Prefactor '    .10171E-03   1.0000         .10000E-03   10000.    
    40 'Normalizat'    .83065       1.0000         .10000E-01   10.000    
    41 'Prefactor '    .79296       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6450E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2655.492     FROM MIGRAD    STATUS=CONVERGED   1274 CALLS     6764 TOTAL
                     EDM=   .94E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8755        5.1145       -.46958E-06    .92294E-04
   2  Prefactor     71.655        66.652       -.33033E-06    .20224E-03
   3  Prefactor     .20595        271.03       -.28156E-04    .22168E-03
   4  Prefactor     .10000E-03    473.27       -.14475E-04** at limit **
   5  norm          .10074E-03    11.587        .35959E-05** at limit **
   6  Prefactor     54.458        78.546        .39785E-05    .93677E-04
   7  Prefactor     125.68        104.88       -.31544E-05   -.10458E-04
   8  norm          11.598        3.6236       -.20160E-07    .46050E-03
   9  norm          .10000E-03    75.855       -.19854E-05** at limit **
  10  norm          1.3706        9.4682        .75099E-06    .70890E-04
  11  norm          .10000E-03    41.938       -.15333E-05** at limit **
  12  Prefactor     .10000E-03    46.940        .14709E-05** at limit **
  13  Prefactor     .10000E-03    12.708       -.30326E-06** at limit **
  14  Prefactor     105.22        92.609       -.19437E-05    .28605E-04
  15  Prefactor     .10000E-03    6.8552       -.86355E-06** at limit **
  16  Prefactor     .10000E-03    19.847       -.11491E-05** at limit **
  17  norm          4.2044        6.8882       -.35124E-06    .48979E-04
  18  Prefactor     .10000E-03    47.093       -.36708E-05** at limit **
  19  Prefactor     .10000E-03    7.5741        .12336E-05** at limit **
  20  Prefactor     41.678        37.369       -.93297E-06    .13077E-03
  21  norm          15.738        33.206       -.57913E-07    .39936E-04
  22  Prefactor     89.408        127.55        .84223E-06   -.18519E-04
  23  Prefactor     .10000E-03    55.811        .14709E-05** at limit **
  24  Prefactor     .10000E-03    40.224       -.16007E-05** at limit **
  25  Prefactor     24.621        50.057       -.22946E-05    .10419E-04
  26  Prefactor     129.14        202.59       -.46732E-05   -.18299E-04
  27  norm          7.4076        10.515       -.29088E-06    .52975E-04
  28  Prefactor     101.44        106.11        .16237E-05    .30129E-04
  29  Prefactor     .10000E-03    13.888       -.57188E-06** at limit **
  30  norm          .10000E-03    3.5297        .16122E-07** at limit **
  31  Prefactor     .10000E-03    162.94        .61841E-05** at limit **
  32  norm          3.6809        3.5188        .57639E-06    .13555E-03
  33  Prefactor     .10000E-03    13.471        .53290E-06** at limit **
  34  Prefactor     45.199        60.867       -.26752E-06   -.82513E-06
  35  Prefactor     .10028E-03    54.205       -.12426E-04** at limit **
  36  norm          .10000E-03    1.4395       -.37590E-07** at limit **
  37  Prefactor     .10000E-03    4.5456       -.70123E-07** at limit **
  38  Prefactor     .10000E-03    20.558        .10944E-06** at limit **
  39  Prefactor     .10000E-03    20.713        .32994E-06** at limit **
  40  Normalizat    .83100        .29796        .38116E-05    .27502E-03
  41  Prefactor     .79275        .30305       -.10094E-05    .30686E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.87554
  Prefactor  = 71.6555
  Prefactor  = 0.205951
  Prefactor  = 0.0001
  norm       = 0.000100737
  Prefactor  = 54.4581
  Prefactor  = 125.681
  norm       = 11.5983
  norm       = 0.0001
  norm       = 1.37056
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 105.216
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.20444
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 41.6783
  norm       = 15.738
  Prefactor  = 89.4083
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.6211
  Prefactor  = 129.143
  norm       = 7.40764
  Prefactor  = 101.439
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  norm       = 3.68093
  Prefactor  = 0.0001
  Prefactor  = 45.1992
  Prefactor  = 0.000100278
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.830997
  Prefactor  = 0.792752
 **********
 **   18 **HESSE 
 **********

 FCN=   2655.492     FROM HESSE     STATUS=OK          1019 CALLS     7783 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8755        5.0619        .18136E-03   -1.5434    
   2  Prefactor     71.655        65.212        .47407E-04   -1.4013    
   3  Prefactor     .20595        47.188        .75176E-01   -1.5617    
   4  Prefactor     .10000E-03    486.73        .42757E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10074E-03    90.818        .21870E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     54.458        79.022        .27205E-03   -1.4231    
   7  Prefactor     125.68        105.20        .17950E-03   -1.3461    
   8  norm          11.598        3.6310        .52015E-04   -1.5027    
   9  norm          .10000E-03    75.881        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.3706        9.6036        .15003E-02   -1.5474    
  11  norm          .10000E-03    42.473        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    46.950        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    12.712        .17942E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     105.22        92.521        .39198E-04   -1.3653    
  15  Prefactor     .10000E-03    6.8692        .13163E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    19.907        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.2044        6.8486        .15366E-03   -1.5298    
  18  Prefactor     .10000E-03    47.042        .42338E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    7.7916        .27497E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     41.678        37.213        .62119E-04   -1.4416    
  21  norm          15.738        33.200        .10102E-03   -1.4914    
  22  Prefactor     89.408        127.35        .21255E-03   -1.3814    
  23  Prefactor     .10000E-03    55.849        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    40.237        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     24.621        50.127        .80688E-04   -1.4715    
  26  Prefactor     129.14        202.77        .17707E-03   -1.3430    
  27  norm          7.4076        10.502        .73655E-03   -1.5164    
  28  Prefactor     101.44        105.75        .39928E-04   -1.3690    
  29  Prefactor     .10000E-03    13.900        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          .10000E-03    3.5300        .94559E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    164.00        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  norm          3.6809        3.5098        .45433E-03   -1.5324    
  33  Prefactor     .10000E-03    13.602        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Prefactor     45.199        60.911        .59627E-04   -1.4362    
  35  Prefactor     .10028E-03    89.117        .33096E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  36  norm          .10000E-03    1.4405        .60380E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  37  Prefactor     .10000E-03    4.5522        .10730E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  38  Prefactor     .10000E-03    20.601        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  39  Prefactor     .10000E-03    20.971        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  40  Normalizat    .83100        .35391        .25253E-03   -.98929    
  41  Prefactor     .79275        .36346        .29128E-03   -.99996    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.22469e-08
Minuit parameter uncertainties:
  1  5.06309
  2  65.2771
  3  6.23836
  4  0.000876328
  5  0.0163849
  6  79.1746
  7  105.36
  8  3.63112
  9  0.000156563
  10  7.25737
  11  0.000110935
  12  8.26619e-05
  13  1.89269e-06
  14  92.6483
  15  6.88818e-06
  16  5.61499e-05
  17  6.84983
  18  0.000139313
  19  2.25761e-05
  20  37.2337
  21  33.2394
  22  127.739
  23  6.2533e-05
  24  9.11079e-05
  25  50.2133
  26  203.876
  27  10.5048
  28  105.949
  29  3.0784e-05
  30  7.34544e-07
  31  0.00114056
  32  3.50999
  33  3.75186e-05
  34  60.9949
  35  0.00996797
  36  2.46665e-06
  37  9.37017e-06
  38  2.62428e-05
  39  6.05723e-05
  40  0.354898
  41  0.36457
Done.

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

Extracting fit parameters...

4FGL J1417.9+4613
   Spectrum: PowerLaw
310    Prefactor:  1.000e-04  5.615e-05  1.000e-04  1.000e+04 ( 1.000e-12)
311        Index:  2.971e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
312        Scale:  3.446e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
642    Prefactor:  7.928e-01  3.646e-01  0.000e+00  1.000e+01 ( 1.000e+00)
643        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
644        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
641   Normalization:  8.310e-01  3.549e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 214.482 46.233
Photon Flux Upper Limit: 1.34e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.07e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/305374/likelihoodResults_414806401_415065601_4FGL_J1417.9+4613_daily_bin677.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) = 2655.49179878
delta logL = -0.000239187888383

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2655.49156014
delta logL = -5.50081040274e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10140E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.9510       1.0000          .0000       10.000    
     3 'Normalizat'    .83100       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79276       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6450E+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=   2655.492     FROM MIGRAD    STATUS=CONVERGED    106 CALLS      290 TOTAL
                     EDM=   .82E-13    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    106.34        .18142E-01** at limit **
   2  Index         3.1393        5.2393        .50000       -.45475E-09
   3  Normalizat    .83100        .14340E-01    .25252E-03    .27597E-04
   4  Prefactor     .79275        .16272E-01    .29128E-03    .29917E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 3.13927
  Normalizat = 0.830999
  Prefactor  = 0.792748
 **********
 **   18 **HESSE 
 **********

 FCN=   2655.492     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      319 TOTAL
                     EDM=   .78E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    991.71        .22409E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.1393        5.8610        .50000       -.38132    
   3  Normalizat    .83100        .46590E-01    .10101E-04   -.98929    
   4  Prefactor     .79275        .52866E-01    .11651E-04   -.99996    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.81562e-13
Minuit parameter uncertainties:
  1  7.50006e-06
  2  3501.07
  3  0.0465923
  4  0.0528696
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/305374': 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) = 2655.49155957
delta logL = 2.28492353926e-08

Extracting fit parameters...

4FGL J1417.9+4613
   Spectrum: PowerLaw
310    Prefactor:  1.000e-04  7.500e-06  1.000e-04  1.000e+04 ( 1.000e-12)
311        Index:  3.139e+00  3.501e+03  0.000e+00  1.000e+01 (-1.000e+00)
312        Scale:  3.446e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
642    Prefactor:  7.927e-01  5.287e-02  0.000e+00  1.000e+01 ( 1.000e+00)
643        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
644        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
641   Normalization:  8.310e-01  4.659e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 214.482 46.233

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/305374/cmap_HighResolution_414806401_415065601_4FGL_J1417.9+4613_daily_bin677.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.07e-02', job_status='DONE', photon_flux_upper_limit='1.34e-07', time_completed='2021-09-09 07:38:46.650326', job_id='305374', GAL2='0.79', fit_tolerance='1e-08', EG2='0.83', EG='0.83', time_epoch_completed='1631198326.65', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='2.28e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.97' WHERE bin_id='677' AND source_name='4FGL J1417.9+4613' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 07:38:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0261>
Subject: Job 305374: <4FGL_J1417.9+4613_daily_bin677> in cluster <slac> Done

Job <4FGL_J1417.9+4613_daily_bin677> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep  9 07:25:36 2021
Job was executed on host(s) <bullet0261>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 07:25:37 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  9 07:25:37 2021
Terminated at Thu Sep  9 07:38:47 2021
Results reported at Thu Sep  9 07:38:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1417.9+4613_daily_bin677 214.482 46.2327 414806401 415065601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1417.9+4613 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   774.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             311.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   790 sec.
    Turnaround time :                            791 sec.

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

