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


Performing analysis on: 4FGL_J1204.8+0407_daily_bin1755
RA = 181.203, Dec = 4.12
tmin = 694224001, tmax = 694483201
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='822147', job_status='RUN', time_executed='2023-01-04 00:56:38.628647', time_epoch_executed='1672822598.63' WHERE source_name='4FGL J1204.8+0407' and cadence='daily' and bin_id='1755'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/822147

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/822147/ft1_4FGL_J1204.8+0407_daily_bin1755.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/822147/ft2_4FGL_J1204.8+0407_daily_bin1755.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/822147/ft1_4FGL_J1204.8+0407_daily_bin1755.fits outfile=/scratch/kocevski/822147/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin1755.fits ra=181.203 dec=4.12 rad=12.0 tmin=694224001.0 tmax=694483201.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.16
user 2.85
sys 0.20

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

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

Number of photons that the gtmktime cut: 494

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/822147/ft1_filtered_4FGL_J1204.8+0407_daily_bin1755.fits" evtable="EVENTS" scfile=/scratch/kocevski/822147/ft2_4FGL_J1204.8+0407_daily_bin1755.fits sctable="SC_DATA" outfile=/scratch/kocevski/822147/ltcube_694224001_694483201_4FGL_J1204.8+0407_daily_bin1755.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/822147/ft2_4FGL_J1204.8+0407_daily_bin1755.fits
.....................!
real 17.55
user 16.65
sys 0.57

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/822147/ft1_filtered_4FGL_J1204.8+0407_daily_bin1755.fits evtable="EVENTS" scfile=/scratch/kocevski/822147/ft2_4FGL_J1204.8+0407_daily_bin1755.fits sctable="SC_DATA" expcube=/scratch/kocevski/822147/ltcube_694224001_694483201_4FGL_J1204.8+0407_daily_bin1755.fits outfile=/scratch/kocevski/822147/expmap_694224001_694483201_4FGL_J1204.8+0407_daily_bin1755.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/822147/ltcube_694224001_694483201_4FGL_J1204.8+0407_daily_bin1755.fits
.....................!
real 194.72
user 186.88
sys 6.01

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/822147/ft1_filtered_4FGL_J1204.8+0407_daily_bin1755.fits scfile=/scratch/kocevski/822147/ft2_4FGL_J1204.8+0407_daily_bin1755.fits outfile=/scratch/kocevski/822147/cmap_694224001_694483201_4FGL_J1204.8+0407_daily_bin1755.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.41
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/822147/ft1_filtered_4FGL_J1204.8+0407_daily_bin1755.fits scfile=/scratch/kocevski/822147/ft2_4FGL_J1204.8+0407_daily_bin1755.fits outfile=/scratch/kocevski/822147/cmap_HighResolution_694224001_694483201_4FGL_J1204.8+0407_daily_bin1755.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.58
user 0.40
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.7589       1.0000          .0000       .10000E+07
     2 'Prefactor '    14.660       1.0000          .0000       .10000E+07
     3 'Prefactor '    20.357       1.0000          .0000       .10000E+07
     4 'Prefactor '    .84949E-06   1.0000          .0000       .10000E+07
     5 'Prefactor '    .38275E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    .34617E-05   1.0000          .0000       .10000E+07
     7 'Prefactor '    33.659       1.0000          .0000       .10000E+07
     8 'Prefactor '    .88492E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    .85276E-04   1.0000          .0000       .10000E+07
    10 'Prefactor '    57.342       1.0000          .0000       .10000E+07
    11 'Prefactor '    23.235       1.0000          .0000       .10000E+07
    12 'Prefactor '    .95222E-05   1.0000          .0000       .10000E+07
    13 'Prefactor '    .16653E-09   1.0000          .0000       .10000E+07
    14 'norm      '    .32316       1.0000          .0000       .10000E+07
    15 'norm      '    1.1240       1.0000          .0000       .10000E+07
    16 'Prefactor '    .22530E-03   1.0000          .0000       .10000E+07
    17 'norm      '    .46181E-04   1.0000          .0000       .10000E+07
    18 'norm      '    3.3386       1.0000          .0000       .10000E+07
    19 'Prefactor '    7.0261       1.0000          .0000       .10000E+07
    20 'Prefactor '    .59413E-04   1.0000          .0000       .10000E+07
    21 'norm      '    .39091E-06   1.0000          .0000       .10000E+07
    22 'Prefactor '    2.3648       1.0000          .0000       .10000E+07
    23 'Normalizat'    .71983       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.2317       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=   5433.745     FROM MIGRAD    STATUS=CONVERGED    255 CALLS     2241 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.7547        2.2285        .29434E-06    .21205E-02
   2  Prefactor     13.806        17.888        .15904E-05   -.98846E-01
   3  Prefactor     .78185E-05    863.84        .13537E-06** at limit **
   4  Prefactor     .55511E-10    5.2109        .88483E-06** at limit **
   5  Prefactor      .0000        2.6489        .11639E-06** at limit **
   6  Prefactor     .55511E-10    7.4765       -.10150E-05** at limit **
   7  Prefactor     33.661        17.779        .64136E-06    .10134    
   8  Prefactor     .74107E-07    54.492       -.18356E-06** at limit **
   9  Prefactor     .12268E-07    19.525        .19381E-05** at limit **
  10  Prefactor     58.099        10.188        .37828E-07   -.88874E-01
  11  Prefactor     22.733        19.416        .78226E-06    .12087    
  12  Prefactor     .16653E-09    8.9612        .26171E-05** at limit **
  13  Prefactor     .11102E-09    7.8335       -.64431E-07** at limit **
  14  norm          .32088        3.4457        .66021E-06    .11711E-02
  15  norm          1.1169        2.4975       -.36185E-07    .12596E-02
  16  Prefactor     .29710E-06    41.687        .18150E-05** at limit **
  17  norm          .22204E-08    13.256       -.18252E-05** at limit **
  18  norm          3.3333        .69786       -.24456E-07    .67830E-03
  19  Prefactor     7.1182        10.149       -.11099E-06    .16008E-02
  20  Prefactor      .0000        2.8777       -.57145E-06** at limit **
  21  norm          .55511E-10    6.1117        .17512E-06** at limit **
  22  Prefactor     2.3047        6.5434        .24508E-06   -.16472E-04
  23  Normalizat    .72679        .24666       -.15530E-04   -.38583E-05
  24  Prefactor     1.2308        .21252        .91597E-05    .53820E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.75473
  Prefactor  = 13.8064
  Prefactor  = 7.81852e-06
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 5.55112e-11
  Prefactor  = 33.6605
  Prefactor  = 7.41074e-08
  Prefactor  = 1.2268e-08
  Prefactor  = 58.0991
  Prefactor  = 22.733
  Prefactor  = 1.66533e-10
  Prefactor  = 1.11022e-10
  norm       = 0.320884
  norm       = 1.11693
  Prefactor  = 2.97096e-07
  norm       = 2.22045e-09
  norm       = 3.33333
  Prefactor  = 7.11821
  Prefactor  = 0
  norm       = 5.55112e-11
  Prefactor  = 2.30472
  Normalizat = 0.726793
  Prefactor  = 1.23084
 **********
 **   18 **HESSE 
 **********

 FCN=   5433.745     FROM HESSE     STATUS=OK           455 CALLS     2696 TOTAL
                     EDM=   .15E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.7547        2.2295        .61255E-03   -1.5675    
   2  Prefactor     13.806        27.498        .26133E-03   -1.5634    
   3  Prefactor     .78185E-05    888.79        .22171E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .55511E-10    5.2930        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        2.6705        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .55511E-10    7.5077        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     33.661        18.540        .17239E-03   -1.5592    
   8  Prefactor     .74107E-07    55.817        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .12268E-07    19.647        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     58.099        45.798        .13207E-03   -1.5556    
  11  Prefactor     22.733        23.158        .20751E-03   -1.5613    
  12  Prefactor     .16653E-09    8.9897        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .11102E-09    7.8558        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .32088        1.7387        .33605E-02   -1.5719    
  15  norm          1.1169        2.5537        .11052E-02   -1.5687    
  16  Prefactor     .29710E-06    42.770        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .22204E-08    13.276        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.3333        .69976        .55369E-03   -1.5671    
  19  Prefactor     7.1182        10.164        .37823E-03   -1.5655    
  20  Prefactor      .0000        2.8981        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .55511E-10    1.1837        .25285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     2.3047        6.5856        .66609E-03   -1.5678    
  23  Normalizat    .72679        .21718        .73684E-01   -1.0284    
  24  Prefactor     1.2308        .18166        .50258E-01   -.85388    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.5369e-06
Minuit parameter uncertainties:
  1  2.22953
  2  27.4987
  3  0.166746
  4  2.45831e-05
  5  1.6175e-05
  6  3.50519e-05
  7  18.5404
  8  0.00406778
  9  0.000982596
  10  45.7979
  11  23.1581
  12  7.5921e-05
  13  6.39821e-05
  14  1.49389
  15  2.55375
  16  0.00712918
  17  0.000345375
  18  0.699758
  19  10.1636
  20  6.40671e-06
  21  1.57711e-05
  22  6.58563
  23  0.217434
  24  0.181757
Done.

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

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  5.810e+01  4.580e+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.231e+00  1.818e-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:  7.268e-01  2.174e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.33
Ra Dec: 181.203 4.120
Photon Index (Fixed Index): 2.58 +/- 0.00
Photon Flux (Fixed Index): 6.60e-08 +/- 5.20e-08
Energy Flux (Fixed Index): 1.77e-05 +/- 1.39e-05

TS (Fixed Index): 2.33
Ra Dec: 181.203 4.120
Photon Flux Upper Limit: 1.72e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.34e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/822147/likelihoodResults_694224001_694483201_4FGL_J1204.8+0407_daily_bin1755.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5432.83189669
delta logL = 0.913011175369

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5432.82320519
delta logL = 0.921702679139

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.8801       1.0000          .0000       .10000E+07
     2 'Index     '    4.0225       1.0000          .0000       10.000    
     3 'Normalizat'    .66289       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2749       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.

 FCN=   5432.823     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      288 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.8387        121.49        .31855E-03    .94775E-02
   2  Index         4.0255        3.3528        .11442        .25291E-03
   3  Normalizat    .66275        .82135E-01    .76790E-01    .29721E-04
   4  Prefactor     1.2747        .69900E-01    .49500E-01   -.11660E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.83868
  Index      = 4.02551
  Normalizat = 0.662751
  Prefactor  = 1.27473
 **********
 **   18 **HESSE 
 **********

 FCN=   5432.823     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      319 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.8387        180.65        .12742E-04   -1.5645    
   2  Index         4.0255        6.8600        .45391E-02   -.19615    
   3  Normalizat    .66275        .23824        .33997E-03   -1.0538    
   4  Prefactor     1.2747        .20628        .21882E-03   -.84062    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.45999e-09
Minuit parameter uncertainties:
  1  84.32
  2  5.01833
  3  0.238607
  4  0.206409
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/822147': 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): 102
logL (Free Index) = 5432.82319791
delta logL = 0.921709956161

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  9.839e+00  8.432e+01  0.000e+00  1.000e+06 ( 1.000e-13)
317        Index:  4.026e+00  5.018e+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:  1.275e+00  2.064e-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:  6.628e-01  2.386e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.39
Ra Dec: 181.203 4.120
Photon Index (Free Index): 4.03 +/- 5.02
Photon Flux (Free Index): 1.08e-07 +/- 6.69e-08
Energy Flux (Free Index): 1.60e-05 +/- 1.78e-05

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/822147/cmap_HighResolution_694224001_694483201_4FGL_J1204.8+0407_daily_bin1755.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.34e-02', comment='SUCCESS', photon_flux='6.60e-08', energy_flux2='1.60e-05', photon_flux_error='5.20e-08', dlogl='9.22e-01', energy_flux='1.77e-05', photon_flux2='1.08e-07', job_status='DONE', time_completed='2023-01-04 01:07:25.353366', photon_index_error2='5.02', photon_index2='4.03', ts='2.33', fit_tolerance='1e-08', GAL='1.23', photon_index_error='0.00', photon_flux_upper_limit='1.72e-07', energy_flux_error2='1.78e-05', EG='0.73', time_epoch_completed='1672823245.35', return_code='0', job_id='822147', GAL2='1.27', EG2='0.66', return_code2='102', energy_flux_error='1.39e-05', photon_flux_error2='6.69e-08', ts2='4.39', photon_index='2.58' WHERE bin_id='1755' AND source_name='4FGL J1204.8+0407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jan  4 01:07:25 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0211>
Subject: Job 822147: <4FGL_J1204.8+0407_daily_bin1755> in cluster <slac> Done

Job <4FGL_J1204.8+0407_daily_bin1755> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Jan  4 00:55:17 2023
Job was executed on host(s) <bullet0211>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jan  4 00:55:45 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jan  4 00:55:45 2023
Terminated at Wed Jan  4 01:07:26 2023
Results reported at Wed Jan  4 01:07:26 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1204.8+0407_daily_bin1755 181.203 4.12 694224001 694483201 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 :                                   645.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             319.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   700 sec.
    Turnaround time :                            729 sec.

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

