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 20 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J1615.6+4712_daily_bin1749
RA = 243.922, Dec = 47.2028
tmin = 692668801, tmax = 692928001
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='956875', job_status='RUN', time_executed='2022-12-17 01:00:54.209306', time_epoch_executed='1671267654.21' WHERE source_name='4FGL J1615.6+4712' and cadence='daily' and bin_id='1749'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/956875

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/956875/ft1_4FGL_J1615.6+4712_daily_bin1749.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/956875/ft2_4FGL_J1615.6+4712_daily_bin1749.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/956875/ft1_4FGL_J1615.6+4712_daily_bin1749.fits outfile=/scratch/kocevski/956875/ft1_filteredMKT_4FGL_J1615.6+4712_daily_bin1749.fits ra=243.922 dec=47.2028 rad=12.0 tmin=692668801.0 tmax=692928001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.66
user 3.42
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/956875/ft2_4FGL_J1615.6+4712_daily_bin1749.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/956875/ft1_filteredMKT_4FGL_J1615.6+4712_daily_bin1749.fits evtable="EVENTS" outfile="/scratch/kocevski/956875/ft1_filtered_4FGL_J1615.6+4712_daily_bin1749.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.49
user 0.33
sys 0.16

Number of photons that the gtmktime cut: 629

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/956875/ft1_filtered_4FGL_J1615.6+4712_daily_bin1749.fits" evtable="EVENTS" scfile=/scratch/kocevski/956875/ft2_4FGL_J1615.6+4712_daily_bin1749.fits sctable="SC_DATA" outfile=/scratch/kocevski/956875/ltcube_692668801_692928001_4FGL_J1615.6+4712_daily_bin1749.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/956875/ft2_4FGL_J1615.6+4712_daily_bin1749.fits
.....................!
real 12.15
user 11.77
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/956875/ft1_filtered_4FGL_J1615.6+4712_daily_bin1749.fits evtable="EVENTS" scfile=/scratch/kocevski/956875/ft2_4FGL_J1615.6+4712_daily_bin1749.fits sctable="SC_DATA" expcube=/scratch/kocevski/956875/ltcube_692668801_692928001_4FGL_J1615.6+4712_daily_bin1749.fits outfile=/scratch/kocevski/956875/expmap_692668801_692928001_4FGL_J1615.6+4712_daily_bin1749.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/956875/ltcube_692668801_692928001_4FGL_J1615.6+4712_daily_bin1749.fits
.....................!
real 191.43
user 185.43
sys 5.68

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/956875/ft1_filtered_4FGL_J1615.6+4712_daily_bin1749.fits scfile=/scratch/kocevski/956875/ft2_4FGL_J1615.6+4712_daily_bin1749.fits outfile=/scratch/kocevski/956875/cmap_692668801_692928001_4FGL_J1615.6+4712_daily_bin1749.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/956875/ft1_filtered_4FGL_J1615.6+4712_daily_bin1749.fits scfile=/scratch/kocevski/956875/ft2_4FGL_J1615.6+4712_daily_bin1749.fits outfile=/scratch/kocevski/956875/cmap_HighResolution_692668801_692928001_4FGL_J1615.6+4712_daily_bin1749.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.56
user 0.38
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/956875/ft1_filtered_4FGL_J1615.6+4712_daily_bin1749.fits', '/scratch/kocevski/956875/ft2_4FGL_J1615.6+4712_daily_bin1749.fits', expMap='/scratch/kocevski/956875/expmap_692668801_692928001_4FGL_J1615.6+4712_daily_bin1749.fits', expCube='/scratch/kocevski/956875/ltcube_692668801_692928001_4FGL_J1615.6+4712_daily_bin1749.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/956875/Model_4FGL_J1615.6+4712_daily_bin1749.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  0.000e+00  1.000e+06 ( 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/956875/ft1_filtered_4FGL_J1615.6+4712_daily_bin1749.fits
Spacecraft file(s): /scratch/kocevski/956875/ft2_4FGL_J1615.6+4712_daily_bin1749.fits
Exposure map: /scratch/kocevski/956875/expmap_692668801_692928001_4FGL_J1615.6+4712_daily_bin1749.fits
Exposure cube: /scratch/kocevski/956875/ltcube_692668801_692928001_4FGL_J1615.6+4712_daily_bin1749.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/956875/Model_4FGL_J1615.6+4712_daily_bin1749.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) = 6705.90951984

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .35306E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    .45596E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    .15710E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    2.5650       1.0000          .0000       .10000E+07
     5 'norm      '    .35694E-07   1.0000          .0000       .10000E+07
     6 'Prefactor '    .93918E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    .84848E-05   1.0000          .0000       .10000E+07
     8 'norm      '    7.6983       1.0000          .0000       .10000E+07
     9 'Prefactor '    .41066E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    .48031E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    1.0998       1.0000          .0000       .10000E+07
    12 'Prefactor '    5.2169       1.0000          .0000       .10000E+07
    13 'Prefactor '    .36980E-04   1.0000          .0000       .10000E+07
    14 'norm      '    .12164E-04   1.0000          .0000       .10000E+07
    15 'norm      '    .69651       1.0000          .0000       .10000E+07
    16 'norm      '    .55100E-04   1.0000          .0000       .10000E+07
    17 'Prefactor '    32.948       1.0000          .0000       .10000E+07
    18 'Prefactor '    .22931E-04   1.0000          .0000       .10000E+07
    19 'Prefactor '    11.091       1.0000          .0000       .10000E+07
    20 'norm      '    .17811E-01   1.0000          .0000       .10000E+07
    21 'Prefactor '    .19068E-06   1.0000          .0000       .10000E+07
    22 'Prefactor '    1.1321       1.0000          .0000       .10000E+07
    23 'Prefactor '    5.3099       1.0000          .0000       .10000E+07
    24 'Prefactor '    3.9487       1.0000          .0000       .10000E+07
    25 'Prefactor '    8.9292       1.0000          .0000       .10000E+07
    26 'norm      '    4.2114       1.0000          .0000       .10000E+07
    27 'norm      '    .30213E-05   1.0000          .0000       .10000E+07
    28 'Prefactor '    4.6778       1.0000          .0000       .10000E+07
    29 'norm      '    .40851E-06   1.0000          .0000       .10000E+07
    30 'Normalizat'    1.0226       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .87650       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6760E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6705.790     FROM MIGRAD    STATUS=CONVERGED    185 CALLS     2340 TOTAL
                     EDM=   .69E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .17764E-08    3.0845       -.62509E-07** at limit **
   2  Prefactor     .24369E-07    3.5004       -.66544E-07** at limit **
   3  Prefactor     .26090E-08    18.845        .11594E-06** at limit **
   4  Prefactor     2.5240        5.4215       -.20668E-06   -.47569E-02
   5  norm          .11657E-08    2.0083       -.42899E-07** at limit **
   6  Prefactor     .10647E-06    2.5969        .58059E-07** at limit **
   7  Prefactor     .55511E-10    2.3203       -.36668E-07** at limit **
   8  norm          7.6655        6.4424        .72429E-07    .21786E-01
   9  Prefactor     .61062E-09    61.931       -.13926E-05** at limit **
  10  Prefactor     .76050E-08    2.4583       -.13486E-06** at limit **
  11  Prefactor     1.0991        64.321       -.55060E-07   -.47219E-02
  12  Prefactor     5.1769        6.3363        .97400E-07   -.62477E-02
  13  Prefactor      .0000        1.1588        .44817E-07** at limit **
  14  norm          .23537E-07    7.4570        .48579E-06** at limit **
  15  norm          .69622        .16592        .45507E-08    .56156E-02
  16  norm          .46907E-07    2.3936       -.91553E-07** at limit **
  17  Prefactor     32.917        1.0678        .85991E-09    .24628E-02
  18  Prefactor      .0000        1.1890        .46398E-07** at limit **
  19  Prefactor     11.091        6.2669       -.39863E-07   -.60315E-01
  20  norm          .20539E-08    .79148       -.17764E-07** at limit **
  21  Prefactor      .0000        .49078       -.45225E-08** at limit **
  22  Prefactor     1.1306        .92426        .10630E-07    .52774E-03
  23  Prefactor     5.3106        3.2964        .54997E-07    .31019E-02
  24  Prefactor     3.9441        2.7300       -.31914E-07    .32179E-03
  25  Prefactor     8.9238        1.4506       -.91508E-08   -.63761E-02
  26  norm          4.2145        1.9124        .14063E-07    .76153E-03
  27  norm           .0000        1.3244        .26433E-07** at limit **
  28  Prefactor     4.6760        6.0663        .91745E-07   -.48880E-01
  29  norm           .0000        .41488       -.17802E-07** at limit **
  30  Normalizat    1.0234        .20632       -.15758E-05   -.43599E-04
  31  Prefactor     .87609        .19588       -.99310E-07   -.36107E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.77636e-09
  Prefactor  = 2.43694e-08
  Prefactor  = 2.60902e-09
  Prefactor  = 2.52405
  norm       = 1.16573e-09
  Prefactor  = 1.0647e-07
  Prefactor  = 5.55112e-11
  norm       = 7.66553
  Prefactor  = 6.10623e-10
  Prefactor  = 7.60503e-09
  Prefactor  = 1.09911
  Prefactor  = 5.17691
  Prefactor  = 0
  norm       = 2.35367e-08
  norm       = 0.696221
  norm       = 4.69069e-08
  Prefactor  = 32.9172
  Prefactor  = 0
  Prefactor  = 11.0913
  norm       = 2.05391e-09
  Prefactor  = 0
  Prefactor  = 1.13064
  Prefactor  = 5.31064
  Prefactor  = 3.94406
  Prefactor  = 8.92381
  norm       = 4.21447
  norm       = 0
  Prefactor  = 4.676
  norm       = 0
  Normalizat = 1.02338
  Prefactor  = 0.876085
 **********
 **   18 **HESSE 
 **********

 FCN=   6705.790     FROM HESSE     STATUS=OK           690 CALLS     3030 TOTAL
                     EDM=   .90E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .17764E-08    3.0746        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .24369E-07    4.4406        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .26090E-08    18.884        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.5240        11.113        .63712E-03   -1.5676    
   5  norm          .11657E-08    5.6572        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10647E-06    5.9760        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .55511E-10    2.3142        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          7.6655        6.5210        .36118E-03   -1.5653    
   9  Prefactor     .61062E-09    61.934        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .76050E-08    4.6970        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.0991        13.166        .11331E-01   -1.5687    
  12  Prefactor     5.1769        6.4198        .43986E-03   -1.5662    
  13  Prefactor      .0000        1.1554        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .23537E-07    7.7457        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .69622        .17244        .35071E-03   -1.5691    
  16  norm          .46907E-07    5.4830        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     32.917        20.359        .17424E-03   -1.5593    
  18  Prefactor      .0000        1.1885        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     11.091        7.2519        .30058E-03   -1.5641    
  20  norm          .20539E-08    24.124        .17185E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor      .0000        .48875        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.1306        .96354        .10967E-02   -1.5687    
  23  Prefactor     5.3106        3.3498        .43592E-03   -1.5662    
  24  Prefactor     3.9441        2.7788        .50739E-03   -1.5668    
  25  Prefactor     8.9238        7.8617        .33518E-03   -1.5648    
  26  norm          4.2145        1.9149        .49081E-03   -1.5667    
  27  norm           .0000        .57607        .18634E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     4.6760        8.0437        .46505E-03   -1.5665    
  29  norm           .0000        .41015        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.0234        .18367        .42993E-01   -.92251    
  31  Prefactor     .87609        .16754        .44705E-01   -.96982    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.04046e-08
Minuit parameter uncertainties:
  1  0.000147449
  2  0.000657691
  3  0.00044232
  4  10.5926
  5  0.000163988
  6  0.00159537
  7  2.1022e-05
  8  6.52102
  9  0.000395051
  10  0.000378104
  11  7.60828
  12  6.41977
  13  6.80955e-06
  14  0.000853508
  15  0.17244
  16  0.00101406
  17  20.3593
  18  8.00482e-06
  19  7.25189
  20  0.000447842
  21  1.21997e-06
  22  0.963536
  23  3.3498
  24  2.77877
  25  7.86171
  26  1.91487
  27  6.85722e-06
  28  8.04372
  29  1.07609e-06
  30  0.18378
  31  0.167643
Done.

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

Extracting fit parameters...

4FGL J1615.6+4712
   Spectrum: PowerLaw
300    Prefactor:  7.605e-09  3.781e-04  0.000e+00  1.000e+06 ( 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:  8.761e-01  1.676e-01  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:  1.023e+00  1.838e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 243.922 47.203
Photon Flux Upper Limit: 5.06e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.85e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/956875/likelihoodResults_692668801_692928001_4FGL_J1615.6+4712_daily_bin1749.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) = 6705.7903632
delta logL = -0.000565524443118

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6705.46781672
delta logL = 0.321980950061

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11342E-01   1.0000          .0000       .10000E+07
     2 'Index     '    4.8307       1.0000          .0000       10.000    
     3 'Normalizat'    .97917       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90296       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6705.790     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      301 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .29879        .42118E-03** at limit **
   2  Index         .25948        .31815       -.10551E-03     .0000    
   3  Normalizat    1.0234        1.3364       -.12935E-04    .12808E-02
   4  Prefactor     .87608        1.2308        .59373E-05    .16105E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 0.259483
  Normalizat = 1.02338
  Prefactor  = 0.876078
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6705.790     FROM HESSE     STATUS=FAILED         9 CALLS      310 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .29879        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .86630E-01    .31815       -.10551E-03   -7.5304    
   3  Normalizat    1.0234        1.3364       -.12935E-04   -2.2191    
   4  Prefactor     .87608        1.2308        .59373E-05   -2.1718    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.93355e-09
Minuit parameter uncertainties:
  1  3.14589e-06
  2  0.320315
  3  1.38454
  4  1.27346
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/956875': 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): 101
logL (Free Index) = 6705.78979767
delta logL = -6.33917807136e-10

Extracting fit parameters...

4FGL J1615.6+4712
   Spectrum: PowerLaw
300    Prefactor:  0.000e+00  3.146e-06  0.000e+00  1.000e+06 ( 1.000e-13)
301        Index:  2.595e-01  3.203e-01  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:  8.761e-01  1.273e+00  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:  1.023e+00  1.385e+00  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/956875/cmap_HighResolution_692668801_692928001_4FGL_J1615.6+4712_daily_bin1749.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.85e-03', job_status='DONE', photon_flux_upper_limit='5.06e-08', time_completed='2022-12-17 01:14:23.647007', job_id='956875', GAL2='0.88', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1671268463.65', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='-6.34e-10', ts2='0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='1749' AND source_name='4FGL J1615.6+4712' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Dec 17 01:14:23 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 956875: <4FGL_J1615.6+4712_daily_bin1749> in cluster <slac> Done

Job <4FGL_J1615.6+4712_daily_bin1749> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Sat Dec 17 01:00:24 2022
Job was executed on host(s) <bullet0223>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Dec 17 01:00:25 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Dec 17 01:00:25 2022
Terminated at Sat Dec 17 01:14:24 2022
Results reported at Sat Dec 17 01:14:24 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1615.6+4712_daily_bin1749 243.922 47.2028 692668801 692928001 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 :                                   811.17 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             325.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   838 sec.
    Turnaround time :                            840 sec.

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

