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


Performing analysis on: 4FGL_J1615.6+4712_monthly_bin168
RA = 243.922, Dec = 47.2028
tmin = 672451201, tmax = 675043201
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='638508', job_status='RUN', time_executed='2022-05-24 03:30:14.753839', time_epoch_executed='1653388214.75' WHERE source_name='4FGL J1615.6+4712' and cadence='monthly' and bin_id='168'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/638508

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

Retrieving the FT1 file...

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

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

Retrieving 455 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/638508/ft1_4FGL_J1615.6+4712_monthly_bin168.fits


Retrieving the FT1 file...

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

Retrieving 455 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/638508/ft2_4FGL_J1615.6+4712_monthly_bin168.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/638508/ft1_4FGL_J1615.6+4712_monthly_bin168.fits outfile=/scratch/kocevski/638508/ft1_filteredMKT_4FGL_J1615.6+4712_monthly_bin168.fits ra=243.922 dec=47.2028 rad=12.0 tmin=672451201.0 tmax=675043201.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 28.57
user 27.79
sys 0.70

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/638508/ft2_4FGL_J1615.6+4712_monthly_bin168.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/638508/ft2_4FGL_J1615.6+4712_monthly_bin168.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/638508/ft1_filteredMKT_4FGL_J1615.6+4712_monthly_bin168.fits evtable="EVENTS" outfile="/scratch/kocevski/638508/ft1_filtered_4FGL_J1615.6+4712_monthly_bin168.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: 9249

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/638508/ft1_filtered_4FGL_J1615.6+4712_monthly_bin168.fits" evtable="EVENTS" scfile=/scratch/kocevski/638508/ft2_4FGL_J1615.6+4712_monthly_bin168.fits sctable="SC_DATA" outfile=/scratch/kocevski/638508/ltcube_672451201_675043201_4FGL_J1615.6+4712_monthly_bin168.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/638508/ft2_4FGL_J1615.6+4712_monthly_bin168.fits
.....................!
real 137.87
user 137.12
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/638508/ft1_filtered_4FGL_J1615.6+4712_monthly_bin168.fits evtable="EVENTS" scfile=/scratch/kocevski/638508/ft2_4FGL_J1615.6+4712_monthly_bin168.fits sctable="SC_DATA" expcube=/scratch/kocevski/638508/ltcube_672451201_675043201_4FGL_J1615.6+4712_monthly_bin168.fits outfile=/scratch/kocevski/638508/expmap_672451201_675043201_4FGL_J1615.6+4712_monthly_bin168.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/638508/ltcube_672451201_675043201_4FGL_J1615.6+4712_monthly_bin168.fits
.....................!
real 192.29
user 186.82
sys 4.52

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

Setting source of interest to:
4FGL J1615.6+4712 @ 243.922 47.2028

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/638508/ft1_filtered_4FGL_J1615.6+4712_monthly_bin168.fits scfile=/scratch/kocevski/638508/ft2_4FGL_J1615.6+4712_monthly_bin168.fits outfile=/scratch/kocevski/638508/cmap_672451201_675043201_4FGL_J1615.6+4712_monthly_bin168.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=243.922 yref=47.2028 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.79
user 0.62
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/638508/ft1_filtered_4FGL_J1615.6+4712_monthly_bin168.fits scfile=/scratch/kocevski/638508/ft2_4FGL_J1615.6+4712_monthly_bin168.fits outfile=/scratch/kocevski/638508/cmap_HighResolution_672451201_675043201_4FGL_J1615.6+4712_monthly_bin168.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=243.922 yref=47.2028 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.84
user 0.64
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/638508/ft1_filtered_4FGL_J1615.6+4712_monthly_bin168.fits evtable="EVENTS" scfile=/scratch/kocevski/638508/ft2_4FGL_J1615.6+4712_monthly_bin168.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/638508/Model_4FGL_J1615.6+4712_monthly_bin168.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/638508/ft1_filtered_4FGL_J1615.6+4712_monthly_bin168.fits.....................!
real 600.19
user 597.59
sys 1.28

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/638508/ft1_filtered_4FGL_J1615.6+4712_monthly_bin168.fits', '/scratch/kocevski/638508/ft2_4FGL_J1615.6+4712_monthly_bin168.fits', expMap='/scratch/kocevski/638508/expmap_672451201_675043201_4FGL_J1615.6+4712_monthly_bin168.fits', expCube='/scratch/kocevski/638508/ltcube_672451201_675043201_4FGL_J1615.6+4712_monthly_bin168.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/638508/Model_4FGL_J1615.6+4712_monthly_bin168.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1615.6+4712'

4FGL J1615.6+4712
   Spectrum: PowerLaw
300    Prefactor:  1.421e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  2.189e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
302        Scale:  1.761e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/638508/ft1_filtered_4FGL_J1615.6+4712_monthly_bin168.fits
Spacecraft file(s): /scratch/kocevski/638508/ft2_4FGL_J1615.6+4712_monthly_bin168.fits
Exposure map: /scratch/kocevski/638508/expmap_672451201_675043201_4FGL_J1615.6+4712_monthly_bin168.fits
Exposure cube: /scratch/kocevski/638508/ltcube_672451201_675043201_4FGL_J1615.6+4712_monthly_bin168.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/638508/Model_4FGL_J1615.6+4712_monthly_bin168.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) = 99747.0791863

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2164       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .64398       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.2948       1.0000         .10000E-03   10000.    
     8 'norm      '    .57329       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .42494       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.9507       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .76135       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .66360       1.0000         .10000E-03   10000.    
    14 'norm      '    28.389       1.0000         .10000E-03   10000.    
    15 'norm      '    .52952E-01   1.0000         .10000E-03   10000.    
    16 'norm      '    1.3841       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.9073       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .83276       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.8628       1.0000         .10000E-03   10000.    
    20 'norm      '    4.2421       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.9197       1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.6124       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.0042       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    3.1500       1.0000         .10000E-03   10000.    
    27 'norm      '    .24278       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .90622       1.0000         .10000E-03   10000.    
    29 'norm      '    .31527       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .95501       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0627       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6760E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   99746.95     FROM MIGRAD    STATUS=CONVERGED    820 CALLS     3668 TOTAL
                     EDM=   .98E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2164        .74902         .0000        .88758E-02
   2  Prefactor     .64456        1.7566         .0000        .17497E-01
   3  Prefactor     .10000E-03    1.0214         .0000    ** at limit **
   4  Prefactor     .10000E-03    1.0946         .0000    ** at limit **
   5  norm          .10000E-03    2.6902         .0000    ** at limit **
   6  Prefactor     .10000E-03    .64925         .0000    ** at limit **
   7  Prefactor     2.2965        1.4058         .0000        .12512    
   8  norm          .57299        .77007         .0000        .80532E-02
   9  Prefactor     .40910        2.4013         .0000        .27806E-02
  10  Prefactor     .10000E-03    .26152         .0000    ** at limit **
  11  Prefactor     3.9506        4.4087         .0000        .21790E-01
  12  Prefactor     .76102        1.2408         .0000        .22440E-01
  13  Prefactor     .66373        .55372         .0000        .12710E-01
  14  norm          28.390        5.1596         .0000        .13703E-02
  15  norm          .52984E-01    .31036E-01     .0000        .43233E-01
  16  norm          1.3843        1.4826         .0000        .30943E-02
  17  Prefactor     3.9049        4.6098         .0000        .10674E-02
  18  Prefactor     .83281        .65875         .0000        .94774E-02
  19  Prefactor     2.8631        1.5012         .0000        .10540E-01
  20  norm          4.2394        6.6990         .0000       -.15278E-02
  21  Prefactor     1.9198        .54801         .0000        .11717E-01
  22  Prefactor     5.6122        .60060         .0000        .51144E-02
  23  Prefactor     1.0042        .58549         .0000        .85934E-02
  24  Prefactor     .10000E-03    .89404E-01     .0000    ** at limit **
  25  Prefactor     .10000E-03    .50698         .0000    ** at limit **
  26  norm          3.1499        .44254         .0000        .87241E-03
  27  norm          .24281        .16899         .0000        .21579E-01
  28  Prefactor     .90647        1.4205         .0000        .20563E-01
  29  norm          .31530        .17329         .0000        .21429E-01
  30  Normalizat    .95499        .48140E-01     .0000       -.53784E-03
  31  Prefactor     1.0627        .45603E-01     .0000       -.75185E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.21643
  Prefactor  = 0.644561
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.29648
  norm       = 0.572991
  Prefactor  = 0.409103
  Prefactor  = 0.0001
  Prefactor  = 3.95057
  Prefactor  = 0.761015
  Prefactor  = 0.663726
  norm       = 28.3901
  norm       = 0.052984
  norm       = 1.38434
  Prefactor  = 3.90487
  Prefactor  = 0.832808
  Prefactor  = 2.86312
  norm       = 4.23938
  Prefactor  = 1.91976
  Prefactor  = 5.6122
  Prefactor  = 1.0042
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.14994
  norm       = 0.242815
  Prefactor  = 0.906473
  norm       = 0.315295
  Normalizat = 0.954992
  Prefactor  = 1.0627
 **********
 **   18 **HESSE 
 **********

 FCN=   99746.95     FROM HESSE     STATUS=OK           656 CALLS     4324 TOTAL
                     EDM=   .28E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2164        .69655        .18545E-03   -1.5487    
   2  Prefactor     .64456        1.6840        .47381E-03   -1.5547    
   3  Prefactor     .10000E-03    1.0273        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.1157        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    2.7862        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    .65127        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.2965        1.4043        .13267E-02   -1.5405    
   8  norm          .57299        1.4157        .28637E-02   -1.5557    
   9  Prefactor     .40910        2.4469        .17139       -1.5580    
  10  Prefactor     .10000E-03    .26367        .15704E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.9506        4.3733        .10147E-02   -1.5310    
  12  Prefactor     .76102        1.2316        .40584E-03   -1.5534    
  13  Prefactor     .66373        .53747        .20376E-03   -1.5545    
  14  norm          28.390        5.1171        .75191E-04   -1.4642    
  15  norm          .52984E-01    .24870E-01    .35252E-03   -1.5662    
  16  norm          1.3843        1.4695        .36975E-03   -1.5473    
  17  Prefactor     3.9049        4.3755        .20411E-03   -1.5313    
  18  Prefactor     .83281        .56066        .21129E-02   -1.5525    
  19  Prefactor     2.8631        1.4955        .24026E-03   -1.5370    
  20  norm          4.2394        6.6609        .19564E-03   -1.5296    
  21  Prefactor     1.9198        .54462        .78435E-04   -1.5431    
  22  Prefactor     5.6122        .61023        .51273E-04   -1.5234    
  23  Prefactor     1.0042        .56819        .16964E-03   -1.5508    
  24  Prefactor     .10000E-03    .42682        .17897E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    .51431        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          3.1499        .44258        .75820E-04   -1.5353    
  27  norm          .24281        .15150        .96201E-03   -1.5609    
  28  Prefactor     .90647        1.3584        .41628E-03   -1.5518    
  29  norm          .31530        .15194        .89338E-03   -1.5596    
  30  Normalizat    .95499        .55783E-01    .25411E-03   -.94554    
  31  Prefactor     1.0627        .53827E-01    .24188E-03   -.90668    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.75916e-07
Minuit parameter uncertainties:
  1  0.696558
  2  1.6841
  3  8.06947e-06
  4  9.03609e-06
  5  2.5679e-05
  6  4.19843e-06
  7  1.40429
  8  1.41577
  9  2.0009
  10  2.46986e-06
  11  4.37368
  12  1.23161
  13  0.537471
  14  5.11714
  15  0.0248697
  16  1.46953
  17  4.37586
  18  0.560667
  19  1.49548
  20  6.66204
  21  0.544625
  22  0.610233
  23  0.568195
  24  1.01425e-06
  25  4.33094e-06
  26  0.442582
  27  0.151504
  28  1.35849
  29  0.151936
  30  0.055786
  31  0.0538302
Done.

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

Extracting fit parameters...

4FGL J1615.6+4712
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  2.470e-06  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  2.189e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
302        Scale:  1.761e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
673    Prefactor:  1.063e+00  5.383e-02  0.000e+00  1.000e+01 ( 1.000e+00)
674        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
675        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
672   Normalization:  9.550e-01  5.579e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 243.922 47.203
Photon Flux Upper Limit: 6.06e-09 ph cm-2 s-1
Energy Flux Upper Limit: 4.62e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/638508/likelihoodResults_672451201_675043201_4FGL_J1615.6+4712_monthly_bin168.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) = 99746.9455088
delta logL = -8.656308637e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 99746.9455004
delta logL = -2.06622644328e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1776       1.0000          .0000       10.000    
     3 'Normalizat'    .95502       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0627       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6760E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   99746.95     FROM MIGRAD    STATUS=CONVERGED     64 CALLS      218 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.7225        .90712E-02** at limit **
   2  Index         1.9491        6.6324        .50000       -.18983E-05
   3  Normalizat    .95499        .27389E-02    .45601E-01   -.55508E-03
   4  Prefactor     1.0627        .27482E-02    .39217E-01   -.72008E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.94909
  Normalizat = 0.954992
  Prefactor  = 1.0627
 **********
 **   18 **HESSE 
 **********

 FCN=   99746.95     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      249 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    55.335        .16013E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9491        7.7521        .20000       -.65629    
   3  Normalizat    .95499        .25176E-01    .25411E-03   -.94554    
   4  Prefactor     1.0627        .25269E-01    .24188E-03   -.90668    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.10729e-07
Minuit parameter uncertainties:
  1  4.90578e-05
  2  941.174
  3  0.025176
  4  0.0252693
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/638508': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 99746.9454943
delta logL = 5.85264933761e-06

Extracting fit parameters...

4FGL J1615.6+4712
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  4.906e-05  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  1.949e+00  9.412e+02  0.000e+00  1.000e+01 (-1.000e+00)
302        Scale:  1.761e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
673    Prefactor:  1.063e+00  2.527e-02  0.000e+00  1.000e+01 ( 1.000e+00)
674        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
675        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
672   Normalization:  9.550e-01  2.518e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 243.922 47.203

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/638508/cmap_HighResolution_672451201_675043201_4FGL_J1615.6+4712_monthly_bin168.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.62e-04', job_status='DONE', photon_flux_upper_limit='6.06e-09', time_completed='2022-05-24 06:32:37.817480', job_id='638508', GAL2='1.06', fit_tolerance='1e-08', EG2='0.95', EG='0.95', time_epoch_completed='1653399157.82', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='5.85e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='168' AND source_name='4FGL J1615.6+4712' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Tue May 24 06:32:37 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0209>
Subject: Job 638508: <4FGL_J1615.6+4712_monthly_bin168> in cluster <slac> Done

Job <4FGL_J1615.6+4712_monthly_bin168> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue May 24 03:20:34 2022
Job was executed on host(s) <bullet0209>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May 24 03:29:01 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue May 24 03:29:01 2022
Terminated at Tue May 24 06:32:39 2022
Results reported at Tue May 24 06:32:39 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1615.6+4712_monthly_bin168 243.922 47.2028 672451201 675043201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1615.6+4712 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   10887.00 sec.
    Max Memory :                                 1263 MB
    Average Memory :                             453.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   11017 sec.
    Turnaround time :                            11525 sec.

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

