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


Performing analysis on: 4FGL_J1204.8+0407_weekly_bin741
RA = 181.203, Dec = 4.12
tmin = 687139201, tmax = 687744001
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='386744', job_status='RUN', time_executed='2022-10-18 01:06:28.763925', time_epoch_executed='1666080388.76' WHERE source_name='4FGL J1204.8+0407' and cadence='weekly' and bin_id='741'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/386744

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/386744/ft1_4FGL_J1204.8+0407_weekly_bin741.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/386744/ft2_4FGL_J1204.8+0407_weekly_bin741.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/386744/ft1_4FGL_J1204.8+0407_weekly_bin741.fits outfile=/scratch/kocevski/386744/ft1_filteredMKT_4FGL_J1204.8+0407_weekly_bin741.fits ra=181.203 dec=4.12 rad=12.0 tmin=687139201.0 tmax=687744001.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 6.58
user 6.29
sys 0.27

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

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

Number of photons that the gtmktime cut: 1008

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/386744/ft1_filtered_4FGL_J1204.8+0407_weekly_bin741.fits" evtable="EVENTS" scfile=/scratch/kocevski/386744/ft2_4FGL_J1204.8+0407_weekly_bin741.fits sctable="SC_DATA" outfile=/scratch/kocevski/386744/ltcube_687139201_687744001_4FGL_J1204.8+0407_weekly_bin741.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/386744/ft2_4FGL_J1204.8+0407_weekly_bin741.fits
.....................!
real 26.64
user 26.20
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/386744/ft1_filtered_4FGL_J1204.8+0407_weekly_bin741.fits evtable="EVENTS" scfile=/scratch/kocevski/386744/ft2_4FGL_J1204.8+0407_weekly_bin741.fits sctable="SC_DATA" expcube=/scratch/kocevski/386744/ltcube_687139201_687744001_4FGL_J1204.8+0407_weekly_bin741.fits outfile=/scratch/kocevski/386744/expmap_687139201_687744001_4FGL_J1204.8+0407_weekly_bin741.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/386744/ltcube_687139201_687744001_4FGL_J1204.8+0407_weekly_bin741.fits
.....................!
real 190.28
user 184.42
sys 5.53

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/386744/ft1_filtered_4FGL_J1204.8+0407_weekly_bin741.fits scfile=/scratch/kocevski/386744/ft2_4FGL_J1204.8+0407_weekly_bin741.fits outfile=/scratch/kocevski/386744/cmap_687139201_687744001_4FGL_J1204.8+0407_weekly_bin741.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.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/386744/ft1_filtered_4FGL_J1204.8+0407_weekly_bin741.fits scfile=/scratch/kocevski/386744/ft2_4FGL_J1204.8+0407_weekly_bin741.fits outfile=/scratch/kocevski/386744/cmap_HighResolution_687139201_687744001_4FGL_J1204.8+0407_weekly_bin741.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/386744/ft1_filtered_4FGL_J1204.8+0407_weekly_bin741.fits evtable="EVENTS" scfile=/scratch/kocevski/386744/ft2_4FGL_J1204.8+0407_weekly_bin741.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/386744/Model_4FGL_J1204.8+0407_weekly_bin741.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/386744/ft1_filtered_4FGL_J1204.8+0407_weekly_bin741.fits.....................!
real 97.35
user 95.84
sys 1.29

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.0379       1.0000          .0000       .10000E+07
     2 'Prefactor '    11.255       1.0000          .0000       .10000E+07
     3 'Prefactor '    1.9345       1.0000          .0000       .10000E+07
     4 'Prefactor '    1.1730       1.0000          .0000       .10000E+07
     5 'Prefactor '    6.8710       1.0000          .0000       .10000E+07
     6 'Prefactor '    .17663E-01   1.0000          .0000       .10000E+07
     7 'Prefactor '    18.193       1.0000          .0000       .10000E+07
     8 'Prefactor '    12.108       1.0000          .0000       .10000E+07
     9 'Prefactor '    37.015       1.0000          .0000       .10000E+07
    10 'Prefactor '    40.490       1.0000          .0000       .10000E+07
    11 'Prefactor '    .33892       1.0000          .0000       .10000E+07
    12 'Prefactor '    .47104E-01   1.0000          .0000       .10000E+07
    13 'Prefactor '    .80469       1.0000          .0000       .10000E+07
    14 'norm      '    2.0588       1.0000          .0000       .10000E+07
    15 'norm      '    10.786       1.0000          .0000       .10000E+07
    16 'Prefactor '    .12524E-02   1.0000          .0000       .10000E+07
    17 'norm      '    .56372E-02   1.0000          .0000       .10000E+07
    18 'norm      '    .96902       1.0000          .0000       .10000E+07
    19 'Prefactor '    12.219       1.0000          .0000       .10000E+07
    20 'Prefactor '    2.7346       1.0000          .0000       .10000E+07
    21 'norm      '    .36189       1.0000          .0000       .10000E+07
    22 'Prefactor '    14.040       1.0000          .0000       .10000E+07
    23 'Normalizat'    1.2046       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .93264       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=   11659.18     FROM MIGRAD    STATUS=CONVERGED    149 CALLS     2015 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.0464        2.0439        .36654E-07   -.26132E-02
   2  Prefactor     11.327        1.9185       -.36930E-07    .12434E-01
   3  Prefactor     .67779        44.759        .26489E-05   -.40720E-01
   4  Prefactor     1.1298        5.2284       -.16094E-05    .40266E-02
   5  Prefactor     6.9104        5.9396       -.15307E-06    .39863E-02
   6  Prefactor     .27756E-09    11.762       -.85287E-06** at limit **
   7  Prefactor     18.309        18.109       -.85616E-09    .32783E-01
   8  Prefactor     16.936        61.378       -.25240E-05   -.31461E-01
   9  Prefactor     36.578        28.021        .38566E-06    .82780E-01
  10  Prefactor     40.860        12.358       -.17142E-06   -.17108    
  11  Prefactor     .96700E-01    36.379        .15020E-05** at limit **
  12  Prefactor     .44409E-09    35.155        .16141E-07** at limit **
  13  Prefactor     .94721        5.9348       -.55434E-06   -.69863E-02
  14  norm          2.0479        2.0451       -.17528E-07    .93555E-03
  15  norm          10.804        4.5410        .17956E-06   -.22835E-02
  16  Prefactor      .0000        7.5670        .19429E-06** at limit **
  17  norm          .38580E-07    28.861        .97120E-06** at limit **
  18  norm          .96790        .67879       -.58771E-08   -.34300E-02
  19  Prefactor     12.207        7.3962        .10931E-06   -.11249E-02
  20  Prefactor     2.8437        10.794        .45492E-07    .55830E-02
  21  norm          .36503        1.5474       -.46039E-06    .12994E-02
  22  Prefactor     14.103        12.393       -.21124E-06   -.27750E-01
  23  Normalizat    1.2017        .19076        .15735E-05   -.30666E-04
  24  Prefactor     .93336        .15222        .23522E-05   -.43703E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.04638
  Prefactor  = 11.3274
  Prefactor  = 0.677795
  Prefactor  = 1.12976
  Prefactor  = 6.91037
  Prefactor  = 2.77556e-10
  Prefactor  = 18.3092
  Prefactor  = 16.9361
  Prefactor  = 36.578
  Prefactor  = 40.86
  Prefactor  = 0.0966995
  Prefactor  = 4.44089e-10
  Prefactor  = 0.94721
  norm       = 2.04794
  norm       = 10.8042
  Prefactor  = 0
  norm       = 3.85803e-08
  norm       = 0.9679
  Prefactor  = 12.2069
  Prefactor  = 2.84365
  norm       = 0.365035
  Prefactor  = 14.1033
  Normalizat = 1.20166
  Prefactor  = 0.933358
 **********
 **   18 **HESSE 
 **********

 FCN=   11659.18     FROM HESSE     STATUS=OK           471 CALLS     2486 TOTAL
                     EDM=   .52E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.0464        2.0467        .40838E-03   -1.5659    
   2  Prefactor     11.327        22.978        .29837E-03   -1.5641    
   3  Prefactor     .67779        654.15        .74634E-03   -1.5691    
   4  Prefactor     1.1298        5.4443        .10582E-02   -1.5687    
   5  Prefactor     6.9104        5.9997        .38252E-03   -1.5655    
   6  Prefactor     .27756E-09    11.505        .17196E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     18.309        18.522        .23454E-03   -1.5622    
   8  Prefactor     16.936        63.392        .28763E-03   -1.5626    
   9  Prefactor     36.578        33.553        .16438E-03   -1.5587    
  10  Prefactor     40.860        29.050        .15717E-03   -1.5580    
  11  Prefactor     .96700E-01    10.618        .12461E-01   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .44409E-09    34.154        .15658E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .94721        94.725        .52586E-03   -1.5688    
  14  norm          2.0479        2.8268        .71995E-03   -1.5679    
  15  norm          10.804        4.6043        .30482E-03   -1.5642    
  16  Prefactor      .0000        7.5567        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .38580E-07    28.842        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .96790        .72079        .42666E-03   -1.5688    
  19  Prefactor     12.207        7.3993        .28632E-03   -1.5638    
  20  Prefactor     2.8437        10.891        .61547E-03   -1.5674    
  21  norm          .36503        1.1712        .32113E-02   -1.5696    
  22  Prefactor     14.103        12.481        .26705E-03   -1.5633    
  23  Normalizat    1.2017        .16320        .63491E-01   -.86552    
  24  Prefactor     .93336        .12875        .45420E-01   -.94985    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.23627e-06
Minuit parameter uncertainties:
  1  2.04671
  2  22.9777
  3  42.1178
  4  4.96014
  5  5.99973
  6  0.000112351
  7  18.522
  8  63.3941
  9  33.5536
  10  29.0499
  11  2.02659
  12  0.000241604
  13  18.9449
  14  2.82677
  15  4.60432
  16  3.90695e-06
  17  0.00210962
  18  0.720793
  19  7.39931
  20  10.8914
  21  1.17122
  22  12.4814
  23  0.163269
  24  0.12879
Done.

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

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  4.086e+01  2.905e+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:  9.334e-01  1.288e-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.202e+00  1.633e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.22
Ra Dec: 181.203 4.120
Photon Index (Fixed Index): 2.58 +/- 0.00
Photon Flux (Fixed Index): 4.64e-08 +/- 3.30e-08
Energy Flux (Fixed Index): 1.24e-05 +/- 8.83e-06

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) = 11658.4140597
delta logL = 0.761068489319

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11658.3393054
delta logL = 0.835822773915

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.048       1.0000          .0000       .10000E+07
     2 'Index     '    1.6228       1.0000          .0000       10.000    
     3 'Normalizat'    1.2371       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91915       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=   11658.34     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      215 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.048        22.251        .19985E-03    .11402E-01
   2  Index         1.6227        .36071        .28544       -.98898E-04
   3  Normalizat    1.2370        .15315        .62726E-01    .15187E-04
   4  Prefactor     .91917        .12635        .45249E-01    .23060E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.0477
  Index      = 1.62271
  Normalizat = 1.23705
  Prefactor  = 0.919168
 **********
 **   18 **HESSE 
 **********

 FCN=   11658.34     FROM HESSE     STATUS=OK            31 CALLS      246 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.048        35.060        .79941E-05   -1.5608    
   2  Index         1.6227        .72687        .10207E-01   -.74159    
   3  Normalizat    1.2370        .18125        .27745E-03   -.85466    
   4  Prefactor     .91917        .14949        .26011E-03   -.95475    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.7984e-09
Minuit parameter uncertainties:
  1  35.0603
  2  0.731662
  3  0.181339
  4  0.149561
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/386744': 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) = 11658.3393054
delta logL = 0.835822815141

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  2.505e+01  3.506e+01  0.000e+00  1.000e+06 ( 1.000e-13)
317        Index:  1.623e+00  7.317e-01  0.000e+00  1.000e+01 (-1.000e+00)
318        Scale:  7.480e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  9.192e-01  1.496e-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.237e+00  1.813e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.87
Ra Dec: 181.203 4.120
Photon Index (Free Index): 1.62 +/- 0.73
Photon Flux (Free Index): 1.04e-08 +/- 1.77e-08
Energy Flux (Free Index): 2.18e-05 +/- 2.83e-05

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/386744/cmap_HighResolution_687139201_687744001_4FGL_J1204.8+0407_weekly_bin741.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.64e-08', energy_flux2='2.18e-05', photon_flux_error='3.30e-08', dlogl='8.36e-01', energy_flux='1.24e-05', photon_flux2='1.04e-08', job_status='DONE', time_completed='2022-10-18 01:20:33.753781', photon_index_error2='0.73', photon_index2='1.62', ts='5.22', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', energy_flux_error2='2.83e-05', EG='1.20', time_epoch_completed='1666081233.75', return_code='0', job_id='386744', GAL2='0.92', EG2='1.24', return_code2='0', energy_flux_error='8.83e-06', photon_flux_error2='1.77e-08', ts2='6.87', photon_index='2.58' WHERE bin_id='741' AND source_name='4FGL J1204.8+0407' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Oct 18 01:20:33 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 386744: <4FGL_J1204.8+0407_weekly_bin741> in cluster <slac> Done

Job <4FGL_J1204.8+0407_weekly_bin741> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Oct 18 01:05:27 2022
Job was executed on host(s) <bullet0204>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Oct 18 01:05:28 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Oct 18 01:05:28 2022
Terminated at Tue Oct 18 01:20:34 2022
Results reported at Tue Oct 18 01:20:34 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1204.8+0407_weekly_bin741 181.203 4.12 687139201 687744001 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 :                                   846.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             320.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   906 sec.
    Turnaround time :                            907 sec.

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

