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 33 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_J1740.5+5211_daily_bin1749
RA = 265.136, Dec = 52.1927
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='958223', job_status='RUN', time_executed='2022-12-17 01:06:05.290163', time_epoch_executed='1671267965.29' WHERE source_name='4FGL J1740.5+5211' and cadence='daily' and bin_id='1749'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/958223

Creating custom pfile directory:
/scratch/kocevski/958223/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/958223/ft1_4FGL_J1740.5+5211_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/958223/ft2_4FGL_J1740.5+5211_daily_bin1749.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/958223/ft1_4FGL_J1740.5+5211_daily_bin1749.fits outfile=/scratch/kocevski/958223/ft1_filteredMKT_4FGL_J1740.5+5211_daily_bin1749.fits ra=265.136 dec=52.1927 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.69
user 3.45
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/958223/ft2_4FGL_J1740.5+5211_daily_bin1749.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/958223/ft2_4FGL_J1740.5+5211_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/958223/ft1_filteredMKT_4FGL_J1740.5+5211_daily_bin1749.fits evtable="EVENTS" outfile="/scratch/kocevski/958223/ft1_filtered_4FGL_J1740.5+5211_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.51
user 0.34
sys 0.15

Number of photons that the gtmktime cut: 799

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/958223/ft1_filtered_4FGL_J1740.5+5211_daily_bin1749.fits" evtable="EVENTS" scfile=/scratch/kocevski/958223/ft2_4FGL_J1740.5+5211_daily_bin1749.fits sctable="SC_DATA" outfile=/scratch/kocevski/958223/ltcube_692668801_692928001_4FGL_J1740.5+5211_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/958223/ft2_4FGL_J1740.5+5211_daily_bin1749.fits
.....................!
real 12.29
user 11.86
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/958223/ft1_filtered_4FGL_J1740.5+5211_daily_bin1749.fits evtable="EVENTS" scfile=/scratch/kocevski/958223/ft2_4FGL_J1740.5+5211_daily_bin1749.fits sctable="SC_DATA" expcube=/scratch/kocevski/958223/ltcube_692668801_692928001_4FGL_J1740.5+5211_daily_bin1749.fits outfile=/scratch/kocevski/958223/expmap_692668801_692928001_4FGL_J1740.5+5211_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/958223/ltcube_692668801_692928001_4FGL_J1740.5+5211_daily_bin1749.fits
.....................!
real 190.43
user 184.81
sys 5.23

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

Setting source of interest to:
4FGL J1740.5+5211 @ 265.136 52.1927

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/958223/ft1_filtered_4FGL_J1740.5+5211_daily_bin1749.fits scfile=/scratch/kocevski/958223/ft2_4FGL_J1740.5+5211_daily_bin1749.fits outfile=/scratch/kocevski/958223/cmap_692668801_692928001_4FGL_J1740.5+5211_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=265.136 yref=52.1927 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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/958223/ft1_filtered_4FGL_J1740.5+5211_daily_bin1749.fits scfile=/scratch/kocevski/958223/ft2_4FGL_J1740.5+5211_daily_bin1749.fits outfile=/scratch/kocevski/958223/cmap_HighResolution_692668801_692928001_4FGL_J1740.5+5211_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=265.136 yref=52.1927 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/958223/ft1_filtered_4FGL_J1740.5+5211_daily_bin1749.fits evtable="EVENTS" scfile=/scratch/kocevski/958223/ft2_4FGL_J1740.5+5211_daily_bin1749.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/958223/Model_4FGL_J1740.5+5211_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/958223/ft1_filtered_4FGL_J1740.5+5211_daily_bin1749.fits.....................!
real 71.62
user 70.22
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/958223/ft1_filtered_4FGL_J1740.5+5211_daily_bin1749.fits', '/scratch/kocevski/958223/ft2_4FGL_J1740.5+5211_daily_bin1749.fits', expMap='/scratch/kocevski/958223/expmap_692668801_692928001_4FGL_J1740.5+5211_daily_bin1749.fits', expCube='/scratch/kocevski/958223/ltcube_692668801_692928001_4FGL_J1740.5+5211_daily_bin1749.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/958223/Model_4FGL_J1740.5+5211_daily_bin1749.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1740.5+5211'

4FGL J1740.5+5211
   Spectrum: PowerLaw
345    Prefactor:  5.805e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
346        Index:  2.470e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
347        Scale:  6.751e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/958223/ft1_filtered_4FGL_J1740.5+5211_daily_bin1749.fits
Spacecraft file(s): /scratch/kocevski/958223/ft2_4FGL_J1740.5+5211_daily_bin1749.fits
Exposure map: /scratch/kocevski/958223/expmap_692668801_692928001_4FGL_J1740.5+5211_daily_bin1749.fits
Exposure cube: /scratch/kocevski/958223/ltcube_692668801_692928001_4FGL_J1740.5+5211_daily_bin1749.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/958223/Model_4FGL_J1740.5+5211_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) = 8280.0691457

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .82541E-04   1.0000          .0000       .10000E+07
     2 'Prefactor '    .84716E-05   1.0000          .0000       .10000E+07
     3 'Prefactor '    9.6503       1.0000          .0000       .10000E+07
     4 'Prefactor '    4.8711       1.0000          .0000       .10000E+07
     5 'Prefactor '    8.2875       1.0000          .0000       .10000E+07
     6 'Prefactor '    .25517E-02   1.0000          .0000       .10000E+07
     7 'norm      '    .11380E-06   1.0000          .0000       .10000E+07
     8 'Prefactor '    .82282E-02   1.0000          .0000       .10000E+07
     9 'norm      '    .32196E-08   1.0000          .0000       .10000E+07
    10 'Prefactor '    .49327E-04   1.0000          .0000       .10000E+07
    11 'Prefactor '    2.4281       1.0000          .0000       .10000E+07
    12 'norm      '    12.163       1.0000          .0000       .10000E+07
    13 'Prefactor '    3.5452       1.0000          .0000       .10000E+07
    14 'Prefactor '    .11358E-03   1.0000          .0000       .10000E+07
    15 'norm      '    6.7559       1.0000          .0000       .10000E+07
    16 'Prefactor '    14.857       1.0000          .0000       .10000E+07
    17 'Prefactor '    .21809E-04   1.0000          .0000       .10000E+07
    18 'Prefactor '    36.982       1.0000          .0000       .10000E+07
    19 'Prefactor '    .13706       1.0000          .0000       .10000E+07
    20 'Prefactor '    5.0516       1.0000          .0000       .10000E+07
    21 'norm      '    10.403       1.0000          .0000       .10000E+07
    22 'Prefactor '    .10674E-03   1.0000          .0000       .10000E+07
    23 'norm      '    9.3440       1.0000          .0000       .10000E+07
    24 'norm      '    .55103E-04   1.0000          .0000       .10000E+07
    25 'norm      '    23.635       1.0000          .0000       .10000E+07
    26 'Prefactor '    .21685E-04   1.0000          .0000       .10000E+07
    27 'Normalizat'    .94249       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0405       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6600E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8280.044     FROM MIGRAD    STATUS=CONVERGED    184 CALLS     2565 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .72720E-08    3.8352       -.23944E-06** at limit **
   2  Prefactor      .0000        1.5134        .88803E-07** at limit **
   3  Prefactor     9.6257        6.8737       -.32964E-06   -.26106E-01
   4  Prefactor     4.8712        3.2217        .16853E-07   -.84936E-03
   5  Prefactor     8.2868        1.9983       -.18557E-07   -.32339E-02
   6  Prefactor     .17708E-06    17.011        .17782E-07** at limit **
   7  norm           .0000        .89850       -.13300E-06** at limit **
   8  Prefactor     .40468E-07    13.708        .52032E-06** at limit **
   9  norm           .0000        .29967        .24897E-07** at limit **
  10  Prefactor      .0000        3.9573        .33013E-06** at limit **
  11  Prefactor     2.4177        7.2392       -.16200E-06   -.31768E-02
  12  norm          12.158        2.6859       -.29354E-07   -.18122E-03
  13  Prefactor     3.5318        3.3496       -.10129E-06   -.78150E-03
  14  Prefactor     .26229E-06    22.716        .10860E-05** at limit **
  15  norm          6.8536        5.6605       -.19090E-08   -.61965E-03
  16  Prefactor     15.069        9.2816        .19580E-06   -.82983E-01
  17  Prefactor      .0000        2.5500       -.37906E-07** at limit **
  18  Prefactor     37.018        1.3922        .93079E-08   -.12507E-01
  19  Prefactor     .44409E-07    53.218       -.20654E-06** at limit **
  20  Prefactor     5.0786        6.8528        .12353E-06    .23919E-02
  21  norm          10.407        5.2525       -.66230E-07   -.11396E-01
  22  Prefactor     .89928E-08    3.8453       -.19596E-06** at limit **
  23  norm          9.3352        7.9452       -.24947E-06   -.12321E-01
  24  norm          .39185E-06    45.075        .17686E-05** at limit **
  25  norm          23.637        2.1513       -.40002E-08   -.22372E-01
  26  Prefactor      .0000        1.6430       -.31671E-07** at limit **
  27  Normalizat    .94258        .24289       -.10400E-05    .10102E-05
  28  Prefactor     1.0402        .17179        .39029E-05    .13091E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.27196e-09
  Prefactor  = 0
  Prefactor  = 9.62572
  Prefactor  = 4.87122
  Prefactor  = 8.28676
  Prefactor  = 1.77081e-07
  norm       = 0
  Prefactor  = 4.04676e-08
  norm       = 0
  Prefactor  = 0
  Prefactor  = 2.41774
  norm       = 12.1577
  Prefactor  = 3.53177
  Prefactor  = 2.6229e-07
  norm       = 6.85356
  Prefactor  = 15.0694
  Prefactor  = 0
  Prefactor  = 37.0184
  Prefactor  = 4.44089e-08
  Prefactor  = 5.07857
  norm       = 10.407
  Prefactor  = 8.99281e-09
  norm       = 9.33518
  norm       = 3.91853e-07
  norm       = 23.6373
  Prefactor  = 0
  Normalizat = 0.942584
  Prefactor  = 1.04024
 **********
 **   18 **HESSE 
 **********

 FCN=   8280.044     FROM HESSE     STATUS=OK           581 CALLS     3146 TOTAL
                     EDM=   .16E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .72720E-08    7.5938        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        1.5163        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.6257        6.9077        .32234E-03   -1.5646    
   4  Prefactor     4.8712        3.2439        .45552E-03   -1.5664    
   5  Prefactor     8.2868        7.4407        .34801E-03   -1.5650    
   6  Prefactor     .17708E-06    17.156        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm           .0000        .44250        .20696E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .40468E-07    13.688        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm           .0000        .29768        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        3.9518        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.4177        7.2772        .65648E-03   -1.5677    
  12  norm          12.158        2.6978        .28698E-03   -1.5638    
  13  Prefactor     3.5318        3.3598        .53658E-03   -1.5670    
  14  Prefactor     .26229E-06    23.022        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          6.8536        5.7290        .38580E-03   -1.5656    
  16  Prefactor     15.069        53.304        .25958E-03   -1.5630    
  17  Prefactor      .0000        2.5471        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     37.018        50.942        .16446E-03   -1.5586    
  19  Prefactor     .44409E-07    53.430        .13025E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.0786        7.9036        .44714E-03   -1.5663    
  21  norm          10.407        8.5497        .31040E-03   -1.5643    
  22  Prefactor     .89928E-08    7.5770        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          9.3352        9.0270        .32761E-03   -1.5647    
  24  norm          .39185E-06    44.641        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          23.637        13.380        .20574E-03   -1.5611    
  26  Prefactor      .0000        1.6354        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .94258        .20720        .74628E-01   -.94980    
  28  Prefactor     1.0402        .14600        .40502E-01   -.91400    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.5886e-06
Minuit parameter uncertainties:
  1  0.000469557
  2  3.64242e-06
  3  6.90773
  4  3.24394
  5  7.44073
  6  0.003486
  7  1.66144e-06
  8  0.00148816
  9  3.45501e-07
  10  1.52915e-05
  11  7.2772
  12  2.69784
  13  3.3598
  14  0.00491456
  15  5.72898
  16  53.3054
  17  3.80108e-06
  18  50.9428
  19  0.00308097
  20  7.90364
  21  8.54976
  22  0.000521504
  23  9.027
  24  0.00836515
  25  13.3797
  26  9.0193e-06
  27  0.207376
  28  0.146056
Done.

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

Extracting fit parameters...

4FGL J1740.5+5211
   Spectrum: PowerLaw
345    Prefactor:  0.000e+00  3.801e-06  0.000e+00  1.000e+06 ( 1.000e-12)
346        Index:  2.470e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
347        Scale:  6.751e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
657    Prefactor:  1.040e+00  1.461e-01  0.000e+00  1.000e+01 ( 1.000e+00)
658        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
659        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
656   Normalization:  9.426e-01  2.074e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 265.136 52.193
Photon Flux Upper Limit: 7.04e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.47e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/958223/likelihoodResults_692668801_692928001_4FGL_J1740.5+5211_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): 102
logL (Free Index) = 8280.04574354
delta logL = -0.00195901950792

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8280.04378863
delta logL = -4.11151449953e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .35043E-03   1.0000          .0000       .10000E+07
     2 'Index     '    3.4912       1.0000          .0000       10.000    
     3 'Normalizat'    .94263       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0401       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6600E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8280.044     FROM MIGRAD    STATUS=CONVERGED     67 CALLS      281 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .44409E-09    .27583        .42118E-03** at limit **
   2  Index         1.8248        5.5615        .50000       -.40927E-09
   3  Normalizat    .94259        .19043E-02    .74628E-01   -.16507E-03
   4  Prefactor     1.0402        .13970E-02    .40530E-01   -.94481E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.44089e-10
  Index      = 1.8248
  Normalizat = 0.942592
  Prefactor  = 1.04023
 **********
 **   18 **HESSE 
 **********

 FCN=   8280.044     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      312 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .44409E-09    1.2684        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8248        8.5574        .50000       -.68806    
   3  Normalizat    .94259        .40765E-02    .33025E-03   -.94979    
   4  Prefactor     1.0402        .29953E-02    .23064E-03   -.91400    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.04753e-10
Minuit parameter uncertainties:
  1  4.73443e-05
  2  29867.9
  3  0.00407653
  4  0.00299531
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/958223': 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) = 8280.04378452
delta logL = -9.27684595808e-10

Extracting fit parameters...

4FGL J1740.5+5211
   Spectrum: PowerLaw
345    Prefactor:  4.441e-10  4.734e-05  0.000e+00  1.000e+06 ( 1.000e-12)
346        Index:  1.825e+00  2.987e+04  0.000e+00  1.000e+01 (-1.000e+00)
347        Scale:  6.751e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
657    Prefactor:  1.040e+00  2.995e-03  0.000e+00  1.000e+01 ( 1.000e+00)
658        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
659        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
656   Normalization:  9.426e-01  4.077e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 265.136 52.193

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/958223/cmap_HighResolution_692668801_692928001_4FGL_J1740.5+5211_daily_bin1749.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.47e-03', job_status='DONE', photon_flux_upper_limit='7.04e-08', time_completed='2022-12-17 01:20:55.555559', job_id='958223', GAL2='1.04', fit_tolerance='1e-08', EG2='0.94', EG='0.94', time_epoch_completed='1671268855.56', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='-9.28e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='1749' AND source_name='4FGL J1740.5+5211' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Dec 17 01:20:55 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0114>
Subject: Job 958223: <4FGL_J1740.5+5211_daily_bin1749> in cluster <slac> Done

Job <4FGL_J1740.5+5211_daily_bin1749> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Dec 17 01:05:21 2022
Job was executed on host(s) <bullet0114>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Dec 17 01:05:24 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:05:24 2022
Terminated at Sat Dec 17 01:20:56 2022
Results reported at Sat Dec 17 01:20:56 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1740.5+5211_daily_bin1749 265.136 52.1927 692668801 692928001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1740.5+5211 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   892.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             335.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   931 sec.
    Turnaround time :                            935 sec.

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

