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 19 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 74112
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1740.5+5211_monthly_bin169
RA = 265.136, Dec = 52.1927
tmin = 675043201, tmax = 677635201
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository job = True

LAT data source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='182813', job_status='RUN', time_executed='2022-06-23 02:40:57.660829', time_epoch_executed='1655977257.66' WHERE source_name='4FGL J1740.5+5211' and cadence='monthly' and bin_id='169'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/182813

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

Retrieving the FT1 file...

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

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

Retrieving 456 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/182813/ft1_4FGL_J1740.5+5211_monthly_bin169.fits


Retrieving the FT1 file...

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

Retrieving 456 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/182813/ft2_4FGL_J1740.5+5211_monthly_bin169.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/182813/ft1_4FGL_J1740.5+5211_monthly_bin169.fits outfile=/scratch/kocevski/182813/ft1_filteredMKT_4FGL_J1740.5+5211_monthly_bin169.fits ra=265.136 dec=52.1927 rad=12.0 tmin=675043201.0 tmax=677635201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 27.71
user 26.89
sys 0.72

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/182813/ft2_4FGL_J1740.5+5211_monthly_bin169.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/182813/ft1_filteredMKT_4FGL_J1740.5+5211_monthly_bin169.fits evtable="EVENTS" outfile="/scratch/kocevski/182813/ft1_filtered_4FGL_J1740.5+5211_monthly_bin169.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.86
user 0.66
sys 0.18

Number of photons that the gtmktime cut: 13075

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/182813/ft1_filtered_4FGL_J1740.5+5211_monthly_bin169.fits" evtable="EVENTS" scfile=/scratch/kocevski/182813/ft2_4FGL_J1740.5+5211_monthly_bin169.fits sctable="SC_DATA" outfile=/scratch/kocevski/182813/ltcube_675043201_677635201_4FGL_J1740.5+5211_monthly_bin169.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Working on file /scratch/kocevski/182813/ft2_4FGL_J1740.5+5211_monthly_bin169.fits
.....................!
real 135.03
user 133.96
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/182813/ft1_filtered_4FGL_J1740.5+5211_monthly_bin169.fits evtable="EVENTS" scfile=/scratch/kocevski/182813/ft2_4FGL_J1740.5+5211_monthly_bin169.fits sctable="SC_DATA" expcube=/scratch/kocevski/182813/ltcube_675043201_677635201_4FGL_J1740.5+5211_monthly_bin169.fits outfile=/scratch/kocevski/182813/expmap_675043201_677635201_4FGL_J1740.5+5211_monthly_bin169.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

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

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /scratch/kocevski/182813/ltcube_675043201_677635201_4FGL_J1740.5+5211_monthly_bin169.fits
.....................!
real 192.48
user 187.25
sys 4.85

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/182813/ft1_filtered_4FGL_J1740.5+5211_monthly_bin169.fits scfile=/scratch/kocevski/182813/ft2_4FGL_J1740.5+5211_monthly_bin169.fits outfile=/scratch/kocevski/182813/cmap_675043201_677635201_4FGL_J1740.5+5211_monthly_bin169.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=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.82
user 0.61
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/182813/ft1_filtered_4FGL_J1740.5+5211_monthly_bin169.fits scfile=/scratch/kocevski/182813/ft2_4FGL_J1740.5+5211_monthly_bin169.fits outfile=/scratch/kocevski/182813/cmap_HighResolution_675043201_677635201_4FGL_J1740.5+5211_monthly_bin169.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=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.80
user 0.63
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/182813/ft1_filtered_4FGL_J1740.5+5211_monthly_bin169.fits evtable="EVENTS" scfile=/scratch/kocevski/182813/ft2_4FGL_J1740.5+5211_monthly_bin169.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/182813/Model_4FGL_J1740.5+5211_monthly_bin169.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/182813/ft1_filtered_4FGL_J1740.5+5211_monthly_bin169.fits.....................!
real 965.94
user 962.37
sys 1.31

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/182813/ft1_filtered_4FGL_J1740.5+5211_monthly_bin169.fits', '/scratch/kocevski/182813/ft2_4FGL_J1740.5+5211_monthly_bin169.fits', expMap='/scratch/kocevski/182813/expmap_675043201_677635201_4FGL_J1740.5+5211_monthly_bin169.fits', expCube='/scratch/kocevski/182813/ltcube_675043201_677635201_4FGL_J1740.5+5211_monthly_bin169.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/182813/Model_4FGL_J1740.5+5211_monthly_bin169.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  1.000e-04  1.000e+04 ( 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/182813/ft1_filtered_4FGL_J1740.5+5211_monthly_bin169.fits
Spacecraft file(s): /scratch/kocevski/182813/ft2_4FGL_J1740.5+5211_monthly_bin169.fits
Exposure map: /scratch/kocevski/182813/expmap_675043201_677635201_4FGL_J1740.5+5211_monthly_bin169.fits
Exposure cube: /scratch/kocevski/182813/ltcube_675043201_677635201_4FGL_J1740.5+5211_monthly_bin169.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/182813/Model_4FGL_J1740.5+5211_monthly_bin169.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .86571       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .80195       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.1912       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.1377       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .13653E-02   1.0000         .10000E-03   10000.    
     7 'norm      '    .53389E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.4390       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.4803       1.0000         .10000E-03   10000.    
    12 'norm      '    4.0419       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.3402       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .75899E-02   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.4976       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.9715       1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.703       1.0000         .10000E-03   10000.    
    19 'Prefactor '    14.570       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.5264       1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.9326       1.0000         .10000E-03   10000.    
    23 'norm      '    1.4639       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .19419       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    6.9872       1.0000         .10000E-03   10000.    
    27 'Prefactor '    1.5268       1.0000         .10000E-03   10000.    
    28 'norm      '    9.0710       1.0000         .10000E-03   10000.    
    29 'norm      '    11.334       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .99316       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.1298       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .98838       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   135848.7     FROM MIGRAD    STATUS=CONVERGED    888 CALLS     3926 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .86543        1.5795         .0000        .67467E-02
   2  Prefactor     .80199        .67560         .0000        .12246E-01
   3  Prefactor     .10000E-03    .24678         .0000    ** at limit **
   4  Prefactor     1.1911        .59990         .0000        .16196E-01
   5  Prefactor     1.1413        1.2387         .0000        .10766E-01
   6  Prefactor     .10000E-03    .64344         .0000    ** at limit **
   7  norm          .53412E-01    .72293E-01     .0000        .49906E-01
   8  Prefactor     1.4392        1.4919         .0000        .38731    
   9  norm          .10000E-03    .21513E-01     .0000    ** at limit **
  10  Prefactor     .10000E-03    .35496         .0000    ** at limit **
  11  Prefactor     2.4809        1.6300         .0000        .59811E-02
  12  norm          4.0419        .50032         .0000        .83067E-02
  13  Prefactor     2.3401        .61889         .0000       -.15146E-03
  14  Prefactor     .10003E-03    2.1654         .0000    ** at limit **
  15  norm          .10000E-03    .15905         .0000    ** at limit **
  16  Prefactor     3.4970        5.1863         .0000        .76841E-03
  17  Prefactor     3.9715        1.0258         .0000        .23914E-02
  18  Prefactor     12.706        7.9197         .0000        .59859E-03
  19  Prefactor     14.562        12.378         .0000       -.31273E-02
  20  Prefactor     .10000E-03    4.1328         .0000    ** at limit **
  21  Prefactor     2.5258        1.5326         .0000        .41884E-01
  22  Prefactor     4.9334        2.9803         .0000        .20166E-02
  23  norm          1.4697        1.6527         .0000        .11487E-01
  24  Prefactor     .18286        .51607         .0000        .39748E-02
  25  Prefactor     .10000E-03    .53608         .0000    ** at limit **
  26  norm          6.9874        1.7496         .0000        .47116E-01
  27  Prefactor     1.5303        2.4498         .0000        .76648E-01
  28  norm          9.0710        2.2428         .0000        .25722E-01
  29  norm          11.334        2.5012         .0000       -.19554E-03
  30  Prefactor     .99320        .55216         .0000        .16597E-01
  31  Normalizat    1.1298        .50429E-01     .0000        .15192E-02
  32  Prefactor     .98837        .34440E-01     .0000        .34779E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.865434
  Prefactor  = 0.801987
  Prefactor  = 0.0001
  Prefactor  = 1.1911
  Prefactor  = 1.1413
  Prefactor  = 0.000100005
  norm       = 0.0534116
  Prefactor  = 1.43921
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.48094
  norm       = 4.04186
  Prefactor  = 2.34015
  Prefactor  = 0.000100028
  norm       = 0.0001
  Prefactor  = 3.49701
  Prefactor  = 3.97147
  Prefactor  = 12.7064
  Prefactor  = 14.5623
  Prefactor  = 0.0001
  Prefactor  = 2.52582
  Prefactor  = 4.93335
  norm       = 1.46965
  Prefactor  = 0.18286
  Prefactor  = 0.0001
  norm       = 6.98738
  Prefactor  = 1.53034
  norm       = 9.07102
  norm       = 11.3339
  Prefactor  = 0.993201
  Normalizat = 1.12977
  Prefactor  = 0.988372
 **********
 **   18 **HESSE 
 **********

 FCN=   135848.7     FROM HESSE     STATUS=OK           707 CALLS     4633 TOTAL
                     EDM=   .64E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .86543        3.5716        .60275E-02   -1.5522    
   2  Prefactor     .80199        .66022        .26731E-03   -1.5529    
   3  Prefactor     .10000E-03    1.0157        .34843E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.1911        .58212        .19092E-03   -1.5490    
   5  Prefactor     1.1413        1.2078        .41350E-03   -1.5494    
   6  Prefactor     .10000E-03    .72607        .92980E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .53412E-01    .82958E-01    .10860E-02   -1.5662    
   8  Prefactor     1.4392        1.4594        .17985E-02   -1.5468    
   9  norm          .10000E-03    .40195E-01    .10379E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    .36425        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.4809        1.6216        .25959E-03   -1.5393    
  12  norm          4.0419        .49845        .86357E-04   -1.5306    
  13  Prefactor     2.3401        .61784        .14459E-03   -1.5402    
  14  Prefactor     .10003E-03    2.0917        .17713       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .41835        .28229E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.4970        5.1674        .21619E-03   -1.5334    
  17  Prefactor     3.9715        1.0206        .20239E-04   -1.5309    
  18  Prefactor     12.706        7.9143        .11239E-03   -1.4995    
  19  Prefactor     14.562        12.368        .10493E-03   -1.4945    
  20  Prefactor     .10000E-03    4.1690        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.5258        1.5306        .12850E-02   -1.5390    
  22  Prefactor     4.9334        2.9746        .18109E-03   -1.5264    
  23  norm          1.4697        1.6428        .35546E-03   -1.5466    
  24  Prefactor     .18286        .65736        .69945E-01   -1.5622    
  25  Prefactor     .10000E-03    2.9482        .51785E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          6.9874        1.7458        .75884E-03   -1.5179    
  27  Prefactor     1.5303        2.4239        .17278E-02   -1.5461    
  28  norm          9.0710        2.2399        .66537E-03   -1.5106    
  29  norm          11.334        2.5004        .11900E-03   -1.5035    
  30  Prefactor     .99320        .53631        .19631E-03   -1.5509    
  31  Normalizat    1.1298        .59190E-01    .30062E-03   -.88802    
  32  Prefactor     .98837        .41287E-01    .23123E-03   -.93118    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.43953e-08
Minuit parameter uncertainties:
  1  3.51642
  2  0.66023
  3  2.01372e-05
  4  0.582128
  5  1.20784
  6  0.000116346
  7  0.082958
  8  1.45939
  9  1.4262e-07
  10  2.70552e-06
  11  1.62165
  12  0.498455
  13  0.617838
  14  0.000480823
  15  7.01619e-07
  16  5.16811
  17  1.02062
  18  7.91492
  19  12.3698
  20  5.9673e-05
  21  1.53063
  22  2.97467
  23  1.64288
  24  0.657386
  25  5.79423e-05
  26  1.74584
  27  2.42402
  28  2.23988
  29  2.50047
  30  0.536311
  31  0.0591932
  32  0.041288
Done.

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

Extracting fit parameters...

4FGL J1740.5+5211
   Spectrum: PowerLaw
345    Prefactor:  3.971e+00  1.021e+00  1.000e-04  1.000e+04 ( 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:  9.884e-01  4.129e-02  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:  1.130e+00  5.919e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 33.72
Ra Dec: 265.136 52.193
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 3.02e-08 +/- 7.76e-09
Energy Flux (Fixed Index): 9.08e-06 +/- 2.33e-06

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) = 135847.66652
delta logL = 0.999993967882

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 135847.661589
delta logL = 1.00492525546

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.2776       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1851       1.0000          .0000       10.000    
     3 'Normalizat'    1.1387       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98462       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=   135847.7     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      247 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.2776        1.1309        .19477E-03    .57902E-02
   2  Index         2.1851        .19619        .12782E-01    .76794E-03
   3  Normalizat    1.1387        .55830E-01    .29960E-03    .90222E-03
   4  Prefactor     .98462        .40448E-01    .23162E-03    .10241E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.27765
  Index      = 2.18505
  Normalizat = 1.13868
  Prefactor  = 0.984625
 **********
 **   18 **HESSE 
 **********

 FCN=   135847.7     FROM HESSE     STATUS=OK            23 CALLS      270 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.2776        1.1325        .77909E-05   -1.5294    
   2  Index         2.1851        .19648        .51129E-03   -.59800    
   3  Normalizat    1.1387        .55885E-01    .11984E-04   -.88519    
   4  Prefactor     .98462        .40487E-01    .92648E-05   -.93244    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.35132e-09
Minuit parameter uncertainties:
  1  1.13251
  2  0.196556
  3  0.055888
  4  0.0404879
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/182813': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 135847.661589
delta logL = 1.00492525581

Extracting fit parameters...

4FGL J1740.5+5211
   Spectrum: PowerLaw
345    Prefactor:  4.278e+00  1.133e+00  1.000e-04  1.000e+04 ( 1.000e-12)
346        Index:  2.185e+00  1.966e-01  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:  9.846e-01  4.049e-02  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:  1.139e+00  5.589e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 35.51
Ra Dec: 265.136 52.193
Photon Index (Free Index): 2.19 +/- 0.20
Photon Flux (Free Index): 2.34e-08 +/- 8.12e-09
Energy Flux (Free Index): 1.08e-05 +/- 3.28e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /scratch/kocevski/182813/cmap_HighResolution_675043201_677635201_4FGL_J1740.5+5211_monthly_bin169.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.02e-08', energy_flux2='1.08e-05', photon_flux_error='7.76e-09', dlogl='1.00e+00', energy_flux='9.08e-06', photon_flux2='2.34e-08', job_status='DONE', time_completed='2022-06-23 06:04:21.148418', photon_index_error2='0.20', photon_index2='2.19', ts='33.72', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='3.28e-06', EG='1.13', time_epoch_completed='1655989461.15', return_code='0', job_id='182813', GAL2='0.98', EG2='1.14', return_code2='0', energy_flux_error='2.33e-06', photon_flux_error2='8.12e-09', ts2='35.51', photon_index='2.47' WHERE bin_id='169' AND source_name='4FGL J1740.5+5211' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Thu Jun 23 06:04:21 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 182813: <4FGL_J1740.5+5211_monthly_bin169> in cluster <slac> Done

Job <4FGL_J1740.5+5211_monthly_bin169> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Jun 23 02:40:24 2022
Job was executed on host(s) <bullet0243>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jun 23 02:40:28 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Jun 23 02:40:28 2022
Terminated at Thu Jun 23 06:04:22 2022
Results reported at Thu Jun 23 06:04:22 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1740.5+5211_monthly_bin169 265.136 52.1927 675043201 677635201 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 :                                   12178.00 sec.
    Max Memory :                                 635 MB
    Average Memory :                             504.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   12234 sec.
    Turnaround time :                            12238 sec.

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

