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


Performing analysis on: 4FGL_J1740.6+5346_monthly_bin167
RA = 265.159, Dec = 53.7701
tmin = 669859201, tmax = 672451201
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='902400', job_status='RUN', time_executed='2022-04-24 02:35:23.873213', time_epoch_executed='1650792923.87' WHERE source_name='4FGL J1740.6+5346' and cadence='monthly' and bin_id='167'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/902400

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

Retrieving the FT1 file...

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

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

Retrieving 456 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/902400/ft1_4FGL_J1740.6+5346_monthly_bin167.fits


Retrieving the FT1 file...

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

Retrieving 456 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/902400/ft2_4FGL_J1740.6+5346_monthly_bin167.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/902400/ft1_4FGL_J1740.6+5346_monthly_bin167.fits outfile=/scratch/kocevski/902400/ft1_filteredMKT_4FGL_J1740.6+5346_monthly_bin167.fits ra=265.159 dec=53.7701 rad=12.0 tmin=669859201.0 tmax=672451201.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 38.02
user 37.06
sys 0.88

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/902400/ft2_4FGL_J1740.6+5346_monthly_bin167.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/902400/ft1_filteredMKT_4FGL_J1740.6+5346_monthly_bin167.fits evtable="EVENTS" outfile="/scratch/kocevski/902400/ft1_filtered_4FGL_J1740.6+5346_monthly_bin167.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.87
user 0.66
sys 0.19

Number of photons that the gtmktime cut: 9413

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/902400/ft1_filtered_4FGL_J1740.6+5346_monthly_bin167.fits" evtable="EVENTS" scfile=/scratch/kocevski/902400/ft2_4FGL_J1740.6+5346_monthly_bin167.fits sctable="SC_DATA" outfile=/scratch/kocevski/902400/ltcube_669859201_672451201_4FGL_J1740.6+5346_monthly_bin167.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/902400/ft2_4FGL_J1740.6+5346_monthly_bin167.fits
.....................!
real 134.94
user 134.32
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/902400/ft1_filtered_4FGL_J1740.6+5346_monthly_bin167.fits evtable="EVENTS" scfile=/scratch/kocevski/902400/ft2_4FGL_J1740.6+5346_monthly_bin167.fits sctable="SC_DATA" expcube=/scratch/kocevski/902400/ltcube_669859201_672451201_4FGL_J1740.6+5346_monthly_bin167.fits outfile=/scratch/kocevski/902400/expmap_669859201_672451201_4FGL_J1740.6+5346_monthly_bin167.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/902400/ltcube_669859201_672451201_4FGL_J1740.6+5346_monthly_bin167.fits
.....................!
real 192.84
user 187.40
sys 5.06

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/902400/ft1_filtered_4FGL_J1740.6+5346_monthly_bin167.fits scfile=/scratch/kocevski/902400/ft2_4FGL_J1740.6+5346_monthly_bin167.fits outfile=/scratch/kocevski/902400/cmap_669859201_672451201_4FGL_J1740.6+5346_monthly_bin167.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.82
user 0.64
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/902400/ft1_filtered_4FGL_J1740.6+5346_monthly_bin167.fits scfile=/scratch/kocevski/902400/ft2_4FGL_J1740.6+5346_monthly_bin167.fits outfile=/scratch/kocevski/902400/cmap_HighResolution_669859201_672451201_4FGL_J1740.6+5346_monthly_bin167.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.81
user 0.62
sys 0.19

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/902400/ft1_filtered_4FGL_J1740.6+5346_monthly_bin167.fits', '/scratch/kocevski/902400/ft2_4FGL_J1740.6+5346_monthly_bin167.fits', expMap='/scratch/kocevski/902400/expmap_669859201_672451201_4FGL_J1740.6+5346_monthly_bin167.fits', expCube='/scratch/kocevski/902400/ltcube_669859201_672451201_4FGL_J1740.6+5346_monthly_bin167.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/902400/Model_4FGL_J1740.6+5346_monthly_bin167.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/902400/ft1_filtered_4FGL_J1740.6+5346_monthly_bin167.fits
Spacecraft file(s): /scratch/kocevski/902400/ft2_4FGL_J1740.6+5346_monthly_bin167.fits
Exposure map: /scratch/kocevski/902400/expmap_669859201_672451201_4FGL_J1740.6+5346_monthly_bin167.fits
Exposure cube: /scratch/kocevski/902400/ltcube_669859201_672451201_4FGL_J1740.6+5346_monthly_bin167.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/902400/Model_4FGL_J1740.6+5346_monthly_bin167.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) = 97711.6903891

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    19.712       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.0637       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.7006       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.7280       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.1831       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.6197       1.0000         .10000E-03   10000.    
     7 'norm      '    .21501       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .86185E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .72482       1.0000         .10000E-03   10000.    
    12 'norm      '    4.5484       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .83804       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .90576       1.0000         .10000E-03   10000.    
    15 'norm      '    1.2634       1.0000         .10000E-03   10000.    
    16 'Prefactor '    16.059       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.8811       1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.573       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11394E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.8992       1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.7507       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .54345       1.0000         .10000E-03   10000.    
    23 'norm      '    1.3453       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10314E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    9.6987       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .11144E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    5.6399       1.0000         .10000E-03   10000.    
    28 'Prefactor '    2.2972       1.0000         .10000E-03   10000.    
    29 'norm      '    6.8518       1.0000         .10000E-03   10000.    
    30 'norm      '    7.1787       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.0684       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.0338       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=   97711.64     FROM MIGRAD    STATUS=CONVERGED    904 CALLS     4057 TOTAL
                     EDM=   .41E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          19.708        5.5914       -.43821E-07    .22106E-04
   2  Prefactor     2.0666        1.3975       -.46056E-07    .12561E-03
   3  Prefactor     4.7024        1.6892        .23533E-07   -.24552E-03
   4  Prefactor     2.7274        .91158        .29002E-08    .37050E-03
   5  Prefactor     3.1844        2.0710       -.22059E-06    .14333E-04
   6  Prefactor     7.6241        4.5356       -.71175E-06   -.29526E-04
   7  norm          .21499        .18088       -.39671E-07    .42032E-03
   8  Prefactor     .10003E-03    .30825       -.11549E-06** at limit **
   9  norm          .86588E-02    .49955E-01    .29858E-07   -.10490E-02
  10  Prefactor     .10000E-03    .30563       -.33868E-07** at limit **
  11  Prefactor     .72452        .95578        .13319E-06    .70723E-04
  12  norm          4.5489        .62267       -.33941E-07    .38974E-03
  13  Prefactor     .83832        .75491        .42418E-07    .71399E-03
  14  Prefactor     .90350        8.6183       -.40996E-06   -.12631E-04
  15  norm          1.2629        1.0146        .53158E-07   -.42509E-04
  16  Prefactor     16.060        9.5241       -.27408E-05   -.59379E-04
  17  Prefactor     2.8802        1.2249        .17914E-06   -.23271E-05
  18  Prefactor     13.555        10.056       -.46705E-05   -.64575E-04
  19  Prefactor     .10000E-03    10.926        .28469E-05** at limit **
  20  Prefactor     2.9289        8.3212        .33545E-05    .47021E-04
  21  Prefactor     5.7512        2.3786       -.24492E-07   -.56459E-04
  22  Prefactor     .54008        1.6763        .54090E-06   -.84613E-03
  23  norm          1.3457        .30453       -.20926E-07   -.96846E-03
  24  Prefactor     .10000E-03    1.1441       -.52397E-07** at limit **
  25  Prefactor     9.7182        4.3211        .25291E-06   -.22021E-03
  26  Prefactor     .10001E-03    .90141        .26642E-06** at limit **
  27  norm          5.6391        1.8945        .25480E-06   -.11963E-03
  28  Prefactor     2.2970        2.3654       -.31667E-08   -.15104E-04
  29  norm          6.8536        2.5043       -.76668E-07   -.16505E-04
  30  norm          7.1788        2.6542       -.19720E-07    .66904E-05
  31  Prefactor     .10000E-03    1.2124       -.18230E-06** at limit **
  32  Normalizat    1.0683        .61588E-01   -.10972E-07   -.17384E-03
  33  Prefactor     1.0338        .42142E-01    .24139E-06   -.47052E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 19.7081
  Prefactor  = 2.06665
  Prefactor  = 4.70243
  Prefactor  = 2.72743
  Prefactor  = 3.18444
  Prefactor  = 7.62408
  norm       = 0.214987
  Prefactor  = 0.000100027
  norm       = 0.00865878
  Prefactor  = 0.0001
  Prefactor  = 0.724517
  norm       = 4.54888
  Prefactor  = 0.838322
  Prefactor  = 0.903496
  norm       = 1.26292
  Prefactor  = 16.0605
  Prefactor  = 2.88025
  Prefactor  = 13.5551
  Prefactor  = 0.0001
  Prefactor  = 2.92885
  Prefactor  = 5.75122
  Prefactor  = 0.540079
  norm       = 1.34568
  Prefactor  = 0.0001
  Prefactor  = 9.71818
  Prefactor  = 0.00010001
  norm       = 5.63908
  Prefactor  = 2.29699
  norm       = 6.85356
  norm       = 7.17878
  Prefactor  = 0.0001
  Normalizat = 1.06831
  Prefactor  = 1.03381
 **********
 **   18 **HESSE 
 **********

 FCN=   97711.64     FROM HESSE     STATUS=OK           745 CALLS     4802 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          19.708        5.5902        .90211E-04   -1.4820    
   2  Prefactor     2.0666        1.3832        .28763E-03   -1.5420    
   3  Prefactor     4.7024        1.7223        .92803E-03   -1.5274    
   4  Prefactor     2.7274        .89445        .15982E-03   -1.5378    
   5  Prefactor     3.1844        2.0648        .22713E-03   -1.5351    
   6  Prefactor     7.6241        4.5277        .14528E-03   -1.5156    
   7  norm          .21499        .16952        .11072E-03   -1.5615    
   8  Prefactor     .10003E-03    .57972        .55344E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .86588E-02    .46058E-01    .23014E-01   -1.5689    
  10  Prefactor     .10000E-03    1.0693        .32345E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .72452        .97849        .33323E-02   -1.5538    
  12  norm          4.5489        .62184        .85587E-04   -1.5281    
  13  Prefactor     .83832        .54435        .24549E-02   -1.5525    
  14  Prefactor     .90350        8.4430        .51314E-03   -1.5518    
  15  norm          1.2629        .99345        .26791E-03   -1.5483    
  16  Prefactor     16.060        9.5088        .99944E-04   -1.4906    
  17  Prefactor     2.8802        1.2145        .21096E-03   -1.5369    
  18  Prefactor     13.555        10.036        .10872E-03   -1.4971    
  19  Prefactor     .10000E-03    10.962        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.9289        8.2887        .23865E-03   -1.5366    
  21  Prefactor     5.7512        2.3771        .83745E-03   -1.5228    
  22  Prefactor     .54008        6.7334        .68045E-02   -1.5561    
  23  norm          1.3457        1.6501        .18878E-02   -1.5476    
  24  Prefactor     .10000E-03    1.1730        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     9.7182        4.3018        .12867E-03   -1.5084    
  26  Prefactor     .10001E-03    6.2495        .57527E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          5.6391        1.8926        .16915E-03   -1.5233    
  28  Prefactor     2.2970        2.3732        .27079E-03   -1.5405    
  29  norm          6.8536        2.5017        .15328E-03   -1.5184    
  30  norm          7.1788        2.6554        .14971E-03   -1.5172    
  31  Prefactor     .10000E-03    1.2265        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.0683        .72281E-01    .31490E-03   -.90776    
  33  Prefactor     1.0338        .50201E-01    .23292E-03   -.91611    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12766e-06
Minuit parameter uncertainties:
  1  5.59035
  2  1.38325
  3  1.72229
  4  0.894457
  5  2.06483
  6  4.52792
  7  0.169519
  8  0.000251396
  9  0.0397092
  10  1.51808e-05
  11  0.978514
  12  0.621841
  13  0.544358
  14  5.52456
  15  0.99346
  16  9.50971
  17  1.21451
  18  10.0373
  19  7.134e-06
  20  8.29193
  21  2.37715
  22  3.81414
  23  1.65014
  24  2.57743e-06
  25  4.30196
  26  0.000498373
  27  1.89261
  28  2.37327
  29  2.50172
  30  2.65549
  31  1.19524e-06
  32  0.072288
  33  0.0502028
Done.

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

Extracting fit parameters...

4FGL J1740.6+5346
   Spectrum: PowerLaw
372    Prefactor:  1.356e+01  1.004e+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:  1.034e+00  5.020e-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.068e+00  7.229e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.90
Ra Dec: 265.159 53.770
Photon Index (Fixed Index): 2.17 +/- 0.00
Photon Flux (Fixed Index): 7.41e-09 +/- 5.48e-09
Energy Flux (Fixed Index): 3.55e-06 +/- 2.63e-06

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

Saving results to:
/scratch/kocevski/902400/likelihoodResults_669859201_672451201_4FGL_J1740.6+5346_monthly_bin167.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) = 97711.641845
delta logL = 0.00144297994848

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 97711.6415526
delta logL = 0.00173536760849

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.299       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1974       1.0000          .0000       10.000    
     3 'Normalizat'    1.0679       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0339       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.

 FCN=   97711.64     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      233 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.299        31.165        .27459E-02    .39495E-03
   2  Index         2.1975        .13652        .50000        .15043E-04
   3  Normalizat    1.0679        .46814E-02    .71177E-01    .22312E-03
   4  Prefactor     1.0339        .34202E-02    .40959E-01    .96751E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.2994
  Index      = 2.19747
  Normalizat = 1.0679
  Prefactor  = 1.03393
 **********
 **   18 **HESSE 
 **********

 FCN=   97711.64     FROM HESSE     STATUS=OK            33 CALLS      266 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.299        10.814        .10984E-03   -1.4978    
   2  Index         2.1975        .55207        .30907E-02   -.59500    
   3  Normalizat    1.0679        .66926E-01    .31495E-03   -.90789    
   4  Prefactor     1.0339        .48822E-01    .23290E-03   -.91607    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02571e-10
Minuit parameter uncertainties:
  1  10.8159
  2  0.553722
  3  0.0669311
  4  0.048824
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/902400': 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) = 97711.6415526
delta logL = 0.00173536931106

Extracting fit parameters...

4FGL J1740.6+5346
   Spectrum: PowerLaw
372    Prefactor:  1.330e+01  1.082e+01  1.000e-04  1.000e+04 ( 1.000e-14)
373        Index:  2.197e+00  5.537e-01  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:  1.034e+00  4.882e-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.068e+00  6.693e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.91
Ra Dec: 265.159 53.770
Photon Index (Free Index): 2.20 +/- 0.55
Photon Flux (Free Index): 7.78e-09 +/- 8.53e-09
Energy Flux (Free Index): 3.51e-06 +/- 2.65e-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/902400/cmap_HighResolution_669859201_672451201_4FGL_J1740.6+5346_monthly_bin167.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.48e-03', comment='SUCCESS', photon_flux='7.41e-09', energy_flux2='3.51e-06', photon_flux_error='5.48e-09', dlogl='1.74e-03', energy_flux='3.55e-06', photon_flux2='7.78e-09', job_status='DONE', time_completed='2022-04-24 05:59:22.421264', photon_index_error2='0.55', photon_index2='2.20', ts='3.90', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='1.94e-08', energy_flux_error2='2.65e-06', EG='1.07', time_epoch_completed='1650805162.42', return_code='0', job_id='902400', GAL2='1.03', EG2='1.07', return_code2='0', energy_flux_error='2.63e-06', photon_flux_error2='8.53e-09', ts2='3.91', photon_index='2.17' WHERE bin_id='167' AND source_name='4FGL J1740.6+5346' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Sun Apr 24 05:59:22 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0266>
Subject: Job 902400: <4FGL_J1740.6+5346_monthly_bin167> in cluster <slac> Done

Job <4FGL_J1740.6+5346_monthly_bin167> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Apr 24 02:10:25 2022
Job was executed on host(s) <bullet0266>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Apr 24 02:31:50 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Apr 24 02:31:50 2022
Terminated at Sun Apr 24 05:59:24 2022
Results reported at Sun Apr 24 05:59:24 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1740.6+5346_monthly_bin167 265.159 53.7701 669859201 672451201 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 :                                   12099.00 sec.
    Max Memory :                                 633 MB
    Average Memory :                             445.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   12453 sec.
    Turnaround time :                            13739 sec.

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

