aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 44 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).
nnumber of points = 7709
number of fields = 31
RA_SUN column already exists. File will not be modified.DDone.


Performing analysis on: 4FGL_J1417.9+4613_daily_bin1692
RA = 214.482, Dec = 46.2327
tmin = 677894401, tmax = 678153601
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='405623', job_status='RUN', time_executed='2022-06-29 04:33:33.774041', time_epoch_executed='1656502413.77' WHERE source_name='4FGL J1417.9+4613' and cadence='daily' and bin_id='1692'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/405623

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/405623/ft1_4FGL_J1417.9+4613_daily_bin1692.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/405623/ft2_4FGL_J1417.9+4613_daily_bin1692.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/405623/ft1_4FGL_J1417.9+4613_daily_bin1692.fits outfile=/scratch/kocevski/405623/ft1_filteredMKT_4FGL_J1417.9+4613_daily_bin1692.fits ra=214.482 dec=46.2327 rad=12.0 tmin=677894401.0 tmax=678153601.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.23
sys 0.23

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

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

Number of photons that the gtmktime cut: 586

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/405623/ft1_filtered_4FGL_J1417.9+4613_daily_bin1692.fits" evtable="EVENTS" scfile=/scratch/kocevski/405623/ft2_4FGL_J1417.9+4613_daily_bin1692.fits sctable="SC_DATA" outfile=/scratch/kocevski/405623/ltcube_677894401_678153601_4FGL_J1417.9+4613_daily_bin1692.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/405623/ft2_4FGL_J1417.9+4613_daily_bin1692.fits
.....................!
real 13.53
user 13.17
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/405623/ft1_filtered_4FGL_J1417.9+4613_daily_bin1692.fits evtable="EVENTS" scfile=/scratch/kocevski/405623/ft2_4FGL_J1417.9+4613_daily_bin1692.fits sctable="SC_DATA" expcube=/scratch/kocevski/405623/ltcube_677894401_678153601_4FGL_J1417.9+4613_daily_bin1692.fits outfile=/scratch/kocevski/405623/expmap_677894401_678153601_4FGL_J1417.9+4613_daily_bin1692.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/405623/ltcube_677894401_678153601_4FGL_J1417.9+4613_daily_bin1692.fits
.....................!
real 192.20
user 186.65
sys 5.07

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/405623/ft1_filtered_4FGL_J1417.9+4613_daily_bin1692.fits scfile=/scratch/kocevski/405623/ft2_4FGL_J1417.9+4613_daily_bin1692.fits outfile=/scratch/kocevski/405623/cmap_677894401_678153601_4FGL_J1417.9+4613_daily_bin1692.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.55
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/405623/ft1_filtered_4FGL_J1417.9+4613_daily_bin1692.fits scfile=/scratch/kocevski/405623/ft2_4FGL_J1417.9+4613_daily_bin1692.fits outfile=/scratch/kocevski/405623/cmap_HighResolution_677894401_678153601_4FGL_J1417.9+4613_daily_bin1692.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.55
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/405623/ft1_filtered_4FGL_J1417.9+4613_daily_bin1692.fits evtable="EVENTS" scfile=/scratch/kocevski/405623/ft2_4FGL_J1417.9+4613_daily_bin1692.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/405623/Model_4FGL_J1417.9+4613_daily_bin1692.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/405623/ft1_filtered_4FGL_J1417.9+4613_daily_bin1692.fits.....................!
real 52.98
user 51.65
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.7044       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.6214       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .85817E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    28.828       1.0000         .10000E-03   10000.    
     5 'norm      '    3.7780       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10601E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.8744       1.0000         .10000E-03   10000.    
     8 'norm      '    .46861E-01   1.0000         .10000E-03   10000.    
     9 'norm      '    21.881       1.0000         .10000E-03   10000.    
    10 'norm      '    1.8834       1.0000         .10000E-03   10000.    
    11 'norm      '    36.539       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11883E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.6516       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .15867E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .64276E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .12084E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.3759       1.0000         .10000E-03   10000.    
    20 'Prefactor '    21.652       1.0000         .10000E-03   10000.    
    21 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    19.819       1.0000         .10000E-03   10000.    
    23 'Prefactor '    51.020       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    75.524       1.0000         .10000E-03   10000.    
    26 'Prefactor '    15.851       1.0000         .10000E-03   10000.    
    27 'norm      '    6.5916       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    13.146       1.0000         .10000E-03   10000.    
    30 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    32 'norm      '    2.1571       1.0000         .10000E-03   10000.    
    33 'Prefactor '    5.2083       1.0000         .10000E-03   10000.    
    34 'Prefactor '    9.6373       1.0000         .10000E-03   10000.    
    35 'Prefactor '    1.8117       1.0000         .10000E-03   10000.    
    36 'norm      '    3.2811       1.0000         .10000E-03   10000.    
    37 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    38 'Prefactor '    1.1099       1.0000         .10000E-03   10000.    
    39 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    40 'Normalizat'    1.0990       1.0000         .10000E-01   10.000    
    41 'Prefactor '    .77798       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=   6483.632     FROM MIGRAD    STATUS=CONVERGED   2388 CALLS     7886 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.7075        4.0163        .18490E-03    .11111E-03
   2  Prefactor     4.5539        111.16        .18723E-03   -.23014E-04
   3  Prefactor     .10000E-03    124.24        .55431E-02** at limit **
   4  Prefactor     28.852        46.765        .74618E-04    .31843E-04
   5  norm          3.7875        4.4011        .16979E-03    .87013E-03
   6  Prefactor     .10000E-03    81.167        .18142E-02** at limit **
   7  Prefactor     9.1087        225.05        .13455E-03   -.21377E-04
   8  norm          .50961E-01    7.3485        .12247E-02    .22911E-02
   9  norm          21.919        44.104        .85629E-04   -.47796E-05
  10  norm          1.8839        3.0736        .17340E-03   -.47403E-04
  11  norm          36.537        18.095        .66301E-04   -.11890E-03
  12  Prefactor     .10000E-03    23.557        .18142E-02** at limit **
  13  Prefactor     8.6484        12.344        .13628E-03   -.20522E-04
  14  Prefactor     .10003E-03    34.923        .12955    ** at limit **
  15  Prefactor     .62613E-01    3.5123        .47203E-01    .18194E-03
  16  Prefactor     .10000E-03    23.925        .18142E-02** at limit **
  17  norm          .10000E-03    1.9981        .21889E-03** at limit **
  18  Prefactor     .10000E-03    9.6758        .18142E-02** at limit **
  19  Prefactor     1.3754        3.0551        .17837E-03   -.11753E-03
  20  Prefactor     21.657        18.419        .86079E-04   -.53621E-04
  21  norm          .10000E-03    5.4746        .18142E-02** at limit **
  22  Prefactor     19.834        28.990        .89969E-04   -.74048E-04
  23  Prefactor     51.019        31.389        .56146E-04   -.26096E-03
  24  Prefactor     .10000E-03    53.892        .18142E-02** at limit **
  25  Prefactor     75.516        35.782        .46203E-04   -.10521E-03
  26  Prefactor     15.816        27.682        .10060E-03   -.29270E-04
  27  norm          6.5925        5.6689        .15630E-03   -.43350E-04
  28  Prefactor     .10000E-03    12.714        .18142E-02** at limit **
  29  Prefactor     13.148        14.870        .11048E-03   -.17916E-03
  30  norm          .10000E-03    3.3060        .14294E-02** at limit **
  31  Prefactor     .10000E-03    4.3159        .16324E-02** at limit **
  32  norm          2.1571        1.3124        .69440E-04   -.19925E-03
  33  Prefactor     5.2085        6.6544        .17614E-03   -.12005E-04
  34  Prefactor     9.6445        14.765        .12909E-03   -.65436E-04
  35  Prefactor     1.8112        2.8987        .16982E-03    .51281E-04
  36  norm          3.2811        3.5762        .15079E-03    .19233E-03
  37  Prefactor     .10000E-03    2.8170        .13177E-02** at limit **
  38  Prefactor     1.1120        62.422        .22424E-02    .28604E-04
  39  Prefactor     .10000E-03    9.2482        .18142E-02** at limit **
  40  Normalizat    1.0988        .22926        .22610E-03   -.24307E-03
  41  Prefactor     .77819        .23530        .30347E-03   -.30330E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.70751
  Prefactor  = 4.55386
  Prefactor  = 0.000100001
  Prefactor  = 28.8516
  norm       = 3.78754
  Prefactor  = 0.0001
  Prefactor  = 9.10873
  norm       = 0.0509611
  norm       = 21.9191
  norm       = 1.88391
  norm       = 36.5371
  Prefactor  = 0.0001
  Prefactor  = 8.64835
  Prefactor  = 0.000100026
  Prefactor  = 0.0626133
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.37536
  Prefactor  = 21.6568
  norm       = 0.0001
  Prefactor  = 19.8337
  Prefactor  = 51.0191
  Prefactor  = 0.0001
  Prefactor  = 75.5155
  Prefactor  = 15.8161
  norm       = 6.59248
  Prefactor  = 0.0001
  Prefactor  = 13.148
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.15714
  Prefactor  = 5.20849
  Prefactor  = 9.64448
  Prefactor  = 1.81119
  norm       = 3.28114
  Prefactor  = 0.0001
  Prefactor  = 1.11198
  Prefactor  = 0.000100001
  Normalizat = 1.09875
  Prefactor  = 0.77819  **********
 **   18 **HESSE 
 **********

 FCN=   6483.632     FROM HESSE     STATUS=OK          1009 CALLS     8895 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.7075        4.0152        .73958E-05   -1.5379    
   2  Prefactor     4.5539        111.14        .74890E-05   -1.5281    
   3  Prefactor     .10000E-03    126.11        .22172E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     28.852        46.752        .29847E-05   -1.4633    
   5  norm          3.7875        4.3644        .67915E-05   -1.5319    
   6  Prefactor     .10000E-03    81.185        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     9.1087        226.24        .53819E-05   -1.5104    
   8  norm          .50961E-01    7.3347        .24494E-03   -1.5663    
   9  norm          21.919        44.123        .34252E-05   -1.4771    
  10  norm          1.8839        3.0729        .69359E-05   -1.5433    
  11  norm          36.537        18.095        .13260E-04   -1.4498    
  12  Prefactor     .10000E-03    23.557        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     8.6484        12.345        .54512E-05   -1.5120    
  14  Prefactor     .10003E-03    34.702        .13015       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .62613E-01    3.5273        .47030E-01   -1.5658    
  16  Prefactor     .10000E-03    23.932        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.9981        .43779E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    9.6775        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.3754        3.0522        .71346E-05   -1.5473    
  20  Prefactor     21.657        18.414        .34432E-05   -1.4777    
  21  norm          .10000E-03    5.4747        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     19.834        28.988        .35987E-05   -1.4817    
  23  Prefactor     51.019        31.374        .11229E-04   -1.4278    
  24  Prefactor     .10000E-03    53.897        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     75.516        35.771        .92406E-05   -1.3968    
  26  Prefactor     15.816        27.690        .40239E-05   -1.4912    
  27  norm          6.5925        5.6683        .62522E-05   -1.5194    
  28  Prefactor     .10000E-03    12.714        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     13.148        14.865        .44190E-05   -1.4983    
  30  norm          .10000E-03    3.3060        .28588E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    4.3161        .32648E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  norm          2.1571        1.3123        .27776E-05   -1.5414    
  33  Prefactor     5.2085        6.6540        .70456E-05   -1.5251    
  34  Prefactor     9.6445        14.760        .51635E-05   -1.5087    
  35  Prefactor     1.8112        2.8985        .67927E-05   -1.5439    
  36  norm          3.2811        3.5741        .60317E-05   -1.5346    
  37  Prefactor     .10000E-03    2.8171        .26354E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  38  Prefactor     1.1120        62.331        .89697E-04   -1.5497    
  39  Prefactor     .10000E-03    9.2506        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  40  Normalizat    1.0988        .22894        .45219E-04   -.89792    
  41  Prefactor     .77819        .23556        .12139E-04   -1.0054    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17362e-09
Minuit parameter uncertainties:
  1  4.01565
  2  45.0879
  3  0.000605893
  4  46.8119
  5  4.36473
  6  0.000188476
  7  91.1788
  8  1.22171
  9  44.1885
  10  3.07316
  11  18.0978
  12  8.6225e-05
  13  12.3482
  14  0.00188973
  15  0.939212
  16  0.000139562
  17  2.00328e-05
  18  2.90477e-05
  19  3.05254
  20  18.4191
  21  1.35879e-05
  22  29.0089
  23  31.384
  24  0.000240311
  25  35.7813
  26  27.7124
  27  5.66873
  28  1.36482e-05
  29  14.8688
  30  5.92351e-06
  31  2.00321e-05
  32  1.31227
  33  6.65498
  34  14.7657
  35  2.89873
  36  3.57435
  37  3.17776e-05
  38  16.6682
  39  0.000152883
  40  0.229143
  41  0.235866DDone.

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

Extracting fit parameters...

4FGL J1417.9+4613
   Spectrum: PowerLaw
310    Prefactor:  1.000e-04  1.396e-04  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.782e-01  2.359e-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.099e+00  2.291e-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: 8.75e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.99e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/405623/likelihoodResults_677894401_678153601_4FGL_J1417.9+4613_daily_bin1692.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) = 6483.63249101
delta logL = -0.000199153385438

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6483.63229493
delta logL = -3.07314985548e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3289       1.0000          .0000       10.000    
     3 'Normalizat'    1.0988       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77820       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=   6483.591     FROM MIGRAD    STATUS=FAILED       170 CALLS      359 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2857        337.65        .18142E-01   -.11496E-02
   2  Index         4.8975        6.4795        .50000        .28783E-04
   3  Normalizat    1.0790        .51651E-01    .22610E-03    .25945E-04
   4  Prefactor     .79296        .53151E-01    .30346E-03    .88039E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6483.591     FROM SIMPLEX   STATUS=UNCHANGED     85 CALLS      444 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2857        337.65        .30705E-03   -.11496E-02
   2  Index         4.8975        6.4795        .45990E-02    .28783E-04
   3  Normalizat    1.0790        .51651E-01    .15290E-03    .25945E-04
   4  Prefactor     .79296        .53151E-01    .97293E-04    .88039E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6483.591     FROM MIGRAD    STATUS=CONVERGED     40 CALLS      484 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2857        17.932        .29323E-03   -.29970E-04
   2  Index         4.8975        7.2696        .19495E-01    .61997E-05
   3  Normalizat    1.0790        .20905        .90442E-05    .25895E-04
   4  Prefactor     .79296        .23326        .12138E-04    .88039E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.28568
  Index      = 4.89753
  Normalizat = 1.07901
  Prefactor  = 0.792963
 **********
 **   18 **HESSE 
 **********

 FCN=   6483.591     FROM HESSE     STATUS=OK            25 CALLS      509 TOTAL
                     EDM=   .17E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2857        9.9051        .11729E-04   -1.5935    
   2  Index         4.8975        3.8110        .77978E-03   -.20495E-01
   3  Normalizat    1.0790        .20863        .18088E-05   -.90429    
   4  Prefactor     .79296        .23290        .24277E-05   -.99988    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.65419e-12
Minuit parameter uncertainties:
  1  7.13855
  2  4.33387
  3  0.208792
  4  0.233192
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/405623': 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) = 6483.59132526
delta logL = 0.0409665960915

Extracting fit parameters...

4FGL J1417.9+4613
   Spectrum: PowerLaw
310    Prefactor:  1.286e+00  7.139e+00  1.000e-04  1.000e+04 ( 1.000e-12)
311        Index:  4.898e+00  4.334e+00  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.930e-01  2.332e-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.079e+00  2.088e-01  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/405623/cmap_HighResolution_677894401_678153601_4FGL_J1417.9+4613_daily_bin1692.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.99e-03', job_status='DONE', photon_flux_upper_limit='8.75e-08', time_completed='2022-06-29 04:59:19.762739', job_id='405623', GAL2='0.79', fit_tolerance='1e-08', EG2='1.08', EG='1.10', time_epoch_completed='1656503959.76', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='4.10e-02', ts2='0.09', photon_index_error='0.00', photon_index='2.97' WHERE bin_id='1692' AND source_name='4FGL J1417.9+4613' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jun 29 04:59:19 PDT 2022

-----------------------------------------------------------
Sender: LSF System <lsf@bullet0226>
Subject: Job 405657: <4FGL_J1417.9+4613_daily_bin1692> in cluster <slac> Done

Job <4FGL_J1417.9+4613_daily_bin1692> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Jun 29 00:07:03 2022
Job was executed on host(s) <bullet0226>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jun 29 04:33:00 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jun 29 04:33:00 2022
Terminated at Wed Jun 29 04:59:08 2022
Results reported at Wed Jun 29 04:59:08 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1417.9+4613_daily_bin1692 214.482 46.2327 677894401 678153601 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 :                                   1559.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             326.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1568 sec.
    Turnaround time :                            17525 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 405623: <4FGL_J1417.9+4613_daily_bin1692> in cluster <slac> Done

Job <4FGL_J1417.9+4613_daily_bin1692> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Jun 29 00:07:01 2022
Job was executed on host(s) <bullet0203>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jun 29 04:32:40 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jun 29 04:32:40 2022
Terminated at Wed Jun 29 04:59:20 2022
Results reported at Wed Jun 29 04:59:20 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1417.9+4613_daily_bin1692 214.482 46.2327 677894401 678153601 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 :                                   1547.00 sec.
    Max Memory :                                 1242 MB
    Average Memory :                             322.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1600 sec.
    Turnaround time :                            17539 sec.

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

