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


Performing analysis on: 4FGL_J1204.8+0407_daily_bin1777
RA = 181.203, Dec = 4.12
tmin = 699926401, tmax = 700185601
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='913382', job_status='RUN', time_executed='2023-03-11 00:37:20.281424', time_epoch_executed='1678523840.28' WHERE source_name='4FGL J1204.8+0407' and cadence='daily' and bin_id='1777'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/913382

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/913382/ft1_4FGL_J1204.8+0407_daily_bin1777.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/913382/ft2_4FGL_J1204.8+0407_daily_bin1777.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/913382/ft1_4FGL_J1204.8+0407_daily_bin1777.fits outfile=/scratch/kocevski/913382/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin1777.fits ra=181.203 dec=4.12 rad=12.0 tmin=699926401.0 tmax=700185601.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.61
user 3.40
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/913382/ft2_4FGL_J1204.8+0407_daily_bin1777.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/913382/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin1777.fits evtable="EVENTS" outfile="/scratch/kocevski/913382/ft1_filtered_4FGL_J1204.8+0407_daily_bin1777.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.15

Number of photons that the gtmktime cut: 614

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/913382/ft1_filtered_4FGL_J1204.8+0407_daily_bin1777.fits" evtable="EVENTS" scfile=/scratch/kocevski/913382/ft2_4FGL_J1204.8+0407_daily_bin1777.fits sctable="SC_DATA" outfile=/scratch/kocevski/913382/ltcube_699926401_700185601_4FGL_J1204.8+0407_daily_bin1777.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/913382/ft2_4FGL_J1204.8+0407_daily_bin1777.fits
.....................!
real 11.91
user 11.56
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/913382/ft1_filtered_4FGL_J1204.8+0407_daily_bin1777.fits evtable="EVENTS" scfile=/scratch/kocevski/913382/ft2_4FGL_J1204.8+0407_daily_bin1777.fits sctable="SC_DATA" expcube=/scratch/kocevski/913382/ltcube_699926401_700185601_4FGL_J1204.8+0407_daily_bin1777.fits outfile=/scratch/kocevski/913382/expmap_699926401_700185601_4FGL_J1204.8+0407_daily_bin1777.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/913382/ltcube_699926401_700185601_4FGL_J1204.8+0407_daily_bin1777.fits
.....................!
real 191.20
user 185.69
sys 5.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/913382/ft1_filtered_4FGL_J1204.8+0407_daily_bin1777.fits scfile=/scratch/kocevski/913382/ft2_4FGL_J1204.8+0407_daily_bin1777.fits outfile=/scratch/kocevski/913382/cmap_699926401_700185601_4FGL_J1204.8+0407_daily_bin1777.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/913382/ft1_filtered_4FGL_J1204.8+0407_daily_bin1777.fits scfile=/scratch/kocevski/913382/ft2_4FGL_J1204.8+0407_daily_bin1777.fits outfile=/scratch/kocevski/913382/cmap_HighResolution_699926401_700185601_4FGL_J1204.8+0407_daily_bin1777.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.54
user 0.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.7104       1.0000          .0000       .10000E+07
     2 'Prefactor '    .50486E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    5.0954       1.0000          .0000       .10000E+07
     4 'Prefactor '    .14759E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    .18441E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    .35354E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    1.9352       1.0000          .0000       .10000E+07
     8 'Prefactor '    .34566E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    23.643       1.0000          .0000       .10000E+07
    10 'Prefactor '    .19543E-05   1.0000          .0000       .10000E+07
    11 'Prefactor '    38.244       1.0000          .0000       .10000E+07
    12 'Prefactor '    .12793       1.0000          .0000       .10000E+07
    13 'Prefactor '    9.2337       1.0000          .0000       .10000E+07
    14 'norm      '    .12680E-04   1.0000          .0000       .10000E+07
    15 'norm      '    .67459E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    .10120E-03   1.0000          .0000       .10000E+07
    17 'norm      '    .22325E-02   1.0000          .0000       .10000E+07
    18 'norm      '    .98735       1.0000          .0000       .10000E+07
    19 'Prefactor '    28.085       1.0000          .0000       .10000E+07
    20 'Prefactor '    12.465       1.0000          .0000       .10000E+07
    21 'norm      '    .38421E-03   1.0000          .0000       .10000E+07
    22 'Prefactor '    1.8679       1.0000          .0000       .10000E+07
    23 'Normalizat'    1.7668       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .66721       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=   6823.086     FROM MIGRAD    STATUS=CONVERGED    197 CALLS     2057 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.7148        2.6706       -.24417E-07   -.20370E-05
   2  Prefactor     .35205E-06    14.119       -.67489E-06** at limit **
   3  Prefactor     10.235        410.47        .11808E-05   -.49771E-03
   4  Prefactor      .0000        3.6185       -.33921E-06** at limit **
   5  Prefactor     .55511E-10    3.0045        .10440E-06** at limit **
   6  Prefactor     .99920E-09    5.9492        .11044E-06** at limit **
   7  Prefactor     1.9761        13.859        .87404E-06    .70184E-02
   8  Prefactor     .44131E-06    24.018       -.30464E-06** at limit **
   9  Prefactor     23.669        1.4347        .10538E-07    .56745E-02
  10  Prefactor     .33806E-07    14.018       -.52993E-06** at limit **
  11  Prefactor     38.739        30.322       -.10748E-06    .14716E-01
  12  Prefactor     .12268E-07    52.872       -.13826E-06** at limit **
  13  Prefactor     9.0121        14.639       -.10671E-06   -.48120E-01
  14  norm           .0000        1.5913       -.24983E-06** at limit **
  15  norm          .82157E-08    8.0978       -.28058E-06** at limit **
  16  Prefactor     .15282E-05    14.388       -.17159E-06** at limit **
  17  norm          .18319E-07    8.0769       -.38723E-06** at limit **
  18  norm          .98988        .57216       -.54520E-07   -.49013E-02
  19  Prefactor     28.094        7.8482       -.50502E-08    .20696    
  20  Prefactor     12.507        5.6637       -.24033E-07   -.33439E-01
  21  norm          .18874E-08    6.1637       -.36369E-07** at limit **
  22  Prefactor     1.9481        8.0111       -.27159E-06    .11668E-01
  23  Normalizat    1.7639        .25695        .49849E-05    .24535E-04
  24  Prefactor     .66807        .19568       -.47748E-05   -.23763E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.71484
  Prefactor  = 3.52052e-07
  Prefactor  = 10.2354
  Prefactor  = 0
  Prefactor  = 5.55112e-11
  Prefactor  = 9.99201e-10
  Prefactor  = 1.97606
  Prefactor  = 4.41314e-07
  Prefactor  = 23.669
  Prefactor  = 3.38063e-08
  Prefactor  = 38.7394
  Prefactor  = 1.2268e-08
  Prefactor  = 9.0121
  norm       = 0
  norm       = 8.21565e-09
  Prefactor  = 1.52822e-06
  norm       = 1.83187e-08
  norm       = 0.989876
  Prefactor  = 28.0937
  Prefactor  = 12.5073
  norm       = 1.88738e-09
  Prefactor  = 1.94807
  Normalizat = 1.76392
  Prefactor  = 0.668074
 **********
 **   18 **HESSE 
 **********

 FCN=   6823.086     FROM HESSE     STATUS=OK           449 CALLS     2506 TOTAL
                     EDM=   .45E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.7148        2.6695        .46340E-03   -1.5665    
   2  Prefactor     .35205E-06    18.403        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10.235        401.33        .44518E-03   -1.5644    
   4  Prefactor      .0000        3.6116        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .55511E-10    3.0015        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .99920E-09    5.9578        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.9761        14.252        .74619E-03   -1.5680    
   8  Prefactor     .44131E-06    25.153        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     23.669        25.810        .20571E-03   -1.5611    
  10  Prefactor     .33806E-07    14.062        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     38.739        31.181        .16172E-03   -1.5583    
  12  Prefactor     .12268E-07    51.048        .13233E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9.0121        16.000        .32957E-03   -1.5648    
  14  norm           .0000        1.5862        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .82157E-08    7.9643        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .15282E-05    21.762        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .18319E-07    19.668        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .98988        .58144        .43317E-03   -1.5688    
  19  Prefactor     28.094        12.555        .18873E-03   -1.5602    
  20  Prefactor     12.507        9.9816        .28347E-03   -1.5637    
  21  norm          .18874E-08    .84787        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.9481        13.141        .76188E-03   -1.5680    
  23  Normalizat    1.7639        .21842        .57119E-01   -.70609    
  24  Prefactor     .66807        .16809        .69662E-01   -1.0479    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.54159e-07
Minuit parameter uncertainties:
  1  2.6695
  2  0.00509069
  3  128.193
  4  1.58931e-05
  5  2.13907e-05
  6  0.00015635
  7  10.6137
  8  0.00666335
  9  25.8102
  10  0.00137937
  11  31.1814
  12  0.00158267
  13  15.9998
  14  8.56863e-06
  15  0.000510977
  16  0.0115337
  17  0.00120111
  18  0.581438
  19  12.5549
  20  9.98162
  21  8.05174e-05
  22  10.1193
  23  0.218537
  24  0.168221
Done.

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

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  3.381e-08  1.379e-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:  6.681e-01  1.682e-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.764e+00  2.185e-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: 7.69e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.01e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/913382/likelihoodResults_699926401_700185601_4FGL_J1204.8+0407_daily_bin1777.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) = 6823.08612606
delta logL = -8.18293301563e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6823.08604519
delta logL = -9.61711521086e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .18943E-04   1.0000          .0000       .10000E+07
     2 'Index     '    1.5068       1.0000          .0000       10.000    
     3 'Normalizat'    1.7640       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66807       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=   6823.086     FROM MIGRAD    STATUS=CONVERGED     72 CALLS      275 TOTAL
                     EDM=   .79E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .44409E-09    .88735E-01    .42118E-03** at limit **
   2  Index         3.3311        6.6794        .50000        .11369E-09
   3  Normalizat    1.7639        .52917E-03    .57119E-01    .37871E-03
   4  Prefactor     .66807        .42438E-03    .69662E-01    .15482E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.44089e-10
  Index      = 3.33111
  Normalizat = 1.76392
  Prefactor  = 0.668072
 **********
 **   18 **HESSE 
 **********

 FCN=   6823.086     FROM HESSE     STATUS=NOT POSDEF    25 CALLS      300 TOTAL
                     EDM=   .83E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .44409E-09    9.3633        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.3311        6.0204        .20000E-01   -.34031    
   3  Normalizat    1.7639        .54365E-02    .25255E-03   -.70609    
   4  Prefactor     .66807        .43529E-02    .30830E-03   -1.0479    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.28883e-11
Minuit parameter uncertainties:
  1  0.00013204
  2  71427.7
  3  0.00543647
  4  0.00435289
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/913382': 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) = 6823.08604423
delta logL = 1.04409991764e-09

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  4.441e-10  1.320e-04  0.000e+00  1.000e+06 ( 1.000e-13)
317        Index:  3.331e+00  7.143e+04  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:  6.681e-01  4.353e-03  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.764e+00  5.436e-03  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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/913382/cmap_HighResolution_699926401_700185601_4FGL_J1204.8+0407_daily_bin1777.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.01e-03', job_status='DONE', photon_flux_upper_limit='7.69e-08', time_completed='2023-03-11 00:48:30.456254', job_id='913382', GAL2='0.67', fit_tolerance='1e-08', EG2='1.76', EG='1.76', time_epoch_completed='1678524510.46', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.67', dlogl='1.04e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1777' AND source_name='4FGL J1204.8+0407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Mar 11 00:48:30 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0123>
Subject: Job 913382: <4FGL_J1204.8+0407_daily_bin1777> in cluster <slac> Done

Job <4FGL_J1204.8+0407_daily_bin1777> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Mar 11 00:35:21 2023
Job was executed on host(s) <bullet0123>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Mar 11 00:35:22 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Mar 11 00:35:22 2023
Terminated at Sat Mar 11 00:48:31 2023
Results reported at Sat Mar 11 00:48:31 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1204.8+0407_daily_bin1777 181.203 4.12 699926401 700185601 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 :                                   672.03 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             291.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   788 sec.
    Turnaround time :                            790 sec.

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

