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 63 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_J2304.6+3704_daily_bin1777
RA = 346.173, Dec = 37.0826
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='926567', job_status='RUN', time_executed='2023-03-11 01:31:31.989755', time_epoch_executed='1678527091.99' WHERE source_name='4FGL J2304.6+3704' and cadence='daily' and bin_id='1777'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/926567

Creating custom pfile directory:
/scratch/kocevski/926567/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/926567/ft1_4FGL_J2304.6+3704_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/926567/ft2_4FGL_J2304.6+3704_daily_bin1777.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/926567/ft1_4FGL_J2304.6+3704_daily_bin1777.fits outfile=/scratch/kocevski/926567/ft1_filteredMKT_4FGL_J2304.6+3704_daily_bin1777.fits ra=346.173 dec=37.0826 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.65
user 3.42
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/926567/ft1_filtered_4FGL_J2304.6+3704_daily_bin1777.fits" evtable="EVENTS" scfile=/scratch/kocevski/926567/ft2_4FGL_J2304.6+3704_daily_bin1777.fits sctable="SC_DATA" outfile=/scratch/kocevski/926567/ltcube_699926401_700185601_4FGL_J2304.6+3704_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/926567/ft2_4FGL_J2304.6+3704_daily_bin1777.fits
.....................!
real 12.01
user 11.66
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/926567/ft1_filtered_4FGL_J2304.6+3704_daily_bin1777.fits evtable="EVENTS" scfile=/scratch/kocevski/926567/ft2_4FGL_J2304.6+3704_daily_bin1777.fits sctable="SC_DATA" expcube=/scratch/kocevski/926567/ltcube_699926401_700185601_4FGL_J2304.6+3704_daily_bin1777.fits outfile=/scratch/kocevski/926567/expmap_699926401_700185601_4FGL_J2304.6+3704_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/926567/ltcube_699926401_700185601_4FGL_J2304.6+3704_daily_bin1777.fits
.....................!
real 190.21
user 185.12
sys 4.77

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/926567/ft1_filtered_4FGL_J2304.6+3704_daily_bin1777.fits scfile=/scratch/kocevski/926567/ft2_4FGL_J2304.6+3704_daily_bin1777.fits outfile=/scratch/kocevski/926567/cmap_699926401_700185601_4FGL_J2304.6+3704_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=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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/926567/ft1_filtered_4FGL_J2304.6+3704_daily_bin1777.fits scfile=/scratch/kocevski/926567/ft2_4FGL_J2304.6+3704_daily_bin1777.fits outfile=/scratch/kocevski/926567/cmap_HighResolution_699926401_700185601_4FGL_J2304.6+3704_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=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.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10969E-05   1.0000          .0000       .10000E+07
     2 'norm      '    1.0936       1.0000          .0000       .10000E+07
     3 'Prefactor '    .14581       1.0000          .0000       .10000E+07
     4 'Prefactor '    .65414E-05   1.0000          .0000       .10000E+07
     5 'Prefactor '    .57392E-03   1.0000          .0000       .10000E+07
     6 'norm      '    .93175       1.0000          .0000       .10000E+07
     7 'Prefactor '    64.233       1.0000          .0000       .10000E+07
     8 'Prefactor '    8.6860       1.0000          .0000       .10000E+07
     9 'Prefactor '    7.1737       1.0000          .0000       .10000E+07
    10 'norm      '    .20846E-03   1.0000          .0000       .10000E+07
    11 'norm      '    8.4317       1.0000          .0000       .10000E+07
    12 'Prefactor '    9.4701       1.0000          .0000       .10000E+07
    13 'norm      '    .29743       1.0000          .0000       .10000E+07
    14 'Prefactor '    .62417E-06   1.0000          .0000       .10000E+07
    15 'Prefactor '    .74557       1.0000          .0000       .10000E+07
    16 'Prefactor '    20.431       1.0000          .0000       .10000E+07
    17 'Prefactor '    .21467E-03   1.0000          .0000       .10000E+07
    18 'Normalizat'    .98340       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0941       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=   11833.54     FROM MIGRAD    STATUS=CONVERGED    155 CALLS     1501 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        .28873        .38191E-07** at limit **
   2  norm          1.1027        2.3376        .69814E-07    .74875E-03
   3  Prefactor     .34619E-01    4.8203       -.60960E-06** at limit **
   4  Prefactor      .0000        1.8052        .58338E-07** at limit **
   5  Prefactor      .0000        6.8756       -.74604E-07** at limit **
   6  norm          .93924        1.4226        .20507E-07    .14562E-03
   7  Prefactor     66.214        27.346        .16866E-06   -.10212    
   8  Prefactor     8.7020        10.976        .43347E-07   -.90065E-04
   9  Prefactor     7.3019        23.840       -.16422E-06    .24772E-02
  10  norm           .0000        2.3148        .22696E-07** at limit **
  11  norm          8.4839        9.8801       -.62259E-08    .39186E-03
  12  Prefactor     9.6762        16.048       -.24329E-06    .10233E-02
  13  norm          .30231        4.7084        .44942E-08    .51334E-05
  14  Prefactor     .71831E-07    35.303        .98735E-07** at limit **
  15  Prefactor     2.0548        169.40        .36981E-05   -.14534E-02
  16  Prefactor     21.587        22.760        .34070E-06    .71467E-01
  17  Prefactor      .0000        2.8266        .38289E-08** at limit **
  18  Normalizat    .97796        .24742       -.69515E-06    .52741E-04
  19  Prefactor     1.0949        .91181E-01    .32694E-07    .70373E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  norm       = 1.1027
  Prefactor  = 0.0346187
  Prefactor  = 0
  Prefactor  = 0
  norm       = 0.939244
  Prefactor  = 66.2143
  Prefactor  = 8.70198
  Prefactor  = 7.30191
  norm       = 0
  norm       = 8.48389
  Prefactor  = 9.67621
  norm       = 0.302307
  Prefactor  = 7.18314e-08
  Prefactor  = 2.05482
  Prefactor  = 21.5874
  Prefactor  = 0
  Normalizat = 0.977955
  Prefactor  = 1.09493
 **********
 **   18 **HESSE 
 **********

 FCN=   11833.54     FROM HESSE     STATUS=OK           318 CALLS     1819 TOTAL
                     EDM=   .52E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        .28808        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.1027        2.3890        .11410E-02   -1.5687    
   3  Prefactor     .34619E-01    12.222        .12833E-01   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        1.8058        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        6.8659        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .93924        1.4272        .43589E-03   -1.5689    
   7  Prefactor     66.214        33.570        .12478E-03   -1.5545    
   8  Prefactor     8.7020        11.057        .33987E-03   -1.5649    
   9  Prefactor     7.3019        24.157        .37428E-03   -1.5654    
  10  norm           .0000        2.3200        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          8.4839        9.8820        .34499E-03   -1.5650    
  12  Prefactor     9.6762        15.919        .32541E-03   -1.5646    
  13  norm          .30231        1.1610        .61444E-02   -1.5697    
  14  Prefactor     .71831E-07    35.500        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.0548        168.08        .57084E-03   -1.5679    
  16  Prefactor     21.587        37.533        .22130E-03   -1.5615    
  17  Prefactor      .0000        2.8175        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .97796        .21917        .95225E-01   -.93773    
  19  Prefactor     1.0949        .79837E-01    .37817E-01   -.89629    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.17666e-07
Minuit parameter uncertainties:
  1  8.24008e-07
  2  2.38895
  3  1.30093
  4  1.40474e-07
  5  5.09235e-06
  6  1.4272
  7  33.57
  8  11.0567
  9  24.1573
  10  1.29455e-06
  11  9.88198
  12  15.9192
  13  1.16102
  14  0.0031944
  15  37.1699
  16  37.5336
  17  2.64515e-06
  18  0.219367
  19  0.079846
Done.

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

Extracting fit parameters...

4FGL J2304.6+3704
   Spectrum: PowerLaw
376    Prefactor:  0.000e+00  5.092e-06  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.095e+00  7.985e-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:  9.780e-01  2.194e-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: 3.61e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.67e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/926567/likelihoodResults_699926401_700185601_4FGL_J2304.6+3704_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) = 11833.6079819
delta logL = -0.069595861527

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 11833.5383862
delta logL = -1.95317625185e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .51437E-06   1.0000          .0000       .10000E+07
     2 'Index     '    .57739       1.0000          .0000       10.000    
     3 'Normalizat'    .97786       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0950       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=   11833.54     FROM MIGRAD    STATUS=CONVERGED     65 CALLS      237 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .38858E-09    5.9322        .42118E-03** at limit **
   2  Index         1.9794        5.9811        .40745        .16741E-09
   3  Normalizat    .97796        .19503        .95225E-01    .19037E-03
   4  Prefactor     1.0949        .77855E-01    .37782E-01    .23728E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.88578e-10
  Index      = 1.97943
  Normalizat = 0.977957
  Prefactor  = 1.09493
 **********
 **   18 **HESSE 
 **********

 FCN=   11833.54     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      270 TOTAL
                     EDM=   .83E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .38858E-09    728.79        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9794        8.2625        .50000       -.64865    
   3  Normalizat    .97796        .69856E-01    .42181E-03   -.93773    
   4  Prefactor     1.0949        .27948E-01    .15915E-03   -.89629    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.26838e-09
Minuit parameter uncertainties:
  1  0.00106751
  2  44.3916
  3  0.069862
  4  0.0279482
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/926567': 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) = 11833.538386
delta logL = -8.36735125631e-11

Extracting fit parameters...

4FGL J2304.6+3704
   Spectrum: PowerLaw
376    Prefactor:  3.886e-10  1.068e-03  0.000e+00  1.000e+06 ( 1.000e-14)
377        Index:  1.979e+00  4.439e+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.095e+00  2.795e-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:  9.780e-01  6.986e-02  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/926567/cmap_HighResolution_699926401_700185601_4FGL_J2304.6+3704_daily_bin1777.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.67e-03', job_status='DONE', photon_flux_upper_limit='3.61e-08', time_completed='2023-03-11 01:43:52.861038', job_id='926567', GAL2='1.09', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1678527832.86', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='-8.37e-11', ts2='-0.00', photon_index_error='0.00', photon_index='1.85' WHERE bin_id='1777' AND source_name='4FGL J2304.6+3704' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Mar 11 01:43:52 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0123>
Subject: Job 926567: <4FGL_J2304.6+3704_daily_bin1777> in cluster <slac> Done

Job <4FGL_J2304.6+3704_daily_bin1777> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Sat Mar 11 01:30:18 2023
Job was executed on host(s) <bullet0123>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Mar 11 01:30:20 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Mar 11 01:30:20 2023
Terminated at Sat Mar 11 01:43:53 2023
Results reported at Sat Mar 11 01:43:53 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2304.6+3704_daily_bin1777 346.173 37.0826 699926401 700185601 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 :                                   743.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             366.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   813 sec.
    Turnaround time :                            815 sec.

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

