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


Performing analysis on: 4FGL_J1740.5+5211_weekly_bin715
RA = 265.136, Dec = 52.1927
tmin = 671414401, tmax = 672019201
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='935285', job_status='RUN', time_executed='2022-04-19 02:34:12.323510', time_epoch_executed='1650360852.32' WHERE source_name='4FGL J1740.5+5211' and cadence='weekly' and bin_id='715'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/935285

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/935285/ft1_4FGL_J1740.5+5211_weekly_bin715.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/935285/ft2_4FGL_J1740.5+5211_weekly_bin715.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/935285/ft1_4FGL_J1740.5+5211_weekly_bin715.fits outfile=/scratch/kocevski/935285/ft1_filteredMKT_4FGL_J1740.5+5211_weekly_bin715.fits ra=265.136 dec=52.1927 rad=12.0 tmin=671414401.0 tmax=672019201.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 7.58
user 7.25
sys 0.30

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/935285/ft2_4FGL_J1740.5+5211_weekly_bin715.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/935285/ft1_filteredMKT_4FGL_J1740.5+5211_weekly_bin715.fits evtable="EVENTS" outfile="/scratch/kocevski/935285/ft1_filtered_4FGL_J1740.5+5211_weekly_bin715.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.55
user 0.38
sys 0.16

Number of photons that the gtmktime cut: 2318

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/935285/ft1_filtered_4FGL_J1740.5+5211_weekly_bin715.fits" evtable="EVENTS" scfile=/scratch/kocevski/935285/ft2_4FGL_J1740.5+5211_weekly_bin715.fits sctable="SC_DATA" outfile=/scratch/kocevski/935285/ltcube_671414401_672019201_4FGL_J1740.5+5211_weekly_bin715.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/935285/ft2_4FGL_J1740.5+5211_weekly_bin715.fits
.....................!
real 29.16
user 28.72
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/935285/ft1_filtered_4FGL_J1740.5+5211_weekly_bin715.fits evtable="EVENTS" scfile=/scratch/kocevski/935285/ft2_4FGL_J1740.5+5211_weekly_bin715.fits sctable="SC_DATA" expcube=/scratch/kocevski/935285/ltcube_671414401_672019201_4FGL_J1740.5+5211_weekly_bin715.fits outfile=/scratch/kocevski/935285/expmap_671414401_672019201_4FGL_J1740.5+5211_weekly_bin715.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/935285/ltcube_671414401_672019201_4FGL_J1740.5+5211_weekly_bin715.fits
.....................!
real 191.92
user 186.36
sys 5.18

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/935285/ft1_filtered_4FGL_J1740.5+5211_weekly_bin715.fits scfile=/scratch/kocevski/935285/ft2_4FGL_J1740.5+5211_weekly_bin715.fits outfile=/scratch/kocevski/935285/cmap_671414401_672019201_4FGL_J1740.5+5211_weekly_bin715.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.60
user 0.42
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/935285/ft1_filtered_4FGL_J1740.5+5211_weekly_bin715.fits scfile=/scratch/kocevski/935285/ft2_4FGL_J1740.5+5211_weekly_bin715.fits outfile=/scratch/kocevski/935285/cmap_HighResolution_671414401_672019201_4FGL_J1740.5+5211_weekly_bin715.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.59
user 0.42
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/935285/ft1_filtered_4FGL_J1740.5+5211_weekly_bin715.fits evtable="EVENTS" scfile=/scratch/kocevski/935285/ft2_4FGL_J1740.5+5211_weekly_bin715.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/935285/Model_4FGL_J1740.5+5211_weekly_bin715.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/935285/ft1_filtered_4FGL_J1740.5+5211_weekly_bin715.fits.....................!
real 183.14
user 181.38
sys 1.29

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/935285/ft1_filtered_4FGL_J1740.5+5211_weekly_bin715.fits', '/scratch/kocevski/935285/ft2_4FGL_J1740.5+5211_weekly_bin715.fits', expMap='/scratch/kocevski/935285/expmap_671414401_672019201_4FGL_J1740.5+5211_weekly_bin715.fits', expCube='/scratch/kocevski/935285/ltcube_671414401_672019201_4FGL_J1740.5+5211_weekly_bin715.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/935285/Model_4FGL_J1740.5+5211_weekly_bin715.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/935285/ft1_filtered_4FGL_J1740.5+5211_weekly_bin715.fits
Spacecraft file(s): /scratch/kocevski/935285/ft2_4FGL_J1740.5+5211_weekly_bin715.fits
Exposure map: /scratch/kocevski/935285/expmap_671414401_672019201_4FGL_J1740.5+5211_weekly_bin715.fits
Exposure cube: /scratch/kocevski/935285/ltcube_671414401_672019201_4FGL_J1740.5+5211_weekly_bin715.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/935285/Model_4FGL_J1740.5+5211_weekly_bin715.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) = 24147.0334835

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    33.591       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .13682E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.3446       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.0207       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.7335       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .18492E-01   1.0000         .10000E-03   10000.    
     7 'norm      '    .44438       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.1326       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .18387E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .91483E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    4.4443       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.987       1.0000         .10000E-03   10000.    
    15 'norm      '    2.6878       1.0000         .10000E-03   10000.    
    16 'Prefactor '    17.204       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.8937       1.0000         .10000E-03   10000.    
    18 'Prefactor '    17.263       1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.7021       1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.7581       1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.5565       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .67431E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    2.0918       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .87344E-02   1.0000         .10000E-03   10000.    
    25 'Prefactor '    15.134       1.0000         .10000E-03   10000.    
    26 'norm      '    6.9631       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    3.9511       1.0000         .10000E-03   10000.    
    29 'norm      '    6.6529       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.1598       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .92372       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   24146.96     FROM MIGRAD    STATUS=CONVERGED    906 CALLS     3892 TOTAL
                     EDM=   .61E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          33.590        12.458       -.87259E-07    .16629E-04
   2  Prefactor     .10000E-03    1.1008       -.35856E-07** at limit **
   3  Prefactor     9.3453        4.1399        .77313E-07   -.24228E-03
   4  Prefactor     3.0208        2.0146        .58386E-07    .78456E-04
   5  Prefactor     4.7330        4.6058       -.18950E-05   -.18023E-04
   6  Prefactor     .10002E-03    2.7333       -.98937E-07** at limit **
   7  norm          .44439        .47301       -.33878E-07   -.37291E-03
   8  Prefactor     2.1323        3.5517       -.10112E-06   -.49131E-04
   9  norm          .10000E-03    .12574       -.74848E-08** at limit **
  10  Prefactor     .10000E-03    1.2942       -.65069E-07** at limit **
  11  Prefactor     .10002E-03    1.5840        .94296E-07** at limit **
  12  norm          4.4440        1.2133       -.15805E-07    .58575E-04
  13  Prefactor     .10000E-03    .43110        .50628E-07** at limit **
  14  Prefactor     15.985        19.106       -.16365E-06    .17149E-04
  15  norm          2.6875        2.1424       -.62935E-08   -.18831E-03
  16  Prefactor     17.203        16.732       -.10914E-06    .40256E-05
  17  Prefactor     1.8936        1.6693       -.34149E-07   -.18201E-04
  18  Prefactor     17.259        16.887        .19554E-07    .10356E-04
  19  Prefactor     9.6920        49.100       -.10874E-04    .15236E-05
  20  Prefactor     9.7554        15.617       -.21659E-06    .25307E-05
  21  Prefactor     5.5559        4.2981        .14142E-06    .18132E-05
  22  Prefactor     .10000E-03    4.5768       -.28021E-06** at limit **
  23  norm          2.0912        .93876        .60359E-07   -.14511E-02
  24  Prefactor     .10001E-03    2.5349       -.82120E-07** at limit **
  25  Prefactor     15.126        8.9380        .60175E-06    .43375E-04
  26  norm          6.9628        4.2275        .16661E-05    .31376E-04
  27  Prefactor     .10000E-03    3.5401        .11160E-06** at limit **
  28  norm          3.9505        4.6765       -.15600E-05   -.99855E-05
  29  norm          6.6529        4.8114       -.17307E-05    .14423E-04
  30  Prefactor     .10000E-03    .54720        .40925E-07** at limit **
  31  Normalizat    1.1599        .12282        .20671E-06    .17218E-03
  32  Prefactor     .92369        .81179E-01    .39125E-06    .11718E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 33.5898
  Prefactor  = 0.0001
  Prefactor  = 9.34533
  Prefactor  = 3.02076
  Prefactor  = 4.733
  Prefactor  = 0.000100015
  norm       = 0.444388
  Prefactor  = 2.13234
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100025
  norm       = 4.44397
  Prefactor  = 0.0001
  Prefactor  = 15.9854
  norm       = 2.68751
  Prefactor  = 17.2032
  Prefactor  = 1.89364
  Prefactor  = 17.2586
  Prefactor  = 9.69201
  Prefactor  = 9.75544
  Prefactor  = 5.5559
  Prefactor  = 0.0001
  norm       = 2.09119
  Prefactor  = 0.000100014
  Prefactor  = 15.1255
  norm       = 6.96278
  Prefactor  = 0.0001
  norm       = 3.95045
  norm       = 6.65289
  Prefactor  = 0.0001
  Normalizat = 1.1599
  Prefactor  = 0.92369
 **********
 **   18 **HESSE 
 **********

 FCN=   24146.96     FROM HESSE     STATUS=OK           705 CALLS     4597 TOTAL
                     EDM=   .86E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          33.590        12.459        .69140E-04   -1.4548    
   2  Prefactor     .10000E-03    5.3989        .30959E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.3453        4.1988        .65551E-03   -1.5096    
   4  Prefactor     3.0208        1.9669        .16524E-03   -1.5360    
   5  Prefactor     4.7330        4.6026        .18494E-03   -1.5273    
   6  Prefactor     .10002E-03    4.4537        .90956E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .44439        .37838        .10007E-02   -1.5575    
   8  Prefactor     2.1323        3.4872        .28231E-03   -1.5416    
   9  norm          .10000E-03    .48873        .10625E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.5800        .32960E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10002E-03    1.6688        .66695E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.4440        1.2120        .84069E-04   -1.5286    
  13  Prefactor     .10000E-03    .43402        .99612E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     15.985        18.827        .10017E-03   -1.4908    
  15  norm          2.6875        2.1459        .98140E-03   -1.5380    
  16  Prefactor     17.203        16.720        .96561E-04   -1.4878    
  17  Prefactor     1.8936        1.6584        .18133E-03   -1.5433    
  18  Prefactor     17.259        16.876        .96397E-04   -1.4877    
  19  Prefactor     9.6920        49.142        .12865E-03   -1.5085    
  20  Prefactor     9.7554        15.599        .12828E-03   -1.5083    
  21  Prefactor     5.5559        4.3073        .17044E-03   -1.5237    
  22  Prefactor     .10000E-03    14.773        .64209E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          2.0912        3.8349        .14271E-02   -1.5419    
  24  Prefactor     .10001E-03    3.6260        .72070E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     15.126        8.9070        .10296E-03   -1.4930    
  26  norm          6.9628        4.2246        .15203E-03   -1.5180    
  27  Prefactor     .10000E-03    3.5431        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          3.9505        4.6695        .20293E-03   -1.5310    
  29  norm          6.6529        4.8068        .15557E-03   -1.5192    
  30  Prefactor     .10000E-03    .56725        .22440E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.1599        .14631        .30239E-03   -.87851    
  32  Prefactor     .92369        .97347E-01    .23824E-03   -.95318    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.56402e-09
Minuit parameter uncertainties:
  1  12.4604
  2  1.41871e-06
  3  4.19893
  4  1.9669
  5  4.60294
  6  0.000518723
  7  0.378381
  8  3.48757
  9  1.99303e-06
  10  3.74368e-05
  11  0.00040446
  12  1.21201
  13  2.28631e-07
  14  18.834
  15  2.14593
  16  16.7249
  17  1.65839
  18  16.8805
  19  43.7046
  20  15.605
  21  4.30754
  22  6.87577e-06
  23  3.83533
  24  0.000448084
  25  8.9078
  26  4.22475
  27  4.36168e-06
  28  4.66993
  29  4.80703
  30  1.60474e-06
  31  0.146358
  32  0.0973651
Done.

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

Extracting fit parameters...

4FGL J1740.5+5211
   Spectrum: PowerLaw
345    Prefactor:  1.894e+00  1.658e+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.237e-01  9.737e-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.160e+00  1.464e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.60
Ra Dec: 265.136 52.193
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 1.44e-08 +/- 1.26e-08
Energy Flux (Fixed Index): 4.33e-06 +/- 3.79e-06

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

Saving results to:
/scratch/kocevski/935285/likelihoodResults_671414401_672019201_4FGL_J1740.5+5211_weekly_bin715.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) = 24145.4068894
delta logL = 1.55512607191

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 24145.3984845
delta logL = 1.5635309465

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.9232       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5404       1.0000          .0000       10.000    
     3 'Normalizat'    1.1725       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91741       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=   24145.40     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      211 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9234        1.3936        .74899E-02   -.32473E-03
   2  Index         1.5405        .27881        .29364       -.20482E-03
   3  Normalizat    1.1725        .11145        .68016E-01    .43449E-04
   4  Prefactor     .91743        .79718E-01    .45227E-01    .37557E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.92336
  Index      = 1.54047
  Normalizat = 1.17248
  Prefactor  = 0.917434
 **********
 **   18 **HESSE 
 **********

 FCN=   24145.40     FROM HESSE     STATUS=OK            33 CALLS      244 TOTAL
                     EDM=   .93E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9234        1.6300        .15172E-03   -1.5431    
   2  Index         1.5405        .42429        .11675E-01   -.76412    
   3  Normalizat    1.1725        .13190        .30092E-03   -.87458    
   4  Prefactor     .91743        .94433E-01    .23887E-03   -.95535    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.3381e-09
Minuit parameter uncertainties:
  1  1.63003
  2  0.425272
  3  0.131933
  4  0.09445
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/935285': 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) = 24145.3984843
delta logL = 1.56353109299

Extracting fit parameters...

4FGL J1740.5+5211
   Spectrum: PowerLaw
345    Prefactor:  1.923e+00  1.630e+00  1.000e-04  1.000e+04 ( 1.000e-12)
346        Index:  1.540e+00  4.253e-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.174e-01  9.445e-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.172e+00  1.319e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.72
Ra Dec: 265.136 52.193
Photon Index (Free Index): 1.54 +/- 0.43
Photon Flux (Free Index): 6.58e-09 +/- 5.94e-09
Energy Flux (Free Index): 1.82e-05 +/- 2.07e-05

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/935285/cmap_HighResolution_671414401_672019201_4FGL_J1740.5+5211_weekly_bin715.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.54e-03', comment='SUCCESS', photon_flux='1.44e-08', energy_flux2='1.82e-05', photon_flux_error='1.26e-08', dlogl='1.56e+00', energy_flux='4.33e-06', photon_flux2='6.58e-09', job_status='DONE', time_completed='2022-04-19 03:23:55.119702', photon_index_error2='0.43', photon_index2='1.54', ts='2.60', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='4.56e-08', energy_flux_error2='2.07e-05', EG='1.16', time_epoch_completed='1650363835.12', return_code='0', job_id='935285', GAL2='0.92', EG2='1.17', return_code2='0', energy_flux_error='3.79e-06', photon_flux_error2='5.94e-09', ts2='5.72', photon_index='2.47' WHERE bin_id='715' AND source_name='4FGL J1740.5+5211' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Apr 19 03:23:55 PDT 2022



------------------------------------------------------------
Sender: LSF System <lsf@bullet0163>
Subject: Job 931492: <4FGL_J1740.5+5211_weekly_bin715> in cluster <slac> Done

Job <4FGL_J1740.5+5211_weekly_bin715> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Apr 19 00:07:29 2022
Job was executed on host(s) <bullet0163>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Apr 19 02:19:13 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Apr 19 02:19:13 2022
Terminated at Tue Apr 19 03:12:29 2022
Results reported at Tue Apr 19 03:12:29 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1740.5+5211_weekly_bin715 265.136 52.1927 671414401 672019201 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 :                                   2981.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             341.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   3195 sec.
    Turnaround time :                            11100 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0080>
Subject: Job 935285: <4FGL_J1740.5+5211_weekly_bin715> in cluster <slac> Done

Job <4FGL_J1740.5+5211_weekly_bin715> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Apr 19 00:18:53 2022
Job was executed on host(s) <bullet0080>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Apr 19 02:33:09 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Apr 19 02:33:09 2022
Terminated at Tue Apr 19 03:23:56 2022
Results reported at Tue Apr 19 03:23:56 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1740.5+5211_weekly_bin715 265.136 52.1927 671414401 672019201 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 :                                   2974.00 sec.
    Max Memory :                                 1096 MB
    Average Memory :                             346.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   3046 sec.
    Turnaround time :                            11103 sec.

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

