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


Performing analysis on: 4FGL_J1204.8+0407_daily_bin1779
RA = 181.203, Dec = 4.12
tmin = 700444801, tmax = 700704001
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='22212', job_status='RUN', time_executed='2023-03-17 01:33:11.324960', time_epoch_executed='1679041991.32' WHERE source_name='4FGL J1204.8+0407' and cadence='daily' and bin_id='1779'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/22212

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/22212/ft1_4FGL_J1204.8+0407_daily_bin1779.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/22212/ft2_4FGL_J1204.8+0407_daily_bin1779.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/22212/ft1_4FGL_J1204.8+0407_daily_bin1779.fits outfile=/scratch/kocevski/22212/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin1779.fits ra=181.203 dec=4.12 rad=12.0 tmin=700444801.0 tmax=700704001.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 5.29
user 4.99
sys 0.25

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

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

Number of photons that the gtmktime cut: 571

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/22212/ft1_filtered_4FGL_J1204.8+0407_daily_bin1779.fits" evtable="EVENTS" scfile=/scratch/kocevski/22212/ft2_4FGL_J1204.8+0407_daily_bin1779.fits sctable="SC_DATA" outfile=/scratch/kocevski/22212/ltcube_700444801_700704001_4FGL_J1204.8+0407_daily_bin1779.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/22212/ft2_4FGL_J1204.8+0407_daily_bin1779.fits
.....................!
real 11.81
user 11.47
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/22212/ft1_filtered_4FGL_J1204.8+0407_daily_bin1779.fits evtable="EVENTS" scfile=/scratch/kocevski/22212/ft2_4FGL_J1204.8+0407_daily_bin1779.fits sctable="SC_DATA" expcube=/scratch/kocevski/22212/ltcube_700444801_700704001_4FGL_J1204.8+0407_daily_bin1779.fits outfile=/scratch/kocevski/22212/expmap_700444801_700704001_4FGL_J1204.8+0407_daily_bin1779.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/22212/ltcube_700444801_700704001_4FGL_J1204.8+0407_daily_bin1779.fits
.....................!
real 190.23
user 185.17
sys 4.73

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/22212/ft1_filtered_4FGL_J1204.8+0407_daily_bin1779.fits scfile=/scratch/kocevski/22212/ft2_4FGL_J1204.8+0407_daily_bin1779.fits outfile=/scratch/kocevski/22212/cmap_700444801_700704001_4FGL_J1204.8+0407_daily_bin1779.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.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/22212/ft1_filtered_4FGL_J1204.8+0407_daily_bin1779.fits scfile=/scratch/kocevski/22212/ft2_4FGL_J1204.8+0407_daily_bin1779.fits outfile=/scratch/kocevski/22212/cmap_HighResolution_700444801_700704001_4FGL_J1204.8+0407_daily_bin1779.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.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.9587       1.0000          .0000       .10000E+07
     2 'Prefactor '    .27983E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    .13372E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    11.654       1.0000          .0000       .10000E+07
     5 'Prefactor '    .17627E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    33.527       1.0000          .0000       .10000E+07
     7 'Prefactor '    15.542       1.0000          .0000       .10000E+07
     8 'Prefactor '    .12286E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    .74129       1.0000          .0000       .10000E+07
    10 'Prefactor '    14.643       1.0000          .0000       .10000E+07
    11 'Prefactor '    .99381E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    20.153       1.0000          .0000       .10000E+07
    13 'Prefactor '    .12428E-01   1.0000          .0000       .10000E+07
    14 'norm      '    1.2311       1.0000          .0000       .10000E+07
    15 'norm      '    2.9052       1.0000          .0000       .10000E+07
    16 'Prefactor '    .40452       1.0000          .0000       .10000E+07
    17 'norm      '    .57228E-05   1.0000          .0000       .10000E+07
    18 'norm      '    1.1902       1.0000          .0000       .10000E+07
    19 'Prefactor '    17.268       1.0000          .0000       .10000E+07
    20 'Prefactor '     .0000       1.0000          .0000       .10000E+07
    21 'norm      '    .57793E-06   1.0000          .0000       .10000E+07
    22 'Prefactor '    13.029       1.0000          .0000       .10000E+07
    23 'Normalizat'    .85423       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0671       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=   6268.478     FROM MIGRAD    STATUS=CONVERGED    147 CALLS     2012 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.9570        2.0294        .95585E-07    .44115E-02
   2  Prefactor     .20350E-06    17.948        .24413E-05** at limit **
   3  Prefactor     .42866E-06    29.001        .60091E-05** at limit **
   4  Prefactor     11.646        10.379       -.26223E-06   -.15662E-01
   5  Prefactor     .10547E-08    6.6297        .12531E-05** at limit **
   6  Prefactor     33.672        2.3187       -.26799E-06   -.87766E-02
   7  Prefactor     15.606        10.891       -.11065E-05   -.56308E-01
   8  Prefactor     .15894E-05    65.882       -.21589E-05** at limit **
   9  Prefactor     .61652        25.803       -.93174E-05    .52175E-01
  10  Prefactor     14.807        2.8236        .49822E-06    .94994E-02
  11  Prefactor      .0000        9.0380        .12046E-05** at limit **
  12  Prefactor     20.124        1.2020       -.90303E-07    .15710E-02
  13  Prefactor     .19362E-06    17.380       -.24873E-05** at limit **
  14  norm          1.2334        1.5867        .66841E-06    .40681E-02
  15  norm          2.9083        2.6804       -.24771E-06    .42054E-03
  16  Prefactor     .23745E-04    52.315       -.10778E-04** at limit **
  17  norm          .33307E-09    11.558       -.10027E-05** at limit **
  18  norm          1.1908        .46022       -.10727E-06    .33155E-01
  19  Prefactor     17.253        5.4767       -.47962E-06   -.10505    
  20  Prefactor     .55511E-09    3.8014        .16025E-05** at limit **
  21  norm           .0000        .59690       -.10659E-06** at limit **
  22  Prefactor     12.874        8.4287       -.10461E-06   -.20392E-02
  23  Normalizat    .85394        .22178        .10625E-04    .22684E-03
  24  Prefactor     1.0676        .18618       -.38127E-05    .21322E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.95702
  Prefactor  = 2.03504e-07
  Prefactor  = 4.28657e-07
  Prefactor  = 11.6462
  Prefactor  = 1.05471e-09
  Prefactor  = 33.6723
  Prefactor  = 15.6061
  Prefactor  = 1.5894e-06
  Prefactor  = 0.616524
  Prefactor  = 14.8071
  Prefactor  = 0
  Prefactor  = 20.1237
  Prefactor  = 1.93623e-07
  norm       = 1.23342
  norm       = 2.90827
  Prefactor  = 2.37451e-05
  norm       = 3.33067e-10
  norm       = 1.19083
  Prefactor  = 17.2527
  Prefactor  = 5.55112e-10
  norm       = 0
  Prefactor  = 12.874
  Normalizat = 0.853939
  Prefactor  = 1.06758
 **********
 **   18 **HESSE 
 **********

 FCN=   6268.478     FROM HESSE     STATUS=OK           449 CALLS     2461 TOTAL
                     EDM=   .50E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.9570        2.0385        .59012E-03   -1.5674    
   2  Prefactor     .20350E-06    18.175        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .42866E-06    35.424        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     11.646        10.579        .29321E-03   -1.5640    
   5  Prefactor     .10547E-08    6.5947        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     33.672        23.325        .17273E-03   -1.5592    
   7  Prefactor     15.606        11.986        .25379E-03   -1.5629    
   8  Prefactor     .15894E-05    66.810        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .61652        400.15        .57417E-03   -1.5692    
  10  Prefactor     14.807        24.539        .26148E-03   -1.5631    
  11  Prefactor      .0000        9.0445        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     20.124        22.462        .22283E-03   -1.5618    
  13  Prefactor     .19362E-06    34.608        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.2334        1.6278        .10129E-02   -1.5686    
  15  norm          2.9083        2.7238        .59587E-03   -1.5674    
  16  Prefactor     .23745E-04    93.733        .88965E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .33307E-09    11.621        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.1908        .46441        .70411E-03   -1.5686    
  19  Prefactor     17.253        13.627        .24075E-03   -1.5625    
  20  Prefactor     .55511E-09    3.7981        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm           .0000        .58787        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     12.874        8.4466        .27725E-03   -1.5636    
  23  Normalizat    .85394        .19629        .65647E-01   -.98098    
  24  Prefactor     1.0676        .16182        .38997E-01   -.90509    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.00693e-06
Minuit parameter uncertainties:
  1  2.03853
  2  0.0038466
  3  0.00779368
  4  10.5792
  5  0.000165633
  6  23.3247
  7  11.9858
  8  0.0206095
  9  31.4158
  10  24.5394
  11  6.57584e-07
  12  22.4624
  13  0.00517748
  14  1.62783
  15  2.72378
  16  0.094356
  17  0.000121835
  18  0.464407
  19  13.6266
  20  9.01663e-05
  21  2.82759e-06
  22  8.44663
  23  0.196452
  24  0.161895
Done.

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

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  1.481e+01  2.454e+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.068e+00  1.619e-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:  8.539e-01  1.965e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/22212/likelihoodResults_700444801_700704001_4FGL_J1204.8+0407_daily_bin1779.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) = 6268.4734659
delta logL = 0.00478754245887

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6268.47206783
delta logL = 0.00618561944975

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6268.472     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      227 TOTAL
                     EDM=   .90E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.239        29.718        .99315E-05   -.28066E-02
   2  Index         2.4603        1.0634        .13401E-01   -.12911E-03
   3  Normalizat    .85545        .21702        .29016E-03    .27505E-04
   4  Prefactor     1.0667        .18518        .22389E-03    .10973E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.2389
  Index      = 2.46032
  Normalizat = 0.855451
  Prefactor  = 1.06667
 **********
 **   18 **HESSE 
 **********

 FCN=   6268.472     FROM HESSE     STATUS=OK            25 CALLS      252 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.239        28.794        .19863E-05   -1.5627    
   2  Index         2.4603        1.0311        .53603E-03   -.53279    
   3  Normalizat    .85545        .21719        .11606E-04   -.98044    
   4  Prefactor     1.0667        .18530        .44777E-04   -.90539    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01127e-09
Minuit parameter uncertainties:
  1  28.7941
  2  1.0412
  3  0.21741
  4  0.185415
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/22212': 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): 0
logL (Free Index) = 6268.47206776
delta logL = 0.00618568194113

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  1.624e+01  2.879e+01  0.000e+00  1.000e+06 ( 1.000e-13)
317        Index:  2.460e+00  1.041e+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.067e+00  1.854e-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:  8.555e-01  2.174e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.52
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/22212/cmap_HighResolution_700444801_700704001_4FGL_J1204.8+0407_daily_bin1779.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.18e-03', job_status='DONE', photon_flux_upper_limit='9.19e-08', time_completed='2023-03-17 01:43:53.788465', job_id='22212', GAL2='1.07', fit_tolerance='1e-08', EG2='0.86', EG='0.85', time_epoch_completed='1679042633.79', return_code2='0', ts='0.52', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='6.19e-03', ts2='0.53', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1779' AND source_name='4FGL J1204.8+0407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Mar 17 01:43:53 PDT 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0109>
Subject: Job 22212: <4FGL_J1204.8+0407_daily_bin1779> in cluster <slac> Done

Job <4FGL_J1204.8+0407_daily_bin1779> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Mar 17 01:30:25 2023
Job was executed on host(s) <bullet0109>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Mar 17 01:30:26 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Mar 17 01:30:26 2023
Terminated at Fri Mar 17 01:43:54 2023
Results reported at Fri Mar 17 01:43:54 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1204.8+0407_daily_bin1779 181.203 4.12 700444801 700704001 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 :                                   643.44 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             279.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   808 sec.
    Turnaround time :                            809 sec.

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

