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


Performing analysis on: 4FGL_J1613.6+3411_daily_bin1745
RA = 243.421, Dec = 34.1982
tmin = 691632001, tmax = 691891201
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='650328', job_status='RUN', time_executed='2022-12-05 00:58:10.185547', time_epoch_executed='1670230690.19' WHERE source_name='4FGL J1613.6+3411' and cadence='daily' and bin_id='1745'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/650328

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/650328/ft1_4FGL_J1613.6+3411_daily_bin1745.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/650328/ft2_4FGL_J1613.6+3411_daily_bin1745.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/650328/ft1_4FGL_J1613.6+3411_daily_bin1745.fits outfile=/scratch/kocevski/650328/ft1_filteredMKT_4FGL_J1613.6+3411_daily_bin1745.fits ra=243.421 dec=34.1982 rad=12.0 tmin=691632001.0 tmax=691891201.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 2.38
user 2.15
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/650328/ft2_4FGL_J1613.6+3411_daily_bin1745.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/650328/ft2_4FGL_J1613.6+3411_daily_bin1745.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/650328/ft1_filteredMKT_4FGL_J1613.6+3411_daily_bin1745.fits evtable="EVENTS" outfile="/scratch/kocevski/650328/ft1_filtered_4FGL_J1613.6+3411_daily_bin1745.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.15

Number of photons that the gtmktime cut: 995

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/650328/ft1_filtered_4FGL_J1613.6+3411_daily_bin1745.fits" evtable="EVENTS" scfile=/scratch/kocevski/650328/ft2_4FGL_J1613.6+3411_daily_bin1745.fits sctable="SC_DATA" outfile=/scratch/kocevski/650328/ltcube_691632001_691891201_4FGL_J1613.6+3411_daily_bin1745.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/650328/ft2_4FGL_J1613.6+3411_daily_bin1745.fits
.....................!
real 12.27
user 11.94
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/650328/ft1_filtered_4FGL_J1613.6+3411_daily_bin1745.fits evtable="EVENTS" scfile=/scratch/kocevski/650328/ft2_4FGL_J1613.6+3411_daily_bin1745.fits sctable="SC_DATA" expcube=/scratch/kocevski/650328/ltcube_691632001_691891201_4FGL_J1613.6+3411_daily_bin1745.fits outfile=/scratch/kocevski/650328/expmap_691632001_691891201_4FGL_J1613.6+3411_daily_bin1745.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/650328/ltcube_691632001_691891201_4FGL_J1613.6+3411_daily_bin1745.fits
.....................!
real 191.48
user 186.68
sys 4.49

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

Setting source of interest to:
4FGL J1613.6+3411 @ 243.421 34.1982

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/650328/ft1_filtered_4FGL_J1613.6+3411_daily_bin1745.fits scfile=/scratch/kocevski/650328/ft2_4FGL_J1613.6+3411_daily_bin1745.fits outfile=/scratch/kocevski/650328/cmap_691632001_691891201_4FGL_J1613.6+3411_daily_bin1745.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.421 yref=34.1982 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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/650328/ft1_filtered_4FGL_J1613.6+3411_daily_bin1745.fits scfile=/scratch/kocevski/650328/ft2_4FGL_J1613.6+3411_daily_bin1745.fits outfile=/scratch/kocevski/650328/cmap_HighResolution_691632001_691891201_4FGL_J1613.6+3411_daily_bin1745.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.421 yref=34.1982 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.58
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/650328/ft1_filtered_4FGL_J1613.6+3411_daily_bin1745.fits evtable="EVENTS" scfile=/scratch/kocevski/650328/ft2_4FGL_J1613.6+3411_daily_bin1745.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/650328/Model_4FGL_J1613.6+3411_daily_bin1745.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/650328/ft1_filtered_4FGL_J1613.6+3411_daily_bin1745.fits.....................!
real 75.59
user 74.19
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/650328/ft1_filtered_4FGL_J1613.6+3411_daily_bin1745.fits', '/scratch/kocevski/650328/ft2_4FGL_J1613.6+3411_daily_bin1745.fits', expMap='/scratch/kocevski/650328/expmap_691632001_691891201_4FGL_J1613.6+3411_daily_bin1745.fits', expCube='/scratch/kocevski/650328/ltcube_691632001_691891201_4FGL_J1613.6+3411_daily_bin1745.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/650328/Model_4FGL_J1613.6+3411_daily_bin1745.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1613.6+3411'

4FGL J1613.6+3411
   Spectrum: PowerLaw
276    Prefactor:  2.261e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
277        Index:  2.437e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
278        Scale:  7.801e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/650328/ft1_filtered_4FGL_J1613.6+3411_daily_bin1745.fits
Spacecraft file(s): /scratch/kocevski/650328/ft2_4FGL_J1613.6+3411_daily_bin1745.fits
Exposure map: /scratch/kocevski/650328/expmap_691632001_691891201_4FGL_J1613.6+3411_daily_bin1745.fits
Exposure cube: /scratch/kocevski/650328/ltcube_691632001_691891201_4FGL_J1613.6+3411_daily_bin1745.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/650328/Model_4FGL_J1613.6+3411_daily_bin1745.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) = 10697.6894779

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .52449E-03   1.0000          .0000       .10000E+07
     2 'norm      '    .23983E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    .21808E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    16.195       1.0000          .0000       .10000E+07
     5 'norm      '    .17437E-05   1.0000          .0000       .10000E+07
     6 'Prefactor '    .91315E-05   1.0000          .0000       .10000E+07
     7 'Prefactor '    .29803E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    6.4833       1.0000          .0000       .10000E+07
     9 'Prefactor '    .19518E-06   1.0000          .0000       .10000E+07
    10 'Prefactor '    .18453E-03   1.0000          .0000       .10000E+07
    11 'norm      '    .52817       1.0000          .0000       .10000E+07
    12 'norm      '    1.8202       1.0000          .0000       .10000E+07
    13 'Prefactor '    3.1900       1.0000          .0000       .10000E+07
    14 'norm      '    23.521       1.0000          .0000       .10000E+07
    15 'Prefactor '    .35612E-05   1.0000          .0000       .10000E+07
    16 'Prefactor '    2.9167       1.0000          .0000       .10000E+07
    17 'Prefactor '    .34781E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    .80491E-08   1.0000          .0000       .10000E+07
    19 'norm      '    3.0268       1.0000          .0000       .10000E+07
    20 'Normalizat'    1.1055       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .77506       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10697.55     FROM MIGRAD    STATUS=CONVERGED    155 CALLS     1356 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .71609E-08    17.319       -.48482E-06** at limit **
   2  norm          .55511E-10    2.9622       -.16760E-06** at limit **
   3  Prefactor     .22077E-06    2.1445        .21188E-06** at limit **
   4  Prefactor     16.409        2.1967        .10581E-07    .12944E-01
   5  norm          .13878E-08    4.5090       -.93476E-07** at limit **
   6  Prefactor      .0000        .96089       -.45349E-07** at limit **
   7  Prefactor     .17203E-06    2.2798        .23572E-06** at limit **
   8  Prefactor     6.5625        6.5315        .10946E-07    .12147E-01
   9  Prefactor      .0000        .85830        .38981E-07** at limit **
  10  Prefactor     .91316E-07    10.990       -.24354E-06** at limit **
  11  norm          .52804        .12053        .17927E-07    .43958E-01
  12  norm          1.8434        5.9761       -.24816E-07   -.59545E-02
  13  Prefactor     3.1912        7.0046       -.30405E-07   -.35280E-01
  14  norm          23.206        2.1822       -.20597E-07    .22903E-01
  15  Prefactor     .55511E-10    1.1810       -.49883E-07** at limit **
  16  Prefactor     2.9197        .91404        .14735E-07    .60523E-02
  17  Prefactor     .26701E-07    12.130       -.27153E-06** at limit **
  18  Prefactor      .0000        .99976       -.56157E-08** at limit **
  19  norm          3.0280        1.2184       -.41564E-07   -.40807E-02
  20  Normalizat    1.1053        .15360        .11907E-05    .10305E-03
  21  Prefactor     .77502        .11902       -.44092E-06    .76994E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.16094e-09
  norm       = 5.55112e-11
  Prefactor  = 2.20768e-07
  Prefactor  = 16.4088
  norm       = 1.38778e-09
  Prefactor  = 0
  Prefactor  = 1.72029e-07
  Prefactor  = 6.5625
  Prefactor  = 0
  Prefactor  = 9.13158e-08
  norm       = 0.528037
  norm       = 1.84341
  Prefactor  = 3.1912
  norm       = 23.2057
  Prefactor  = 5.55112e-11
  Prefactor  = 2.91974
  Prefactor  = 2.67009e-08
  Prefactor  = 0
  norm       = 3.02803
  Normalizat = 1.10532
  Prefactor  = 0.775022
 **********
 **   18 **HESSE 
 **********

 FCN=   10697.55     FROM HESSE     STATUS=OK           373 CALLS     1729 TOTAL
                     EDM=   .48E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .71609E-08    17.487        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .55511E-10    .35328        .20129E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .22077E-06    3.5869        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     16.409        18.587        .24861E-03   -1.5627    
   5  norm          .13878E-08    4.5210        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        .95224        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .17203E-06    3.4276        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.5625        6.5473        .39392E-03   -1.5657    
   9  Prefactor      .0000        .85502        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .91316E-07    1.6207        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .52804        .12257        .35609E-03   -1.5693    
  12  norm          1.8434        6.0645        .77369E-03   -1.5681    
  13  Prefactor     3.1912        7.6211        .56708E-03   -1.5672    
  14  norm          23.206        21.946        .20624E-03   -1.5612    
  15  Prefactor     .55511E-10    .44676        .31120E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.9197        1.0521        .59461E-03   -1.5674    
  17  Prefactor     .26701E-07    12.404        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor      .0000        .99373        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.0280        1.2209        .58303E-03   -1.5673    
  20  Normalizat    1.1053        .13152        .54047E-01   -.89581    
  21  Prefactor     .77502        .10038        .43392E-01   -1.0066    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.81495e-07
Minuit parameter uncertainties:
  1  0.000707901
  2  6.90297e-06
  3  0.00177972
  4  18.5868
  5  0.000157917
  6  7.2915e-06
  7  0.00153567
  8  6.54732
  9  1.50195e-06
  10  0.000769507
  11  0.122569
  12  6.06455
  13  7.62112
  14  21.9459
  15  8.67659e-06
  16  1.05215
  17  0.00115127
  18  6.93981e-06
  19  1.22086
  20  0.131555
  21  0.100407
Done.

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

Extracting fit parameters...

4FGL J1613.6+3411
   Spectrum: PowerLaw
276    Prefactor:  0.000e+00  1.502e-06  0.000e+00  1.000e+06 ( 1.000e-12)
277        Index:  2.437e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
278        Scale:  7.801e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  7.750e-01  1.004e-01  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  1.105e+00  1.316e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 243.421 34.198
Photon Flux Upper Limit: 3.51e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.72e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/650328/likelihoodResults_691632001_691891201_4FGL_J1613.6+3411_daily_bin1745.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) = 10697.5610783
delta logL = -0.0150482911104

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10697.5460301
delta logL = -7.41583789932e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .55511E-10   1.0000          .0000       .10000E+07
     2 'Index     '    1.4230       1.0000          .0000       10.000    
     3 'Normalizat'    1.1053       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77506       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   10697.55     FROM MIGRAD    STATUS=CONVERGED     35 CALLS      238 TOTAL
                     EDM=   .64E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .84756        .42118E-03** at limit **
   2  Index         2.2739        1.2687        .47478E-07     .0000    
   3  Normalizat    1.1053        1.1517        .56599E-06   -.70248E-05
   4  Prefactor     .77502        1.1242       -.23522E-05    .15837E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.27387
  Normalizat = 1.10532
  Prefactor  = 0.775022
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   10697.55     FROM HESSE     STATUS=FAILED         9 CALLS      247 TOTAL
                     EDM=   .64E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .84756        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .57462        1.8271        .47478E-07   -.57666    
   3  Normalizat    1.1053        1.1517        .56599E-06   -.89581    
   4  Prefactor     .77502        1.1242       -.23522E-05   -1.0066    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 6.37172e-13
Minuit parameter uncertainties:
  1  2.57004e-07
  2  1.2889
  3  1.17955
  4  1.16024
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/650328': 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) = 10697.54603
delta logL = 3.63797880709e-12

Extracting fit parameters...

4FGL J1613.6+3411
   Spectrum: PowerLaw
276    Prefactor:  0.000e+00  2.570e-07  0.000e+00  1.000e+06 ( 1.000e-12)
277        Index:  2.274e+00  1.289e+00  0.000e+00  1.000e+01 (-1.000e+00)
278        Scale:  7.801e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  7.750e-01  1.160e+00  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  1.105e+00  1.180e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 243.421 34.198

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/650328/cmap_HighResolution_691632001_691891201_4FGL_J1613.6+3411_daily_bin1745.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.72e-03', job_status='DONE', photon_flux_upper_limit='3.51e-08', time_completed='2022-12-05 01:10:20.206956', job_id='650328', GAL2='0.78', fit_tolerance='1e-08', EG2='1.11', EG='1.11', time_epoch_completed='1670231420.21', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='3.64e-12', ts2='0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='1745' AND source_name='4FGL J1613.6+3411' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Dec  5 01:10:20 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0228>
Subject: Job 650328: <4FGL_J1613.6+3411_daily_bin1745> in cluster <slac> Done

Job <4FGL_J1613.6+3411_daily_bin1745> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Dec  5 00:55:19 2022
Job was executed on host(s) <bullet0228>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Dec  5 00:55:20 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Dec  5 00:55:20 2022
Terminated at Mon Dec  5 01:10:21 2022
Results reported at Mon Dec  5 01:10:21 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1613.6+3411_daily_bin1745 243.421 34.1982 691632001 691891201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1613.6+3411 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   732.17 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             297.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   900 sec.
    Turnaround time :                            902 sec.

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

