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


Performing analysis on: 4FGL_J1040.5+0617_daily_bin1774
RA = 160.15, Dec = 6.2848
tmin = 699148801, tmax = 699408001
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='680045', job_status='RUN', time_executed='2023-03-02 00:36:17.697747', time_epoch_executed='1677746177.7' WHERE source_name='4FGL J1040.5+0617' and cadence='daily' and bin_id='1774'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/680045

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/680045/ft1_4FGL_J1040.5+0617_daily_bin1774.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/680045/ft2_4FGL_J1040.5+0617_daily_bin1774.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/680045/ft1_4FGL_J1040.5+0617_daily_bin1774.fits outfile=/scratch/kocevski/680045/ft1_filteredMKT_4FGL_J1040.5+0617_daily_bin1774.fits ra=160.15 dec=6.2848 rad=12.0 tmin=699148801.0 tmax=699408001.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 2.80
user 2.62
sys 0.16

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/680045/ft2_4FGL_J1040.5+0617_daily_bin1774.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/680045/ft2_4FGL_J1040.5+0617_daily_bin1774.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/680045/ft1_filteredMKT_4FGL_J1040.5+0617_daily_bin1774.fits evtable="EVENTS" outfile="/scratch/kocevski/680045/ft1_filtered_4FGL_J1040.5+0617_daily_bin1774.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.13

Number of photons that the gtmktime cut: 18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/680045/ft1_filtered_4FGL_J1040.5+0617_daily_bin1774.fits" evtable="EVENTS" scfile=/scratch/kocevski/680045/ft2_4FGL_J1040.5+0617_daily_bin1774.fits sctable="SC_DATA" outfile=/scratch/kocevski/680045/ltcube_699148801_699408001_4FGL_J1040.5+0617_daily_bin1774.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/680045/ft2_4FGL_J1040.5+0617_daily_bin1774.fits
.....................!
real 13.44
user 13.04
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/680045/ft1_filtered_4FGL_J1040.5+0617_daily_bin1774.fits evtable="EVENTS" scfile=/scratch/kocevski/680045/ft2_4FGL_J1040.5+0617_daily_bin1774.fits sctable="SC_DATA" expcube=/scratch/kocevski/680045/ltcube_699148801_699408001_4FGL_J1040.5+0617_daily_bin1774.fits outfile=/scratch/kocevski/680045/expmap_699148801_699408001_4FGL_J1040.5+0617_daily_bin1774.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/680045/ltcube_699148801_699408001_4FGL_J1040.5+0617_daily_bin1774.fits
.....................!
real 190.55
user 185.69
sys 4.40

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 169 point sources and 0 extended sources

Setting source of interest to:
4FGL J1040.5+0617 @ 160.15 6.2848

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/680045/ft1_filtered_4FGL_J1040.5+0617_daily_bin1774.fits scfile=/scratch/kocevski/680045/ft2_4FGL_J1040.5+0617_daily_bin1774.fits outfile=/scratch/kocevski/680045/cmap_699148801_699408001_4FGL_J1040.5+0617_daily_bin1774.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=160.15 yref=6.2848 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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/680045/ft1_filtered_4FGL_J1040.5+0617_daily_bin1774.fits scfile=/scratch/kocevski/680045/ft2_4FGL_J1040.5+0617_daily_bin1774.fits outfile=/scratch/kocevski/680045/cmap_HighResolution_699148801_699408001_4FGL_J1040.5+0617_daily_bin1774.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=160.15 yref=6.2848 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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/680045/ft1_filtered_4FGL_J1040.5+0617_daily_bin1774.fits evtable="EVENTS" scfile=/scratch/kocevski/680045/ft2_4FGL_J1040.5+0617_daily_bin1774.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/680045/Model_4FGL_J1040.5+0617_daily_bin1774.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/680045/ft1_filtered_4FGL_J1040.5+0617_daily_bin1774.fits..................!
real 15.37
user 14.15
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/680045/ft1_filtered_4FGL_J1040.5+0617_daily_bin1774.fits', '/scratch/kocevski/680045/ft2_4FGL_J1040.5+0617_daily_bin1774.fits', expMap='/scratch/kocevski/680045/expmap_699148801_699408001_4FGL_J1040.5+0617_daily_bin1774.fits', expCube='/scratch/kocevski/680045/ltcube_699148801_699408001_4FGL_J1040.5+0617_daily_bin1774.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/680045/Model_4FGL_J1040.5+0617_daily_bin1774.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1040.5+0617'

4FGL J1040.5+0617
   Spectrum: PowerLaw
216    Prefactor:  2.877e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
217        Index:  2.368e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
218        Scale:  8.643e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/680045/ft1_filtered_4FGL_J1040.5+0617_daily_bin1774.fits
Spacecraft file(s): /scratch/kocevski/680045/ft2_4FGL_J1040.5+0617_daily_bin1774.fits
Exposure map: /scratch/kocevski/680045/expmap_699148801_699408001_4FGL_J1040.5+0617_daily_bin1774.fits
Exposure cube: /scratch/kocevski/680045/ltcube_699148801_699408001_4FGL_J1040.5+0617_daily_bin1774.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/680045/Model_4FGL_J1040.5+0617_daily_bin1774.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 244.014235772

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 242.337062377

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.8912       1.0000          .0000       .10000E+07
     2 'Prefactor '    1.4591       1.0000          .0000       .10000E+07
     3 'Prefactor '    .81681       1.0000          .0000       .10000E+07
     4 'Prefactor '    7.5520       1.0000          .0000       .10000E+07
     5 'Prefactor '    8.6030       1.0000          .0000       .10000E+07
     6 'Prefactor '    .44238E-02   1.0000          .0000       .10000E+07
     7 'norm      '    3.8983       1.0000          .0000       .10000E+07
     8 'Prefactor '    23.171       1.0000          .0000       .10000E+07
     9 'Prefactor '    23.837       1.0000          .0000       .10000E+07
    10 'Prefactor '    4.0911       1.0000          .0000       .10000E+07
    11 'Prefactor '    143.63       1.0000          .0000       .10000E+07
    12 'norm      '    .13253E-05   1.0000          .0000       .10000E+07
    13 'norm      '    .74008       1.0000          .0000       .10000E+07
    14 'Prefactor '    4.4991       1.0000          .0000       .10000E+07
    15 'norm      '    1.7131       1.0000          .0000       .10000E+07
    16 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
    17 'Prefactor '    .98383       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5360E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   242.3065     FROM MIGRAD    STATUS=CONVERGED    162 CALLS      448 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .47054E-03    697.50       -.16019E-06** at limit **
   2  Prefactor      .0000        81.584        .12717E-06** at limit **
   3  Prefactor     .11102E-09    115.82        .58354E-06** at limit **
   4  Prefactor     .32875E-02    2865.6       -.39846E-05** at limit **
   5  Prefactor     .64319E-03    714.73        .30419E-05** at limit **
   6  Prefactor     .46836E-05    283.54       -.97418E-06** at limit **
   7  norm          3.8645        7.9354       -.37341E-06   -.33343E-03
   8  Prefactor     23.147        28.763       -.31878E-06    .24057E-02
   9  Prefactor     25.689        16.790        .98388E-07    .12682    
  10  Prefactor     4.0911        1.0077         .0000         .0000    
  11  Prefactor     139.28        45.032        .26222E-06    .16890    
  12  norm           .0000        3.9849        .34037E-06** at limit **
  13  norm          .92302E-02    104.58        .53532E-06** at limit **
  14  Prefactor     .32067E-03    427.68        .35631E-05** at limit **
  15  norm          .11879E-07    423.89        .11156E-05** at limit **
  16  Normalizat    .10000E-01    .47306        .29475E-04** at limit **
  17  Prefactor     .98682        .34982        .25252E-04    .52138E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000470537
  Prefactor  = 0
  Prefactor  = 1.11022e-10
  Prefactor  = 0.00328752
  Prefactor  = 0.000643194
  Prefactor  = 4.68359e-06
  norm       = 3.86445
  Prefactor  = 23.1475
  Prefactor  = 25.6885
  Prefactor  = 4.09108
  Prefactor  = 139.276
  norm       = 0
  norm       = 0.0092302
  Prefactor  = 0.000320671
  norm       = 1.18794e-08
  Normalizat = 0.01
  Prefactor  = 0.986823
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   242.3065     FROM HESSE     STATUS=FAILED        47 CALLS      495 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .47054E-03    726.53        .45457E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        81.512        .89058E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .11102E-09    116.09        .51690E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .32875E-02    3029.0        .36469E-03   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .64319E-03    787.94        .34152E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .46836E-05    291.24        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.8645        7.6265        .51077E-03   -1.5669    
   8  Prefactor     23.147        27.379        .20779E-03   -1.5612    
   9  Prefactor     25.689        81.133        .20487E-03   -1.5607    
  10  Prefactor     59814.        59810.         .0000       -1.5668    
  11  Prefactor     139.28        .98473        .26222E-06   -1.5472    
  12  norm           .0000        .44347E-01    .34037E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .92302E-02    .82693E-01    .53532E-06   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .32067E-03    .56271E-01    .35631E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .11879E-07    .16108        .11156E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    .10000E-01    .25693        .29475E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .98682        1.3257        .25252E-04   -.93170    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.40792e-09
Minuit parameter uncertainties:
  1  1.16952
  2  1.60622e-05
  3  0.000236727
  4  6.31437
  5  1.42398
  6  0.0738695
  7  7.6265
  8  27.3788
  9  81.1361
  10  1.00767
  11  0.984734
  12  1.25734e-06
  13  0.0552548
  14  0.00849573
  15  8.7509e-05
  16  1.54664e-06
  17  1.37381
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 242.306518445

Extracting fit parameters...

4FGL J1040.5+0617
   Spectrum: PowerLaw
216    Prefactor:  2.569e+01  8.114e+01  0.000e+00  1.000e+06 ( 1.000e-12)
217        Index:  2.368e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
218        Scale:  8.643e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
533    Prefactor:  9.868e-01  1.374e+00  0.000e+00  1.000e+01 ( 1.000e+00)
534        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
535        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
532   Normalization:  1.000e-02  1.547e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.12
Ra Dec: 160.150 6.285
Photon Flux Upper Limit: 4.07e-06 ph cm-2 s-1
Energy Flux Upper Limit: 3.14e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/680045/likelihoodResults_699148801_699408001_4FGL_J1040.5+0617_daily_bin1774.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) = 242.190405164
delta logL = 0.116113281082

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 242.147617944
delta logL = 0.158900500506

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   242.1476     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      200 TOTAL
                     EDM=   .32E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     51.979        99.561        .45820E-06    .18329E-04
   2  Index         1.6165        1.0592        .52477E-04   -.55953E-05
   3  Normalizat    .10000E-01    .46862       -.29835E-05** at limit **
   4  Prefactor     .97546        .34229       -.19116E-06    .16350E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 51.9795
  Index      = 1.61647
  Normalizat = 0.01
  Prefactor  = 0.975465
 **********
 **   18 **HESSE 
 **********

 FCN=   242.1476     FROM HESSE     STATUS=OK            29 CALLS      229 TOTAL
                     EDM=   .60E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     51.979        99.493        .27796E-04   -1.5564    
   2  Index         1.6165        1.0590        .43943E-03   -.74328    
   3  Normalizat    .10000E-01    .48462        .64173E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .97546        .33082        .16915E-03   -.93552    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.99213e-12
Minuit parameter uncertainties:
  1  99.4966
  2  1.07416
  3  2.11788e-07
  4  0.331512
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/680045': 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) = 242.147614778
delta logL = 0.158903667139

Extracting fit parameters...

4FGL J1040.5+0617
   Spectrum: PowerLaw
216    Prefactor:  5.198e+01  9.950e+01  0.000e+00  1.000e+06 ( 1.000e-12)
217        Index:  1.616e+00  1.074e+00  0.000e+00  1.000e+01 (-1.000e+00)
218        Scale:  8.643e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
533    Prefactor:  9.755e-01  3.315e-01  0.000e+00  1.000e+01 ( 1.000e+00)
534        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
535        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
532   Normalization:  1.000e-02  2.118e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.12
Ra Dec: 160.150 6.285

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/680045/cmap_HighResolution_699148801_699408001_4FGL_J1040.5+0617_daily_bin1774.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.14e-01', job_status='DONE', photon_flux_upper_limit='4.07e-06', time_completed='2023-03-02 00:41:32.590402', job_id='680045', GAL2='0.98', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1677746492.59', return_code2='0', ts='0.12', comment='SUCCESS', return_code='101', GAL='0.99', dlogl='1.59e-01', ts2='0.44', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1774' AND source_name='4FGL J1040.5+0617' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Mar  2 00:41:32 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0250>
Subject: Job 680045: <4FGL_J1040.5+0617_daily_bin1774> in cluster <slac> Done

Job <4FGL_J1040.5+0617_daily_bin1774> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Mar  2 00:35:14 2023
Job was executed on host(s) <bullet0250>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Mar  2 00:35:15 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Mar  2 00:35:15 2023
Terminated at Thu Mar  2 00:41:33 2023
Results reported at Thu Mar  2 00:41:33 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1040.5+0617_daily_bin1774 160.15 6.2848 699148801 699408001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1040.5+0617 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   317.19 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             295.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   377 sec.
    Turnaround time :                            379 sec.

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

