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


Performing analysis on: 4FGL_J2049.9+1002_daily_bin1780
RA = 312.478, Dec = 10.0407
tmin = 700704001, tmax = 700963201
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='75818', job_status='RUN', time_executed='2023-03-20 01:43:08.830206', time_epoch_executed='1679301788.83' WHERE source_name='4FGL J2049.9+1002' and cadence='daily' and bin_id='1780'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/75818

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/75818/ft1_4FGL_J2049.9+1002_daily_bin1780.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/75818/ft2_4FGL_J2049.9+1002_daily_bin1780.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/75818/ft1_4FGL_J2049.9+1002_daily_bin1780.fits outfile=/scratch/kocevski/75818/ft1_filteredMKT_4FGL_J2049.9+1002_daily_bin1780.fits ra=312.478 dec=10.0407 rad=12.0 tmin=700704001.0 tmax=700963201.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 4.09
user 3.86
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/75818/ft2_4FGL_J2049.9+1002_daily_bin1780.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/75818/ft2_4FGL_J2049.9+1002_daily_bin1780.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/75818/ft1_filteredMKT_4FGL_J2049.9+1002_daily_bin1780.fits evtable="EVENTS" outfile="/scratch/kocevski/75818/ft1_filtered_4FGL_J2049.9+1002_daily_bin1780.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.49
user 0.34
sys 0.14

Number of photons that the gtmktime cut: 904

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/75818/ft1_filtered_4FGL_J2049.9+1002_daily_bin1780.fits" evtable="EVENTS" scfile=/scratch/kocevski/75818/ft2_4FGL_J2049.9+1002_daily_bin1780.fits sctable="SC_DATA" outfile=/scratch/kocevski/75818/ltcube_700704001_700963201_4FGL_J2049.9+1002_daily_bin1780.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/75818/ft2_4FGL_J2049.9+1002_daily_bin1780.fits
.....................!
real 11.93
user 11.60
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/75818/ft1_filtered_4FGL_J2049.9+1002_daily_bin1780.fits evtable="EVENTS" scfile=/scratch/kocevski/75818/ft2_4FGL_J2049.9+1002_daily_bin1780.fits sctable="SC_DATA" expcube=/scratch/kocevski/75818/ltcube_700704001_700963201_4FGL_J2049.9+1002_daily_bin1780.fits outfile=/scratch/kocevski/75818/expmap_700704001_700963201_4FGL_J2049.9+1002_daily_bin1780.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/75818/ltcube_700704001_700963201_4FGL_J2049.9+1002_daily_bin1780.fits
.....................!
real 190.22
user 185.78
sys 4.12

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 W 51C in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/W51C.fits is the correct path to the extended template.
Extended source Cygnus Loop in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/CygnusLoop.fits is the correct path to the extended template.
Added 201 point sources and 2 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 J2049.9+1002 @ 312.478 10.0407

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/75818/ft1_filtered_4FGL_J2049.9+1002_daily_bin1780.fits scfile=/scratch/kocevski/75818/ft2_4FGL_J2049.9+1002_daily_bin1780.fits outfile=/scratch/kocevski/75818/cmap_700704001_700963201_4FGL_J2049.9+1002_daily_bin1780.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=312.478 yref=10.0407 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.53
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/75818/ft1_filtered_4FGL_J2049.9+1002_daily_bin1780.fits scfile=/scratch/kocevski/75818/ft2_4FGL_J2049.9+1002_daily_bin1780.fits outfile=/scratch/kocevski/75818/cmap_HighResolution_700704001_700963201_4FGL_J2049.9+1002_daily_bin1780.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=312.478 yref=10.0407 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.53
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/75818/ft1_filtered_4FGL_J2049.9+1002_daily_bin1780.fits evtable="EVENTS" scfile=/scratch/kocevski/75818/ft2_4FGL_J2049.9+1002_daily_bin1780.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/75818/Model_4FGL_J2049.9+1002_daily_bin1780.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 Cygnus Loop
adding source EG_v02
adding source GAL_V02
adding source W 51C
Working on...
/scratch/kocevski/75818/ft1_filtered_4FGL_J2049.9+1002_daily_bin1780.fits.....................!
real 206.75
user 205.23
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/75818/ft1_filtered_4FGL_J2049.9+1002_daily_bin1780.fits', '/scratch/kocevski/75818/ft2_4FGL_J2049.9+1002_daily_bin1780.fits', expMap='/scratch/kocevski/75818/expmap_700704001_700963201_4FGL_J2049.9+1002_daily_bin1780.fits', expCube='/scratch/kocevski/75818/ltcube_700704001_700963201_4FGL_J2049.9+1002_daily_bin1780.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/75818/Model_4FGL_J2049.9+1002_daily_bin1780.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2049.9+1002'

4FGL J2049.9+1002
   Spectrum: LogParabola
407         norm:  4.360e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
408        alpha:  2.394e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
409         beta:  1.463e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
410           Eb:  6.403e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/75818/ft1_filtered_4FGL_J2049.9+1002_daily_bin1780.fits
Spacecraft file(s): /scratch/kocevski/75818/ft2_4FGL_J2049.9+1002_daily_bin1780.fits
Exposure map: /scratch/kocevski/75818/expmap_700704001_700963201_4FGL_J2049.9+1002_daily_bin1780.fits
Exposure cube: /scratch/kocevski/75818/ltcube_700704001_700963201_4FGL_J2049.9+1002_daily_bin1780.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/75818/Model_4FGL_J2049.9+1002_daily_bin1780.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) = 9638.98843615

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.016       1.0000          .0000       .10000E+07
     2 'Prefactor '    .59831E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    .78700E-04   1.0000          .0000       .10000E+07
     4 'norm      '    .12928       1.0000          .0000       .10000E+07
     5 'Prefactor '    .85680E-01   1.0000          .0000       .10000E+07
     6 'norm      '    16.375       1.0000          .0000       .10000E+07
     7 'Prefactor '    13.084       1.0000          .0000       .10000E+07
     8 'Prefactor '    15.976       1.0000          .0000       .10000E+07
     9 'Prefactor '    .42247E-05   1.0000          .0000       .10000E+07
    10 'Prefactor '    .82286E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    13.530       1.0000          .0000       .10000E+07
    12 'norm      '    .59508E-07   1.0000          .0000       .10000E+07
    13 'Prefactor '    .51830       1.0000          .0000       .10000E+07
    14 'Prefactor '    .27600E-05   1.0000          .0000       .10000E+07
    15 'Normalizat'    1.3223       1.0000         .10000E-01   10.000    
    16 'Prefactor '    .82615       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6980E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9638.887     FROM MIGRAD    STATUS=CONVERGED    115 CALLS      903 TOTAL
                     EDM=   .94E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.024        11.314       -.13368E-05   -.16939E-01
   2  Prefactor     .41578E-07    11.712       -.59800E-05** at limit **
   3  Prefactor     .39413E-08    8.0682        .18378E-05** at limit **
   4  norm          .12926        .42533        .30757E-06** at limit **
   5  Prefactor     .29421E-07    1.1018        .37614E-07** at limit **
   6  norm          16.405        9.5243       -.50028E-06   -.27748E-02
   7  Prefactor     12.943        1.7800       -.40824E-06   -.19626E-03
   8  Prefactor     16.227        3.7428        .68254E-06    .61373E-01
   9  Prefactor     .11879E-07    9.6696        .46651E-05** at limit **
  10  Prefactor     .24147E-07    17.901       -.57516E-06** at limit **
  11  Prefactor     13.453        5.2771       -.11619E-05    .12105    
  12  norm           .0000        1.6686        .42346E-06** at limit **
  13  Prefactor     .18083E-05    151.52        .14087E-05** at limit **
  14  Prefactor      .0000        1.6554        .53464E-06** at limit **
  15  Normalizat    1.3227        .27927       -.61854E-04    .10250E-03
  16  Prefactor     .82607        .91064E-01    .18632E-04    .45599E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.024
  Prefactor  = 4.15779e-08
  Prefactor  = 3.94129e-09
  norm       = 0.129255
  Prefactor  = 2.94209e-08
  norm       = 16.4053
  Prefactor  = 12.9426
  Prefactor  = 16.2271
  Prefactor  = 1.18794e-08
  Prefactor  = 2.41474e-08
  Prefactor  = 13.453
  norm       = 0
  Prefactor  = 1.80833e-06
  Prefactor  = 0
  Normalizat = 1.32271
  Prefactor  = 0.826074
 **********
 **   18 **HESSE 
 **********

 FCN=   9638.887     FROM HESSE     STATUS=OK           237 CALLS     1140 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.024        11.332        .25000E-03   -1.5628    
   2  Prefactor     .41578E-07    12.084        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .39413E-08    8.1607        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .12926        .43327        .13201E-02   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .29421E-07    19.069        .22098E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          16.405        9.8651        .24724E-03   -1.5627    
   7  Prefactor     12.943        15.961        .27667E-03   -1.5636    
   8  Prefactor     16.227        13.198        .25031E-03   -1.5627    
   9  Prefactor     .11879E-07    10.066        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .24147E-07    17.904        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     13.453        203.70        .27205E-03   -1.5635    
  12  norm           .0000        1.6684        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .18083E-05    146.69        .76890E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor      .0000        1.6561        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Normalizat    1.3227        .24004        .87120E-01   -.82891    
  16  Prefactor     .82607        .75842E-01    .44057E-01   -.98774    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.2113e-05
Minuit parameter uncertainties:
  1  11.3322
  2  0.00141731
  3  0.000359508
  4  0.433271
  5  0.0014986
  6  9.8651
  7  15.9614
  8  13.1976
  9  0.000691151
  10  0.00131472
  11  104.702
  12  1.26217e-05
  13  0.0325752
  14  5.54723e-07
  15  0.240239
  16  0.0758514
Done.

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

Extracting fit parameters...

4FGL J2049.9+1002
   Spectrum: LogParabola
407         norm:  1.641e+01  9.865e+00  0.000e+00  1.000e+06 ( 1.000e-12)
408        alpha:  2.394e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
409         beta:  1.463e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
410           Eb:  6.403e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
691    Prefactor:  8.261e-01  7.585e-02  0.000e+00  1.000e+01 ( 1.000e+00)
692        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
693        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
690   Normalization:  1.323e+00  2.402e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.57
Ra Dec: 312.478 10.041
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 7.81e-08 +/- 4.69e-08
Energy Flux (Fixed Index): 2.47e-05 +/- 1.49e-05

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) = 9638.71498386
delta logL = 0.171605049251

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9638.70851814
delta logL = 0.178070770398

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    16.920       1.0000          .0000       .10000E+07
     2 'alpha     '    2.0299       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3509       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82080       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6980E+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=   9638.709     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      249 TOTAL
                     EDM=   .28E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          16.919        10.577        .97286E-05    .19632E-03
   2  alpha         2.0293        .60350        .18962E-01   -.30277E-05
   3  Normalizat    1.3513        .28154        .38237E-03   -.52923E-05
   4  Prefactor     .82063        .90999E-01    .15487E-03   -.53795E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 16.9188
  alpha      = 2.02929
  Normalizat = 1.35133
  Prefactor  = 0.820632
 **********
 **   18 **HESSE 
 **********

 FCN=   9638.709     FROM HESSE     STATUS=OK            25 CALLS      274 TOTAL
                     EDM=   .24E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          16.919        10.665        .38914E-06   -1.5626    
   2  alpha         2.0293        .60824        .75850E-03   -.18942    
   3  Normalizat    1.3513        .28179        .15295E-04   -.82047    
   4  Prefactor     .82063        .91065E-01    .30973E-04   -.98972    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.43289e-12
Minuit parameter uncertainties:
  1  10.6654
  2  0.614637
  3  0.282117
  4  0.0910814
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/75818': 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) = 9638.70851622
delta logL = 0.178072685489

Extracting fit parameters...

4FGL J2049.9+1002
   Spectrum: LogParabola
407         norm:  1.692e+01  1.067e+01  0.000e+00  1.000e+06 ( 1.000e-12)
408        alpha:  2.029e+00  6.146e-01  0.000e+00  5.000e+00 ( 1.000e+00)
409         beta:  1.463e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
410           Eb:  6.403e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
691    Prefactor:  8.206e-01  9.108e-02  0.000e+00  1.000e+01 ( 1.000e+00)
692        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
693        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
690   Normalization:  1.351e+00  2.821e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.90
Ra Dec: 312.478 10.041
Photon Index (Free Index): 2.03 +/- 0.61
Photon Flux (Free Index): 5.66e-08 +/- 5.12e-08
Energy Flux (Free Index): 2.66e-05 +/- 1.67e-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/75818/cmap_HighResolution_700704001_700963201_4FGL_J2049.9+1002_daily_bin1780.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.81e-08', energy_flux2='2.66e-05', photon_flux_error='4.69e-08', dlogl='1.78e-01', energy_flux='2.47e-05', photon_flux2='5.66e-08', job_status='DONE', time_completed='2023-03-20 01:55:07.100126', photon_index_error2='0.61', photon_index2='2.03', ts='5.57', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', energy_flux_error2='1.67e-05', EG='1.32', time_epoch_completed='1679302507.1', return_code='0', job_id='75818', GAL2='0.82', EG2='1.35', return_code2='0', energy_flux_error='1.49e-05', photon_flux_error2='5.12e-08', ts2='5.90', photon_index='2.39' WHERE bin_id='1780' AND source_name='4FGL J2049.9+1002' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Mar 20 01:55:07 PDT 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0228>
Subject: Job 75818: <4FGL_J2049.9+1002_daily_bin1780> in cluster <slac> Done

Job <4FGL_J2049.9+1002_daily_bin1780> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Mar 20 01:40:14 2023
Job was executed on host(s) <bullet0228>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Mar 20 01:40:15 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Mar 20 01:40:15 2023
Terminated at Mon Mar 20 01:55:07 2023
Results reported at Mon Mar 20 01:55:07 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2049.9+1002_daily_bin1780 312.478 10.0407 700704001 700963201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2049.9+1002 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   720.15 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             376.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   892 sec.
    Turnaround time :                            893 sec.

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

