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


Performing analysis on: 4FGL_J1204.8+0407_daily_bin1773
RA = 181.203, Dec = 4.12
tmin = 698889601, tmax = 699148801
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='789147', job_status='RUN', time_executed='2023-02-27 09:42:46.813166', time_epoch_executed='1677519766.81' WHERE source_name='4FGL J1204.8+0407' and cadence='daily' and bin_id='1773'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/789147

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/789147/ft1_4FGL_J1204.8+0407_daily_bin1773.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/789147/ft2_4FGL_J1204.8+0407_daily_bin1773.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/789147/ft1_4FGL_J1204.8+0407_daily_bin1773.fits outfile=/scratch/kocevski/789147/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin1773.fits ra=181.203 dec=4.12 rad=12.0 tmin=698889601.0 tmax=699148801.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.94
user 2.70
sys 0.20

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

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

Number of photons that the gtmktime cut: 84

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/789147/ft1_filtered_4FGL_J1204.8+0407_daily_bin1773.fits" evtable="EVENTS" scfile=/scratch/kocevski/789147/ft2_4FGL_J1204.8+0407_daily_bin1773.fits sctable="SC_DATA" outfile=/scratch/kocevski/789147/ltcube_698889601_699148801_4FGL_J1204.8+0407_daily_bin1773.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/789147/ft2_4FGL_J1204.8+0407_daily_bin1773.fits
.....................!
real 15.21
user 14.73
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/789147/ft1_filtered_4FGL_J1204.8+0407_daily_bin1773.fits evtable="EVENTS" scfile=/scratch/kocevski/789147/ft2_4FGL_J1204.8+0407_daily_bin1773.fits sctable="SC_DATA" expcube=/scratch/kocevski/789147/ltcube_698889601_699148801_4FGL_J1204.8+0407_daily_bin1773.fits outfile=/scratch/kocevski/789147/expmap_698889601_699148801_4FGL_J1204.8+0407_daily_bin1773.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/789147/ltcube_698889601_699148801_4FGL_J1204.8+0407_daily_bin1773.fits
.....................!
real 190.57
user 185.29
sys 4.70

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/789147/ft1_filtered_4FGL_J1204.8+0407_daily_bin1773.fits scfile=/scratch/kocevski/789147/ft2_4FGL_J1204.8+0407_daily_bin1773.fits outfile=/scratch/kocevski/789147/cmap_698889601_699148801_4FGL_J1204.8+0407_daily_bin1773.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.59
user 0.38
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .34756E-04   1.0000          .0000       .10000E+07
     2 'Prefactor '    .37902E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    1.2388       1.0000          .0000       .10000E+07
     4 'Prefactor '    .31282E-01   1.0000          .0000       .10000E+07
     5 'Prefactor '    .98042E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    109.39       1.0000          .0000       .10000E+07
     7 'Prefactor '    .17460E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    5.3789       1.0000          .0000       .10000E+07
     9 'Prefactor '    .81172E-04   1.0000          .0000       .10000E+07
    10 'Prefactor '    .82800E-04   1.0000          .0000       .10000E+07
    11 'Prefactor '    6.8435       1.0000          .0000       .10000E+07
    12 'Prefactor '    .21692E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    24.353       1.0000          .0000       .10000E+07
    14 'norm      '    .28574E-05   1.0000          .0000       .10000E+07
    15 'norm      '    .65427       1.0000          .0000       .10000E+07
    16 'Prefactor '    .34912E-02   1.0000          .0000       .10000E+07
    17 'norm      '    .53150E-01   1.0000          .0000       .10000E+07
    18 'norm      '    .27135E-01   1.0000          .0000       .10000E+07
    19 'Prefactor '    .37169E-02   1.0000          .0000       .10000E+07
    20 'Prefactor '    .33940E-02   1.0000          .0000       .10000E+07
    21 'norm      '    7.2445       1.0000          .0000       .10000E+07
    22 'Prefactor '    12.944       1.0000          .0000       .10000E+07
    23 'Normalizat'    .10002E-01   1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.4835       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=   1071.247     FROM MIGRAD    STATUS=CONVERGED    329 CALLS     2171 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        5.0788        .24116E-07** at limit **
   2  Prefactor     .11102E-09    26.372        .17836E-06** at limit **
   3  Prefactor     .41587E-04    317.18       -.24647E-06** at limit **
   4  Prefactor     .27200E-08    44.065        .24986E-06** at limit **
   5  Prefactor     .55511E-10    12.846       -.16812E-07** at limit **
   6  Prefactor     114.24        132.77        .77051E-07   -.45392E-01
   7  Prefactor     .16098E-08    28.257        .17877E-06** at limit **
   8  Prefactor     .25339E-04    408.89        .16340E-05** at limit **
   9  Prefactor     .55432E-05    61.903        .17806E-06** at limit **
  10  Prefactor     .29380E-04    51.341        .23156E-06** at limit **
  11  Prefactor     7.6061        10.735       -.15571E-07   -.10374E-01
  12  Prefactor     .27011E-03    79.759        .47211E-06** at limit **
  13  Prefactor     24.404        27.708       -.49342E-07    .12906E-01
  14  norm          .55511E-10    3.4468        .37177E-07** at limit **
  15  norm          .49476        28.646       -.39091E-06   -.90957E-03
  16  Prefactor     .20617E-03    43.949        .20674E-07** at limit **
  17  norm           .0000        136.05       -.16165E-07** at limit **
  18  norm          .32468E-01    14.540       -.39962E-06** at limit **
  19  Prefactor     .62711E-04    80.955       -.49873E-07** at limit **
  20  Prefactor     .11102E-09    9.0343       -.55116E-07** at limit **
  21  norm          7.2517        4.9843       -.31310E-07   -.70672E-03
  22  Prefactor     12.818        20.093       -.10102E-06   -.12009E-02
  23  Normalizat    .10000E-01    .37663       -.65110E-06** at limit **
  24  Prefactor     1.4820        .25386        .46679E-06    .53590E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 1.11022e-10
  Prefactor  = 4.1587e-05
  Prefactor  = 2.72005e-09
  Prefactor  = 5.55112e-11
  Prefactor  = 114.245
  Prefactor  = 1.60982e-09
  Prefactor  = 2.53395e-05
  Prefactor  = 5.54323e-06
  Prefactor  = 2.93803e-05
  Prefactor  = 7.60607
  Prefactor  = 0.000270115
  Prefactor  = 24.4042
  norm       = 5.55112e-11
  norm       = 0.494759
  Prefactor  = 0.00020617
  norm       = 0
  norm       = 0.0324681
  Prefactor  = 6.27108e-05
  Prefactor  = 1.11022e-10
  norm       = 7.25174
  Prefactor  = 12.8182
  Normalizat = 0.01
  Prefactor  = 1.48202
 **********
 **   18 **HESSE 
 **********

 FCN=   1071.247     FROM HESSE     STATUS=OK           439 CALLS     2610 TOTAL
                     EDM=   .53E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        5.0951        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .11102E-09    26.324        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .41587E-04    325.55        .10076E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .27200E-08    44.002        .16384E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .55511E-10    12.947        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     114.24        137.33        .95619E-04   -1.5494    
   7  Prefactor     .16098E-08    28.291        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .25339E-04    410.46        .43307E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .55432E-05    63.174        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .29380E-04    134.87        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.6061        74.756        .38329E-03   -1.5653    
  12  Prefactor     .27011E-03    151.17        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     24.404        29.867        .20268E-03   -1.5609    
  14  norm          .55511E-10    3.4252        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .49476        28.073        .64501E-03   -1.5694    
  16  Prefactor     .20617E-03    118.57        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm           .0000        136.96        .15417E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .32468E-01    2.3387        .16606E-02   -1.5712    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .62711E-04    97.366        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .11102E-09    9.0294        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          7.2517        4.8898        .37243E-03   -1.5654    
  22  Prefactor     12.818        20.062        .27815E-03   -1.5636    
  23  Normalizat    .10000E-01    .33009        .20515       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     1.4820        .26734        .43053E-01   -.78045    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.34767e-06
Minuit parameter uncertainties:
  1  1.68471e-05
  2  9.57543e-05
  3  0.232724
  4  0.000694277
  5  6.03628e-05
  6  137.332
  7  0.000424796
  8  0.203984
  9  0.0374271
  10  0.1259
  11  47.6913
  12  0.404157
  13  29.8675
  14  2.46902e-05
  15  7.45373
  16  0.312704
  17  0.000112844
  18  0.551115
  19  0.156283
  20  6.11855e-05
  21  4.88985
  22  20.0622
  23  8.75522e-07
  24  0.267598
Done.

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

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  2.938e-05  1.259e-01  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.482e+00  2.676e-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.000e-02  8.755e-07  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.84e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.79e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/789147/likelihoodResults_698889601_699148801_4FGL_J1204.8+0407_daily_bin1773.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) = 1071.25051518
delta logL = -0.00355030837454

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1071.24696488
delta logL = -5.20344656252e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .39065E-04   1.0000          .0000       .10000E+07
     2 'Index     '    1.8951       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4820       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=   1071.247     FROM MIGRAD    STATUS=CONVERGED     41 CALLS      234 TOTAL
                     EDM=   .86E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        580.76       -.15430E-05** at limit **
   2  Index         1.5267        7.6245       -.54703E-04     .0000    
   3  Normalizat    .10000E-01    .38011       -.15694E-04** at limit **
   4  Prefactor     1.4820        .21130        .95916E-05    .46238E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.52667
  Normalizat = 0.01
  Prefactor  = 1.48202
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   1071.247     FROM HESSE     STATUS=FAILED        11 CALLS      245 TOTAL
                     EDM=   .86E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        595.36        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .21286        1.4344       -.54703E-04   -.76796    
   3  Normalizat    .10000E-01    .25505       -.15694E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.4820        1.0506        .95916E-05   -.78045    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 8.62782e-12
Minuit parameter uncertainties:
  1  9.62097e-06
  2  0.950596
  3  1.72075e-06
  4  1.06651
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/789147': 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) = 1071.24696476
delta logL = 1.08906306195e-07

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  0.000e+00  9.621e-06  0.000e+00  1.000e+06 ( 1.000e-13)
317        Index:  1.527e+00  9.506e-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.482e+00  1.067e+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.000e-02  1.721e-06  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/789147/cmap_HighResolution_698889601_699148801_4FGL_J1204.8+0407_daily_bin1773.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.79e-02', job_status='DONE', photon_flux_upper_limit='4.84e-07', time_completed='2023-02-27 09:49:01.254078', job_id='789147', GAL2='1.48', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1677520141.25', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.48', dlogl='1.09e-07', ts2='0.00', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1773' AND source_name='4FGL J1204.8+0407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Feb 27 09:49:01 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0195>
Subject: Job 789147: <4FGL_J1204.8+0407_daily_bin1773> in cluster <slac> Done

Job <4FGL_J1204.8+0407_daily_bin1773> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Feb 27 09:40:13 2023
Job was executed on host(s) <bullet0195>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Feb 27 09:40:14 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Feb 27 09:40:14 2023
Terminated at Mon Feb 27 09:49:13 2023
Results reported at Mon Feb 27 09:49:13 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1204.8+0407_daily_bin1773 181.203 4.12 698889601 699148801 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 :                                   373.25 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             237.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   539 sec.
    Turnaround time :                            540 sec.

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

