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


Performing analysis on: 4FGL_J1807.9-6412_daily_bin1760
RA = 271.993, Dec = -64.209
tmin = 695520001, tmax = 695779201
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='745889', job_status='RUN', time_executed='2023-01-19 01:26:32.218130', time_epoch_executed='1674120392.22' WHERE source_name='4FGL J1807.9-6412' and cadence='daily' and bin_id='1760'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/745889

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/745889/ft1_4FGL_J1807.9-6412_daily_bin1760.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/745889/ft2_4FGL_J1807.9-6412_daily_bin1760.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/745889/ft1_4FGL_J1807.9-6412_daily_bin1760.fits outfile=/scratch/kocevski/745889/ft1_filteredMKT_4FGL_J1807.9-6412_daily_bin1760.fits ra=271.993 dec=-64.209 rad=12.0 tmin=695520001.0 tmax=695779201.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.46
user 2.25
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/745889/ft2_4FGL_J1807.9-6412_daily_bin1760.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/745889/ft2_4FGL_J1807.9-6412_daily_bin1760.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/745889/ft1_filteredMKT_4FGL_J1807.9-6412_daily_bin1760.fits evtable="EVENTS" outfile="/scratch/kocevski/745889/ft1_filtered_4FGL_J1807.9-6412_daily_bin1760.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.53
user 0.37
sys 0.15

Number of photons that the gtmktime cut: 296

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/745889/ft1_filtered_4FGL_J1807.9-6412_daily_bin1760.fits" evtable="EVENTS" scfile=/scratch/kocevski/745889/ft2_4FGL_J1807.9-6412_daily_bin1760.fits sctable="SC_DATA" outfile=/scratch/kocevski/745889/ltcube_695520001_695779201_4FGL_J1807.9-6412_daily_bin1760.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/745889/ft2_4FGL_J1807.9-6412_daily_bin1760.fits
.....................!
real 17.41
user 16.85
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/745889/ft1_filtered_4FGL_J1807.9-6412_daily_bin1760.fits evtable="EVENTS" scfile=/scratch/kocevski/745889/ft2_4FGL_J1807.9-6412_daily_bin1760.fits sctable="SC_DATA" expcube=/scratch/kocevski/745889/ltcube_695520001_695779201_4FGL_J1807.9-6412_daily_bin1760.fits outfile=/scratch/kocevski/745889/expmap_695520001_695779201_4FGL_J1807.9-6412_daily_bin1760.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/745889/ltcube_695520001_695779201_4FGL_J1807.9-6412_daily_bin1760.fits
.....................!
real 198.60
user 190.34
sys 5.93

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 FHES J1642.1-5428 in ROI with RadialDisk spatial model.
Extended source FHES J1501.0-6310 in ROI with RadialGaussian spatial model.
Extended source HESS J1507-622 in ROI with RadialDisk spatial model.
Extended source MSH 15-52 in ROI with RadialDisk spatial model.
Extended source HESS J1534-571 in ROI with RadialDisk spatial model.
Extended source MSH 15-56 PWN in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/MSH15-56_PWN.fits is the correct path to the extended template.
Extended source MSH 15-56 SNR in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/MSH15-56_SNRmask.fits is the correct path to the extended template.
Extended source FGES J1553.8-5325 in ROI with RadialDisk spatial model.
Extended source HESS J1614-518 in ROI with RadialDisk spatial model.
Extended source HESS J1616-508 in ROI with RadialDisk spatial model.
Extended source FGES J1631.6-4756 in ROI with RadialDisk spatial model.
Extended source FGES J1633.0-4746 in ROI with RadialDisk spatial model.
Extended source G337.0-0.1 in ROI with RadialDisk spatial model.
Extended source FGES J1652.2-4633 in ROI with RadialDisk spatial model.
Extended source FGES J1655.5-4737 in ROI with RadialDisk spatial model.
Added 305 point sources and 15 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 J1807.9-6412 @ 271.993 -64.209

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/745889/ft1_filtered_4FGL_J1807.9-6412_daily_bin1760.fits scfile=/scratch/kocevski/745889/ft2_4FGL_J1807.9-6412_daily_bin1760.fits outfile=/scratch/kocevski/745889/cmap_695520001_695779201_4FGL_J1807.9-6412_daily_bin1760.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=271.993 yref=-64.209 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.57
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/745889/ft1_filtered_4FGL_J1807.9-6412_daily_bin1760.fits scfile=/scratch/kocevski/745889/ft2_4FGL_J1807.9-6412_daily_bin1760.fits outfile=/scratch/kocevski/745889/cmap_HighResolution_695520001_695779201_4FGL_J1807.9-6412_daily_bin1760.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=271.993 yref=-64.209 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.58
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/745889/ft1_filtered_4FGL_J1807.9-6412_daily_bin1760.fits evtable="EVENTS" scfile=/scratch/kocevski/745889/ft2_4FGL_J1807.9-6412_daily_bin1760.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/745889/Model_4FGL_J1807.9-6412_daily_bin1760.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 FGES J1553.8-5325
adding source FGES J1631.6-4756
adding source FGES J1633.0-4746
adding source FGES J1652.2-4633
adding source FGES J1655.5-4737
adding source FHES J1501.0-6310
adding source FHES J1642.1-5428
adding source G337.0-0.1
adding source GAL_V02
adding source HESS J1507-622
adding source HESS J1534-571
adding source HESS J1614-518
adding source HESS J1616-508
adding source MSH 15-52
adding source MSH 15-56 PWN
adding source MSH 15-56 SNR
Working on...
/scratch/kocevski/745889/ft1_filtered_4FGL_J1807.9-6412_daily_bin1760.fits......................!
real 128.95
user 126.00
sys 1.36

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/745889/ft1_filtered_4FGL_J1807.9-6412_daily_bin1760.fits', '/scratch/kocevski/745889/ft2_4FGL_J1807.9-6412_daily_bin1760.fits', expMap='/scratch/kocevski/745889/expmap_695520001_695779201_4FGL_J1807.9-6412_daily_bin1760.fits', expCube='/scratch/kocevski/745889/ltcube_695520001_695779201_4FGL_J1807.9-6412_daily_bin1760.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/745889/Model_4FGL_J1807.9-6412_daily_bin1760.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1807.9-6412'

4FGL J1807.9-6412
   Spectrum: PowerLaw
752    Prefactor:  2.359e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
753        Index:  2.523e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
754        Scale:  1.207e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/745889/ft1_filtered_4FGL_J1807.9-6412_daily_bin1760.fits
Spacecraft file(s): /scratch/kocevski/745889/ft2_4FGL_J1807.9-6412_daily_bin1760.fits
Exposure map: /scratch/kocevski/745889/expmap_695520001_695779201_4FGL_J1807.9-6412_daily_bin1760.fits
Exposure cube: /scratch/kocevski/745889/ltcube_695520001_695779201_4FGL_J1807.9-6412_daily_bin1760.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/745889/Model_4FGL_J1807.9-6412_daily_bin1760.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) = 3031.03233646

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    22.078       1.0000          .0000       .10000E+07
     2 'Prefactor '    .46408E-03   1.0000          .0000       .10000E+07
     3 'norm      '    .19495E-03   1.0000          .0000       .10000E+07
     4 'norm      '    77.786       1.0000          .0000       .10000E+07
     5 'Prefactor '    .12953E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .13625E+06   1.0000          .0000       .10000E+07
     7 'norm      '    .73942E-05   1.0000          .0000       .10000E+07
     8 'Prefactor '    .56863       1.0000          .0000       .10000E+07
     9 'Prefactor '    .75365       1.0000          .0000       .10000E+07
    10 'Prefactor '    .23375E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    .38490E-02   1.0000          .0000       .10000E+07
    12 'norm      '    46.954       1.0000          .0000       .10000E+07
    13 'norm      '    .18917E-05   1.0000          .0000       .10000E+07
    14 'Prefactor '    .27864       1.0000          .0000       .10000E+07
    15 'norm      '    .33762E-01   1.0000          .0000       .10000E+07
    16 'Prefactor '    .59312       1.0000          .0000       .10000E+07
    17 'Prefactor '    .54747       1.0000          .0000       .10000E+07
    18 'norm      '    .89122E-03   1.0000          .0000       .10000E+07
    19 'Prefactor '    32.502       1.0000          .0000       .10000E+07
    20 'norm      '    .42935E-05   1.0000          .0000       .10000E+07
    21 'Normalizat'    2.6093       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .15628       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1126E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3030.868     FROM MIGRAD    STATUS=CONVERGED    620 CALLS     2782 TOTAL
                     EDM=   .66E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          22.030        20.986        .53373E-06    .58159E-04
   2  Prefactor     .44409E-09    18.948       -.10019E-05** at limit **
   3  norm          .16653E-09    20.430       -.82142E-06** at limit **
   4  norm          92.783        94.166        .60547E-05   -.54565E-04
   5  Prefactor     .55511E-10    26.987       -.35666E-06** at limit **
   6  Prefactor     .13993E+06    22704.       -.37400E-04    .39738E-03
   7  norm           .0000        165.89       -.13045E-06** at limit **
   8  Prefactor     .27756E-09    354.44       -.19712E-05** at limit **
   9  Prefactor      .0000        345.95       -.23506E-06** at limit **
  10  Prefactor     .33307E-09    18.914       -.98379E-06** at limit **
  11  Prefactor     .55511E-10    8.0744       -.37492E-06** at limit **
  12  norm          .50515E-08    1688.4       -.24875E-05** at limit **
  13  norm          .55511E-10    1.6013       -.43679E-06** at limit **
  14  Prefactor     .11102E-09    74.519       -.46883E-06** at limit **
  15  norm          .28866E-08    14.976       -.48717E-06** at limit **
  16  Prefactor     .49960E-09    180.44       -.14710E-05** at limit **
  17  Prefactor     .55511E-10    152.49       -.14458E-06** at limit **
  18  norm           .0000        8.9554       -.43273E-06** at limit **
  19  Prefactor     33.159        25.493        .30196E-05    .44197E-04
  20  norm          .49960E-09    2.7859        .31582E-06** at limit **
  21  Normalizat    2.5703        .56253       -.39625E-04    .26410E-04
  22  Prefactor     .15975        .13136       -.63787E-05   -.87156E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 22.0296
  Prefactor  = 4.44089e-10
  norm       = 1.66533e-10
  norm       = 92.7826
  Prefactor  = 5.55112e-11
  Prefactor  = 139928
  norm       = 0
  Prefactor  = 2.77556e-10
  Prefactor  = 0
  Prefactor  = 3.33067e-10
  Prefactor  = 5.55112e-11
  norm       = 5.05151e-09
  norm       = 5.55112e-11
  Prefactor  = 1.11022e-10
  norm       = 2.88658e-09
  Prefactor  = 4.996e-10
  Prefactor  = 5.55112e-11
  norm       = 0
  Prefactor  = 33.1593
  norm       = 4.996e-10
  Normalizat = 2.57032
  Prefactor  = 0.159749
 **********
 **   18 **HESSE 
 **********

 FCN=   3030.868     FROM HESSE     STATUS=OK           330 CALLS     3112 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          22.030        21.005        .85152E-05   -1.5614    
   2  Prefactor     .44409E-09    18.592        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .16653E-09    20.110        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          92.783        93.823        .45356E-05   -1.5515    
   5  Prefactor     .55511E-10    26.790        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .13993E+06    22634.        .77693E-06   -.80401    
   7  norm           .0000        165.43        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .27756E-09    347.16        .14417E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        344.72        .11291E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .33307E-09    18.553        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .55511E-10    8.0120        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .50515E-08    1546.3        .29190E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .55511E-10    1.5873        .68027E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .11102E-09    74.219        .21032E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .28866E-08    15.123        .20789E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .49960E-09    177.70        .13969E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .55511E-10    152.18        .14814E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm           .0000        8.9397        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     33.159        25.413        .70172E-05   -1.5593    
  20  norm          .49960E-09    2.8619        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    2.5703        .56132        .31235E-03   -.50914    
  22  Prefactor     .15975        .13083        .27368E-03   -1.3173    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1924e-09
Minuit parameter uncertainties:
  1  21.0054
  2  0.000181648
  3  0.000121848
  4  93.8241
  5  7.3591e-05
  6  22650.2
  7  6.59865e-05
  8  0.000601745
  9  0.000164331
  10  0.000159455
  11  4.8308e-05
  12  0.00559033
  13  1.90406e-05
  14  0.000198784
  15  0.000418119
  16  0.000588026
  17  0.000141553
  18  3.07416e-05
  19  25.4133
  20  7.50501e-05
  21  0.562885
  22  0.131071
Done.

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

Extracting fit parameters...

4FGL J1807.9-6412
   Spectrum: PowerLaw
752    Prefactor:  5.551e-11  4.831e-05  0.000e+00  1.000e+06 ( 1.000e-13)
753        Index:  2.523e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
754        Scale:  1.207e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1099    Prefactor:  1.597e-01  1.311e-01  0.000e+00  1.000e+01 ( 1.000e+00)
1100        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1101        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1070   Normalization:  2.570e+00  5.629e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 271.993 -64.209
Photon Flux Upper Limit: 1.57e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.22e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/745889/likelihoodResults_695520001_695779201_4FGL_J1807.9-6412_daily_bin1760.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) = 3030.89192536
delta logL = -0.0235135496641

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3030.86841212
delta logL = -3.11672465614e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   3030.868     FROM MIGRAD    STATUS=CONVERGED     39 CALLS      251 TOTAL
                     EDM=   .96E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        14.965        .42118E-03** at limit **
   2  Index         2.0937        1.4250        .10263E-03     .0000    
   3  Normalizat    2.5703        1.0090       -.11700E-05   -.53797E-04
   4  Prefactor     .15975        .42583        .86415E-06   -.79552E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.0937
  Normalizat = 2.57032
  Prefactor  = 0.159751
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   3030.868     FROM HESSE     STATUS=FAILED         9 CALLS      260 TOTAL
                     EDM=   .96E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        14.965        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .47735        1.8005        .10263E-03   -.62028    
   3  Normalizat    2.5703        1.0090       -.11700E-05   -.50914    
   4  Prefactor     .15975        .42583        .86415E-06   -1.3173    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 9.6153e-12
Minuit parameter uncertainties:
  1  9.44828e-07
  2  1.45591
  3  1.01818
  4  0.434477
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/745889': 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) = 3030.86841181
delta logL = 6.32098817732e-11

Extracting fit parameters...

4FGL J1807.9-6412
   Spectrum: PowerLaw
752    Prefactor:  0.000e+00  9.448e-07  0.000e+00  1.000e+06 ( 1.000e-13)
753        Index:  2.094e+00  1.456e+00  0.000e+00  1.000e+01 (-1.000e+00)
754        Scale:  1.207e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1099    Prefactor:  1.598e-01  4.345e-01  0.000e+00  1.000e+01 ( 1.000e+00)
1100        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1101        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1070   Normalization:  2.570e+00  1.018e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 271.993 -64.209

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/745889/cmap_HighResolution_695520001_695779201_4FGL_J1807.9-6412_daily_bin1760.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.22e-02', job_status='DONE', photon_flux_upper_limit='1.57e-07', time_completed='2023-01-19 01:39:34.541162', job_id='745889', GAL2='0.16', fit_tolerance='1e-08', EG2='2.57', EG='2.57', time_epoch_completed='1674121174.54', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.16', dlogl='6.32e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='1760' AND source_name='4FGL J1807.9-6412' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Jan 19 01:39:34 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0121>
Subject: Job 745889: <4FGL_J1807.9-6412_daily_bin1760> in cluster <slac> Done

Job <4FGL_J1807.9-6412_daily_bin1760> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Jan 19 01:25:21 2023
Job was executed on host(s) <bullet0121>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jan 19 01:26:13 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Jan 19 01:26:13 2023
Terminated at Thu Jan 19 01:39:35 2023
Results reported at Thu Jan 19 01:39:35 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1807.9-6412_daily_bin1760 271.993 -64.209 695520001 695779201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1807.9-6412 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   777.00 sec.
    Max Memory :                                 1260 MB
    Average Memory :                             373.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   803 sec.
    Turnaround time :                            854 sec.

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

