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 13 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 = 74112
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1417.9+4613_monthly_bin169
RA = 214.482, Dec = 46.2327
tmin = 675043201, tmax = 677635201
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='171217', job_status='RUN', time_executed='2022-06-23 02:29:21.907624', time_epoch_executed='1655976561.91' WHERE source_name='4FGL J1417.9+4613' and cadence='monthly' and bin_id='169'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/171217

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

Retrieving the FT1 file...

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

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

Retrieving 456 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/171217/ft1_4FGL_J1417.9+4613_monthly_bin169.fits


Retrieving the FT1 file...

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

Retrieving 456 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/171217/ft2_4FGL_J1417.9+4613_monthly_bin169.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/171217/ft1_4FGL_J1417.9+4613_monthly_bin169.fits outfile=/scratch/kocevski/171217/ft1_filteredMKT_4FGL_J1417.9+4613_monthly_bin169.fits ra=214.482 dec=46.2327 rad=12.0 tmin=675043201.0 tmax=677635201.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 27.76
user 26.93
sys 0.75

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/171217/ft2_4FGL_J1417.9+4613_monthly_bin169.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/171217/ft1_filteredMKT_4FGL_J1417.9+4613_monthly_bin169.fits evtable="EVENTS" outfile="/scratch/kocevski/171217/ft1_filtered_4FGL_J1417.9+4613_monthly_bin169.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.86
user 0.68
sys 0.18

Number of photons that the gtmktime cut: 8272

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/171217/ft1_filtered_4FGL_J1417.9+4613_monthly_bin169.fits" evtable="EVENTS" scfile=/scratch/kocevski/171217/ft2_4FGL_J1417.9+4613_monthly_bin169.fits sctable="SC_DATA" outfile=/scratch/kocevski/171217/ltcube_675043201_677635201_4FGL_J1417.9+4613_monthly_bin169.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/171217/ft2_4FGL_J1417.9+4613_monthly_bin169.fits
.....................!
real 139.38
user 138.54
sys 0.45

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/171217/ft1_filtered_4FGL_J1417.9+4613_monthly_bin169.fits evtable="EVENTS" scfile=/scratch/kocevski/171217/ft2_4FGL_J1417.9+4613_monthly_bin169.fits sctable="SC_DATA" expcube=/scratch/kocevski/171217/ltcube_675043201_677635201_4FGL_J1417.9+4613_monthly_bin169.fits outfile=/scratch/kocevski/171217/expmap_675043201_677635201_4FGL_J1417.9+4613_monthly_bin169.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/171217/ltcube_675043201_677635201_4FGL_J1417.9+4613_monthly_bin169.fits
.....................!
real 195.49
user 189.72
sys 5.30

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/171217/ft1_filtered_4FGL_J1417.9+4613_monthly_bin169.fits scfile=/scratch/kocevski/171217/ft2_4FGL_J1417.9+4613_monthly_bin169.fits outfile=/scratch/kocevski/171217/cmap_675043201_677635201_4FGL_J1417.9+4613_monthly_bin169.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.82
user 0.64
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/171217/ft1_filtered_4FGL_J1417.9+4613_monthly_bin169.fits scfile=/scratch/kocevski/171217/ft2_4FGL_J1417.9+4613_monthly_bin169.fits outfile=/scratch/kocevski/171217/cmap_HighResolution_675043201_677635201_4FGL_J1417.9+4613_monthly_bin169.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.82
user 0.65
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.6006       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .99646       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.8339       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.2549       1.0000         .10000E-03   10000.    
     5 'norm      '    2.2754       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.5355       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .47399E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .42488       1.0000         .10000E-03   10000.    
     9 'norm      '    13.041       1.0000         .10000E-03   10000.    
    10 'norm      '    1.0144       1.0000         .10000E-03   10000.    
    11 'norm      '    .17435E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    76.343       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.1986       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .59117       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.2529       1.0000         .10000E-03   10000.    
    17 'norm      '    1.4304       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.8501       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.7183       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.3608       1.0000         .10000E-03   10000.    
    21 'norm      '    1.5434       1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.8787       1.0000         .10000E-03   10000.    
    23 'Prefactor '    9.8855       1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.8916       1.0000         .10000E-03   10000.    
    25 'Prefactor '    7.4403       1.0000         .10000E-03   10000.    
    26 'Prefactor '    12.757       1.0000         .10000E-03   10000.    
    27 'norm      '    .80276       1.0000         .10000E-03   10000.    
    28 'Prefactor '    14.771       1.0000         .10000E-03   10000.    
    29 'Prefactor '    3.3184       1.0000         .10000E-03   10000.    
    30 'norm      '    3.3399       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
    32 'norm      '    2.5800       1.0000         .10000E-03   10000.    
    33 'Prefactor '    .24907       1.0000         .10000E-03   10000.    
    34 'Prefactor '    2.0493       1.0000         .10000E-03   10000.    
    35 'Prefactor '    1.2382       1.0000         .10000E-03   10000.    
    36 'norm      '    .47751E-01   1.0000         .10000E-03   10000.    
    37 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    38 'Prefactor '    2.9265       1.0000         .10000E-03   10000.    
    39 'Prefactor '    .10284E-03   1.0000         .10000E-03   10000.    
    40 'Normalizat'    1.0673       1.0000         .10000E-01   10.000    
    41 'Prefactor '    .98102       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=   89841.33     FROM MIGRAD    STATUS=CONVERGED   1278 CALLS     5798 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.6004        .69984       -.24468E-07   -.99523E-04
   2  Prefactor     .98927        .93968       -.32451E-06   -.53206E-03
   3  Prefactor     9.8314        4.1145        .39584E-06    .22787E-04
   4  Prefactor     7.2908        6.5137        .25340E-05    .78626E-04
   5  norm          2.2751        .90097       -.13497E-06   -.20268E-03
   6  Prefactor     9.5226        11.253       -.47199E-06   -.11770E-04
   7  Prefactor     .10005E-03    3.2129       -.26749E-06** at limit **
   8  norm          .42478        .26770       -.63965E-07   -.18144E-02
   9  norm          13.043        9.2502       -.24940E-06   -.32207E-05
  10  norm          1.0146        .84362        .99042E-07    .21369E-03
  11  norm          .10000E-03    .57875        .88871E-08** at limit **
  12  Prefactor     76.331        13.475       -.17289E-05   -.25015E-04
  13  Prefactor     .10000E-03    .55758        .58903E-07** at limit **
  14  Prefactor     7.1924        7.4355        .12564E-05    .24531E-04
  15  Prefactor     .59084        .62703        .24701E-07    .16840E-03
  16  Prefactor     3.2603        3.3109       -.58411E-06   -.27415E-04
  17  norm          1.4305        .81844        .94076E-10    .31693E-04
  18  Prefactor     2.8492        2.9025       -.23376E-07    .41401E-04
  19  Prefactor     2.7184        .67299        .12437E-07   -.38480E-04
  20  Prefactor     1.3591        3.2974       -.16381E-06   -.14908E-04
  21  norm          1.5403        1.8777       -.89677E-07   -.44828E-05
  22  Prefactor     8.8829        6.3529        .45545E-07   -.54097E-04
  23  Prefactor     9.8772        6.7261        .97146E-06    .28471E-04
  24  Prefactor     1.9678        8.1163       -.32760E-05   -.18097E-04
  25  Prefactor     7.4334        4.4495        .17622E-05    .27360E-04
  26  Prefactor     12.752        5.5974        .39129E-06   -.44113E-05
  27  norm          .80266        .79872        .21497E-07    .94576E-04
  28  Prefactor     14.762        7.1979       -.34851E-06   -.24287E-05
  29  Prefactor     3.3129        2.9203        .41998E-06   -.33077E-04
  30  norm          3.3385        1.4203        .50023E-07    .38675E-04
  31  Prefactor     .10000E-03    .88801        .52076E-07** at limit **
  32  norm          2.5801        .39857        .10429E-07    .64752E-04
  33  Prefactor     .24867        .57547       -.15264E-06    .56296E-03
  34  Prefactor     2.0436        2.7071       -.40766E-06   -.24788E-04
  35  Prefactor     1.2385        .82302        .66645E-08    .38320E-04
  36  norm          .48532E-01    .14147       -.52602E-07    .97022E-03
  37  Prefactor     .10000E-03    .37712        .35276E-07** at limit **
  38  Prefactor     2.9318        3.7662        .85770E-06   -.40680E-04
  39  Prefactor     .10000E-03    1.0169       -.31183E-07** at limit **
  40  Normalizat    1.0673        .45872E-01   -.23563E-06    .56911E-03
  41  Prefactor     .98102        .51406E-01   -.72804E-08    .18415E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.60043
  Prefactor  = 0.989269
  Prefactor  = 9.83144
  Prefactor  = 7.29079
  norm       = 2.27507
  Prefactor  = 9.52263
  Prefactor  = 0.00010005
  norm       = 0.424776
  norm       = 13.0429
  norm       = 1.01458
  norm       = 0.0001
  Prefactor  = 76.3314
  Prefactor  = 0.0001
  Prefactor  = 7.19237
  Prefactor  = 0.590838
  Prefactor  = 3.26029
  norm       = 1.43055
  Prefactor  = 2.8492
  Prefactor  = 2.71837
  Prefactor  = 1.35914
  norm       = 1.54031
  Prefactor  = 8.88287
  Prefactor  = 9.8772
  Prefactor  = 1.96781
  Prefactor  = 7.43344
  Prefactor  = 12.7522
  norm       = 0.802664
  Prefactor  = 14.7624
  Prefactor  = 3.31291
  norm       = 3.3385
  Prefactor  = 0.0001
  norm       = 2.58013
  Prefactor  = 0.248667
  Prefactor  = 2.04361
  Prefactor  = 1.23847
  norm       = 0.0485322
  Prefactor  = 0.0001
  Prefactor  = 2.93179
  Prefactor  = 0.0001
  Normalizat = 1.06733
  Prefactor  = 0.981019
 **********
 **   18 **HESSE 
 **********

 FCN=   89841.33     FROM HESSE     STATUS=OK          1071 CALLS     6869 TOTAL
                     EDM=   .68E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.6004        .69677        .16067E-03   -1.5455    
   2  Prefactor     .98927        3.6130        .26306E-02   -1.5509    
   3  Prefactor     9.8314        4.0866        .12778E-03   -1.5081    
   4  Prefactor     7.2908        6.6228        .14892E-03   -1.5168    
   5  norm          2.2751        .89168        .16126E-03   -1.5406    
   6  Prefactor     9.5226        11.224        .12978E-03   -1.5091    
   7  Prefactor     .10005E-03    3.2530        .16990       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .42478        .23762        .11573E-02   -1.5578    
   9  norm          13.043        9.2430        .11092E-03   -1.4986    
  10  norm          1.0146        .82673        .23688E-03   -1.5507    
  11  norm          .10000E-03    3.1103        .43787E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     76.331        13.443        .45957E-04   -1.3958    
  13  Prefactor     .10000E-03    .55893        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.1924        7.3299        .14950E-03   -1.5172    
  15  Prefactor     .59084        .62517        .22932E-02   -1.5554    
  16  Prefactor     3.2603        3.2892        .22455E-03   -1.5347    
  17  norm          1.4305        .80816        .19694E-03   -1.5469    
  18  Prefactor     2.8492        2.7161        .24083E-03   -1.5370    
  19  Prefactor     2.7184        .66578        .10746E-03   -1.5378    
  20  Prefactor     1.3591        3.0856        .37438E-03   -1.5475    
  21  norm          1.5403        1.8468        .34310E-03   -1.5460    
  22  Prefactor     8.8829        6.3329        .67258E-03   -1.5112    
  23  Prefactor     9.8772        6.6751        .12745E-03   -1.5079    
  24  Prefactor     1.9678        8.0345        .30252E-03   -1.5427    
  25  Prefactor     7.4334        4.4383        .14703E-03   -1.5163    
  26  Prefactor     12.752        5.5912        .11215E-03   -1.4994    
  27  norm          .80266        .91888        .25401E-02   -1.5529    
  28  Prefactor     14.762        7.1774        .10422E-03   -1.4939    
  29  Prefactor     3.3129        2.9573        .11111E-02   -1.5344    
  30  norm          3.3385        1.4199        .22147E-03   -1.5343    
  31  Prefactor     .10000E-03    .89872        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  norm          2.5801        .39769        .71396E-04   -1.5387    
  33  Prefactor     .24867        .80814        .33433E-02   -1.5608    
  34  Prefactor     2.0436        2.6975        .28879E-03   -1.5422    
  35  Prefactor     1.2385        .81593        .21434E-03   -1.5485    
  36  norm          .48532E-01    .77967        .18549E-02   -1.5664    
  37  Prefactor     .10000E-03    .38347        .17942E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  38  Prefactor     2.9318        3.7871        .11873E-02   -1.5366    
  39  Prefactor     .10000E-03    1.0558        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  40  Normalizat    1.0673        .52803E-01    .22017E-03   -.90808    
  41  Prefactor     .98102        .59971E-01    .27474E-03   -.93365    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.80218e-08
Minuit parameter uncertainties:
  1  0.696773
  2  3.61377
  3  4.08668
  4  6.62346
  5  0.891686
  6  11.2267
  7  0.000804186
  8  0.237625
  9  9.244
  10  0.826739
  11  6.33272e-05
  12  13.4434
  13  3.18686e-07
  14  7.33077
  15  0.625177
  16  3.2894
  17  0.808168
  18  2.71617
  19  0.665784
  20  3.08594
  21  1.84682
  22  6.33335
  23  6.6756
  24  7.95411
  25  4.43849
  26  5.59143
  27  0.918896
  28  7.17784
  29  2.95744
  30  1.41989
  31  4.2398e-07
  32  0.397689
  33  0.808176
  34  2.6977
  35  0.815939
  36  0.38865
  37  3.30619e-07
  38  3.78738
  39  1.83872e-06
  40  0.0528053
  41  0.0599749
Done.

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

Extracting fit parameters...

4FGL J1417.9+4613
   Spectrum: PowerLaw
310    Prefactor:  3.260e+00  3.289e+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

GAL_V02
   Spectrum: PowerLaw
642    Prefactor:  9.810e-01  5.997e-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:  1.067e+00  5.281e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.21
Ra Dec: 214.482 46.233
Photon Index (Fixed Index): 2.97 +/- 0.00
Photon Flux (Fixed Index): 6.54e-09 +/- 6.59e-09
Energy Flux (Fixed Index): 1.32e-06 +/- 1.34e-06

TS (Fixed Index): 1.21
Ra Dec: 214.482 46.233
Photon Flux Upper Limit: 1.97e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.57e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/171217/likelihoodResults_675043201_677635201_4FGL_J1417.9+4613_monthly_bin169.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) = 89839.4876635
delta logL = 1.84321337317

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 89839.4238224
delta logL = 1.90705447273

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.3219       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0389       1.0000          .0000       10.000    
     3 'Normalizat'    1.0724       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97483       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.

 FCN=   89839.42     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      227 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.3169        2.6535        .48443E-02    .10849E-02
   2  Index         2.0383        .22569        .27529       -.83320E-03
   3  Normalizat    1.0724        .42083E-01    .39253E-01    .84655E-04
   4  Prefactor     .97488        .50813E-01    .45952E-01    .24645E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.31688
  Index      = 2.03835
  Normalizat = 1.07239
  Prefactor  = 0.974876
 **********
 **   18 **HESSE 
 **********

 FCN=   89839.42     FROM HESSE     STATUS=OK            33 CALLS      260 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.3169        2.9890        .19377E-03   -1.5292    
   2  Index         2.0383        .36312        .16231E-01   -.63395    
   3  Normalizat    1.0724        .48867E-01    .21968E-03   -.90643    
   4  Prefactor     .97488        .58920E-01    .27544E-03   -.93572    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.48754e-10
Minuit parameter uncertainties:
  1  2.98911
  2  0.36361
  3  0.0488695
  4  0.0589239
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/171217': 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) = 89839.4238206
delta logL = 1.90705632551

Extracting fit parameters...

4FGL J1417.9+4613
   Spectrum: PowerLaw
310    Prefactor:  4.317e+00  2.989e+00  1.000e-04  1.000e+04 ( 1.000e-12)
311        Index:  2.038e+00  3.636e-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:  9.749e-01  5.892e-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:  1.072e+00  4.887e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.02
Ra Dec: 214.482 46.233
Photon Index (Free Index): 2.04 +/- 0.36
Photon Flux (Free Index): 5.17e-09 +/- 3.86e-09
Energy Flux (Free Index): 3.26e-06 +/- 2.41e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /scratch/kocevski/171217/cmap_HighResolution_675043201_677635201_4FGL_J1417.9+4613_monthly_bin169.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.57e-03', comment='SUCCESS', photon_flux='6.54e-09', energy_flux2='3.26e-06', photon_flux_error='6.59e-09', dlogl='1.91e+00', energy_flux='1.32e-06', photon_flux2='5.17e-09', job_status='DONE', time_completed='2022-06-23 06:32:09.581068', photon_index_error2='0.36', photon_index2='2.04', ts='1.21', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='1.97e-08', energy_flux_error2='2.41e-06', EG='1.07', time_epoch_completed='1655991129.58', return_code='0', job_id='171217', GAL2='0.97', EG2='1.07', return_code2='0', energy_flux_error='1.34e-06', photon_flux_error2='3.86e-09', ts2='5.02', photon_index='2.97' WHERE bin_id='169' AND source_name='4FGL J1417.9+4613' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Thu Jun 23 06:32:09 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0063>
Subject: Job 171217: <4FGL_J1417.9+4613_monthly_bin169> in cluster <slac> Done

Job <4FGL_J1417.9+4613_monthly_bin169> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Thu Jun 23 01:55:25 2022
Job was executed on host(s) <bullet0063>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jun 23 02:29:00 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Jun 23 02:29:00 2022
Terminated at Thu Jun 23 06:32:10 2022
Results reported at Thu Jun 23 06:32:10 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1417.9+4613_monthly_bin169 214.482 46.2327 675043201 677635201 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 :                                   14486.44 sec.
    Max Memory :                                 1271 MB
    Average Memory :                             457.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   3418 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   14590 sec.
    Turnaround time :                            16605 sec.

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

