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


Performing analysis on: 4FGL_J2044.0+1036_daily_bin1707
RA = 311.002, Dec = 10.6079
tmin = 681782401, tmax = 682041601
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='550140', job_status='RUN', time_executed='2022-08-13 00:31:15.044191', time_epoch_executed='1660375875.04' WHERE source_name='4FGL J2044.0+1036' and cadence='daily' and bin_id='1707'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/550140

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/550140/ft1_4FGL_J2044.0+1036_daily_bin1707.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/550140/ft2_4FGL_J2044.0+1036_daily_bin1707.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/550140/ft1_4FGL_J2044.0+1036_daily_bin1707.fits outfile=/scratch/kocevski/550140/ft1_filteredMKT_4FGL_J2044.0+1036_daily_bin1707.fits ra=311.002 dec=10.6079 rad=12.0 tmin=681782401.0 tmax=682041601.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 5.47
user 5.25
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/550140/ft2_4FGL_J2044.0+1036_daily_bin1707.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/550140/ft1_filteredMKT_4FGL_J2044.0+1036_daily_bin1707.fits evtable="EVENTS" outfile="/scratch/kocevski/550140/ft1_filtered_4FGL_J2044.0+1036_daily_bin1707.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.50
user 0.33
sys 0.14

Number of photons that the gtmktime cut: 792

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/550140/ft1_filtered_4FGL_J2044.0+1036_daily_bin1707.fits evtable="EVENTS" scfile=/scratch/kocevski/550140/ft2_4FGL_J2044.0+1036_daily_bin1707.fits sctable="SC_DATA" expcube=/scratch/kocevski/550140/ltcube_681782401_682041601_4FGL_J2044.0+1036_daily_bin1707.fits outfile=/scratch/kocevski/550140/expmap_681782401_682041601_4FGL_J2044.0+1036_daily_bin1707.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/550140/ltcube_681782401_682041601_4FGL_J2044.0+1036_daily_bin1707.fits
.....................!
real 189.66
user 184.92
sys 4.41

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_archive_v18/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_archive_v18/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/550140/ft1_filtered_4FGL_J2044.0+1036_daily_bin1707.fits scfile=/scratch/kocevski/550140/ft2_4FGL_J2044.0+1036_daily_bin1707.fits outfile=/scratch/kocevski/550140/cmap_681782401_682041601_4FGL_J2044.0+1036_daily_bin1707.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.53
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/550140/ft1_filtered_4FGL_J2044.0+1036_daily_bin1707.fits scfile=/scratch/kocevski/550140/ft2_4FGL_J2044.0+1036_daily_bin1707.fits outfile=/scratch/kocevski/550140/cmap_HighResolution_681782401_682041601_4FGL_J2044.0+1036_daily_bin1707.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.54
user 0.39
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/550140/ft1_filtered_4FGL_J2044.0+1036_daily_bin1707.fits', '/scratch/kocevski/550140/ft2_4FGL_J2044.0+1036_daily_bin1707.fits', expMap='/scratch/kocevski/550140/expmap_681782401_682041601_4FGL_J2044.0+1036_daily_bin1707.fits', expCube='/scratch/kocevski/550140/ltcube_681782401_682041601_4FGL_J2044.0+1036_daily_bin1707.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/550140/Model_4FGL_J2044.0+1036_daily_bin1707.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  1.000e-04  1.000e+04 ( 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/550140/ft1_filtered_4FGL_J2044.0+1036_daily_bin1707.fits
Spacecraft file(s): /scratch/kocevski/550140/ft2_4FGL_J2044.0+1036_daily_bin1707.fits
Exposure map: /scratch/kocevski/550140/expmap_681782401_682041601_4FGL_J2044.0+1036_daily_bin1707.fits
Exposure cube: /scratch/kocevski/550140/ltcube_681782401_682041601_4FGL_J2044.0+1036_daily_bin1707.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/550140/Model_4FGL_J2044.0+1036_daily_bin1707.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) = 8819.77035349

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.817       1.0000         .10000E-03   10000.    
     2 'norm      '    .15390E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    24.802       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10179E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10094E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    44.264       1.0000         .10000E-03   10000.    
     7 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.0208       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.7624       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.9510       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.2862       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.4334       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0497       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .96757       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8819.751     FROM MIGRAD    STATUS=CONVERGED    365 CALLS     1888 TOTAL
                     EDM=   .89E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.818        15.459        .23258E-06   -.29972E-04
   2  norm          .10003E-03    5.7832       -.13376E-05** at limit **
   3  Prefactor     24.830        17.024       -.21092E-06   -.56569E-03
   4  Prefactor     .10000E-03    25.512        .55542E-05** at limit **
   5  norm          .10000E-03    .44845        .12375E-05** at limit **
   6  Prefactor     44.265        39.440       -.10457E-05   -.23159E-03
   7  norm          .10000E-03    4.8136        .13348E-06** at limit **
   8  norm          .10000E-03    23.381        .83289E-06** at limit **
   9  Prefactor     7.0233        14.488        .21830E-06   -.25274E-04
  10  Prefactor     1.7447        109.01       -.66712E-05   -.89530E-04
  11  Prefactor     .10000E-03    22.795        .33433E-06** at limit **
  12  Prefactor     9.9473        22.025       -.43089E-06   -.10101E-03
  13  Prefactor     .10000E-03    21.781       -.74378E-06** at limit **
  14  Prefactor     4.2861        27.618        .47134E-06    .68371E-05
  15  Prefactor     .10000E-03    22.691        .19115E-06** at limit **
  16  Prefactor     8.4267        41.007       -.13195E-05   -.56033E-04
  17  Prefactor     .10000E-03    7.3571        .10130E-06** at limit **
  18  Normalizat    1.0498        .31347        .96706E-06   -.44210E-03
  19  Prefactor     .96758        .87342E-01   -.96896E-06   -.12467E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.818
  norm       = 0.000100032
  Prefactor  = 24.8298
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 44.2648
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 7.02332
  Prefactor  = 1.74471
  Prefactor  = 0.0001
  Prefactor  = 9.94734
  Prefactor  = 0.0001
  Prefactor  = 4.28614
  Prefactor  = 0.0001
  Prefactor  = 8.42667
  Prefactor  = 0.0001
  Normalizat = 1.0498
  Prefactor  = 0.967585
 **********
 **   18 **HESSE 
 **********

 FCN=   8819.751     FROM HESSE     STATUS=OK           266 CALLS     2154 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.818        15.459        .94887E-04   -1.4863    
   2  norm          .10003E-03    21.735        .41922E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     24.830        17.060        .80435E-04   -1.4711    
   4  Prefactor     .10000E-03    26.202        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .52084        .10153E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     44.265        39.657        .60260E-04   -1.4376    
   7  norm          .10000E-03    4.8368        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    23.422        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.0233        14.467        .15140E-03   -1.5178    
  10  Prefactor     1.7447        112.86        .31559E-03   -1.5444    
  11  Prefactor     .10000E-03    22.815        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     9.9473        22.149        .12703E-03   -1.5077    
  13  Prefactor     .10000E-03    21.831        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.2861        27.478        .19460E-03   -1.5294    
  15  Prefactor     .10000E-03    22.726        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     8.4267        41.566        .13804E-03   -1.5127    
  17  Prefactor     .10000E-03    7.4695        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.0498        .35501        .48226E-03   -.91380    
  19  Prefactor     .96758        .99814E-01    .15114E-03   -.93818    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.16705e-09
Minuit parameter uncertainties:
  1  15.4628
  2  0.00168045
  3  17.0634
  4  0.000562131
  5  2.38033e-05
  6  39.6803
  7  4.89081e-06
  8  0.0001789
  9  14.4744
  10  28.1199
  11  6.91211e-05
  12  22.1673
  13  0.000175037
  14  21.7191
  15  5.2217e-05
  16  37.4722
  17  1.56633e-05
  18  0.35582
  19  0.0998334
Done.

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

Extracting fit parameters...

4FGL J2044.0+1036
   Spectrum: PowerLaw
460    Prefactor:  4.426e+01  3.968e+01  1.000e-04  1.000e+04 ( 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.676e-01  9.983e-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:  1.050e+00  3.558e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.64
Ra Dec: 311.002 10.608
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 4.01e-08 +/- 3.60e-08
Energy Flux (Fixed Index): 1.87e-05 +/- 1.68e-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) = 8819.30728511
delta logL = 0.443851369248

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8819.30685363
delta logL = 0.444282847609

Fit tolerance = 1e-08

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

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

 FCN=   8819.307     FROM MIGRAD    STATUS=CONVERGED     67 CALLS      285 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     71.191        6015.4        .11909E-02    .22529E-04
   2  Index         1.6496        5.0932        .19061        .50722E-04
   3  Normalizat    1.0662        .24223        .10806        .17480E-03
   4  Prefactor     .96550        .50768E-01    .34242E-01    .44935E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 71.1908
  Index      = 1.64955
  Normalizat = 1.06617
  Prefactor  = 0.965504
 **********
 **   18 **HESSE 
 **********

 FCN=   8819.307     FROM HESSE     STATUS=OK            29 CALLS      314 TOTAL
                     EDM=   .62E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     71.191        67.004        .47636E-04   -1.4018    
   2  Index         1.6496        .55490        .11083E-01   -.73433    
   3  Normalizat    1.0662        .32032        .47902E-03   -.90846    
   4  Prefactor     .96550        .97727E-01    .15130E-03   -.93888    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.21959e-11
Minuit parameter uncertainties:
  1  67.0751
  2  0.556988
  3  0.320902
  4  0.0977451
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/550140': 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) = 8819.30684497
delta logL = 0.444291510948

Extracting fit parameters...

4FGL J2044.0+1036
   Spectrum: PowerLaw
460    Prefactor:  7.119e+01  6.708e+01  1.000e-04  1.000e+04 ( 1.000e-14)
461        Index:  1.650e+00  5.570e-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.655e-01  9.775e-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:  1.066e+00  3.209e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.53
Ra Dec: 311.002 10.608
Photon Index (Free Index): 1.65 +/- 0.56
Photon Flux (Free Index): 2.12e-08 +/- 2.74e-08
Energy Flux (Free Index): 4.08e-05 +/- 5.42e-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/550140/cmap_HighResolution_681782401_682041601_4FGL_J2044.0+1036_daily_bin1707.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.01e-08', energy_flux2='4.08e-05', photon_flux_error='3.60e-08', dlogl='4.44e-01', energy_flux='1.87e-05', photon_flux2='2.12e-08', job_status='DONE', time_completed='2022-08-13 00:45:12.835536', photon_index_error2='0.56', photon_index2='1.65', ts='5.64', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', energy_flux_error2='5.42e-05', EG='1.05', time_epoch_completed='1660376712.84', return_code='0', job_id='550140', GAL2='0.97', EG2='1.07', return_code2='0', energy_flux_error='1.68e-05', photon_flux_error2='2.74e-08', ts2='6.53', photon_index='2.18' WHERE bin_id='1707' AND source_name='4FGL J2044.0+1036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 13 00:45:12 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 550140: <4FGL_J2044.0+1036_daily_bin1707> in cluster <slac> Done

Job <4FGL_J2044.0+1036_daily_bin1707> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Aug 13 00:30:27 2022
Job was executed on host(s) <bullet0083>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 13 00:30:28 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 13 00:30:28 2022
Terminated at Sat Aug 13 00:45:13 2022
Results reported at Sat Aug 13 00:45:13 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2044.0+1036_daily_bin1707 311.002 10.6079 681782401 682041601 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 :                                   840.00 sec.
    Max Memory :                                 1096 MB
    Average Memory :                             359.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   885 sec.
    Turnaround time :                            886 sec.

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

