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


Performing analysis on: 4FGL_J2304.6+3704_daily_bin1749
RA = 346.173, Dec = 37.0826
tmin = 692668801, tmax = 692928001
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='965403', job_status='RUN', time_executed='2022-12-17 01:37:54.572909', time_epoch_executed='1671269874.57' WHERE source_name='4FGL J2304.6+3704' and cadence='daily' and bin_id='1749'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/965403

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/965403/ft1_4FGL_J2304.6+3704_daily_bin1749.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/965403/ft2_4FGL_J2304.6+3704_daily_bin1749.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/965403/ft1_4FGL_J2304.6+3704_daily_bin1749.fits outfile=/scratch/kocevski/965403/ft1_filteredMKT_4FGL_J2304.6+3704_daily_bin1749.fits ra=346.173 dec=37.0826 rad=12.0 tmin=692668801.0 tmax=692928001.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.66
user 3.43
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/965403/ft2_4FGL_J2304.6+3704_daily_bin1749.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/965403/ft2_4FGL_J2304.6+3704_daily_bin1749.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/965403/ft1_filteredMKT_4FGL_J2304.6+3704_daily_bin1749.fits evtable="EVENTS" outfile="/scratch/kocevski/965403/ft1_filtered_4FGL_J2304.6+3704_daily_bin1749.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: 1161

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/965403/ft1_filtered_4FGL_J2304.6+3704_daily_bin1749.fits" evtable="EVENTS" scfile=/scratch/kocevski/965403/ft2_4FGL_J2304.6+3704_daily_bin1749.fits sctable="SC_DATA" outfile=/scratch/kocevski/965403/ltcube_692668801_692928001_4FGL_J2304.6+3704_daily_bin1749.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/965403/ft2_4FGL_J2304.6+3704_daily_bin1749.fits
.....................!
real 11.87
user 11.52
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/965403/ft1_filtered_4FGL_J2304.6+3704_daily_bin1749.fits evtable="EVENTS" scfile=/scratch/kocevski/965403/ft2_4FGL_J2304.6+3704_daily_bin1749.fits sctable="SC_DATA" expcube=/scratch/kocevski/965403/ltcube_692668801_692928001_4FGL_J2304.6+3704_daily_bin1749.fits outfile=/scratch/kocevski/965403/expmap_692668801_692928001_4FGL_J2304.6+3704_daily_bin1749.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/965403/ltcube_692668801_692928001_4FGL_J2304.6+3704_daily_bin1749.fits
.....................!
real 189.46
user 184.62
sys 4.52

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
Extended source FHES J2304.0+5406 in ROI with RadialGaussian spatial model.
Extended source CTB 109 in ROI with RadialDisk spatial model.
Added 155 point sources and 2 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J2304.6+3704 @ 346.173 37.0826

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/965403/ft1_filtered_4FGL_J2304.6+3704_daily_bin1749.fits scfile=/scratch/kocevski/965403/ft2_4FGL_J2304.6+3704_daily_bin1749.fits outfile=/scratch/kocevski/965403/cmap_692668801_692928001_4FGL_J2304.6+3704_daily_bin1749.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=346.173 yref=37.0826 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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/965403/ft1_filtered_4FGL_J2304.6+3704_daily_bin1749.fits scfile=/scratch/kocevski/965403/ft2_4FGL_J2304.6+3704_daily_bin1749.fits outfile=/scratch/kocevski/965403/cmap_HighResolution_692668801_692928001_4FGL_J2304.6+3704_daily_bin1749.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=346.173 yref=37.0826 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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/965403/ft1_filtered_4FGL_J2304.6+3704_daily_bin1749.fits evtable="EVENTS" scfile=/scratch/kocevski/965403/ft2_4FGL_J2304.6+3704_daily_bin1749.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/965403/Model_4FGL_J2304.6+3704_daily_bin1749.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 CTB 109
adding source EG_v02
adding source FHES J2304.0+5406
adding source GAL_V02
Working on...
/scratch/kocevski/965403/ft1_filtered_4FGL_J2304.6+3704_daily_bin1749.fits.....................!
real 137.00
user 135.12
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/965403/ft1_filtered_4FGL_J2304.6+3704_daily_bin1749.fits', '/scratch/kocevski/965403/ft2_4FGL_J2304.6+3704_daily_bin1749.fits', expMap='/scratch/kocevski/965403/expmap_692668801_692928001_4FGL_J2304.6+3704_daily_bin1749.fits', expCube='/scratch/kocevski/965403/ltcube_692668801_692928001_4FGL_J2304.6+3704_daily_bin1749.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/965403/Model_4FGL_J2304.6+3704_daily_bin1749.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2304.6+3704'

4FGL J2304.6+3704
   Spectrum: PowerLaw
376    Prefactor:  4.732e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
377        Index:  1.849e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
378        Scale:  3.823e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/965403/ft1_filtered_4FGL_J2304.6+3704_daily_bin1749.fits
Spacecraft file(s): /scratch/kocevski/965403/ft2_4FGL_J2304.6+3704_daily_bin1749.fits
Exposure map: /scratch/kocevski/965403/expmap_692668801_692928001_4FGL_J2304.6+3704_daily_bin1749.fits
Exposure cube: /scratch/kocevski/965403/ltcube_692668801_692928001_4FGL_J2304.6+3704_daily_bin1749.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/965403/Model_4FGL_J2304.6+3704_daily_bin1749.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 11978.3167984

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4848       1.0000          .0000       .10000E+07
     2 'norm      '    .53394       1.0000          .0000       .10000E+07
     3 'Prefactor '    12.023       1.0000          .0000       .10000E+07
     4 'Prefactor '    .38158E-06   1.0000          .0000       .10000E+07
     5 'Prefactor '    13.774       1.0000          .0000       .10000E+07
     6 'norm      '    .51937       1.0000          .0000       .10000E+07
     7 'Prefactor '    50.454       1.0000          .0000       .10000E+07
     8 'Prefactor '    .56208E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    105.44       1.0000          .0000       .10000E+07
    10 'norm      '    .92571       1.0000          .0000       .10000E+07
    11 'norm      '    14.346       1.0000          .0000       .10000E+07
    12 'Prefactor '    11.864       1.0000          .0000       .10000E+07
    13 'norm      '    .29466       1.0000          .0000       .10000E+07
    14 'Prefactor '    .17392E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    81.485       1.0000          .0000       .10000E+07
    16 'Prefactor '    .18922E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    2.4836       1.0000          .0000       .10000E+07
    18 'Normalizat'    .80743       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1044       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5200E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   11975.36     FROM MIGRAD    STATUS=CONVERGED    139 CALLS      986 TOTAL
                     EDM=   .75E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4844        .91722        .88197E-07   -.22183E-02
   2  norm          .53765        2.8945        .10812E-07    .31946E-03
   3  Prefactor     12.025        12.936       -.22586E-06   -.35064E-03
   4  Prefactor     .66613E-09    13.740        .64291E-06** at limit **
   5  Prefactor     13.842        2.2005       -.60184E-07   -.22673E-01
   6  norm          .51964        .75039       -.18133E-07    .51547E-03
   7  Prefactor     51.068        26.244       -.15344E-06   -.10015    
   8  Prefactor     .46074E-08    8.3097       -.15823E-07** at limit **
   9  Prefactor     106.54        28.707       -.76936E-08    .23174    
  10  norm          .94255        2.7182       -.30818E-06   -.35084E-02
  11  norm          14.401        10.243       -.55183E-08    .11571E-02
  12  Prefactor     11.525        8.5723        .14979E-06    .43738E-01
  13  norm          .29478        1.6460        .12447E-06   -.53898E-03
  14  Prefactor     .14155E-07    15.651        .11509E-05** at limit **
  15  Prefactor     80.604        36.333       -.10154E-06    .17006    
  16  Prefactor     .34972E-08    9.5710        .10195E-05** at limit **
  17  Prefactor     2.4862        3.2981        .28704E-07    .10164E-03
  18  Normalizat    .80736        .22162        .10059E-04   -.41849E-05
  19  Prefactor     1.1043        .88290E-01   -.38356E-05    .58144E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.48436
  norm       = 0.537648
  Prefactor  = 12.0253
  Prefactor  = 6.66134e-10
  Prefactor  = 13.8418
  norm       = 0.519638
  Prefactor  = 51.0678
  Prefactor  = 4.60743e-09
  Prefactor  = 106.539
  norm       = 0.942548
  norm       = 14.4014
  Prefactor  = 11.5254
  norm       = 0.294777
  Prefactor  = 1.41553e-08
  Prefactor  = 80.6038
  Prefactor  = 3.4972e-09
  Prefactor  = 2.48622
  Normalizat = 0.80736
  Prefactor  = 1.10434
 **********
 **   18 **HESSE 
 **********

 FCN=   11975.36     FROM HESSE     STATUS=OK           314 CALLS     1300 TOTAL
                     EDM=   .60E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4844        .92713        .88003E-03   -1.5684    
   2  norm          .53765        2.8925        .75366E-03   -1.5693    
   3  Prefactor     12.025        12.954        .28865E-03   -1.5639    
   4  Prefactor     .66613E-09    16.080        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     13.842        15.200        .26963E-03   -1.5634    
   6  norm          .51964        .88470        .25696E-02   -1.5694    
   7  Prefactor     51.068        29.032        .14079E-03   -1.5565    
   8  Prefactor     .46074E-08    8.7204        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     106.54        39.931        .97391E-04   -1.5502    
  10  norm          .94255        2.8545        .43998E-03   -1.5689    
  11  norm          14.401        10.262        .26418E-03   -1.5632    
  12  Prefactor     11.525        16.127        .29058E-03   -1.5640    
  13  norm          .29478        1.6558        .10287E-02   -1.5697    
  14  Prefactor     .14155E-07    16.029        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     80.604        48.411        .11079E-03   -1.5528    
  16  Prefactor     .34972E-08    9.8536        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.4862        3.3182        .64841E-03   -1.5676    
  18  Normalizat    .80736        .20812        .10157       -.99796    
  19  Prefactor     1.1043        .79848E-01    .37421E-01   -.89328    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.00839e-06
Minuit parameter uncertainties:
  1  0.927127
  2  2.49412
  3  12.9541
  4  0.000206809
  5  15.2003
  6  0.884696
  7  29.0324
  8  0.000400997
  9  39.9309
  10  2.85448
  11  10.2618
  12  16.1266
  13  1.39729
  14  0.000953342
  15  48.4115
  16  0.000371273
  17  3.31823
  18  0.20833
  19  0.0798564
Done.

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

Extracting fit parameters...

4FGL J2304.6+3704
   Spectrum: PowerLaw
376    Prefactor:  1.384e+01  1.520e+01  0.000e+00  1.000e+06 ( 1.000e-14)
377        Index:  1.849e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
378        Scale:  3.823e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
517    Prefactor:  1.104e+00  7.986e-02  0.000e+00  1.000e+01 ( 1.000e+00)
518        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
519        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
512   Normalization:  8.074e-01  2.083e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.50
Ra Dec: 346.173 37.083
Photon Index (Fixed Index): 1.85 +/- 0.00
Photon Flux (Fixed Index): 1.37e-08 +/- 1.50e-08
Energy Flux (Fixed Index): 1.42e-05 +/- 1.56e-05

TS (Fixed Index): 1.50
Ra Dec: 346.173 37.083
Photon Flux Upper Limit: 5.58e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.13e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/965403/likelihoodResults_692668801_692928001_4FGL_J2304.6+3704_daily_bin1749.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) = 11975.2461331
delta logL = 0.110398029074

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11975.2398798
delta logL = 0.116651347613

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.5849       1.0000          .0000       .10000E+07
     2 'Index     '    2.2047       1.0000          .0000       10.000    
     3 'Normalizat'    .79924       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1053       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5200E+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=   11975.24     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      291 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.5894        18.734        .13675E-04    .48517E-02
   2  Index         2.2060        .97718        .90551E-02    .18240E-03
   3  Normalizat    .79911        .21595        .45230E-03    .67251E-03
   4  Prefactor     1.1054        .86855E-01    .15692E-03    .21964E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.5894
  Index      = 2.20597
  Normalizat = 0.799106
  Prefactor  = 1.10539
 **********
 **   18 **HESSE 
 **********

 FCN=   11975.24     FROM HESSE     STATUS=OK            25 CALLS      316 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.5894        14.559        .54701E-06   -1.5649    
   2  Index         2.2060        .76228        .36221E-03   -.59295    
   3  Normalizat    .79911        .21524        .18092E-04   -1.0010    
   4  Prefactor     1.1054        .86793E-01    .31383E-04   -.89294    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.18053e-09
Minuit parameter uncertainties:
  1  14.5595
  2  0.766638
  3  0.215465
  4  0.0868041
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/965403': 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) = 11975.2398739
delta logL = 0.116657306378

Extracting fit parameters...

4FGL J2304.6+3704
   Spectrum: PowerLaw
376    Prefactor:  8.589e+00  1.456e+01  0.000e+00  1.000e+06 ( 1.000e-14)
377        Index:  2.206e+00  7.666e-01  0.000e+00  1.000e+01 (-1.000e+00)
378        Scale:  3.823e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
517    Prefactor:  1.105e+00  8.680e-02  0.000e+00  1.000e+01 ( 1.000e+00)
518        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
519        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
512   Normalization:  7.991e-01  2.155e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.75
Ra Dec: 346.173 37.083
Photon Index (Free Index): 2.21 +/- 0.77
Photon Flux (Free Index): 2.21e-08 +/- 2.84e-08
Energy Flux (Free Index): 9.80e-06 +/- 1.15e-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/965403/cmap_HighResolution_692668801_692928001_4FGL_J2304.6+3704_daily_bin1749.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.13e-03', comment='SUCCESS', photon_flux='1.37e-08', energy_flux2='9.80e-06', photon_flux_error='1.50e-08', dlogl='1.17e-01', energy_flux='1.42e-05', photon_flux2='2.21e-08', job_status='DONE', time_completed='2022-12-17 01:49:40.407892', photon_index_error2='0.77', photon_index2='2.21', ts='1.50', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', photon_flux_upper_limit='5.58e-08', energy_flux_error2='1.15e-05', EG='0.81', time_epoch_completed='1671270580.41', return_code='0', job_id='965403', GAL2='1.11', EG2='0.80', return_code2='0', energy_flux_error='1.56e-05', photon_flux_error2='2.84e-08', ts2='1.75', photon_index='1.85' WHERE bin_id='1749' AND source_name='4FGL J2304.6+3704' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Dec 17 01:49:40 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0232>
Subject: Job 965403: <4FGL_J2304.6+3704_daily_bin1749> in cluster <slac> Done

Job <4FGL_J2304.6+3704_daily_bin1749> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Dec 17 01:35:13 2022
Job was executed on host(s) <bullet0232>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Dec 17 01:35:14 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Dec 17 01:35:14 2022
Terminated at Sat Dec 17 01:49:41 2022
Results reported at Sat Dec 17 01:49:41 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2304.6+3704_daily_bin1749 346.173 37.0826 692668801 692928001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2304.6+3704 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   707.03 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             342.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   866 sec.
    Turnaround time :                            868 sec.

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

