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


Performing analysis on: 4FGL_J1740.6+5346_weekly_bin730
RA = 265.159, Dec = 53.7701
tmin = 680486401, tmax = 681091201
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='659676', job_status='RUN', time_executed='2022-08-02 02:23:42.311837', time_epoch_executed='1659432222.31' WHERE source_name='4FGL J1740.6+5346' and cadence='weekly' and bin_id='730'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/659676

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/659676/ft1_4FGL_J1740.6+5346_weekly_bin730.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/659676/ft2_4FGL_J1740.6+5346_weekly_bin730.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/659676/ft1_4FGL_J1740.6+5346_weekly_bin730.fits outfile=/scratch/kocevski/659676/ft1_filteredMKT_4FGL_J1740.6+5346_weekly_bin730.fits ra=265.159 dec=53.7701 rad=12.0 tmin=680486401.0 tmax=681091201.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 6.38
user 6.00
sys 0.28

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/659676/ft2_4FGL_J1740.6+5346_weekly_bin730.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/659676/ft2_4FGL_J1740.6+5346_weekly_bin730.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/659676/ft1_filteredMKT_4FGL_J1740.6+5346_weekly_bin730.fits evtable="EVENTS" outfile="/scratch/kocevski/659676/ft1_filtered_4FGL_J1740.6+5346_weekly_bin730.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.57
user 0.41
sys 0.15

Number of photons that the gtmktime cut: 4206

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/659676/ft1_filtered_4FGL_J1740.6+5346_weekly_bin730.fits" evtable="EVENTS" scfile=/scratch/kocevski/659676/ft2_4FGL_J1740.6+5346_weekly_bin730.fits sctable="SC_DATA" outfile=/scratch/kocevski/659676/ltcube_680486401_681091201_4FGL_J1740.6+5346_weekly_bin730.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/659676/ft2_4FGL_J1740.6+5346_weekly_bin730.fits
.....................!
real 35.35
user 34.42
sys 0.40

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/659676/ft1_filtered_4FGL_J1740.6+5346_weekly_bin730.fits evtable="EVENTS" scfile=/scratch/kocevski/659676/ft2_4FGL_J1740.6+5346_weekly_bin730.fits sctable="SC_DATA" expcube=/scratch/kocevski/659676/ltcube_680486401_681091201_4FGL_J1740.6+5346_weekly_bin730.fits outfile=/scratch/kocevski/659676/expmap_680486401_681091201_4FGL_J1740.6+5346_weekly_bin730.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/659676/ltcube_680486401_681091201_4FGL_J1740.6+5346_weekly_bin730.fits
.....................!
real 194.52
user 186.56
sys 5.50

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

Setting source of interest to:
4FGL J1740.6+5346 @ 265.159 53.7701

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/659676/ft1_filtered_4FGL_J1740.6+5346_weekly_bin730.fits scfile=/scratch/kocevski/659676/ft2_4FGL_J1740.6+5346_weekly_bin730.fits outfile=/scratch/kocevski/659676/cmap_680486401_681091201_4FGL_J1740.6+5346_weekly_bin730.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.159 yref=53.7701 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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/659676/ft1_filtered_4FGL_J1740.6+5346_weekly_bin730.fits scfile=/scratch/kocevski/659676/ft2_4FGL_J1740.6+5346_weekly_bin730.fits outfile=/scratch/kocevski/659676/cmap_HighResolution_680486401_681091201_4FGL_J1740.6+5346_weekly_bin730.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.159 yref=53.7701 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.43
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/659676/ft1_filtered_4FGL_J1740.6+5346_weekly_bin730.fits evtable="EVENTS" scfile=/scratch/kocevski/659676/ft2_4FGL_J1740.6+5346_weekly_bin730.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/659676/Model_4FGL_J1740.6+5346_weekly_bin730.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/659676/ft1_filtered_4FGL_J1740.6+5346_weekly_bin730.fits.....................!
real 334.34
user 328.82
sys 1.50

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/659676/ft1_filtered_4FGL_J1740.6+5346_weekly_bin730.fits', '/scratch/kocevski/659676/ft2_4FGL_J1740.6+5346_weekly_bin730.fits', expMap='/scratch/kocevski/659676/expmap_680486401_681091201_4FGL_J1740.6+5346_weekly_bin730.fits', expCube='/scratch/kocevski/659676/ltcube_680486401_681091201_4FGL_J1740.6+5346_weekly_bin730.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/659676/Model_4FGL_J1740.6+5346_weekly_bin730.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1740.6+5346'

4FGL J1740.6+5346
   Spectrum: PowerLaw
372    Prefactor:  8.657e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
373        Index:  2.165e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
374        Scale:  1.972e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/659676/ft1_filtered_4FGL_J1740.6+5346_weekly_bin730.fits
Spacecraft file(s): /scratch/kocevski/659676/ft2_4FGL_J1740.6+5346_weekly_bin730.fits
Exposure map: /scratch/kocevski/659676/expmap_680486401_681091201_4FGL_J1740.6+5346_weekly_bin730.fits
Exposure cube: /scratch/kocevski/659676/ltcube_680486401_681091201_4FGL_J1740.6+5346_weekly_bin730.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/659676/Model_4FGL_J1740.6+5346_weekly_bin730.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) = 43472.5131055

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.9248       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10162E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.0337       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10156E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.2836       1.0000         .10000E-03   10000.    
     7 'norm      '    .32328       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .83356       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.0918       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .53981       1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.830       1.0000         .10000E-03   10000.    
    15 'norm      '    3.9934       1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.103       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .65349       1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.4314       1.0000         .10000E-03   10000.    
    19 'Prefactor '    24.979       1.0000         .10000E-03   10000.    
    20 'Prefactor '    18.452       1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.3567       1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.7570       1.0000         .10000E-03   10000.    
    23 'norm      '    3.3049       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .12917E-02   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    5.2502       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    9.6127       1.0000         .10000E-03   10000.    
    30 'norm      '    7.3925       1.0000         .10000E-03   10000.    
    31 'Prefactor '    2.6325       1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.1361       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .95861       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6770E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   43472.44     FROM MIGRAD    STATUS=CONVERGED    891 CALLS     4021 TOTAL
                     EDM=   .23E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.9377        .40956E-07** at limit **
   2  Prefactor     1.9247        1.5372        .50011E-08   -.11358E-04
   3  Prefactor     .10000E-03    .61226        .17950E-07** at limit **
   4  Prefactor     3.0336        1.1995        .31755E-08   -.34123E-04
   5  Prefactor     .10000E-03    2.9750       -.21065E-07** at limit **
   6  Prefactor     2.2837        2.9925       -.81423E-08   -.34742E-03
   7  norm          .32331        .31114        .68852E-08   -.58625E-04
   8  Prefactor     .10000E-03    .64804        .51489E-08** at limit **
   9  norm          .83363        .43570        .58530E-08   -.39042E-04
  10  Prefactor     .10000E-03    .79073        .19572E-07** at limit **
  11  Prefactor     .10000E-03    1.2647        .70056E-08** at limit **
  12  norm          2.0918        .75876       -.46954E-08   -.70851E-04
  13  Prefactor     .53980        .58257        .24636E-08    .40017E-03
  14  Prefactor     12.831        15.096       -.49763E-06   -.44628E-05
  15  norm          3.9929        2.0641       -.20966E-07   -.41073E-03
  16  Prefactor     12.103        13.609        .57073E-06    .13870E-05
  17  Prefactor     .65441        1.5031       -.37863E-06   -.43757E-03
  18  Prefactor     8.4286        11.891        .50815E-05    .23061E-04
  19  Prefactor     24.978        22.454       -.85151E-07   -.12854E-05
  20  Prefactor     18.451        16.805        .48596E-06    .27402E-05
  21  Prefactor     7.3564        4.4940        .21763E-07   -.11112E-03
  22  Prefactor     6.7568        5.9433       -.94882E-07   -.28851E-05
  23  norm          3.3053        2.8099        .70566E-07   -.41401E-03
  24  Prefactor     .10001E-03    1.0972        .26872E-07** at limit **
  25  Prefactor     .10000E-03    1.8975       -.11789E-07** at limit **
  26  Prefactor     .10000E-03    8.4756        .10600E-07** at limit **
  27  norm          5.2502        2.4956        .92293E-07   -.26925E-03
  28  Prefactor     .10000E-03    4.4564        .16407E-07** at limit **
  29  norm          9.6125        4.1121        .43212E-07   -.12714E-03
  30  norm          7.3926        3.5725       -.20585E-07    .32799E-04
  31  Prefactor     2.6328        5.2840       -.23615E-06   -.12420E-04
  32  Normalizat    1.1361        .86070E-01   -.65517E-07    .85979E-05
  33  Prefactor     .95858        .61122E-01   -.84465E-07    .24775E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 1.9247
  Prefactor  = 0.0001
  Prefactor  = 3.03364
  Prefactor  = 0.0001
  Prefactor  = 2.28365
  norm       = 0.323312
  Prefactor  = 0.0001
  norm       = 0.833627
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.09178
  Prefactor  = 0.539802
  Prefactor  = 12.8307
  norm       = 3.99293
  Prefactor  = 12.1031
  Prefactor  = 0.654412
  Prefactor  = 8.42856
  Prefactor  = 24.9783
  Prefactor  = 18.4505
  Prefactor  = 7.35642
  Prefactor  = 6.7568
  norm       = 3.30526
  Prefactor  = 0.000100011
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.25017
  Prefactor  = 0.0001
  norm       = 9.61253
  norm       = 7.39257
  Prefactor  = 2.6328
  Normalizat = 1.13615
  Prefactor  = 0.958583
 **********
 **   18 **HESSE 
 **********

 FCN=   43472.44     FROM HESSE     STATUS=OK           723 CALLS     4744 TOTAL
                     EDM=   .43E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.9606        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.9247        1.5375        .22283E-03   -1.5430    
   3  Prefactor     .10000E-03    1.4802        .31275E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.0336        1.1853        .13518E-03   -1.5360    
   5  Prefactor     .10000E-03    3.0979        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.2837        3.9530        .13584E-02   -1.5406    
   7  norm          .32331        .27631        .10637E-02   -1.5594    
   8  Prefactor     .10000E-03    .65372        .16374E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .83363        .38929        .95327E-03   -1.5525    
  10  Prefactor     .10000E-03    .80354        .18061E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.2860        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.0918        .75246        .10362E-03   -1.5419    
  13  Prefactor     .53980        .58964        .82769E-03   -1.5561    
  14  Prefactor     12.831        15.072        .11183E-03   -1.4991    
  15  norm          3.9929        2.1960        .10091E-02   -1.5308    
  16  Prefactor     12.103        13.583        .11515E-03   -1.5012    
  17  Prefactor     .65441        1.4767        .36356E-03   -1.5546    
  18  Prefactor     8.4286        11.893        .13806E-03   -1.5127    
  19  Prefactor     24.978        22.462        .80151E-04   -1.4708    
  20  Prefactor     18.451        16.778        .93239E-04   -1.4849    
  21  Prefactor     7.3564        4.4997        .73937E-03   -1.5165    
  22  Prefactor     6.7568        5.9412        .15436E-03   -1.5188    
  23  norm          3.3053        3.3000        .11135E-02   -1.5344    
  24  Prefactor     .10001E-03    2.2179        .64902E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    1.9085        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    8.8728        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          5.2502        2.5682        .87712E-03   -1.5250    
  28  Prefactor     .10000E-03    4.5426        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          9.6125        4.1602        .64626E-03   -1.5088    
  30  norm          7.3926        3.5752        .73756E-03   -1.5164    
  31  Prefactor     2.6328        5.2765        .25132E-03   -1.5383    
  32  Normalizat    1.1361        .10230        .29753E-03   -.88599    
  33  Prefactor     .95858        .73111E-01    .23555E-03   -.94123    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.34866e-08
Minuit parameter uncertainties:
  1  5.60552e-07
  2  1.53749
  3  2.30092e-06
  4  1.1853
  5  1.58301e-06
  6  3.95343
  7  0.276314
  8  5.26435e-08
  9  0.389295
  10  1.51981e-06
  11  7.01696e-07
  12  0.752468
  13  0.58965
  14  15.0769
  15  2.19608
  16  13.5865
  17  1.47683
  18  11.896
  19  22.4694
  20  16.7822
  21  4.49995
  22  5.94174
  23  3.30017
  24  0.000313009
  25  9.82629e-07
  26  3.69001e-06
  27  2.56821
  28  4.01627e-07
  29  4.16035
  30  3.57531
  31  5.27744
  32  0.102315
  33  0.0731184
Done.

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

Extracting fit parameters...

4FGL J1740.6+5346
   Spectrum: PowerLaw
372    Prefactor:  8.429e+00  1.190e+01  1.000e-04  1.000e+04 ( 1.000e-14)
373        Index:  2.165e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
374        Scale:  1.972e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
674    Prefactor:  9.586e-01  7.312e-02  0.000e+00  1.000e+01 ( 1.000e+00)
675        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
676        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
673   Normalization:  1.136e+00  1.023e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.74
Ra Dec: 265.159 53.770
Photon Flux Upper Limit: 2.16e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.64e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/659676/likelihoodResults_680486401_681091201_4FGL_J1740.6+5346_weekly_bin730.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) = 43472.4355298
delta logL = 0.00239889798104

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 43472.4347326
delta logL = 0.00319612886233

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.9078       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2514       1.0000          .0000       10.000    
     3 'Normalizat'    1.1354       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95883       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6770E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   43472.43     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      320 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.9181        13.491        .71294E-03   -.32275E-04
   2  Index         2.2505        1.1091        .36426E-02   -.10137E-04
   3  Normalizat    1.1354        .98152E-01    .29761E-03    .55007E-04
   4  Prefactor     .95883        .72149E-01    .23552E-03   -.37573E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.91806
  Index      = 2.25053
  Normalizat = 1.13543
  Prefactor  = 0.958827
 **********
 **   18 **HESSE 
 **********

 FCN=   43472.43     FROM HESSE     STATUS=OK            23 CALLS      343 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.9181        13.103        .28517E-04   -1.5145    
   2  Index         2.2505        1.0776        .14570E-03   -.58224    
   3  Normalizat    1.1354        .98230E-01    .11905E-04   -.88622    
   4  Prefactor     .95883        .72223E-01    .94210E-05   -.94115    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.22978e-10
Minuit parameter uncertainties:
  1  13.1077
  2  1.08996
  3  0.0982458
  4  0.0722305
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/659676': 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) = 43472.4347322
delta logL = 0.00319651795871

Extracting fit parameters...

4FGL J1740.6+5346
   Spectrum: PowerLaw
372    Prefactor:  7.918e+00  1.311e+01  1.000e-04  1.000e+04 ( 1.000e-14)
373        Index:  2.251e+00  1.090e+00  0.000e+00  1.000e+01 (-1.000e+00)
374        Scale:  1.972e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
674    Prefactor:  9.588e-01  7.223e-02  0.000e+00  1.000e+01 ( 1.000e+00)
675        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
676        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
673   Normalization:  1.135e+00  9.825e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.74
Ra Dec: 265.159 53.770

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/659676/cmap_HighResolution_680486401_681091201_4FGL_J1740.6+5346_weekly_bin730.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.64e-03', job_status='DONE', photon_flux_upper_limit='2.16e-08', time_completed='2022-08-02 03:55:01.695250', job_id='659676', GAL2='0.96', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1659437701.7', return_code2='0', ts='0.74', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='3.20e-03', ts2='0.75', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='730' AND source_name='4FGL J1740.6+5346' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Aug  2 03:55:01 PDT 2022



------------------------------------------------------------
Sender: LSF System <scs@bullet0179>
Subject: Job 659677: <4FGL_J1740.6+5346_weekly_bin730> in cluster <slac> Done

Job <4FGL_J1740.6+5346_weekly_bin730> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Aug  2 00:06:54 2022
Job was executed on host(s) <bullet0179>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug  2 02:23:07 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug  2 02:23:07 2022
Terminated at Tue Aug  2 03:54:05 2022
Results reported at Tue Aug  2 03:54:05 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1740.6+5346_weekly_bin730 265.159 53.7701 680486401 681091201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1740.6+5346 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   5427.00 sec.
    Max Memory :                                 1096 MB
    Average Memory :                             383.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   5458 sec.
    Turnaround time :                            13631 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0096>
Subject: Job 659676: <4FGL_J1740.6+5346_weekly_bin730> in cluster <slac> Done

Job <4FGL_J1740.6+5346_weekly_bin730> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Aug  2 00:06:54 2022
Job was executed on host(s) <bullet0096>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug  2 02:23:01 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug  2 02:23:01 2022
Terminated at Tue Aug  2 03:55:02 2022
Results reported at Tue Aug  2 03:55:02 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1740.6+5346_weekly_bin730 265.159 53.7701 680486401 681091201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1740.6+5346 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   5418.00 sec.
    Max Memory :                                 1261 MB
    Average Memory :                             381.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   5521 sec.
    Turnaround time :                            13688 sec.

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

