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


Performing analysis on: 4FGL_J1204.8+0407_daily_bin1747
RA = 181.203, Dec = 4.12
tmin = 692150401, tmax = 692409601
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='800802', job_status='RUN', time_executed='2022-12-11 00:52:24.806628', time_epoch_executed='1670748744.81' WHERE source_name='4FGL J1204.8+0407' and cadence='daily' and bin_id='1747'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/800802

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/800802/ft1_4FGL_J1204.8+0407_daily_bin1747.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/800802/ft2_4FGL_J1204.8+0407_daily_bin1747.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/800802/ft1_4FGL_J1204.8+0407_daily_bin1747.fits outfile=/scratch/kocevski/800802/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin1747.fits ra=181.203 dec=4.12 rad=12.0 tmin=692150401.0 tmax=692409601.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.99
user 3.74
sys 0.23

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

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

Number of photons that the gtmktime cut: 698

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/800802/ft1_filtered_4FGL_J1204.8+0407_daily_bin1747.fits" evtable="EVENTS" scfile=/scratch/kocevski/800802/ft2_4FGL_J1204.8+0407_daily_bin1747.fits sctable="SC_DATA" outfile=/scratch/kocevski/800802/ltcube_692150401_692409601_4FGL_J1204.8+0407_daily_bin1747.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/800802/ft2_4FGL_J1204.8+0407_daily_bin1747.fits
.....................!
real 11.98
user 11.58
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/800802/ft1_filtered_4FGL_J1204.8+0407_daily_bin1747.fits evtable="EVENTS" scfile=/scratch/kocevski/800802/ft2_4FGL_J1204.8+0407_daily_bin1747.fits sctable="SC_DATA" expcube=/scratch/kocevski/800802/ltcube_692150401_692409601_4FGL_J1204.8+0407_daily_bin1747.fits outfile=/scratch/kocevski/800802/expmap_692150401_692409601_4FGL_J1204.8+0407_daily_bin1747.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/800802/ltcube_692150401_692409601_4FGL_J1204.8+0407_daily_bin1747.fits
.....................!
real 189.92
user 185.06
sys 4.54

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/800802/ft1_filtered_4FGL_J1204.8+0407_daily_bin1747.fits scfile=/scratch/kocevski/800802/ft2_4FGL_J1204.8+0407_daily_bin1747.fits outfile=/scratch/kocevski/800802/cmap_692150401_692409601_4FGL_J1204.8+0407_daily_bin1747.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.60
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/800802/ft1_filtered_4FGL_J1204.8+0407_daily_bin1747.fits scfile=/scratch/kocevski/800802/ft2_4FGL_J1204.8+0407_daily_bin1747.fits outfile=/scratch/kocevski/800802/cmap_HighResolution_692150401_692409601_4FGL_J1204.8+0407_daily_bin1747.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.55
user 0.38
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/800802/ft1_filtered_4FGL_J1204.8+0407_daily_bin1747.fits', '/scratch/kocevski/800802/ft2_4FGL_J1204.8+0407_daily_bin1747.fits', expMap='/scratch/kocevski/800802/expmap_692150401_692409601_4FGL_J1204.8+0407_daily_bin1747.fits', expCube='/scratch/kocevski/800802/ltcube_692150401_692409601_4FGL_J1204.8+0407_daily_bin1747.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/800802/Model_4FGL_J1204.8+0407_daily_bin1747.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/800802/ft1_filtered_4FGL_J1204.8+0407_daily_bin1747.fits
Spacecraft file(s): /scratch/kocevski/800802/ft2_4FGL_J1204.8+0407_daily_bin1747.fits
Exposure map: /scratch/kocevski/800802/expmap_692150401_692409601_4FGL_J1204.8+0407_daily_bin1747.fits
Exposure cube: /scratch/kocevski/800802/ltcube_692150401_692409601_4FGL_J1204.8+0407_daily_bin1747.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/800802/Model_4FGL_J1204.8+0407_daily_bin1747.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) = 7696.75284901

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.4384       1.0000          .0000       .10000E+07
     2 'Prefactor '    .64185E-05   1.0000          .0000       .10000E+07
     3 'Prefactor '    .31206E-01   1.0000          .0000       .10000E+07
     4 'Prefactor '    4.9873       1.0000          .0000       .10000E+07
     5 'Prefactor '    .15221E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    3.5427       1.0000          .0000       .10000E+07
     7 'Prefactor '    1.2971       1.0000          .0000       .10000E+07
     8 'Prefactor '    .18686       1.0000          .0000       .10000E+07
     9 'Prefactor '    .68328E-04   1.0000          .0000       .10000E+07
    10 'Prefactor '    .50744E-04   1.0000          .0000       .10000E+07
    11 'Prefactor '    6.6323       1.0000          .0000       .10000E+07
    12 'Prefactor '    .76458E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    2.8397       1.0000          .0000       .10000E+07
    14 'norm      '    .15052E-04   1.0000          .0000       .10000E+07
    15 'norm      '    6.6821       1.0000          .0000       .10000E+07
    16 'Prefactor '    .81414E-02   1.0000          .0000       .10000E+07
    17 'norm      '    12.651       1.0000          .0000       .10000E+07
    18 'norm      '    .67424       1.0000          .0000       .10000E+07
    19 'Prefactor '    .32981E-02   1.0000          .0000       .10000E+07
    20 'Prefactor '    .70044E-06   1.0000          .0000       .10000E+07
    21 'norm      '    .35620       1.0000          .0000       .10000E+07
    22 'Prefactor '    16.476       1.0000          .0000       .10000E+07
    23 'Normalizat'    1.0438       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0525       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=   7696.646     FROM MIGRAD    STATUS=CONVERGED    150 CALLS     1598 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4375        2.1790        .28621E-06    .41970E-03
   2  Prefactor     .32957E-06    17.866        .24425E-06** at limit **
   3  Prefactor     .10103E-07    31.613       -.12326E-05** at limit **
   4  Prefactor     4.9802        5.9068        .26149E-06    .10019E-01
   5  Prefactor     .11102E-09    1.6024       -.13462E-06** at limit **
   6  Prefactor     3.4957        5.0844        .32011E-06   -.11673E-01
   7  Prefactor     1.2295        11.894        .11679E-05    .50846E-02
   8  Prefactor     .14799E-06    53.835       -.20407E-05** at limit **
   9  Prefactor     .81046E-08    4.3641        .19520E-06** at limit **
  10  Prefactor     .64504E-07    27.330       -.44317E-06** at limit **
  11  Prefactor     6.6127        8.5718       -.33860E-06   -.22094E-01
  12  Prefactor     .65420E-06    7.5995       -.60491E-07** at limit **
  13  Prefactor     2.9421        6.7144        .10086E-06   -.13293E-04
  14  norm          .13856E-06    1.3411       -.14035E-06** at limit **
  15  norm          6.6898        3.4461        .86054E-07    .26389E-03
  16  Prefactor     .88413E-06    7.2986       -.62613E-06** at limit **
  17  norm          12.635        1.0286        .45690E-08   -.80192E-03
  18  norm          .67401        .43541       -.16928E-06    .36976E-02
  19  Prefactor     .59397E-08    4.8258        .23438E-06** at limit **
  20  Prefactor     .55511E-10    1.9797        .41002E-07** at limit **
  21  norm          .35520        1.1334        .52399E-07    .76569E-03
  22  Prefactor     16.466        5.7818        .27674E-06    .72167E-02
  23  Normalizat    1.0438        .20503       -.80722E-05   -.39319E-04
  24  Prefactor     1.0526        .17101        .34381E-05    .54174E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.43752
  Prefactor  = 3.2957e-07
  Prefactor  = 1.0103e-08
  Prefactor  = 4.98015
  Prefactor  = 1.11022e-10
  Prefactor  = 3.49575
  Prefactor  = 1.22954
  Prefactor  = 1.47993e-07
  Prefactor  = 8.10463e-09
  Prefactor  = 6.4504e-08
  Prefactor  = 6.61271
  Prefactor  = 6.54199e-07
  Prefactor  = 2.94212
  norm       = 1.38556e-07
  norm       = 6.68983
  Prefactor  = 8.84126e-07
  norm       = 12.6348
  norm       = 0.674015
  Prefactor  = 5.93969e-09
  Prefactor  = 5.55112e-11
  norm       = 0.355203
  Prefactor  = 16.4665
  Normalizat = 1.04377
  Prefactor  = 1.05257
 **********
 **   18 **HESSE 
 **********

 FCN=   7696.646     FROM HESSE     STATUS=OK           449 CALLS     2047 TOTAL
                     EDM=   .34E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4375        2.1979        .89941E-03   -1.5684    
   2  Prefactor     .32957E-06    19.857        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10103E-07    31.688        .16387E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.9802        7.8800        .45007E-03   -1.5663    
   5  Prefactor     .11102E-09    1.6202        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.4957        10.540        .53677E-03   -1.5671    
   7  Prefactor     1.2295        13.098        .97056E-03   -1.5686    
   8  Prefactor     .14799E-06    56.103        .12014E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .81046E-08    9.0872        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .64504E-07    27.830        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.6127        9.6604        .38942E-03   -1.5657    
  12  Prefactor     .65420E-06    12.062        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.9421        7.8373        .60317E-03   -1.5674    
  14  norm          .13856E-06    1.4785        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          6.6898        3.5421        .38794E-03   -1.5656    
  16  Prefactor     .88413E-06    13.952        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          12.635        22.088        .28137E-03   -1.5637    
  18  norm          .67401        .44812        .62825E-03   -1.5692    
  19  Prefactor     .59397E-08    9.3922        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .55511E-10    1.9866        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .35520        1.1456        .94748E-03   -1.5696    
  22  Prefactor     16.466        7.9511        .24648E-03   -1.5627    
  23  Normalizat    1.0438        .17658        .61142E-01   -.91578    
  24  Prefactor     1.0526        .14639        .39767E-01   -.90997    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.37209e-07
Minuit parameter uncertainties:
  1  2.1979
  2  0.00511645
  3  0.00113278
  4  7.88004
  5  2.8003e-05
  6  10.5404
  7  8.02608
  8  0.00576327
  9  0.000543231
  10  0.00267951
  11  9.66041
  12  0.00561807
  13  7.83733
  14  0.00090518
  15  3.5421
  16  0.00702439
  17  22.0878
  18  0.448117
  19  0.000471321
  20  1.78333e-05
  21  1.14564
  22  7.95108
  23  0.176683
  24  0.146443
Done.

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

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  6.450e-08  2.680e-03  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:  1.053e+00  1.464e-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.044e+00  1.767e-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: 6.55e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.12e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/800802/likelihoodResults_692150401_692409601_4FGL_J1204.8+0407_daily_bin1747.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) = 7696.66351888
delta logL = -0.0176503714165

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7696.6458738
delta logL = -5.29064163857e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .55334E-03   1.0000          .0000       .10000E+07
     2 'Index     '    3.4372       1.0000          .0000       10.000    
     3 'Normalizat'    1.0440       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0522       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=   7696.646     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      247 TOTAL
                     EDM=   .11E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        12.484        .42118E-03** at limit **
   2  Index         1.7797        .80736       -.53011E-04     .0000    
   3  Normalizat    1.0438        1.2122        .23843E-04    .22637E-04
   4  Prefactor     1.0526        1.1889       -.14790E-04    .28005E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.77966
  Normalizat = 1.04377
  Prefactor  = 1.05257
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

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

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        12.484        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .32227        1.5300       -.53011E-04   -.69980    
   3  Normalizat    1.0438        1.2122        .23843E-04   -.91578    
   4  Prefactor     1.0526        1.1889       -.14790E-04   -.90997    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.13965e-12
Minuit parameter uncertainties:
  1  1.6969e-05
  2  0.813478
  3  1.24678
  4  1.2208
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/800802': 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) = 7696.64586851
delta logL = 1.17142917588e-09

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  0.000e+00  1.697e-05  0.000e+00  1.000e+06 ( 1.000e-13)
317        Index:  1.780e+00  8.135e-01  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:  1.053e+00  1.221e+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.044e+00  1.247e+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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/800802/cmap_HighResolution_692150401_692409601_4FGL_J1204.8+0407_daily_bin1747.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.12e-03', job_status='DONE', photon_flux_upper_limit='6.55e-08', time_completed='2022-12-11 01:03:38.805596', job_id='800802', GAL2='1.05', fit_tolerance='1e-08', EG2='1.04', EG='1.04', time_epoch_completed='1670749418.81', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='1.17e-09', ts2='0.00', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1747' AND source_name='4FGL J1204.8+0407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Dec 11 01:03:38 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0011>
Subject: Job 800802: <4FGL_J1204.8+0407_daily_bin1747> in cluster <slac> Done

Job <4FGL_J1204.8+0407_daily_bin1747> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Dec 11 00:50:19 2022
Job was executed on host(s) <bullet0011>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Dec 11 00:50:20 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Dec 11 00:50:20 2022
Terminated at Sun Dec 11 01:03:39 2022
Results reported at Sun Dec 11 01:03:39 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1204.8+0407_daily_bin1747 181.203 4.12 692150401 692409601 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 :                                   676.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             290.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   799 sec.
    Turnaround time :                            800 sec.

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

