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


Performing analysis on: 4FGL_J1417.9+4613_daily_bin1202
RA = 214.482, Dec = 46.2327
tmin = 550886401, tmax = 551145601
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='309337', job_status='RUN', time_executed='2021-09-09 07:42:36.048510', time_epoch_executed='1631198556.05' WHERE source_name='4FGL J1417.9+4613' and cadence='daily' and bin_id='1202'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/309337

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/309337/ft1_4FGL_J1417.9+4613_daily_bin1202.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/309337/ft2_4FGL_J1417.9+4613_daily_bin1202.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/309337/ft1_4FGL_J1417.9+4613_daily_bin1202.fits outfile=/scratch/kocevski/309337/ft1_filteredMKT_4FGL_J1417.9+4613_daily_bin1202.fits ra=214.482 dec=46.2327 rad=12.0 tmin=550886401.0 tmax=551145601.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 3.80
user 3.55
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/309337/ft2_4FGL_J1417.9+4613_daily_bin1202.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/309337/ft1_filteredMKT_4FGL_J1417.9+4613_daily_bin1202.fits evtable="EVENTS" outfile="/scratch/kocevski/309337/ft1_filtered_4FGL_J1417.9+4613_daily_bin1202.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.53
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/309337/ft1_filtered_4FGL_J1417.9+4613_daily_bin1202.fits" evtable="EVENTS" scfile=/scratch/kocevski/309337/ft2_4FGL_J1417.9+4613_daily_bin1202.fits sctable="SC_DATA" outfile=/scratch/kocevski/309337/ltcube_550886401_551145601_4FGL_J1417.9+4613_daily_bin1202.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/309337/ft2_4FGL_J1417.9+4613_daily_bin1202.fits
.....................!
real 11.73
user 11.36
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/309337/ft1_filtered_4FGL_J1417.9+4613_daily_bin1202.fits evtable="EVENTS" scfile=/scratch/kocevski/309337/ft2_4FGL_J1417.9+4613_daily_bin1202.fits sctable="SC_DATA" expcube=/scratch/kocevski/309337/ltcube_550886401_551145601_4FGL_J1417.9+4613_daily_bin1202.fits outfile=/scratch/kocevski/309337/expmap_550886401_551145601_4FGL_J1417.9+4613_daily_bin1202.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/309337/ltcube_550886401_551145601_4FGL_J1417.9+4613_daily_bin1202.fits
.....................!
real 190.09
user 185.34
sys 4.34

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/309337/ft1_filtered_4FGL_J1417.9+4613_daily_bin1202.fits scfile=/scratch/kocevski/309337/ft2_4FGL_J1417.9+4613_daily_bin1202.fits outfile=/scratch/kocevski/309337/cmap_550886401_551145601_4FGL_J1417.9+4613_daily_bin1202.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/309337/ft1_filtered_4FGL_J1417.9+4613_daily_bin1202.fits scfile=/scratch/kocevski/309337/ft2_4FGL_J1417.9+4613_daily_bin1202.fits outfile=/scratch/kocevski/309337/cmap_HighResolution_550886401_551145601_4FGL_J1417.9+4613_daily_bin1202.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/309337/ft1_filtered_4FGL_J1417.9+4613_daily_bin1202.fits evtable="EVENTS" scfile=/scratch/kocevski/309337/ft2_4FGL_J1417.9+4613_daily_bin1202.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/309337/Model_4FGL_J1417.9+4613_daily_bin1202.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/309337/ft1_filtered_4FGL_J1417.9+4613_daily_bin1202.fits......................!
real 24.37
user 23.08
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/309337/ft1_filtered_4FGL_J1417.9+4613_daily_bin1202.fits', '/scratch/kocevski/309337/ft2_4FGL_J1417.9+4613_daily_bin1202.fits', expMap='/scratch/kocevski/309337/expmap_550886401_551145601_4FGL_J1417.9+4613_daily_bin1202.fits', expCube='/scratch/kocevski/309337/ltcube_550886401_551145601_4FGL_J1417.9+4613_daily_bin1202.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/309337/Model_4FGL_J1417.9+4613_daily_bin1202.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/309337/ft1_filtered_4FGL_J1417.9+4613_daily_bin1202.fits
Spacecraft file(s): /scratch/kocevski/309337/ft2_4FGL_J1417.9+4613_daily_bin1202.fits
Exposure map: /scratch/kocevski/309337/expmap_550886401_551145601_4FGL_J1417.9+4613_daily_bin1202.fits
Exposure cube: /scratch/kocevski/309337/ltcube_550886401_551145601_4FGL_J1417.9+4613_daily_bin1202.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/309337/Model_4FGL_J1417.9+4613_daily_bin1202.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) = 1821.93308476

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    139.10       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .22469E-01   1.0000         .10000E-03   10000.    
     5 'norm      '    19.498       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10133E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    6.3279       1.0000         .10000E-03   10000.    
     9 'norm      '    .10809E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    13.928       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    93.390       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.156       1.0000         .10000E-03   10000.    
    17 'norm      '    .78296E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .13845E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.9890       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    77.103       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10294E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    50.341       1.0000         .10000E-03   10000.    
    30 'norm      '    13.787       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    32 'norm      '    .87386       1.0000         .10000E-03   10000.    
    33 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    34 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    35 'Prefactor '    .18092E-03   1.0000         .10000E-03   10000.    
    36 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    37 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    38 'Prefactor '    .10321E-03   1.0000         .10000E-03   10000.    
    39 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    40 'Normalizat'    1.1076       1.0000         .10000E-01   10.000    
    41 'Prefactor '    .83078       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   1821.627     FROM MIGRAD    STATUS=FAILED      2334 CALLS     7806 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.7432        .80621E-03** at limit **
   2  Prefactor     138.93        128.39        .17077E-03    .87321E-04
   3  Prefactor     .10000E-03    21.632        .18142E-02** at limit **
   4  Prefactor     .46852        331.26        .14795        .33108E-04
   5  norm          19.501        10.879        .90705E-04    .11128E-03
   6  Prefactor     .10000E-03    60.327        .18142E-02** at limit **
   7  Prefactor     .10000E-03    50.273        .18142E-02** at limit **
   8  norm          6.3280        4.0718        .63173E-04    .38138E-03
   9  norm          .10000E-03    135.37        .18142E-02** at limit **
  10  norm          13.933        10.159        .10732E-03    .79235E-04
  11  norm          .10000E-03    9.9461        .13147E-02** at limit **
  12  Prefactor     93.436        111.20        .20793E-03   -.76545E-06
  13  Prefactor     .10000E-03    26.127        .18142E-02** at limit **
  14  Prefactor     .10000E-03    45.884        .18142E-02** at limit **
  15  Prefactor     .10000E-03    4.7948        .91258E-03** at limit **
  16  Prefactor     12.201        45.278        .11490E-03    .19542E-05
  17  norm          .10978        146.62        .23139E-02    .64019E-03
  18  Prefactor     .10066E-03    311.97        .38886E-02** at limit **
  19  Prefactor     2.9904        4.6457        .10785E-03    .17280E-03
  20  Prefactor     .10000E-03    68.954        .18142E-02** at limit **
  21  norm          .10000E-03    14.600        .15930E-02** at limit **
  22  Prefactor     .10000E-03    14.869        .16077E-02** at limit **
  23  Prefactor     .10000E-03    20.427        .18142E-02** at limit **
  24  Prefactor     77.268        166.30        .22866E-03   -.67121E-06
  25  Prefactor     .10000E-03    85.031        .18142E-02** at limit **
  26  Prefactor     .10000E-03    22.235        .18142E-02** at limit **
  27  norm          .10000E-03    3.4403        .77313E-03** at limit **
  28  Prefactor     .10000E-03    28.667        .18142E-02** at limit **
  29  Prefactor     50.331        49.250        .56522E-04    .58602E-04
  30  norm          13.787        15.356        .10787E-03   -.28982E-05
  31  Prefactor     .10000E-03    18.512        .17926E-02** at limit **
  32  norm          .87535        2.8410        .12439E-03    .16273E-03
  33  Prefactor     .10000E-03    7.4518        .11376E-02** at limit **
  34  Prefactor     .10000E-03    12.430        .14695E-02** at limit **
  35  Prefactor     .10000E-03    62.146        .34178E-02** at limit **
  36  norm          .10000E-03    7.1556        .11039E-02** at limit **
  37  Prefactor     .10000E-03    20.227        .18142E-02** at limit **
  38  Prefactor     .10000E-03    82.855        .18142E-02** at limit **
  39  Prefactor     .10000E-03    12.602        .14795E-02** at limit **
  40  Normalizat    1.1070        .39922        .23336E-03    .57148E-04
  41  Prefactor     .83069        .44343        .31093E-03    .23767E-06
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   1821.627     FROM SIMPLEX   STATUS=UNCHANGED   2257 CALLS    10063 TOTAL
                     EDM=   .19E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.7432        .31182E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     138.93        128.39        .21788E-05   -1.3345    
   3  Prefactor     .10000E-03    21.632        .46024E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .46852        331.26        .25521E-05   -1.5571    
   5  norm          19.501        10.879        .24235E-05   -1.4824    
   6  Prefactor     .10000E-03    60.327        .91592E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    50.273        .74278E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          6.3280        4.0718        .24860E-05   -1.5205    
   9  norm          .10000E-03    135.37        .99307E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          13.933        10.159        .24436E-05   -1.4961    
  11  norm          .10000E-03    9.9461        .39400E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     93.436        111.20        .22502E-05   -1.3772    
  13  Prefactor     .10000E-03    26.127        .47283E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    45.884        .19588E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.7948        .86662E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     12.201        45.278        .24453E-05   -1.5009    
  17  norm          .10978        146.62        .23980E-05   -1.5642    
  18  Prefactor     .10066E-03    311.97        .23863E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.9904        4.6457        .25043E-05   -1.5362    
  20  Prefactor     .10000E-03    68.954        .58257E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    14.600        .37727E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    14.869        .12395E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    20.427        .33672E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     77.268        166.30        .22786E-05   -1.3948    
  25  Prefactor     .10000E-03    85.031        .24725E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    22.235        .65274E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    3.4403        .29562E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    28.667        .52335E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     50.331        49.250        .23344E-05   -1.4288    
  30  norm          13.787        15.356        .24451E-05   -1.4965    
  31  Prefactor     .10000E-03    18.512        .18572E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  norm          .87535        2.8410        .25359E-05   -1.5521    
  33  Prefactor     .10000E-03    7.4518        .11768E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Prefactor     .10000E-03    12.430        .22965E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  35  Prefactor     .10000E-03    62.146        .22564E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  36  norm          .10000E-03    7.1556        .72590E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  37  Prefactor     .10000E-03    20.227        .52943E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  38  Prefactor     .10000E-03    82.855        .26881E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  39  Prefactor     .10000E-03    12.602        .33984E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  40  Normalizat    1.1070        .39922        .14627E-05   -.89528    
  41  Prefactor     .83069        .44343        .16111E-05   -.98607    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1821.627     FROM MIGRAD    STATUS=CONVERGED   1000 CALLS    11063 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.7432        .16124E-03** at limit **
   2  Prefactor     138.93        134.03        .34154E-04   -.22036E-04
   3  Prefactor     .10000E-03    21.633        .36285E-03** at limit **
   4  Prefactor     .46857        450.77        .13055        .35070E-04
   5  norm          19.501        10.883        .18141E-04   -.19145E-04
   6  Prefactor     .10000E-03    60.328        .36285E-03** at limit **
   7  Prefactor     .10000E-03    50.273        .36285E-03** at limit **
   8  norm          6.3280        4.0931        .25269E-05   -.49939E-04
   9  norm          .10000E-03    135.37        .36285E-03** at limit **
  10  norm          13.933        10.157        .42929E-05   -.14565E-05
  11  norm          .10000E-03    9.9461        .26294E-03** at limit **
  12  Prefactor     93.436        111.18        .83173E-05   -.27337E-06
  13  Prefactor     .10000E-03    26.128        .36285E-03** at limit **
  14  Prefactor     .10000E-03    45.885        .36285E-03** at limit **
  15  Prefactor     .10000E-03    4.7948        .18252E-03** at limit **
  16  Prefactor     12.201        45.240        .45958E-05   -.12368E-05
  17  norm          .10855        150.81        .92555E-04    .12437E-04
  18  Prefactor     .10000E-03    322.06        .15555E-03** at limit **
  19  Prefactor     2.9903        4.6451        .43140E-05   -.13177E-06
  20  Prefactor     .10000E-03    68.992        .36285E-03** at limit **
  21  norm          .10000E-03    14.601        .31860E-03** at limit **
  22  Prefactor     .10000E-03    14.869        .32154E-03** at limit **
  23  Prefactor     .10000E-03    20.427        .36285E-03** at limit **
  24  Prefactor     77.268        166.28        .91463E-05    .18645E-06
  25  Prefactor     .10000E-03    85.045        .36285E-03** at limit **
  26  Prefactor     .10000E-03    22.235        .36285E-03** at limit **
  27  norm          .10000E-03    3.4403        .15463E-03** at limit **
  28  Prefactor     .10000E-03    28.667        .36285E-03** at limit **
  29  Prefactor     50.331        49.242        .11304E-04    .14583E-05
  30  norm          13.787        15.356        .43149E-05    .15808E-05
  31  Prefactor     .10000E-03    18.512        .35851E-03** at limit **
  32  norm          .87532        2.8401        .49757E-05    .33130E-05
  33  Prefactor     .10000E-03    7.4519        .22752E-03** at limit **
  34  Prefactor     .10000E-03    12.430        .29389E-03** at limit **
  35  Prefactor     .10000E-03    62.716        .68355E-03** at limit **
  36  norm          .10000E-03    7.1575        .22077E-03** at limit **
  37  Prefactor     .10000E-03    20.235        .36285E-03** at limit **
  38  Prefactor     .10000E-03    82.867        .36285E-03** at limit **
  39  Prefactor     .10000E-03    12.602        .29591E-03** at limit **
  40  Normalizat    1.1070        .39945        .46672E-04    .48145E-04
  41  Prefactor     .83070        .44388        .12437E-04    .42551E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 138.933
  Prefactor  = 0.0001
  Prefactor  = 0.468571
  norm       = 19.5006
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.328
  norm       = 0.0001
  norm       = 13.9326
  norm       = 0.0001
  Prefactor  = 93.4356
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.2009
  norm       = 0.10855
  Prefactor  = 0.0001
  Prefactor  = 2.99034
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 77.2683
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 50.3305
  norm       = 13.787
  Prefactor  = 0.0001
  norm       = 0.875316
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.10699
  Prefactor  = 0.830699
 **********
 **   18 **HESSE 
 **********

 FCN=   1821.627     FROM HESSE     STATUS=OK           995 CALLS    12058 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.7432        .32248E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     138.93        131.19        .68308E-05   -1.3345    
   3  Prefactor     .10000E-03    21.633        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .46857        387.46        .13875       -1.5571    
   5  norm          19.501        10.880        .36282E-05   -1.4824    
   6  Prefactor     .10000E-03    60.328        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    50.273        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          6.3280        4.0818        .50538E-06   -1.5205    
   9  norm          .10000E-03    135.37        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          13.933        10.158        .85859E-06   -1.4961    
  11  norm          .10000E-03    9.9461        .52588E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     93.436        111.20        .16635E-05   -1.3772    
  13  Prefactor     .10000E-03    26.128        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    45.885        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.7948        .36503E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     12.201        45.342        .91917E-06   -1.5009    
  17  norm          .10855        150.95        .37022E-05   -1.5642    
  18  Prefactor     .10000E-03    322.09        .31109E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.9903        4.6442        .86280E-06   -1.5362    
  20  Prefactor     .10000E-03    68.994        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    14.601        .63719E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    14.869        .64308E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    20.427        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     77.268        166.22        .18293E-05   -1.3948    
  25  Prefactor     .10000E-03    85.046        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    22.235        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    3.4403        .30925E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    28.667        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     50.331        49.234        .22609E-05   -1.4288    
  30  norm          13.787        15.357        .86298E-06   -1.4965    
  31  Prefactor     .10000E-03    18.512        .71703E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  norm          .87532        2.8405        .99513E-06   -1.5521    
  33  Prefactor     .10000E-03    7.4519        .45504E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Prefactor     .10000E-03    12.430        .58779E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  35  Prefactor     .10000E-03    62.740        .13671E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  36  norm          .10000E-03    7.1576        .44155E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  37  Prefactor     .10000E-03    20.235        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  38  Prefactor     .10000E-03    82.867        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  39  Prefactor     .10000E-03    12.602        .59182E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  40  Normalizat    1.1070        .39916        .93343E-05   -.89528    
  41  Prefactor     .83070        .44363        .24874E-05   -.98606    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.35667e-10
Minuit parameter uncertainties:
  1  4.82884e-09
  2  131.469
  3  1.03911e-06
  4  27.1233
  5  10.8812
  6  1.41679e-06
  7  1.14586e-06
  8  4.08197
  9  1.5043e-06
  10  10.1592
  11  3.44703e-07
  12  111.45
  13  8.02782e-07
  14  1.92181e-06
  15  1.79048e-07
  16  45.4705
  17  8.11262
  18  0.000739337
  19  4.64476
  20  9.95172e-06
  21  5.11119e-06
  22  1.2271e-07
  23  4.35428e-07
  24  167.239
  25  2.17329e-05
  26  1.26947e-07
  27  1.94326e-07
  28  4.3005e-08
  29  49.2733
  30  15.3612
  31  8.65564e-07
  32  2.8409
  33  3.73142e-07
  34  7.43828e-07
  35  0.000108285
  36  2.25351e-06
  37  9.02181e-06
  38  2.10445e-05
  39  1.31648e-06
  40  0.400256
  41  0.445558
Done.

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

Extracting fit parameters...

4FGL J1417.9+4613
   Spectrum: PowerLaw
310    Prefactor:  1.220e+01  4.547e+01  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:  8.307e-01  4.456e-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:  1.107e+00  4.003e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/309337/likelihoodResults_550886401_551145601_4FGL_J1417.9+4613_daily_bin1202.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) = 1821.4273367
delta logL = 0.199995402156

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1821.4268234
delta logL = 0.200508698194

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    34.516       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2193       1.0000          .0000       10.000    
     3 'Normalizat'    1.1091       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80457       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=   1821.427     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      290 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     34.505        56.047        .68210E-04   -.16667E-06
   2  Index         2.2193        .83795        .74993E-02    .17778E-05
   3  Normalizat    1.1091        .37200        .23300E-03    .50143E-04
   4  Prefactor     .80449        .43592        .31496E-03    .41772E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 34.5051
  Index      = 2.21931
  Normalizat = 1.10908
  Prefactor  = 0.804493
 **********
 **   18 **HESSE 
 **********

 FCN=   1821.427     FROM HESSE     STATUS=OK            25 CALLS      315 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     34.505        56.115        .27284E-05   -1.4532    
   2  Index         2.2193        .83897        .29997E-03   -.58973    
   3  Normalizat    1.1091        .37238        .46601E-04   -.89461    
   4  Prefactor     .80449        .43627        .12598E-04   -.99563    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11372e-11
Minuit parameter uncertainties:
  1  56.2007
  2  0.844779
  3  0.373265
  4  0.438167
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/309337': 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) = 1821.42682331
delta logL = 0.200508789688

Extracting fit parameters...

4FGL J1417.9+4613
   Spectrum: PowerLaw
310    Prefactor:  3.451e+01  5.620e+01  1.000e-04  1.000e+04 ( 1.000e-12)
311        Index:  2.219e+00  8.448e-01  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:  8.045e-01  4.382e-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:  1.109e+00  3.733e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.08
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/309337/cmap_HighResolution_550886401_551145601_4FGL_J1417.9+4613_daily_bin1202.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.96e-02', job_status='DONE', photon_flux_upper_limit='2.45e-07', time_completed='2021-09-09 07:55:42.409696', job_id='309337', GAL2='0.80', fit_tolerance='1e-08', EG2='1.11', EG='1.11', time_epoch_completed='1631199342.41', return_code2='0', ts='0.08', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='2.01e-01', ts2='0.48', photon_index_error='0.00', photon_index='2.97' WHERE bin_id='1202' AND source_name='4FGL J1417.9+4613' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 07:55:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0049>
Subject: Job 309337: <4FGL_J1417.9+4613_daily_bin1202> in cluster <slac> Done

Job <4FGL_J1417.9+4613_daily_bin1202> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Thu Sep  9 07:40:27 2021
Job was executed on host(s) <bullet0049>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 07:40:29 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:40:29 2021
Terminated at Thu Sep  9 07:55:43 2021
Results reported at Thu Sep  9 07:55:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1417.9+4613_daily_bin1202 214.482 46.2327 550886401 551145601 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 :                                   756.43 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             251.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   913 sec.
    Turnaround time :                            916 sec.

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

