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


Performing analysis on: 4FGL_J2304.6+3704_daily_bin1778
RA = 346.173, Dec = 37.0826
tmin = 700185601, tmax = 700444801
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='982464', job_status='RUN', time_executed='2023-03-14 02:21:35.547441', time_epoch_executed='1678785695.55' WHERE source_name='4FGL J2304.6+3704' and cadence='daily' and bin_id='1778'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/982464

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/982464/ft1_4FGL_J2304.6+3704_daily_bin1778.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/982464/ft2_4FGL_J2304.6+3704_daily_bin1778.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/982464/ft1_4FGL_J2304.6+3704_daily_bin1778.fits outfile=/scratch/kocevski/982464/ft1_filteredMKT_4FGL_J2304.6+3704_daily_bin1778.fits ra=346.173 dec=37.0826 rad=12.0 tmin=700185601.0 tmax=700444801.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.96
user 3.71
sys 0.22

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

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

Number of photons that the gtmktime cut: 1024

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/982464/ft1_filtered_4FGL_J2304.6+3704_daily_bin1778.fits" evtable="EVENTS" scfile=/scratch/kocevski/982464/ft2_4FGL_J2304.6+3704_daily_bin1778.fits sctable="SC_DATA" outfile=/scratch/kocevski/982464/ltcube_700185601_700444801_4FGL_J2304.6+3704_daily_bin1778.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/982464/ft2_4FGL_J2304.6+3704_daily_bin1778.fits
.....................!
real 12.06
user 11.70
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/982464/ft1_filtered_4FGL_J2304.6+3704_daily_bin1778.fits evtable="EVENTS" scfile=/scratch/kocevski/982464/ft2_4FGL_J2304.6+3704_daily_bin1778.fits sctable="SC_DATA" expcube=/scratch/kocevski/982464/ltcube_700185601_700444801_4FGL_J2304.6+3704_daily_bin1778.fits outfile=/scratch/kocevski/982464/expmap_700185601_700444801_4FGL_J2304.6+3704_daily_bin1778.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/982464/ltcube_700185601_700444801_4FGL_J2304.6+3704_daily_bin1778.fits
.....................!
real 189.81
user 185.04
sys 4.40

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/982464/ft1_filtered_4FGL_J2304.6+3704_daily_bin1778.fits scfile=/scratch/kocevski/982464/ft2_4FGL_J2304.6+3704_daily_bin1778.fits outfile=/scratch/kocevski/982464/cmap_700185601_700444801_4FGL_J2304.6+3704_daily_bin1778.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/982464/ft1_filtered_4FGL_J2304.6+3704_daily_bin1778.fits scfile=/scratch/kocevski/982464/ft2_4FGL_J2304.6+3704_daily_bin1778.fits outfile=/scratch/kocevski/982464/cmap_HighResolution_700185601_700444801_4FGL_J2304.6+3704_daily_bin1778.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/982464/ft1_filtered_4FGL_J2304.6+3704_daily_bin1778.fits evtable="EVENTS" scfile=/scratch/kocevski/982464/ft2_4FGL_J2304.6+3704_daily_bin1778.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/982464/Model_4FGL_J2304.6+3704_daily_bin1778.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/982464/ft1_filtered_4FGL_J2304.6+3704_daily_bin1778.fits.....................!
real 120.95
user 119.50
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/982464/ft1_filtered_4FGL_J2304.6+3704_daily_bin1778.fits', '/scratch/kocevski/982464/ft2_4FGL_J2304.6+3704_daily_bin1778.fits', expMap='/scratch/kocevski/982464/expmap_700185601_700444801_4FGL_J2304.6+3704_daily_bin1778.fits', expCube='/scratch/kocevski/982464/ltcube_700185601_700444801_4FGL_J2304.6+3704_daily_bin1778.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/982464/Model_4FGL_J2304.6+3704_daily_bin1778.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/982464/ft1_filtered_4FGL_J2304.6+3704_daily_bin1778.fits
Spacecraft file(s): /scratch/kocevski/982464/ft2_4FGL_J2304.6+3704_daily_bin1778.fits
Exposure map: /scratch/kocevski/982464/expmap_700185601_700444801_4FGL_J2304.6+3704_daily_bin1778.fits
Exposure cube: /scratch/kocevski/982464/ltcube_700185601_700444801_4FGL_J2304.6+3704_daily_bin1778.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/982464/Model_4FGL_J2304.6+3704_daily_bin1778.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) = 10658.6765978

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.9293       1.0000          .0000       .10000E+07
     2 'norm      '    3.0036       1.0000          .0000       .10000E+07
     3 'Prefactor '    12.839       1.0000          .0000       .10000E+07
     4 'Prefactor '    .59664E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    .33032E-02   1.0000          .0000       .10000E+07
     6 'norm      '    1.0315       1.0000          .0000       .10000E+07
     7 'Prefactor '    12.547       1.0000          .0000       .10000E+07
     8 'Prefactor '    2.1779       1.0000          .0000       .10000E+07
     9 'Prefactor '    49.592       1.0000          .0000       .10000E+07
    10 'norm      '    .97613E-03   1.0000          .0000       .10000E+07
    11 'norm      '    18.613       1.0000          .0000       .10000E+07
    12 'Prefactor '    22.287       1.0000          .0000       .10000E+07
    13 'norm      '    .76958E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    .13716       1.0000          .0000       .10000E+07
    15 'Prefactor '    .45194E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    7.0757       1.0000          .0000       .10000E+07
    17 'Prefactor '    .34564E-02   1.0000          .0000       .10000E+07
    18 'Normalizat'    1.3755       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .77846       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=   10658.61     FROM MIGRAD    STATUS=CONVERGED    122 CALLS     1414 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.9310        1.3179        .30320E-07    .72762E-03
   2  norm          3.0063        3.4074        .42689E-06    .23080E-03
   3  Prefactor     12.847        4.3794        .20022E-06    .66131E-01
   4  Prefactor      .0000        1.7951       -.14391E-06** at limit **
   5  Prefactor     .34844E-06    9.2383       -.32767E-07** at limit **
   6  norm          1.0321        .94114        .47890E-08   -.40455E-03
   7  Prefactor     12.605        2.3652       -.11043E-06    .11735E-01
   8  Prefactor     2.2263        7.5178       -.29185E-06   -.17888E-02
   9  Prefactor     50.192        17.070        .47791E-06   -.24595    
  10  norm           .0000        4.4630        .78449E-06** at limit **
  11  norm          18.629        11.053        .42469E-06    .81525E-01
  12  Prefactor     22.229        9.3175        .22560E-06   -.10920E-01
  13  norm           .0000        2.6755       -.33406E-06** at limit **
  14  Prefactor     .55511E-10    33.066        .40376E-06** at limit **
  15  Prefactor     .13423E-06    8.3028       -.12836E-07** at limit **
  16  Prefactor     7.8721        27.328        .16380E-05    .54007E-01
  17  Prefactor     .12396E-06    19.546       -.18281E-05** at limit **
  18  Normalizat    1.3745        .22457       -.11799E-04   -.29064E-04
  19  Prefactor     .77849        .84078E-01   -.14396E-06   -.14133E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.93103
  norm       = 3.00628
  Prefactor  = 12.8465
  Prefactor  = 0
  Prefactor  = 3.48443e-07
  norm       = 1.03206
  Prefactor  = 12.6054
  Prefactor  = 2.22627
  Prefactor  = 50.1924
  norm       = 0
  norm       = 18.6291
  Prefactor  = 22.2289
  norm       = 0
  Prefactor  = 5.55112e-11
  Prefactor  = 1.34226e-07
  Prefactor  = 7.87212
  Prefactor  = 1.23956e-07
  Normalizat = 1.37454
  Prefactor  = 0.778494
 **********
 **   18 **HESSE 
 **********

 FCN=   10658.61     FROM HESSE     STATUS=OK           308 CALLS     1722 TOTAL
                     EDM=   .22E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.9310        1.3182        .59325E-03   -1.5674    
   2  norm          3.0063        3.4109        .58542E-03   -1.5673    
   3  Prefactor     12.847        11.310        .27930E-03   -1.5636    
   4  Prefactor      .0000        1.7889        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .34844E-06    10.625        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.0321        .93711        .12478E-02   -1.5688    
   7  Prefactor     12.605        21.395        .28254E-03   -1.5637    
   8  Prefactor     2.2263        7.5435        .69736E-03   -1.5678    
   9  Prefactor     50.192        35.034        .14201E-03   -1.5566    
  10  norm           .0000        4.4469        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          18.629        12.639        .23187E-03   -1.5622    
  12  Prefactor     22.229        16.441        .21188E-03   -1.5614    
  13  norm           .0000        2.6152        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .55511E-10    32.968        .13022E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .13423E-06    9.5651        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     7.8721        29.954        .37689E-03   -1.5652    
  17  Prefactor     .12396E-06    19.510        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.3745        .19851        .76903E-01   -.81368    
  19  Prefactor     .77849        .72657E-01    .43436E-01   -1.0053    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.18183e-06
Minuit parameter uncertainties:
  1  1.3182
  2  3.4109
  3  11.3102
  4  3.01324e-06
  5  0.00384813
  6  0.937106
  7  21.3956
  8  7.5435
  9  35.0341
  10  2.068e-05
  11  12.639
  12  16.4406
  13  2.02308e-06
  14  8.87447e-05
  15  0.00226596
  16  29.9547
  17  0.00311019
  18  0.198621
  19  0.0726663
Done.

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

Extracting fit parameters...

4FGL J2304.6+3704
   Spectrum: PowerLaw
376    Prefactor:  3.484e-07  3.848e-03  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:  7.785e-01  7.267e-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:  1.375e+00  1.986e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/982464/likelihoodResults_700185601_700444801_4FGL_J2304.6+3704_daily_bin1778.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) = 10658.6579181
delta logL = -0.0452057966941

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10658.1951077
delta logL = 0.417604667569

Fit tolerance = 1e-08

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

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

 FCN=   10658.20     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      251 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .41879E-01    .49737        .52047E-03** at limit **
   2  Index         4.1534        1.4494        .86184E-01    .33840E-03
   3  Normalizat    1.3143        .33185E-01    .78370E-01    .27635E-05
   4  Prefactor     .79009        .12715E-01    .43588E-01   -.14378E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0418785
  Index      = 4.15342
  Normalizat = 1.31426
  Prefactor  = 0.790089
 **********
 **   18 **HESSE 
 **********

 FCN=   10658.20     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      284 TOTAL
                     EDM=   .20E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .41879E-01    2.5972        .23147E-05   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         4.1534        4.0633        .48993E-02   -.17014    
   3  Normalizat    1.3143        .17774        .34688E-03   -.83142    
   4  Prefactor     .79009        .66002E-01    .16585E-03   -1.0009    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.04953e-06
Minuit parameter uncertainties:
  1  0.659596
  2  4.7771
  3  0.177824
  4  0.0660085
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/982464': 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) = 10658.195107
delta logL = 0.417605290944

Extracting fit parameters...

4FGL J2304.6+3704
   Spectrum: PowerLaw
376    Prefactor:  4.188e-02  6.596e-01  0.000e+00  1.000e+06 ( 1.000e-14)
377        Index:  4.153e+00  4.777e+00  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:  7.901e-01  6.601e-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:  1.314e+00  1.778e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 346.173 37.083

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/982464/cmap_HighResolution_700185601_700444801_4FGL_J2304.6+3704_daily_bin1778.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.28e-03', job_status='DONE', photon_flux_upper_limit='4.43e-08', time_completed='2023-03-14 02:33:17.685030', job_id='982464', GAL2='0.79', fit_tolerance='1e-08', EG2='1.31', EG='1.37', time_epoch_completed='1678786397.69', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='4.18e-01', ts2='0.95', photon_index_error='0.00', photon_index='1.85' WHERE bin_id='1778' AND source_name='4FGL J2304.6+3704' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Mar 14 02:33:17 PDT 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0272>
Subject: Job 982464: <4FGL_J2304.6+3704_daily_bin1778> in cluster <slac> Done

Job <4FGL_J2304.6+3704_daily_bin1778> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Mar 14 02:20:25 2023
Job was executed on host(s) <bullet0272>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Mar 14 02:20:26 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Mar 14 02:20:26 2023
Terminated at Tue Mar 14 02:33:18 2023
Results reported at Tue Mar 14 02:33:18 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2304.6+3704_daily_bin1778 346.173 37.0826 700185601 700444801 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 :                                   704.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             353.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   772 sec.
    Turnaround time :                            773 sec.

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

