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


Performing analysis on: 4FGL_J2304.6+3704_weekly_bin740
RA = 346.173, Dec = 37.0826
tmin = 686534401, tmax = 687139201
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='835751', job_status='RUN', time_executed='2022-10-11 00:55:38.881810', time_epoch_executed='1665474938.88' WHERE source_name='4FGL J2304.6+3704' and cadence='weekly' and bin_id='740'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/835751

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/835751/ft1_4FGL_J2304.6+3704_weekly_bin740.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/835751/ft2_4FGL_J2304.6+3704_weekly_bin740.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/835751/ft1_4FGL_J2304.6+3704_weekly_bin740.fits outfile=/scratch/kocevski/835751/ft1_filteredMKT_4FGL_J2304.6+3704_weekly_bin740.fits ra=346.173 dec=37.0826 rad=12.0 tmin=686534401.0 tmax=687139201.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 7.20
user 6.89
sys 0.28

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/835751/ft2_4FGL_J2304.6+3704_weekly_bin740.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/835751/ft1_filteredMKT_4FGL_J2304.6+3704_weekly_bin740.fits evtable="EVENTS" outfile="/scratch/kocevski/835751/ft1_filtered_4FGL_J2304.6+3704_weekly_bin740.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.56
user 0.36
sys 0.19

Number of photons that the gtmktime cut: 1193

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/835751/ft1_filtered_4FGL_J2304.6+3704_weekly_bin740.fits" evtable="EVENTS" scfile=/scratch/kocevski/835751/ft2_4FGL_J2304.6+3704_weekly_bin740.fits sctable="SC_DATA" outfile=/scratch/kocevski/835751/ltcube_686534401_687139201_4FGL_J2304.6+3704_weekly_bin740.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/835751/ft2_4FGL_J2304.6+3704_weekly_bin740.fits
.....................!
real 30.30
user 29.79
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/835751/ft1_filtered_4FGL_J2304.6+3704_weekly_bin740.fits evtable="EVENTS" scfile=/scratch/kocevski/835751/ft2_4FGL_J2304.6+3704_weekly_bin740.fits sctable="SC_DATA" expcube=/scratch/kocevski/835751/ltcube_686534401_687139201_4FGL_J2304.6+3704_weekly_bin740.fits outfile=/scratch/kocevski/835751/expmap_686534401_687139201_4FGL_J2304.6+3704_weekly_bin740.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/835751/ltcube_686534401_687139201_4FGL_J2304.6+3704_weekly_bin740.fits
.....................!
real 192.96
user 187.09
sys 5.27

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/835751/ft1_filtered_4FGL_J2304.6+3704_weekly_bin740.fits scfile=/scratch/kocevski/835751/ft2_4FGL_J2304.6+3704_weekly_bin740.fits outfile=/scratch/kocevski/835751/cmap_686534401_687139201_4FGL_J2304.6+3704_weekly_bin740.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.58
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/835751/ft1_filtered_4FGL_J2304.6+3704_weekly_bin740.fits scfile=/scratch/kocevski/835751/ft2_4FGL_J2304.6+3704_weekly_bin740.fits outfile=/scratch/kocevski/835751/cmap_HighResolution_686534401_687139201_4FGL_J2304.6+3704_weekly_bin740.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.58
user 0.41
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/835751/ft1_filtered_4FGL_J2304.6+3704_weekly_bin740.fits evtable="EVENTS" scfile=/scratch/kocevski/835751/ft2_4FGL_J2304.6+3704_weekly_bin740.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/835751/Model_4FGL_J2304.6+3704_weekly_bin740.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/835751/ft1_filtered_4FGL_J2304.6+3704_weekly_bin740.fits.....................!
real 150.18
user 148.16
sys 1.48

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .74901       1.0000          .0000       .10000E+07
     2 'norm      '    .10944E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    .29350E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    4.8873       1.0000          .0000       .10000E+07
     5 'Prefactor '    15.839       1.0000          .0000       .10000E+07
     6 'norm      '    2.9205       1.0000          .0000       .10000E+07
     7 'Prefactor '    63.595       1.0000          .0000       .10000E+07
     8 'Prefactor '    .62226E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    38.242       1.0000          .0000       .10000E+07
    10 'norm      '    .47252E-04   1.0000          .0000       .10000E+07
    11 'norm      '    .60665E-05   1.0000          .0000       .10000E+07
    12 'Prefactor '    .15967E-02   1.0000          .0000       .10000E+07
    13 'norm      '    .10764E-04   1.0000          .0000       .10000E+07
    14 'Prefactor '    6.5241       1.0000          .0000       .10000E+07
    15 'Prefactor '    .11547E-01   1.0000          .0000       .10000E+07
    16 'Prefactor '    .10234E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    .57399E-03   1.0000          .0000       .10000E+07
    18 'Normalizat'    .94330       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0826       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=   12900.35     FROM MIGRAD    STATUS=CONVERGED    130 CALLS     1495 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .74834        1.0046       -.31369E-06    .69466E-02
   2  norm          .55511E-10    2.8114       -.58952E-06** at limit **
   3  Prefactor      .0000        5.0315       -.78105E-07** at limit **
   4  Prefactor     4.8886        5.1465        .31996E-06   -.87710E-03
   5  Prefactor     15.787        1.5692       -.21278E-07   -.53568E-01
   6  norm          2.9190        1.7202        .12081E-06   -.21606E-02
   7  Prefactor     63.466        17.206       -.13651E-06    .94240E-01
   8  Prefactor     .16653E-09    7.5839       -.10138E-05** at limit **
   9  Prefactor     38.454        35.155        .35189E-06   -.63307E-01
  10  norm           .0000        3.6887        .18143E-06** at limit **
  11  norm          .16653E-09    6.2249       -.58643E-06** at limit **
  12  Prefactor     .25551E-04    14.602        .79465E-06** at limit **
  13  norm           .0000        1.5622       -.28959E-06** at limit **
  14  Prefactor     6.6318        13.210        .32589E-06   -.27938E-01
  15  Prefactor     .88555E-05    25.540        .76727E-06** at limit **
  16  Prefactor     .41677E-05    21.293       -.39301E-07** at limit **
  17  Prefactor      .0000        3.1438        .19226E-06** at limit **
  18  Normalizat    .94335        .23719       -.75431E-05    .48580E-04
  19  Prefactor     1.0826        .84315E-01    .16892E-05    .44919E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.748335
  norm       = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 4.8886
  Prefactor  = 15.7868
  norm       = 2.91903
  Prefactor  = 63.4664
  Prefactor  = 1.66533e-10
  Prefactor  = 38.4537
  norm       = 0
  norm       = 1.66533e-10
  Prefactor  = 2.55513e-05
  norm       = 0
  Prefactor  = 6.63182
  Prefactor  = 8.85547e-06
  Prefactor  = 4.16772e-06
  Prefactor  = 0
  Normalizat = 0.943354
  Prefactor  = 1.08259
 **********
 **   18 **HESSE 
 **********

 FCN=   12900.35     FROM HESSE     STATUS=OK           302 CALLS     1797 TOTAL
                     EDM=   .26E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .74834        1.0130        .56816E-03   -1.5691    
   2  norm          .55511E-10    2.7870        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        5.0280        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.8886        5.1539        .45476E-03   -1.5664    
   5  Prefactor     15.787        15.779        .25139E-03   -1.5628    
   6  norm          2.9190        1.7267        .59421E-03   -1.5674    
   7  Prefactor     63.466        40.870        .12541E-03   -1.5549    
   8  Prefactor     .16653E-09    7.5783        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     38.454        46.016        .16173E-03   -1.5584    
  10  norm           .0000        3.6684        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .16653E-09    6.2171        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .25551E-04    26.525        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm           .0000        1.5476        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.6318        145.62        .39267E-03   -1.5656    
  15  Prefactor     .88555E-05    29.584        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .41677E-05    23.238        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor      .0000        3.1402        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .94335        .21737        .10553       -.94953    
  19  Prefactor     1.0826        .75412E-01    .38290E-01   -.90025    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.57473e-06
Minuit parameter uncertainties:
  1  1.01301
  2  1.91663e-05
  3  3.52909e-06
  4  5.15386
  5  15.7794
  6  1.72669
  7  40.8699
  8  6.53704e-05
  9  46.0169
  10  1.78063e-05
  11  6.7976e-05
  12  0.0520677
  13  5.83884e-06
  14  62.154
  15  0.0323716
  16  0.0196825
  17  1.80481e-05
  18  0.217575
  19  0.0754197
Done.

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

Extracting fit parameters...

4FGL J2304.6+3704
   Spectrum: PowerLaw
376    Prefactor:  1.579e+01  1.578e+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.083e+00  7.542e-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.434e-01  2.176e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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) = 12900.3237698
delta logL = 0.0216224774704

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12900.3176103
delta logL = 0.0277819528674

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.833       1.0000          .0000       .10000E+07
     2 'Index     '    1.6894       1.0000          .0000       10.000    
     3 'Normalizat'    .94592       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0824       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=   12900.32     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      258 TOTAL
                     EDM=   .96E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.839        19.686        .94759E-05   -.19196E-04
   2  Index         1.6893        .68534        .12972E-01    .15138E-04
   3  Normalizat    .94593        .23030        .46718E-03   -.53049E-05
   4  Prefactor     1.0824        .83645E-01    .15843E-03    .31716E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.8393
  Index      = 1.68928
  Normalizat = 0.945928
  Prefactor  = 1.08243
 **********
 **   18 **HESSE 
 **********

 FCN=   12900.32     FROM HESSE     STATUS=OK            25 CALLS      283 TOTAL
                     EDM=   .16E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.839        19.257        .37904E-06   -1.5623    
   2  Index         1.6893        .67103        .51887E-03   -.72368    
   3  Normalizat    .94593        .23036        .18687E-04   -.94865    
   4  Prefactor     1.0824        .83682E-01    .63374E-05   -.90030    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.59325e-12
Minuit parameter uncertainties:
  1  19.2567
  2  0.67467
  3  0.230605
  4  0.0836925
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/835751': 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) = 12900.3176103
delta logL = 0.0277820111878

Extracting fit parameters...

4FGL J2304.6+3704
   Spectrum: PowerLaw
376    Prefactor:  1.784e+01  1.926e+01  0.000e+00  1.000e+06 ( 1.000e-14)
377        Index:  1.689e+00  6.747e-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.082e+00  8.369e-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.459e-01  2.306e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.52
Ra Dec: 346.173 37.083
Photon Index (Free Index): 1.69 +/- 0.67
Photon Flux (Free Index): 1.21e-08 +/- 1.83e-08
Energy Flux (Free Index): 2.04e-05 +/- 2.95e-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/835751/cmap_HighResolution_686534401_687139201_4FGL_J2304.6+3704_weekly_bin740.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.56e-08', energy_flux2='2.04e-05', photon_flux_error='1.56e-08', dlogl='2.78e-02', energy_flux='1.62e-05', photon_flux2='1.21e-08', job_status='DONE', time_completed='2022-10-11 01:08:46.156523', photon_index_error2='0.67', photon_index2='1.69', ts='4.47', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', energy_flux_error2='2.95e-05', EG='0.94', time_epoch_completed='1665475726.16', return_code='0', job_id='835751', GAL2='1.08', EG2='0.95', return_code2='0', energy_flux_error='1.62e-05', photon_flux_error2='1.83e-08', ts2='4.52', photon_index='1.85' WHERE bin_id='740' AND source_name='4FGL J2304.6+3704' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Oct 11 01:08:46 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0265>
Subject: Job 835751: <4FGL_J2304.6+3704_weekly_bin740> in cluster <slac> Done

Job <4FGL_J2304.6+3704_weekly_bin740> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Oct 11 00:55:27 2022
Job was executed on host(s) <bullet0265>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Oct 11 00:55:27 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Oct 11 00:55:27 2022
Terminated at Tue Oct 11 01:08:46 2022
Results reported at Tue Oct 11 01:08:46 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2304.6+3704_weekly_bin740 346.173 37.0826 686534401 687139201 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 :                                   788.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             389.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   799 sec.
    Turnaround time :                            799 sec.

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

