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


Performing analysis on: 4FGL_J2040.5-1705_daily_bin1771
RA = 310.136, Dec = -17.0901
tmin = 698371201, tmax = 698630401
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='566142', job_status='RUN', time_executed='2023-02-21 02:02:27.307240', time_epoch_executed='1676973747.31' WHERE source_name='4FGL J2040.5-1705' and cadence='daily' and bin_id='1771'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/566142

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/566142/ft1_4FGL_J2040.5-1705_daily_bin1771.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/566142/ft2_4FGL_J2040.5-1705_daily_bin1771.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/566142/ft1_4FGL_J2040.5-1705_daily_bin1771.fits outfile=/scratch/kocevski/566142/ft1_filteredMKT_4FGL_J2040.5-1705_daily_bin1771.fits ra=310.136 dec=-17.0901 rad=12.0 tmin=698371201.0 tmax=698630401.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.08
user 2.89
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/566142/ft2_4FGL_J2040.5-1705_daily_bin1771.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/566142/ft2_4FGL_J2040.5-1705_daily_bin1771.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/566142/ft1_filteredMKT_4FGL_J2040.5-1705_daily_bin1771.fits evtable="EVENTS" outfile="/scratch/kocevski/566142/ft1_filtered_4FGL_J2040.5-1705_daily_bin1771.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.32
sys 0.15

Number of photons that the gtmktime cut: 346

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/566142/ft1_filtered_4FGL_J2040.5-1705_daily_bin1771.fits" evtable="EVENTS" scfile=/scratch/kocevski/566142/ft2_4FGL_J2040.5-1705_daily_bin1771.fits sctable="SC_DATA" outfile=/scratch/kocevski/566142/ltcube_698371201_698630401_4FGL_J2040.5-1705_daily_bin1771.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/566142/ft2_4FGL_J2040.5-1705_daily_bin1771.fits
.....................!
real 12.47
user 12.13
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/566142/ft1_filtered_4FGL_J2040.5-1705_daily_bin1771.fits evtable="EVENTS" scfile=/scratch/kocevski/566142/ft2_4FGL_J2040.5-1705_daily_bin1771.fits sctable="SC_DATA" expcube=/scratch/kocevski/566142/ltcube_698371201_698630401_4FGL_J2040.5-1705_daily_bin1771.fits outfile=/scratch/kocevski/566142/expmap_698371201_698630401_4FGL_J2040.5-1705_daily_bin1771.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/566142/ltcube_698371201_698630401_4FGL_J2040.5-1705_daily_bin1771.fits
.....................!
real 190.11
user 185.78
sys 4.01

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 181 point sources and 0 extended sources

Setting source of interest to:
4FGL J2040.5-1705 @ 310.136 -17.0901

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/566142/ft1_filtered_4FGL_J2040.5-1705_daily_bin1771.fits scfile=/scratch/kocevski/566142/ft2_4FGL_J2040.5-1705_daily_bin1771.fits outfile=/scratch/kocevski/566142/cmap_698371201_698630401_4FGL_J2040.5-1705_daily_bin1771.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=310.136 yref=-17.0901 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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/566142/ft1_filtered_4FGL_J2040.5-1705_daily_bin1771.fits scfile=/scratch/kocevski/566142/ft2_4FGL_J2040.5-1705_daily_bin1771.fits outfile=/scratch/kocevski/566142/cmap_HighResolution_698371201_698630401_4FGL_J2040.5-1705_daily_bin1771.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=310.136 yref=-17.0901 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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/566142/ft1_filtered_4FGL_J2040.5-1705_daily_bin1771.fits evtable="EVENTS" scfile=/scratch/kocevski/566142/ft2_4FGL_J2040.5-1705_daily_bin1771.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/566142/Model_4FGL_J2040.5-1705_daily_bin1771.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/566142/ft1_filtered_4FGL_J2040.5-1705_daily_bin1771.fits.....................!
real 47.22
user 46.04
sys 1.09

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/566142/ft1_filtered_4FGL_J2040.5-1705_daily_bin1771.fits', '/scratch/kocevski/566142/ft2_4FGL_J2040.5-1705_daily_bin1771.fits', expMap='/scratch/kocevski/566142/expmap_698371201_698630401_4FGL_J2040.5-1705_daily_bin1771.fits', expCube='/scratch/kocevski/566142/ltcube_698371201_698630401_4FGL_J2040.5-1705_daily_bin1771.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/566142/Model_4FGL_J2040.5-1705_daily_bin1771.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2040.5-1705'

4FGL J2040.5-1705
   Spectrum: PowerLaw
323    Prefactor:  1.223e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
324        Index:  2.541e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
325        Scale:  7.724e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/566142/ft1_filtered_4FGL_J2040.5-1705_daily_bin1771.fits
Spacecraft file(s): /scratch/kocevski/566142/ft2_4FGL_J2040.5-1705_daily_bin1771.fits
Exposure map: /scratch/kocevski/566142/expmap_698371201_698630401_4FGL_J2040.5-1705_daily_bin1771.fits
Exposure cube: /scratch/kocevski/566142/ltcube_698371201_698630401_4FGL_J2040.5-1705_daily_bin1771.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/566142/Model_4FGL_J2040.5-1705_daily_bin1771.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) = 4023.06696566

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .65550E-01   1.0000          .0000       .10000E+07
     2 'Prefactor '    .16653E-09   1.0000          .0000       .10000E+07
     3 'norm      '    24.969       1.0000          .0000       .10000E+07
     4 'norm      '    .13337       1.0000          .0000       .10000E+07
     5 'Prefactor '    .79178E-01   1.0000          .0000       .10000E+07
     6 'norm      '    .38040E-03   1.0000          .0000       .10000E+07
     7 'norm      '    22.564       1.0000          .0000       .10000E+07
     8 'norm      '    .31369       1.0000          .0000       .10000E+07
     9 'Prefactor '    .11677E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    .81820E-02   1.0000          .0000       .10000E+07
    11 'norm      '    .19693E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    7.7478       1.0000          .0000       .10000E+07
    13 'norm      '    .15756E-01   1.0000          .0000       .10000E+07
    14 'Prefactor '    .26264E-04   1.0000          .0000       .10000E+07
    15 'Prefactor '    .59366E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    .84917E-03   1.0000          .0000       .10000E+07
    17 'Normalizat'    .63058       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.2061       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5990E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4022.989     FROM MIGRAD    STATUS=CONVERGED    144 CALLS     1093 TOTAL
                     EDM=   .67E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .83396E-05    85.159        .13061E-04** at limit **
   2  Prefactor     .55511E-10    .97355        .20045E-07** at limit **
   3  norm          25.431        3.4815       -.48956E-06   -.16770E-01
   4  norm          .32035        45.878       -.54341E-06    .15560E-01
   5  Prefactor      .0000        62.905       -.88070E-06** at limit **
   6  norm          .33862E-08    14.210       -.50789E-06** at limit **
   7  norm          21.507        7.6537        .83091E-07    .22542E-01
   8  norm          .31956        1.5897       -.98331E-07   -.45498E-02
   9  Prefactor     .13886E-04    36.871        .87978E-05** at limit **
  10  Prefactor     .12934E-07    50.682        .57845E-05** at limit **
  11  norm          .16676E-06    26.791        .91800E-05** at limit **
  12  Prefactor     7.8824        11.757       -.12283E-08   -.18294E-02
  13  norm          .55511E-10    39.710        .96186E-06** at limit **
  14  Prefactor     .67557E-07    16.275       -.17791E-05** at limit **
  15  Prefactor     .33307E-09    24.345       -.24418E-05** at limit **
  16  Prefactor     .92303E-05    58.175        .68607E-05** at limit **
  17  Normalizat    .62843        .49066       -.15510E-04   -.57163E-04
  18  Prefactor     1.2061        .18275       -.24103E-05   -.79053E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.33955e-06
  Prefactor  = 5.55112e-11
  norm       = 25.431
  norm       = 0.320351
  Prefactor  = 0
  norm       = 3.38618e-09
  norm       = 21.5071
  norm       = 0.31956
  Prefactor  = 1.38861e-05
  Prefactor  = 1.29341e-08
  norm       = 1.66755e-07
  Prefactor  = 7.88244
  norm       = 5.55112e-11
  Prefactor  = 6.75571e-08
  Prefactor  = 3.33067e-10
  Prefactor  = 9.23028e-06
  Normalizat = 0.628431
  Prefactor  = 1.20615
 **********
 **   18 **HESSE 
 **********

 FCN=   4022.989     FROM HESSE     STATUS=OK           284 CALLS     1377 TOTAL
                     EDM=   .36E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .83396E-05    127.56        .14968E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .55511E-10    .97549        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          25.431        22.022        .20017E-03   -1.5607    
   4  norm          .32035        8.4426        .10132E-01   -1.5697    
   5  Prefactor      .0000        62.767        .14526E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .33862E-08    14.209        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          21.507        32.128        .21057E-03   -1.5615    
   8  norm          .31956        1.6258        .10026E-02   -1.5697    
   9  Prefactor     .13886E-04    91.762        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .12934E-07    54.938        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .16676E-06    29.071        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.8824        11.926        .36002E-03   -1.5652    
  13  norm          .55511E-10    39.629        .17334E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .67557E-07    17.033        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .33307E-09    24.468        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .92303E-05    93.073        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    .62843        .47036        .12595       -1.0679    
  18  Prefactor     1.2061        .17040        .34488E-01   -.86142    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.60031e-07
Minuit parameter uncertainties:
  1  0.0652327
  2  1.43752e-05
  3  22.0224
  4  3.28913
  5  4.04881e-05
  6  0.000436983
  7  32.128
  8  1.44158
  9  0.0713935
  10  0.00168654
  11  0.00440365
  12  11.9261
  13  0.000106618
  14  0.00214555
  15  0.000185505
  16  0.0586215
  17  0.473409
  18  0.170481
Done.

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

Extracting fit parameters...

4FGL J2040.5-1705
   Spectrum: PowerLaw
323    Prefactor:  7.882e+00  1.193e+01  0.000e+00  1.000e+06 ( 1.000e-12)
324        Index:  2.541e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
325        Scale:  7.724e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
596    Prefactor:  1.206e+00  1.705e-01  0.000e+00  1.000e+01 ( 1.000e+00)
597        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
598        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
595   Normalization:  6.284e-01  4.734e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.55
Ra Dec: 310.136 -17.090
Photon Flux Upper Limit: 3.71e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.89e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/566142/likelihoodResults_698371201_698630401_4FGL_J2040.5-1705_daily_bin1771.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) = 4021.96371323
delta logL = 1.02543890061

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4021.74966684
delta logL = 1.23948529099

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4023.244     FROM MIGRAD    STATUS=CONVERGED    147 CALLS      599 TOTAL
                     EDM=   .51E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .27756E-09    .44068        .42118E-03** at limit **
   2  Index         1.1380        8.4234        .50000       -.60254E-09
   3  Normalizat    .72917        .41494E-02    .11747       -.30806E-04
   4  Prefactor     1.1902        .15756E-02    .33110E-01    .88876E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.77556e-10
  Index      = 1.13798
  Normalizat = 0.729171
  Prefactor  = 1.19019
 **********
 **   18 **HESSE 
 **********

 FCN=   4023.244     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      630 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .27756E-09    1.4834        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.1380        5.5201        .20000       -7.1658    
   3  Normalizat    .72917        .75802E-02    .52105E-03   -2.1141    
   4  Prefactor     1.1902        .28901E-02    .15777E-03   -2.2753    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.92824e-10
Minuit parameter uncertainties:
  1  3.94993e-05
  2  30390.3
  3  0.00758021
  4  0.00289008
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/566142': 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): 102
logL (Free Index) = 4023.24368253
delta logL = -0.254530403022

Extracting fit parameters...

4FGL J2040.5-1705
   Spectrum: PowerLaw
323    Prefactor:  2.776e-10  3.950e-05  0.000e+00  1.000e+06 ( 1.000e-12)
324        Index:  1.138e+00  3.039e+04  0.000e+00  1.000e+01 (-1.000e+00)
325        Scale:  7.724e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
596    Prefactor:  1.190e+00  2.890e-03  0.000e+00  1.000e+01 ( 1.000e+00)
597        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
598        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
595   Normalization:  7.292e-01  7.580e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.55
Ra Dec: 310.136 -17.090

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/566142/cmap_HighResolution_698371201_698630401_4FGL_J2040.5-1705_daily_bin1771.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.89e-02', job_status='DONE', photon_flux_upper_limit='3.71e-07', time_completed='2023-02-21 02:09:58.989512', job_id='566142', GAL2='1.19', fit_tolerance='1e-08', EG2='0.73', EG='0.63', time_epoch_completed='1676974198.99', return_code2='102', ts='0.55', comment='SUCCESS', return_code='0', GAL='1.21', dlogl='-2.55e-01', ts2='-0.00', photon_index_error='0.00', photon_index='2.54' WHERE bin_id='1771' AND source_name='4FGL J2040.5-1705' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Feb 21 02:09:59 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 566142: <4FGL_J2040.5-1705_daily_bin1771> in cluster <slac> Done

Job <4FGL_J2040.5-1705_daily_bin1771> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Feb 21 02:00:17 2023
Job was executed on host(s) <bullet0073>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Feb 21 02:00:18 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Feb 21 02:00:18 2023
Terminated at Tue Feb 21 02:09:59 2023
Results reported at Tue Feb 21 02:09:59 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2040.5-1705_daily_bin1771 310.136 -17.0901 698371201 698630401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2040.5-1705 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   453.36 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             280.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   581 sec.
    Turnaround time :                            582 sec.

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

