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


Performing analysis on: 4FGL_J1204.8+0407_daily_bin1766
RA = 181.203, Dec = 4.12
tmin = 697075201, tmax = 697334401
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='847800', job_status='RUN', time_executed='2023-02-06 00:47:14.678316', time_epoch_executed='1675673234.68' WHERE source_name='4FGL J1204.8+0407' and cadence='daily' and bin_id='1766'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/847800

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/847800/ft1_4FGL_J1204.8+0407_daily_bin1766.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/847800/ft2_4FGL_J1204.8+0407_daily_bin1766.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/847800/ft1_4FGL_J1204.8+0407_daily_bin1766.fits outfile=/scratch/kocevski/847800/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin1766.fits ra=181.203 dec=4.12 rad=12.0 tmin=697075201.0 tmax=697334401.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.72
user 3.43
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/847800/ft2_4FGL_J1204.8+0407_daily_bin1766.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/847800/ft2_4FGL_J1204.8+0407_daily_bin1766.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/847800/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin1766.fits evtable="EVENTS" outfile="/scratch/kocevski/847800/ft1_filtered_4FGL_J1204.8+0407_daily_bin1766.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.52
user 0.34
sys 0.15

Number of photons that the gtmktime cut: 617

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/847800/ft1_filtered_4FGL_J1204.8+0407_daily_bin1766.fits" evtable="EVENTS" scfile=/scratch/kocevski/847800/ft2_4FGL_J1204.8+0407_daily_bin1766.fits sctable="SC_DATA" outfile=/scratch/kocevski/847800/ltcube_697075201_697334401_4FGL_J1204.8+0407_daily_bin1766.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/847800/ft2_4FGL_J1204.8+0407_daily_bin1766.fits
.....................!
real 14.66
user 14.26
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/847800/ft1_filtered_4FGL_J1204.8+0407_daily_bin1766.fits evtable="EVENTS" scfile=/scratch/kocevski/847800/ft2_4FGL_J1204.8+0407_daily_bin1766.fits sctable="SC_DATA" expcube=/scratch/kocevski/847800/ltcube_697075201_697334401_4FGL_J1204.8+0407_daily_bin1766.fits outfile=/scratch/kocevski/847800/expmap_697075201_697334401_4FGL_J1204.8+0407_daily_bin1766.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/847800/ltcube_697075201_697334401_4FGL_J1204.8+0407_daily_bin1766.fits
.....................!
real 192.45
user 185.99
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
Added 192 point sources and 0 extended sources

Setting source of interest to:
4FGL J1204.8+0407 @ 181.203 4.12

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/847800/ft1_filtered_4FGL_J1204.8+0407_daily_bin1766.fits scfile=/scratch/kocevski/847800/ft2_4FGL_J1204.8+0407_daily_bin1766.fits outfile=/scratch/kocevski/847800/cmap_697075201_697334401_4FGL_J1204.8+0407_daily_bin1766.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=181.203 yref=4.12 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/847800/ft1_filtered_4FGL_J1204.8+0407_daily_bin1766.fits scfile=/scratch/kocevski/847800/ft2_4FGL_J1204.8+0407_daily_bin1766.fits outfile=/scratch/kocevski/847800/cmap_HighResolution_697075201_697334401_4FGL_J1204.8+0407_daily_bin1766.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=181.203 yref=4.12 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.56
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/847800/ft1_filtered_4FGL_J1204.8+0407_daily_bin1766.fits evtable="EVENTS" scfile=/scratch/kocevski/847800/ft2_4FGL_J1204.8+0407_daily_bin1766.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/847800/Model_4FGL_J1204.8+0407_daily_bin1766.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/847800/ft1_filtered_4FGL_J1204.8+0407_daily_bin1766.fits.....................!
real 61.50
user 60.06
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/847800/ft1_filtered_4FGL_J1204.8+0407_daily_bin1766.fits', '/scratch/kocevski/847800/ft2_4FGL_J1204.8+0407_daily_bin1766.fits', expMap='/scratch/kocevski/847800/expmap_697075201_697334401_4FGL_J1204.8+0407_daily_bin1766.fits', expCube='/scratch/kocevski/847800/ltcube_697075201_697334401_4FGL_J1204.8+0407_daily_bin1766.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/847800/Model_4FGL_J1204.8+0407_daily_bin1766.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1204.8+0407'

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  3.692e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
317        Index:  2.578e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
318        Scale:  7.480e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/847800/ft1_filtered_4FGL_J1204.8+0407_daily_bin1766.fits
Spacecraft file(s): /scratch/kocevski/847800/ft2_4FGL_J1204.8+0407_daily_bin1766.fits
Exposure map: /scratch/kocevski/847800/expmap_697075201_697334401_4FGL_J1204.8+0407_daily_bin1766.fits
Exposure cube: /scratch/kocevski/847800/ltcube_697075201_697334401_4FGL_J1204.8+0407_daily_bin1766.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/847800/Model_4FGL_J1204.8+0407_daily_bin1766.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) = 6909.10062502

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.8689       1.0000          .0000       .10000E+07
     2 'Prefactor '    9.4772       1.0000          .0000       .10000E+07
     3 'Prefactor '    .76406E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    5.9529       1.0000          .0000       .10000E+07
     5 'Prefactor '    5.9888       1.0000          .0000       .10000E+07
     6 'Prefactor '    .68976E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    .75003       1.0000          .0000       .10000E+07
     8 'Prefactor '    .33104E-01   1.0000          .0000       .10000E+07
     9 'Prefactor '    .22876E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    .61632E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    28.749       1.0000          .0000       .10000E+07
    12 'Prefactor '    .57710E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    13.745       1.0000          .0000       .10000E+07
    14 'norm      '    .16111E-05   1.0000          .0000       .10000E+07
    15 'norm      '    2.1021       1.0000          .0000       .10000E+07
    16 'Prefactor '    5.4790       1.0000          .0000       .10000E+07
    17 'norm      '    .17647E-06   1.0000          .0000       .10000E+07
    18 'norm      '    .44631       1.0000          .0000       .10000E+07
    19 'Prefactor '    8.5542       1.0000          .0000       .10000E+07
    20 'Prefactor '    11.782       1.0000          .0000       .10000E+07
    21 'norm      '    1.0841       1.0000          .0000       .10000E+07
    22 'Prefactor '    10.731       1.0000          .0000       .10000E+07
    23 'Normalizat'    1.1312       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .92174       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6909.072     FROM MIGRAD    STATUS=CONVERGED    129 CALLS     1977 TOTAL
                     EDM=   .57E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.8689        1.7621       -.10954E-06   -.72700E-02
   2  Prefactor     9.2913        1.4892        .28950E-06    .87333E-02
   3  Prefactor     .29976E-08    28.650        .16541E-04** at limit **
   4  Prefactor     5.7851        7.5556       -.10657E-05    .15627E-01
   5  Prefactor     6.0528        6.5776        .13325E-05    .12899E-02
   6  Prefactor     .11657E-08    9.5139        .12455E-05** at limit **
   7  Prefactor     .62454        .70072        .99539E-06   -.23680E-02
   8  Prefactor     .33529E-07    43.763       -.20159E-05** at limit **
   9  Prefactor     .82712E-08    35.355       -.58082E-06** at limit **
  10  Prefactor     .65503E-08    3.9977       -.88413E-06** at limit **
  11  Prefactor     28.738        1.7895       -.18259E-07   -.12512E-02
  12  Prefactor     .71054E-08    3.8707       -.80934E-06** at limit **
  13  Prefactor     13.852        10.819       -.20966E-05    .24235E-02
  14  norm           .0000        1.7929        .94402E-06** at limit **
  15  norm          2.0988        2.3529       -.25863E-06    .41358E-03
  16  Prefactor     5.3833        1.2495        .47765E-06    .16782E-02
  17  norm          .72164E-09    14.325       -.60443E-06** at limit **
  18  norm          .44575        .39578        .14297E-06   -.12680E-01
  19  Prefactor     8.6053        2.7190       -.62294E-06    .17197E-01
  20  Prefactor     11.701        8.7693        .15331E-05    .33773E-01
  21  norm          1.0837        1.1777        .10564E-06   -.59008E-02
  22  Prefactor     10.690        4.7187       -.13545E-06    .63509E-01
  23  Normalizat    1.1316        .21734        .82913E-05   -.14325E-03
  24  Prefactor     .92196        .17791       -.74961E-05   -.34434E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.86889
  Prefactor  = 9.29131
  Prefactor  = 2.9976e-09
  Prefactor  = 5.78512
  Prefactor  = 6.05277
  Prefactor  = 1.16573e-09
  Prefactor  = 0.62454
  Prefactor  = 3.35287e-08
  Prefactor  = 8.27116e-09
  Prefactor  = 6.55032e-09
  Prefactor  = 28.7379
  Prefactor  = 7.10543e-09
  Prefactor  = 13.8523
  norm       = 0
  norm       = 2.09884
  Prefactor  = 5.38334
  norm       = 7.21645e-10
  norm       = 0.445754
  Prefactor  = 8.60528
  Prefactor  = 11.701
  norm       = 1.08365
  Prefactor  = 10.6902
  Normalizat = 1.13156
  Prefactor  = 0.921963
 **********
 **   18 **HESSE 
 **********

 FCN=   6909.072     FROM HESSE     STATUS=OK           451 CALLS     2428 TOTAL
                     EDM=   .49E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.8689        1.7665        .59988E-03   -1.5674    
   2  Prefactor     9.2913        18.656        .32529E-03   -1.5647    
   3  Prefactor     .29976E-08    28.842        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.7851        7.8679        .41132E-03   -1.5660    
   5  Prefactor     6.0528        6.6196        .41007E-03   -1.5659    
   6  Prefactor     .11657E-08    9.5294        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .62454        77.783        .56737E-03   -1.5692    
   8  Prefactor     .33529E-07    44.884        .16291E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .82712E-08    35.427        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .65503E-08    7.8058        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     28.738        27.132        .18654E-03   -1.5601    
  12  Prefactor     .71054E-08    7.8426        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     13.852        11.556        .26991E-03   -1.5634    
  14  norm           .0000        1.7852        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.0988        2.3861        .71146E-03   -1.5679    
  16  Prefactor     5.3833        22.929        .42902E-03   -1.5662    
  17  norm          .72164E-09    14.352        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .44575        .41363        .84306E-03   -1.5695    
  19  Prefactor     8.6053        10.752        .34250E-03   -1.5649    
  20  Prefactor     11.701        9.4099        .29160E-03   -1.5640    
  21  norm          1.0837        1.2114        .11537E-02   -1.5687    
  22  Prefactor     10.690        8.5518        .30561E-03   -1.5643    
  23  Normalizat    1.1316        .19011        .60369E-01   -.88745    
  24  Prefactor     .92196        .15299        .45282E-01   -.95378    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.9304e-08
Minuit parameter uncertainties:
  1  1.76655
  2  18.6566
  3  0.000589874
  4  7.86795
  5  6.61961
  6  0.000212492
  7  13.9399
  8  0.00245395
  9  0.00108192
  10  0.00045173
  11  27.132
  12  0.000471696
  13  11.5559
  14  6.70348e-06
  15  2.38612
  16  22.2203
  17  0.00020421
  18  0.413628
  19  10.7519
  20  9.40995
  21  1.21145
  22  8.55181
  23  0.190224
  24  0.15306
Done.

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

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  6.550e-09  4.517e-04  0.000e+00  1.000e+06 ( 1.000e-13)
317        Index:  2.578e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
318        Scale:  7.480e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  9.220e-01  1.531e-01  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  1.132e+00  1.902e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 181.203 4.120
Photon Flux Upper Limit: 4.83e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.77e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/847800/likelihoodResults_697075201_697334401_4FGL_J1204.8+0407_daily_bin1766.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): 102
logL (Free Index) = 6909.07165884
delta logL = -0.000152905578034

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6909.07150616
delta logL = -2.18378772843e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   6909.072     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      297 TOTAL
                     EDM=   .63E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.4121        .42118E-03** at limit **
   2  Index         4.1660        1.3016       -.17672E-04     .0000    
   3  Normalizat    1.1316        1.1359        .12751E-05    .19724E-04
   4  Prefactor     .92197        1.2658        .49772E-05    .18750E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 4.16604
  Normalizat = 1.13156
  Prefactor  = 0.921965
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6909.072     FROM HESSE     STATUS=FAILED         9 CALLS      306 TOTAL
                     EDM=   .63E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.4121        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8655        2.3302       -.17672E-04   -.16758    
   3  Normalizat    1.1316        1.1359        .12751E-05   -.88745    
   4  Prefactor     .92197        1.2658        .49772E-05   -.95378    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 6.28612e-13
Minuit parameter uncertainties:
  1  1.67589e-06
  2  1.31718
  3  1.16198
  4  1.31013
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/847800': 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) = 6909.07150594
delta logL = 5.12045517098e-10

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  0.000e+00  1.676e-06  0.000e+00  1.000e+06 ( 1.000e-13)
317        Index:  4.166e+00  1.317e+00  0.000e+00  1.000e+01 (-1.000e+00)
318        Scale:  7.480e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  9.220e-01  1.310e+00  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  1.132e+00  1.162e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 181.203 4.120

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/847800/cmap_HighResolution_697075201_697334401_4FGL_J1204.8+0407_daily_bin1766.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.77e-03', job_status='DONE', photon_flux_upper_limit='4.83e-08', time_completed='2023-02-06 00:58:37.518005', job_id='847800', GAL2='0.92', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1675673917.52', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='5.12e-10', ts2='0.00', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1766' AND source_name='4FGL J1204.8+0407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Feb  6 00:58:37 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0022>
Subject: Job 847800: <4FGL_J1204.8+0407_daily_bin1766> in cluster <slac> Done

Job <4FGL_J1204.8+0407_daily_bin1766> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Mon Feb  6 00:45:14 2023
Job was executed on host(s) <bullet0022>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Feb  6 00:45:37 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Feb  6 00:45:37 2023
Terminated at Mon Feb  6 00:58:38 2023
Results reported at Mon Feb  6 00:58:38 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1204.8+0407_daily_bin1766 181.203 4.12 697075201 697334401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1204.8+0407 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   685.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             324.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   780 sec.
    Turnaround time :                            804 sec.

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

