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

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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

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

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

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


Performing analysis on: 4FGL_J1649.6+0411_daily_bin1714
RA = 252.406, Dec = 4.1926
tmin = 683596801, tmax = 683856001
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='174206', job_status='RUN', time_executed='2022-09-16 19:51:23.095163', time_epoch_executed='1663383083.1' WHERE source_name='4FGL J1649.6+0411' and cadence='daily' and bin_id='1714'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/174206

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/174206/ft1_4FGL_J1649.6+0411_daily_bin1714.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/174206/ft2_4FGL_J1649.6+0411_daily_bin1714.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/174206/ft1_4FGL_J1649.6+0411_daily_bin1714.fits outfile=/scratch/kocevski/174206/ft1_filteredMKT_4FGL_J1649.6+0411_daily_bin1714.fits ra=252.406 dec=4.1926 rad=12.0 tmin=683596801.0 tmax=683856001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.52
user 3.27
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/174206/ft2_4FGL_J1649.6+0411_daily_bin1714.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/174206/ft2_4FGL_J1649.6+0411_daily_bin1714.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/174206/ft1_filteredMKT_4FGL_J1649.6+0411_daily_bin1714.fits evtable="EVENTS" outfile="/scratch/kocevski/174206/ft1_filtered_4FGL_J1649.6+0411_daily_bin1714.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 1131

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/174206/ft1_filtered_4FGL_J1649.6+0411_daily_bin1714.fits" evtable="EVENTS" scfile=/scratch/kocevski/174206/ft2_4FGL_J1649.6+0411_daily_bin1714.fits sctable="SC_DATA" outfile=/scratch/kocevski/174206/ltcube_683596801_683856001_4FGL_J1649.6+0411_daily_bin1714.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/174206/ft2_4FGL_J1649.6+0411_daily_bin1714.fits
.....................!
real 15.07
user 14.61
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/174206/ft1_filtered_4FGL_J1649.6+0411_daily_bin1714.fits evtable="EVENTS" scfile=/scratch/kocevski/174206/ft2_4FGL_J1649.6+0411_daily_bin1714.fits sctable="SC_DATA" expcube=/scratch/kocevski/174206/ltcube_683596801_683856001_4FGL_J1649.6+0411_daily_bin1714.fits outfile=/scratch/kocevski/174206/expmap_683596801_683856001_4FGL_J1649.6+0411_daily_bin1714.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/174206/ltcube_683596801_683856001_4FGL_J1649.6+0411_daily_bin1714.fits
.....................!
real 191.52
user 185.86
sys 5.13

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
Extended source FHES J1723.5-0501 in ROI with RadialGaussian spatial model.
Added 163 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1649.6+0411 @ 252.406 4.1926

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/174206/ft1_filtered_4FGL_J1649.6+0411_daily_bin1714.fits scfile=/scratch/kocevski/174206/ft2_4FGL_J1649.6+0411_daily_bin1714.fits outfile=/scratch/kocevski/174206/cmap_683596801_683856001_4FGL_J1649.6+0411_daily_bin1714.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=252.406 yref=4.1926 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.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/174206/ft1_filtered_4FGL_J1649.6+0411_daily_bin1714.fits scfile=/scratch/kocevski/174206/ft2_4FGL_J1649.6+0411_daily_bin1714.fits outfile=/scratch/kocevski/174206/cmap_HighResolution_683596801_683856001_4FGL_J1649.6+0411_daily_bin1714.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=252.406 yref=4.1926 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.57
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/174206/ft1_filtered_4FGL_J1649.6+0411_daily_bin1714.fits evtable="EVENTS" scfile=/scratch/kocevski/174206/ft2_4FGL_J1649.6+0411_daily_bin1714.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/174206/Model_4FGL_J1649.6+0411_daily_bin1714.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 FHES J1723.5-0501
adding source GAL_V02
Working on...
/scratch/kocevski/174206/ft1_filtered_4FGL_J1649.6+0411_daily_bin1714.fits.....................!
real 99.10
user 97.65
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/174206/ft1_filtered_4FGL_J1649.6+0411_daily_bin1714.fits', '/scratch/kocevski/174206/ft2_4FGL_J1649.6+0411_daily_bin1714.fits', expMap='/scratch/kocevski/174206/expmap_683596801_683856001_4FGL_J1649.6+0411_daily_bin1714.fits', expCube='/scratch/kocevski/174206/ltcube_683596801_683856001_4FGL_J1649.6+0411_daily_bin1714.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/174206/Model_4FGL_J1649.6+0411_daily_bin1714.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1649.6+0411'

4FGL J1649.6+0411
   Spectrum: PowerLaw
267    Prefactor:  1.027e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
268        Index:  2.594e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
269        Scale:  7.155e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/174206/ft1_filtered_4FGL_J1649.6+0411_daily_bin1714.fits
Spacecraft file(s): /scratch/kocevski/174206/ft2_4FGL_J1649.6+0411_daily_bin1714.fits
Exposure map: /scratch/kocevski/174206/expmap_683596801_683856001_4FGL_J1649.6+0411_daily_bin1714.fits
Exposure cube: /scratch/kocevski/174206/ltcube_683596801_683856001_4FGL_J1649.6+0411_daily_bin1714.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/174206/Model_4FGL_J1649.6+0411_daily_bin1714.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) = 11641.1230191

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    89.735       1.0000          .0000       .10000E+07
     2 'Prefactor '    12.604       1.0000          .0000       .10000E+07
     3 'Prefactor '    .24780E-01   1.0000          .0000       .10000E+07
     4 'Prefactor '    .67961E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    .23228E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    10.891       1.0000          .0000       .10000E+07
     7 'Prefactor '    18.541       1.0000          .0000       .10000E+07
     8 'Prefactor '    8.1683       1.0000          .0000       .10000E+07
     9 'Prefactor '    3.2907       1.0000          .0000       .10000E+07
    10 'Prefactor '    18.049       1.0000          .0000       .10000E+07
    11 'Prefactor '    31.174       1.0000          .0000       .10000E+07
    12 'Prefactor '    18.697       1.0000          .0000       .10000E+07
    13 'Prefactor '    .10954E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    17.939       1.0000          .0000       .10000E+07
    15 'norm      '    19.845       1.0000          .0000       .10000E+07
    16 'Prefactor '    66.358       1.0000          .0000       .10000E+07
    17 'norm      '    5.1752       1.0000          .0000       .10000E+07
    18 'norm      '    2.5150       1.0000          .0000       .10000E+07
    19 'Normalizat'    1.3056       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0415       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5570E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   11641.10     FROM MIGRAD    STATUS=CONVERGED    156 CALLS     1526 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          89.249        23.957        .10967E-06   -.23430    
   2  Prefactor     11.247        115.64        .27054E-05    .26599E-01
   3  Prefactor      .0000        16.547        .48813E-07** at limit **
   4  Prefactor      .0000        7.9753        .14196E-06** at limit **
   5  Prefactor      .0000        3.5381       -.55439E-07** at limit **
   6  Prefactor     10.890        11.374        .25246E-07    .49664E-02
   7  Prefactor     18.521        18.941       -.12696E-06   -.77239E-01
   8  Prefactor     8.3521        7.0010       -.44822E-07   -.17773E-02
   9  Prefactor     3.2730        5.0386        .35466E-07    .30809E-03
  10  Prefactor     18.120        21.787       -.13586E-06   -.10486    
  11  Prefactor     31.689        28.010        .34720E-06   -.10672    
  12  Prefactor     18.646        8.1479        .16516E-07    .61297E-03
  13  Prefactor     .19817E-06    139.89        .73285E-06** at limit **
  14  Prefactor     17.934        13.613       -.13977E-07    .27479E-02
  15  norm          19.842        13.814       -.15738E-07   -.74451E-02
  16  Prefactor     65.571        34.245        .55510E-06   -.58610E-01
  17  norm          5.1672        8.6739       -.49654E-07   -.34592E-03
  18  norm          2.5173        2.5786       -.24546E-07   -.82172E-03
  19  Normalizat    1.3064        .32908       -.42733E-06    .86011E-04
  20  Prefactor     1.0414        .85316E-01    .23025E-06    .25269E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 89.2495
  Prefactor  = 11.2467
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 10.8902
  Prefactor  = 18.5207
  Prefactor  = 8.3521
  Prefactor  = 3.27302
  Prefactor  = 18.1198
  Prefactor  = 31.6889
  Prefactor  = 18.646
  Prefactor  = 1.98175e-07
  Prefactor  = 17.9341
  norm       = 19.8415
  Prefactor  = 65.5709
  norm       = 5.16717
  norm       = 2.5173
  Normalizat = 1.30636
  Prefactor  = 1.04137
 **********
 **   18 **HESSE 
 **********

 FCN=   11641.10     FROM HESSE     STATUS=OK           337 CALLS     1863 TOTAL
                     EDM=   .22E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          89.249        29.695        .10557E-03   -1.5519    
   2  Prefactor     11.247        153.40        .28190E-03   -1.5641    
   3  Prefactor      .0000        16.464        .16740E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        7.9399        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        3.5352        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     10.890        11.380        .30333E-03   -1.5642    
   7  Prefactor     18.521        19.732        .23232E-03   -1.5622    
   8  Prefactor     8.3521        6.9940        .35055E-03   -1.5650    
   9  Prefactor     3.2730        5.0543        .55789E-03   -1.5672    
  10  Prefactor     18.120        25.128        .23547E-03   -1.5623    
  11  Prefactor     31.689        32.405        .17913E-03   -1.5595    
  12  Prefactor     18.646        8.1494        .23135E-03   -1.5622    
  13  Prefactor     .19817E-06    140.23        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     17.934        13.655        .23620E-03   -1.5623    
  15  norm          19.842        13.826        .22455E-03   -1.5619    
  16  Prefactor     65.571        71.755        .12277E-03   -1.5546    
  17  norm          5.1672        8.8303        .44166E-03   -1.5663    
  18  norm          2.5173        2.5806        .64398E-03   -1.5676    
  19  Normalizat    1.3064        .29155        .11669       -.83377    
  20  Prefactor     1.0414        .74870E-01    .40433E-01   -.91363    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.16478e-06
Minuit parameter uncertainties:
  1  29.6954
  2  83.0749
  3  2.23685e-05
  4  2.64755e-05
  5  1.18914e-05
  6  11.3802
  7  19.732
  8  6.99396
  9  5.05432
  10  25.1285
  11  32.4055
  12  8.14938
  13  0.010543
  14  13.6551
  15  13.8257
  16  71.7561
  17  8.8303
  18  2.58061
  19  0.291918
  20  0.0748772
Done.

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

Extracting fit parameters...

4FGL J1649.6+0411
   Spectrum: PowerLaw
267    Prefactor:  8.352e+00  6.994e+00  0.000e+00  1.000e+06 ( 1.000e-12)
268        Index:  2.594e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
269        Scale:  7.155e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
554    Prefactor:  1.041e+00  7.488e-02  0.000e+00  1.000e+01 ( 1.000e+00)
555        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
556        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
550   Normalization:  1.306e+00  2.919e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.88
Ra Dec: 252.406 4.193
Photon Index (Fixed Index): 2.59 +/- 0.00
Photon Flux (Fixed Index): 8.65e-08 +/- 7.23e-08
Energy Flux (Fixed Index): 2.28e-05 +/- 1.91e-05

TS (Fixed Index): 1.88
Ra Dec: 252.406 4.193
Photon Flux Upper Limit: 2.26e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.77e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/174206/likelihoodResults_683596801_683856001_4FGL_J1649.6+0411_daily_bin1714.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) = 11640.6616425
delta logL = 0.443221767882

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11640.6244896
delta logL = 0.480374644409

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.6269       1.0000          .0000       .10000E+07
     2 'Index     '    3.2523       1.0000          .0000       10.000    
     3 'Normalizat'    1.2619       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0485       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5570E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   11640.62     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      254 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.6328        59.396        .46767E-03    .74477E-02
   2  Index         3.2514        3.2562        .14431        .21783E-03
   3  Normalizat    1.2619        .99689E-01    .11841        .32813E-04
   4  Prefactor     1.0485        .26951E-01    .40000E-01   -.10705E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.63283
  Index      = 3.25138
  Normalizat = 1.26195
  Prefactor  = 1.04847
 **********
 **   18 **HESSE 
 **********

 FCN=   11640.62     FROM HESSE     STATUS=OK            33 CALLS      287 TOTAL
                     EDM=   .36E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.6328        7.7534        .14750E-04   -1.5665    
   2  Index         3.2514        .99770        .73517E-02   -.35728    
   3  Normalizat    1.2619        .31441        .52516E-03   -.84709    
   4  Prefactor     1.0485        .83979E-01    .15463E-03   -.91131    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.60893e-08
Minuit parameter uncertainties:
  1  7.75343
  2  1.00541
  3  0.314884
  4  0.08399
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/174206': 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) = 11640.6244888
delta logL = 0.480375447865

Extracting fit parameters...

4FGL J1649.6+0411
   Spectrum: PowerLaw
267    Prefactor:  4.633e+00  7.753e+00  0.000e+00  1.000e+06 ( 1.000e-12)
268        Index:  3.251e+00  1.005e+00  0.000e+00  1.000e+01 (-1.000e+00)
269        Scale:  7.155e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
554    Prefactor:  1.048e+00  8.399e-02  0.000e+00  1.000e+01 ( 1.000e+00)
555        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
556        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
550   Normalization:  1.262e+00  3.149e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.92
Ra Dec: 252.406 4.193
Photon Index (Free Index): 3.25 +/- 1.01
Photon Flux (Free Index): 1.24e-07 +/- 8.47e-08
Energy Flux (Free Index): 2.22e-05 +/- 1.71e-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/174206/cmap_HighResolution_683596801_683856001_4FGL_J1649.6+0411_daily_bin1714.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.77e-02', comment='SUCCESS', photon_flux='8.65e-08', energy_flux2='2.22e-05', photon_flux_error='7.23e-08', dlogl='4.80e-01', energy_flux='2.28e-05', photon_flux2='1.24e-07', job_status='DONE', time_completed='2022-09-16 20:04:42.298150', photon_index_error2='1.01', photon_index2='3.25', ts='1.88', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='2.26e-07', energy_flux_error2='1.71e-05', EG='1.31', time_epoch_completed='1663383882.3', return_code='0', job_id='174206', GAL2='1.05', EG2='1.26', return_code2='0', energy_flux_error='1.91e-05', photon_flux_error2='8.47e-08', ts2='2.92', photon_index='2.59' WHERE bin_id='1714' AND source_name='4FGL J1649.6+0411' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 20:04:42 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0109>
Subject: Job 174206: <4FGL_J1649.6+0411_daily_bin1714> in cluster <slac> Done

Job <4FGL_J1649.6+0411_daily_bin1714> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 16 19:50:19 2022
Job was executed on host(s) <bullet0109>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 19:51:01 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 19:51:01 2022
Terminated at Fri Sep 16 20:04:43 2022
Results reported at Fri Sep 16 20:04:43 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1649.6+0411_daily_bin1714 252.406 4.1926 683596801 683856001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1649.6+0411 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   800.37 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             336.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   821 sec.
    Turnaround time :                            864 sec.

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

