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


Performing analysis on: 4FGL_J2044.0+1036_daily_bin1731
RA = 311.002, Dec = 10.6079
tmin = 688003201, tmax = 688262401
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='549924', job_status='RUN', time_executed='2022-10-24 00:38:16.233350', time_epoch_executed='1666597096.23' WHERE source_name='4FGL J2044.0+1036' and cadence='daily' and bin_id='1731'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/549924

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/549924/ft1_4FGL_J2044.0+1036_daily_bin1731.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/549924/ft2_4FGL_J2044.0+1036_daily_bin1731.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/549924/ft1_4FGL_J2044.0+1036_daily_bin1731.fits outfile=/scratch/kocevski/549924/ft1_filteredMKT_4FGL_J2044.0+1036_daily_bin1731.fits ra=311.002 dec=10.6079 rad=12.0 tmin=688003201.0 tmax=688262401.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.57
user 3.36
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/549924/ft2_4FGL_J2044.0+1036_daily_bin1731.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/549924/ft2_4FGL_J2044.0+1036_daily_bin1731.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/549924/ft1_filteredMKT_4FGL_J2044.0+1036_daily_bin1731.fits evtable="EVENTS" outfile="/scratch/kocevski/549924/ft1_filtered_4FGL_J2044.0+1036_daily_bin1731.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.33
sys 0.15

Number of photons that the gtmktime cut: 850

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/549924/ft1_filtered_4FGL_J2044.0+1036_daily_bin1731.fits" evtable="EVENTS" scfile=/scratch/kocevski/549924/ft2_4FGL_J2044.0+1036_daily_bin1731.fits sctable="SC_DATA" outfile=/scratch/kocevski/549924/ltcube_688003201_688262401_4FGL_J2044.0+1036_daily_bin1731.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/549924/ft2_4FGL_J2044.0+1036_daily_bin1731.fits
.....................!
real 11.83
user 11.49
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/549924/ft1_filtered_4FGL_J2044.0+1036_daily_bin1731.fits evtable="EVENTS" scfile=/scratch/kocevski/549924/ft2_4FGL_J2044.0+1036_daily_bin1731.fits sctable="SC_DATA" expcube=/scratch/kocevski/549924/ltcube_688003201_688262401_4FGL_J2044.0+1036_daily_bin1731.fits outfile=/scratch/kocevski/549924/expmap_688003201_688262401_4FGL_J2044.0+1036_daily_bin1731.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/549924/ltcube_688003201_688262401_4FGL_J2044.0+1036_daily_bin1731.fits
.....................!
real 189.93
user 184.93
sys 4.67

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 213 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 J2044.0+1036 @ 311.002 10.6079

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/549924/ft1_filtered_4FGL_J2044.0+1036_daily_bin1731.fits scfile=/scratch/kocevski/549924/ft2_4FGL_J2044.0+1036_daily_bin1731.fits outfile=/scratch/kocevski/549924/cmap_688003201_688262401_4FGL_J2044.0+1036_daily_bin1731.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=311.002 yref=10.6079 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.55
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/549924/ft1_filtered_4FGL_J2044.0+1036_daily_bin1731.fits scfile=/scratch/kocevski/549924/ft2_4FGL_J2044.0+1036_daily_bin1731.fits outfile=/scratch/kocevski/549924/cmap_HighResolution_688003201_688262401_4FGL_J2044.0+1036_daily_bin1731.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=311.002 yref=10.6079 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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/549924/ft1_filtered_4FGL_J2044.0+1036_daily_bin1731.fits evtable="EVENTS" scfile=/scratch/kocevski/549924/ft2_4FGL_J2044.0+1036_daily_bin1731.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/549924/Model_4FGL_J2044.0+1036_daily_bin1731.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/549924/ft1_filtered_4FGL_J2044.0+1036_daily_bin1731.fits.....................!
real 184.50
user 182.89
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/549924/ft1_filtered_4FGL_J2044.0+1036_daily_bin1731.fits', '/scratch/kocevski/549924/ft2_4FGL_J2044.0+1036_daily_bin1731.fits', expMap='/scratch/kocevski/549924/expmap_688003201_688262401_4FGL_J2044.0+1036_daily_bin1731.fits', expCube='/scratch/kocevski/549924/ltcube_688003201_688262401_4FGL_J2044.0+1036_daily_bin1731.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/549924/Model_4FGL_J2044.0+1036_daily_bin1731.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2044.0+1036'

4FGL J2044.0+1036
   Spectrum: PowerLaw
460    Prefactor:  3.385e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
461        Index:  2.180e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
462        Scale:  2.453e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/549924/ft1_filtered_4FGL_J2044.0+1036_daily_bin1731.fits
Spacecraft file(s): /scratch/kocevski/549924/ft2_4FGL_J2044.0+1036_daily_bin1731.fits
Exposure map: /scratch/kocevski/549924/expmap_688003201_688262401_4FGL_J2044.0+1036_daily_bin1731.fits
Exposure cube: /scratch/kocevski/549924/ltcube_688003201_688262401_4FGL_J2044.0+1036_daily_bin1731.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/549924/Model_4FGL_J2044.0+1036_daily_bin1731.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) = 8898.87899287

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.2476       1.0000          .0000       .10000E+07
     2 'Prefactor '    .29637E-06   1.0000          .0000       .10000E+07
     3 'Prefactor '    .11899E-03   1.0000          .0000       .10000E+07
     4 'norm      '    .46129       1.0000          .0000       .10000E+07
     5 'Prefactor '    .69534       1.0000          .0000       .10000E+07
     6 'norm      '    .96528E-06   1.0000          .0000       .10000E+07
     7 'Prefactor '    .43709E-05   1.0000          .0000       .10000E+07
     8 'Prefactor '    .51906E-05   1.0000          .0000       .10000E+07
     9 'Prefactor '    .17316E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    .55438E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    4.2721       1.0000          .0000       .10000E+07
    12 'Prefactor '    4.9054       1.0000          .0000       .10000E+07
    13 'Normalizat'    .91942       1.0000         .10000E-01   10.000    
    14 'Prefactor '    .92899       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7480E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8898.808     FROM MIGRAD    STATUS=CONVERGED    109 CALLS      763 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.1337        9.0904        .98094E-07    .11275    
   2  Prefactor     .88818E-09    5.8717       -.79784E-07** at limit **
   3  Prefactor     .95701E-07    6.9645       -.11726E-06** at limit **
   4  norm          .46164        .46185        .30324E-10   -.12393E-02
   5  Prefactor     .13513E-05    109.78       -.10069E-05** at limit **
   6  norm          .13878E-08    5.0945       -.23621E-06** at limit **
   7  Prefactor     .42598E-05    20.491        .23898E-06** at limit **
   8  Prefactor     .21594E-07    5.9175        .61666E-07** at limit **
   9  Prefactor     .49349E-07    16.765       -.11164E-06** at limit **
  10  Prefactor     .49931E-05    22.296        .52922E-06** at limit **
  11  Prefactor     4.3651        1.9254       -.19171E-07   -.42476E-02
  12  Prefactor     4.9905        5.2466        .70160E-07    .29802E-02
  13  Normalizat    .91933        .27015        .79090E-05   -.34512E-04
  14  Prefactor     .92913        .87565E-01   -.32846E-05   -.60905E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.13369
  Prefactor  = 8.88178e-10
  Prefactor  = 9.57012e-08
  norm       = 0.461637
  Prefactor  = 1.35131e-06
  norm       = 1.38778e-09
  Prefactor  = 4.25976e-06
  Prefactor  = 2.15938e-08
  Prefactor  = 4.93494e-08
  Prefactor  = 4.99312e-06
  Prefactor  = 4.36509
  Prefactor  = 4.99049
  Normalizat = 0.919325
  Prefactor  = 0.929131
 **********
 **   18 **HESSE 
 **********

 FCN=   8898.808     FROM HESSE     STATUS=OK           190 CALLS      953 TOTAL
                     EDM=   .70E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.1337        12.694        .40137E-03   -1.5658    
   2  Prefactor     .88818E-09    5.8513        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .95701E-07    7.0944        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .46164        .52609        .14581E-02   -1.5694    
   5  Prefactor     .13513E-05    110.87        .61087E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .13878E-08    5.0921        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .42598E-05    26.457        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .21594E-07    5.9456        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .49349E-07    16.823        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .49931E-05    29.350        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.3651        19.813        .48721E-03   -1.5666    
  12  Prefactor     4.9905        5.2443        .45389E-03   -1.5663    
  13  Normalizat    .91933        .24160        .97924E-01   -.95784    
  14  Prefactor     .92913        .77433E-01    .31548E-01   -.95130    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.02407e-07
Minuit parameter uncertainties:
  1  12.6936
  2  0.00014358
  3  0.00164781
  4  0.526093
  5  0.0244806
  6  0.000168043
  7  0.0212323
  8  0.000717007
  9  0.00182242
  10  0.0242117
  11  18.5998
  12  5.2443
  13  0.241884
  14  0.077442
Done.

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

Extracting fit parameters...

4FGL J2044.0+1036
   Spectrum: PowerLaw
460    Prefactor:  1.351e-06  2.448e-02  0.000e+00  1.000e+06 ( 1.000e-14)
461        Index:  2.180e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
462        Scale:  2.453e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
741    Prefactor:  9.291e-01  7.744e-02  0.000e+00  1.000e+01 ( 1.000e+00)
742        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
743        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
740   Normalization:  9.193e-01  2.419e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 311.002 10.608
Photon Flux Upper Limit: 8.70e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.62e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/549924/likelihoodResults_688003201_688262401_4FGL_J2044.0+1036_daily_bin1731.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) = 8898.81243218
delta logL = -0.00453684970853

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8898.80790646
delta logL = -1.1127356629e-05

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   8898.808     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      250 TOTAL
                     EDM=   .11E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        44.100        .42118E-03** at limit **
   2  Index         1.5039        .87094       -.81271E-04     .0000    
   3  Normalizat    .91932        1.2535        .11510E-04   -.57304E-04
   4  Prefactor     .92913        1.2725       -.26161E-05   -.54437E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.50392
  Normalizat = 0.919321
  Prefactor  = 0.929132
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   8898.808     FROM HESSE     STATUS=FAILED         9 CALLS      259 TOTAL
                     EDM=   .11E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        44.100        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .20380        1.4055       -.81271E-04   -.77430    
   3  Normalizat    .91932        1.2535        .11510E-04   -.95785    
   4  Prefactor     .92913        1.2725       -.26161E-05   -.95130    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.06942e-11
Minuit parameter uncertainties:
  1  1.15503e-06
  2  0.879791
  3  1.29715
  4  1.31728
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/549924': 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): 101
logL (Free Index) = 8898.80789532
delta logL = 6.17365003563e-09

Extracting fit parameters...

4FGL J2044.0+1036
   Spectrum: PowerLaw
460    Prefactor:  0.000e+00  1.155e-06  0.000e+00  1.000e+06 ( 1.000e-14)
461        Index:  1.504e+00  8.798e-01  0.000e+00  1.000e+01 (-1.000e+00)
462        Scale:  2.453e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
741    Prefactor:  9.291e-01  1.317e+00  0.000e+00  1.000e+01 ( 1.000e+00)
742        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
743        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
740   Normalization:  9.193e-01  1.297e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 311.002 10.608

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/549924/cmap_HighResolution_688003201_688262401_4FGL_J2044.0+1036_daily_bin1731.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.62e-03', job_status='DONE', photon_flux_upper_limit='8.70e-08', time_completed='2022-10-24 00:50:17.491246', job_id='549924', GAL2='0.93', fit_tolerance='1e-08', EG2='0.92', EG='0.92', time_epoch_completed='1666597817.49', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='6.17e-09', ts2='0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='1731' AND source_name='4FGL J2044.0+1036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Oct 24 00:50:17 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0120>
Subject: Job 549924: <4FGL_J2044.0+1036_daily_bin1731> in cluster <slac> Done

Job <4FGL_J2044.0+1036_daily_bin1731> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Oct 24 00:35:48 2022
Job was executed on host(s) <bullet0120>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Oct 24 00:35:48 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Oct 24 00:35:48 2022
Terminated at Mon Oct 24 00:50:18 2022
Results reported at Mon Oct 24 00:50:18 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2044.0+1036_daily_bin1731 311.002 10.6079 688003201 688262401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2044.0+1036 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   723.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             344.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   869 sec.
    Turnaround time :                            870 sec.

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

