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


Performing analysis on: 4FGL_J1204.8+0407_daily_bin1763
RA = 181.203, Dec = 4.12
tmin = 696297601, tmax = 696556801
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='279384', job_status='RUN', time_executed='2023-01-28 00:52:32.156772', time_epoch_executed='1674895952.16' WHERE source_name='4FGL J1204.8+0407' and cadence='daily' and bin_id='1763'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/279384

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/279384/ft1_4FGL_J1204.8+0407_daily_bin1763.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/279384/ft2_4FGL_J1204.8+0407_daily_bin1763.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/279384/ft1_4FGL_J1204.8+0407_daily_bin1763.fits outfile=/scratch/kocevski/279384/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin1763.fits ra=181.203 dec=4.12 rad=12.0 tmin=696297601.0 tmax=696556801.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.67
user 3.40
sys 0.22

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

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

Number of photons that the gtmktime cut: 686

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/279384/ft1_filtered_4FGL_J1204.8+0407_daily_bin1763.fits" evtable="EVENTS" scfile=/scratch/kocevski/279384/ft2_4FGL_J1204.8+0407_daily_bin1763.fits sctable="SC_DATA" outfile=/scratch/kocevski/279384/ltcube_696297601_696556801_4FGL_J1204.8+0407_daily_bin1763.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/279384/ft2_4FGL_J1204.8+0407_daily_bin1763.fits
.....................!
real 15.20
user 14.61
sys 0.43

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/279384/ft1_filtered_4FGL_J1204.8+0407_daily_bin1763.fits evtable="EVENTS" scfile=/scratch/kocevski/279384/ft2_4FGL_J1204.8+0407_daily_bin1763.fits sctable="SC_DATA" expcube=/scratch/kocevski/279384/ltcube_696297601_696556801_4FGL_J1204.8+0407_daily_bin1763.fits outfile=/scratch/kocevski/279384/expmap_696297601_696556801_4FGL_J1204.8+0407_daily_bin1763.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/279384/ltcube_696297601_696556801_4FGL_J1204.8+0407_daily_bin1763.fits
.....................!
real 193.73
user 186.48
sys 6.17

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/279384/ft1_filtered_4FGL_J1204.8+0407_daily_bin1763.fits scfile=/scratch/kocevski/279384/ft2_4FGL_J1204.8+0407_daily_bin1763.fits outfile=/scratch/kocevski/279384/cmap_696297601_696556801_4FGL_J1204.8+0407_daily_bin1763.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.57
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/279384/ft1_filtered_4FGL_J1204.8+0407_daily_bin1763.fits scfile=/scratch/kocevski/279384/ft2_4FGL_J1204.8+0407_daily_bin1763.fits outfile=/scratch/kocevski/279384/cmap_HighResolution_696297601_696556801_4FGL_J1204.8+0407_daily_bin1763.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.57
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .27221       1.0000          .0000       .10000E+07
     2 'Prefactor '    .61062E-09   1.0000          .0000       .10000E+07
     3 'Prefactor '    128.69       1.0000          .0000       .10000E+07
     4 'Prefactor '    .76290E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    .18762E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .43440E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    2.2998       1.0000          .0000       .10000E+07
     8 'Prefactor '    67.487       1.0000          .0000       .10000E+07
     9 'Prefactor '    .14971E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    .96978E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    13.967       1.0000          .0000       .10000E+07
    12 'Prefactor '    .44479E-01   1.0000          .0000       .10000E+07
    13 'Prefactor '    2.7699       1.0000          .0000       .10000E+07
    14 'norm      '    2.2270       1.0000          .0000       .10000E+07
    15 'norm      '    6.5510       1.0000          .0000       .10000E+07
    16 'Prefactor '    15.124       1.0000          .0000       .10000E+07
    17 'norm      '    .31275E-02   1.0000          .0000       .10000E+07
    18 'norm      '    1.5445       1.0000          .0000       .10000E+07
    19 'Prefactor '    .80855E-03   1.0000          .0000       .10000E+07
    20 'Prefactor '    1.4554       1.0000          .0000       .10000E+07
    21 'norm      '    .76836       1.0000          .0000       .10000E+07
    22 'Prefactor '    .14976E-04   1.0000          .0000       .10000E+07
    23 'Normalizat'    1.4417       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .80448       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=   7409.078     FROM MIGRAD    STATUS=CONVERGED    170 CALLS     1978 TOTAL
                     EDM=   .90E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .27511        1.7339        .45560E-07    .17591E-02
   2  Prefactor     .38858E-09    4.8535       -.74759E-07** at limit **
   3  Prefactor     130.13        33.081        .15200E-06   -.33044    
   4  Prefactor     .23481E-07    4.8597        .21855E-07** at limit **
   5  Prefactor     .16653E-09    4.4712        .46088E-07** at limit **
   6  Prefactor     .13878E-08    8.3231        .55784E-07** at limit **
   7  Prefactor     2.3726        9.0793        .36027E-07    .54774E-03
   8  Prefactor     71.295        87.358        .54046E-06    .92256E-01
   9  Prefactor     .54401E-08    15.412       -.11442E-06** at limit **
  10  Prefactor     .61562E-07    5.1663        .10256E-07** at limit **
  11  Prefactor     14.002        1.1835        .83651E-08    .22381E-02
  12  Prefactor     .22204E-09    18.521       -.10043E-06** at limit **
  13  Prefactor     2.7875        1.2238        .73725E-08    .51720E-02
  14  norm          2.2265        1.8264       -.32345E-07   -.69639E-02
  15  norm          6.5416        3.9843       -.20408E-08   -.20620E-03
  16  Prefactor     15.178        1.6013        .50494E-08    .54336E-01
  17  norm          .12157E-07    12.655        .10660E-06** at limit **
  18  norm          1.5462        .58463        .80034E-08    .77401E-02
  19  Prefactor     .44409E-09    5.3285        .80361E-07** at limit **
  20  Prefactor     1.4797        9.2308       -.49330E-07   -.50863E-03
  21  norm          .77191        1.2917       -.11754E-07   -.16503E-02
  22  Prefactor     .55511E-10    2.0930        .53067E-07** at limit **
  23  Normalizat    1.4400        .23329       -.42586E-06    .13162E-05
  24  Prefactor     .80446        .18478       -.75745E-07   -.19941E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.275108
  Prefactor  = 3.88578e-10
  Prefactor  = 130.129
  Prefactor  = 2.34812e-08
  Prefactor  = 1.66533e-10
  Prefactor  = 1.38778e-09
  Prefactor  = 2.37264
  Prefactor  = 71.2949
  Prefactor  = 5.44009e-09
  Prefactor  = 6.15619e-08
  Prefactor  = 14.0025
  Prefactor  = 2.22045e-10
  Prefactor  = 2.78747
  norm       = 2.22653
  norm       = 6.54163
  Prefactor  = 15.1775
  norm       = 1.21569e-08
  norm       = 1.54615
  Prefactor  = 4.44089e-10
  Prefactor  = 1.47973
  norm       = 0.771907
  Prefactor  = 5.55112e-11
  Normalizat = 1.43997
  Prefactor  = 0.804464
 **********
 **   18 **HESSE 
 **********

 FCN=   7409.078     FROM HESSE     STATUS=OK           447 CALLS     2425 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .27511        1.0586        .31553E-02   -1.5697    
   2  Prefactor     .38858E-09    4.8387        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     130.13        107.54        .88156E-04   -1.5480    
   4  Prefactor     .23481E-07    9.9114        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .16653E-09    4.4669        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .13878E-08    8.2365        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.3726        9.0701        .67645E-03   -1.5677    
   8  Prefactor     71.295        92.365        .12174E-03   -1.5539    
   9  Prefactor     .54401E-08    15.404        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .61562E-07    9.8711        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     14.002        16.398        .26775E-03   -1.5633    
  12  Prefactor     .22204E-09    18.150        .15768E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.7875        11.076        .61125E-03   -1.5675    
  14  norm          2.2265        2.1773        .68869E-03   -1.5678    
  15  norm          6.5416        3.9911        .39185E-03   -1.5657    
  16  Prefactor     15.178        22.110        .25728E-03   -1.5630    
  17  norm          .12157E-07    12.679        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.5462        .59550        .81432E-03   -1.5683    
  19  Prefactor     .44409E-09    5.3234        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.4797        9.2519        .89213E-03   -1.5684    
  21  norm          .77191        1.3053        .55324E-03   -1.5690    
  22  Prefactor     .55511E-10    2.0961        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.4400        .19858        .57653E-01   -.79479    
  24  Prefactor     .80446        .15717        .43776E-01   -.99564    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.18396e-05
Minuit parameter uncertainties:
  1  1.05858
  2  8.53348e-05
  3  107.541
  4  0.000965044
  5  5.04854e-05
  6  0.000215749
  7  9.07018
  8  92.3668
  9  0.000580038
  10  0.00155924
  11  16.3979
  12  0.000132465
  13  11.0763
  14  2.17728
  15  3.9911
  16  22.1098
  17  0.000785136
  18  0.595497
  19  9.60617e-05
  20  7.4001
  21  1.30534
  22  2.39293e-05
  23  0.198683
  24  0.157258
Done.

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

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  6.156e-08  1.559e-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:  8.045e-01  1.573e-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.440e+00  1.987e-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: 5.52e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.32e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/279384/likelihoodResults_696297601_696556801_4FGL_J1204.8+0407_daily_bin1763.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) = 7409.07808231
delta logL = -0.000123248583805

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7409.07795948
delta logL = -4.17625415139e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12402E-05   1.0000          .0000       .10000E+07
     2 'Index     '    .88719       1.0000          .0000       10.000    
     3 'Normalizat'    1.4399       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80443       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=   7409.078     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      252 TOTAL
                     EDM=   .22E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        9.0563        .42118E-03** at limit **
   2  Index         2.6945        1.9235       -.59527E-04     .0000    
   3  Normalizat    1.4400        1.0566        .92204E-05    .15716E-04
   4  Prefactor     .80446        1.1529       -.85765E-05    .18576E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.69454
  Normalizat = 1.43997
  Prefactor  = 0.804464
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   7409.078     FROM HESSE     STATUS=FAILED         9 CALLS      261 TOTAL
                     EDM=   .22E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        9.0563        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .82199        2.1005       -.59527E-04   -.47923    
   3  Normalizat    1.4400        1.0566        .92204E-05   -.79479    
   4  Prefactor     .80446        1.1529       -.85765E-05   -.99564    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.23646e-13
Minuit parameter uncertainties:
  1  1.89779e-06
  2  1.98951
  3  1.07332
  4  1.1906
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/279384': 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) = 7409.07795906
delta logL = 3.11865733238e-09

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  0.000e+00  1.898e-06  0.000e+00  1.000e+06 ( 1.000e-13)
317        Index:  2.695e+00  1.990e+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:  8.045e-01  1.191e+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.440e+00  1.073e+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/279384/cmap_HighResolution_696297601_696556801_4FGL_J1204.8+0407_daily_bin1763.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.32e-03', job_status='DONE', photon_flux_upper_limit='5.52e-08', time_completed='2023-01-28 01:04:34.391445', job_id='279384', GAL2='0.80', fit_tolerance='1e-08', EG2='1.44', EG='1.44', time_epoch_completed='1674896674.39', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='3.12e-09', ts2='0.00', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1763' AND source_name='4FGL J1204.8+0407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Jan 28 01:04:34 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 279384: <4FGL_J1204.8+0407_daily_bin1763> in cluster <slac> Done

Job <4FGL_J1204.8+0407_daily_bin1763> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat Jan 28 00:50:18 2023
Job was executed on host(s) <bullet0213>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jan 28 00:50:35 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jan 28 00:50:35 2023
Terminated at Sat Jan 28 01:04:35 2023
Results reported at Sat Jan 28 01:04:35 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1204.8+0407_daily_bin1763 181.203 4.12 696297601 696556801 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 :                                   722.19 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             337.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   839 sec.
    Turnaround time :                            857 sec.

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

