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


Performing analysis on: 4FGL_J2304.6+3704_daily_bin1745
RA = 346.173, Dec = 37.0826
tmin = 691632001, tmax = 691891201
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='658773', job_status='RUN', time_executed='2022-12-05 01:31:41.885102', time_epoch_executed='1670232701.89' WHERE source_name='4FGL J2304.6+3704' and cadence='daily' and bin_id='1745'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/658773

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/658773/ft1_4FGL_J2304.6+3704_daily_bin1745.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/658773/ft2_4FGL_J2304.6+3704_daily_bin1745.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/658773/ft1_4FGL_J2304.6+3704_daily_bin1745.fits outfile=/scratch/kocevski/658773/ft1_filteredMKT_4FGL_J2304.6+3704_daily_bin1745.fits ra=346.173 dec=37.0826 rad=12.0 tmin=691632001.0 tmax=691891201.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 2.39
user 2.17
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/658773/ft2_4FGL_J2304.6+3704_daily_bin1745.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/658773/ft1_filteredMKT_4FGL_J2304.6+3704_daily_bin1745.fits evtable="EVENTS" outfile="/scratch/kocevski/658773/ft1_filtered_4FGL_J2304.6+3704_daily_bin1745.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.50
user 0.34
sys 0.15

Number of photons that the gtmktime cut: 1367

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/658773/ft1_filtered_4FGL_J2304.6+3704_daily_bin1745.fits evtable="EVENTS" scfile=/scratch/kocevski/658773/ft2_4FGL_J2304.6+3704_daily_bin1745.fits sctable="SC_DATA" expcube=/scratch/kocevski/658773/ltcube_691632001_691891201_4FGL_J2304.6+3704_daily_bin1745.fits outfile=/scratch/kocevski/658773/expmap_691632001_691891201_4FGL_J2304.6+3704_daily_bin1745.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/658773/ltcube_691632001_691891201_4FGL_J2304.6+3704_daily_bin1745.fits
.....................!
real 190.72
user 185.16
sys 5.20

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/658773/ft1_filtered_4FGL_J2304.6+3704_daily_bin1745.fits scfile=/scratch/kocevski/658773/ft2_4FGL_J2304.6+3704_daily_bin1745.fits outfile=/scratch/kocevski/658773/cmap_691632001_691891201_4FGL_J2304.6+3704_daily_bin1745.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.55
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/658773/ft1_filtered_4FGL_J2304.6+3704_daily_bin1745.fits scfile=/scratch/kocevski/658773/ft2_4FGL_J2304.6+3704_daily_bin1745.fits outfile=/scratch/kocevski/658773/cmap_HighResolution_691632001_691891201_4FGL_J2304.6+3704_daily_bin1745.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.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.6881       1.0000          .0000       .10000E+07
     2 'norm      '    .26736E-05   1.0000          .0000       .10000E+07
     3 'Prefactor '    6.2915       1.0000          .0000       .10000E+07
     4 'Prefactor '    3.5346       1.0000          .0000       .10000E+07
     5 'Prefactor '    .27628E-04   1.0000          .0000       .10000E+07
     6 'norm      '    .16098E-08   1.0000          .0000       .10000E+07
     7 'Prefactor '    .63214E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    .16408E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    499.30       1.0000          .0000       .10000E+07
    10 'norm      '    .10875E-06   1.0000          .0000       .10000E+07
    11 'norm      '    8.0172       1.0000          .0000       .10000E+07
    12 'Prefactor '    .12092       1.0000          .0000       .10000E+07
    13 'norm      '    .14961E-05   1.0000          .0000       .10000E+07
    14 'Prefactor '    140.48       1.0000          .0000       .10000E+07
    15 'Prefactor '    .80558E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    3.4996       1.0000          .0000       .10000E+07
    17 'Prefactor '    .13385E-03   1.0000          .0000       .10000E+07
    18 'Normalizat'    1.4658       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .91630       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=   14023.35     FROM MIGRAD    STATUS=CONVERGED    159 CALLS     1482 TOTAL
                     EDM=   .94E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.6874        .96752       -.16649E-06   -.85226E-02
   2  norm           .0000        2.0004        .39987E-06** at limit **
   3  Prefactor     6.2938        8.0469       -.34282E-07    .14516E-02
   4  Prefactor     3.5324        3.7759       -.11173E-05   -.26239E-02
   5  Prefactor     .77716E-09    5.3371        .26767E-05** at limit **
   6  norm           .0000        4.5270        .18614E-05** at limit **
   7  Prefactor     .72164E-09    12.279        .52290E-05** at limit **
   8  Prefactor     .44409E-09    5.2083        .24335E-05** at limit **
   9  Prefactor     498.94        27.450       -.81526E-06   -.14063    
  10  norm           .0000        .99581       -.20668E-06** at limit **
  11  norm          8.0284        8.3558       -.52289E-06   -.14116E-02
  12  Prefactor      .0000        38.048        .62927E-05** at limit **
  13  norm          .55511E-10    1.0431        .18673E-07** at limit **
  14  Prefactor     140.26        19.711       -.11016E-05    .20033    
  15  Prefactor     .99920E-09    50.156       -.30660E-05** at limit **
  16  Prefactor     2.4371        278.10       -.21952E-04   -.39770E-02
  17  Prefactor     .13323E-08    16.748        .23832E-05** at limit **
  18  Normalizat    1.4667        .22486       -.14427E-04    .86857E-04
  19  Prefactor     .91622        .83843E-01    .10563E-04   -.19819E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.68742
  norm       = 0
  Prefactor  = 6.29381
  Prefactor  = 3.53245
  Prefactor  = 7.77156e-10
  norm       = 0
  Prefactor  = 7.21645e-10
  Prefactor  = 4.44089e-10
  Prefactor  = 498.935
  norm       = 0
  norm       = 8.0284
  Prefactor  = 0
  norm       = 5.55112e-11
  Prefactor  = 140.259
  Prefactor  = 9.99201e-10
  Prefactor  = 2.43708
  Prefactor  = 1.33227e-09
  Normalizat = 1.4667
  Prefactor  = 0.916222
 **********
 **   18 **HESSE 
 **********

 FCN=   14023.35     FROM HESSE     STATUS=OK           308 CALLS     1790 TOTAL
                     EDM=   .31E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.6874        .96964        .62118E-03   -1.5675    
   2  norm           .0000        1.9780        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.2938        8.0691        .39995E-03   -1.5658    
   4  Prefactor     3.5324        3.7952        .53742E-03   -1.5670    
   5  Prefactor     .77716E-09    5.3571        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm           .0000        .45580        .29972E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .72164E-09    12.343        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .44409E-09    5.2115        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     498.94        62.827        .44764E-04   -1.5261    
  10  norm           .0000        .99715        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          8.0284        8.3683        .35387E-03   -1.5651    
  12  Prefactor      .0000        6.6468        .13398E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .55511E-10    1.0415        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     140.26        99.393        .84377E-04   -1.5471    
  15  Prefactor     .99920E-09    50.234        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.4371        382.03        .54022E-03   -1.5677    
  17  Prefactor     .13323E-08    17.143        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.4667        .19964        .88565E-01   -.78718    
  19  Prefactor     .91622        .72774E-01    .45212E-01   -.95577    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.12774e-06
Minuit parameter uncertainties:
  1  0.969644
  2  5.46908e-06
  3  8.06914
  4  3.79521
  5  0.000130123
  6  4.52449e-06
  7  0.000191774
  8  9.81228e-05
  9  62.8271
  10  4.4464e-06
  11  8.36834
  12  4.24747e-07
  13  1.45065e-05
  14  99.3938
  15  0.000447058
  16  61.0295
  17  0.000302394
  18  0.19975
  19  0.0727819
Done.

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

Extracting fit parameters...

4FGL J2304.6+3704
   Spectrum: PowerLaw
376    Prefactor:  7.772e-10  1.301e-04  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:  9.162e-01  7.278e-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.467e+00  1.998e-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: 2.97e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.20e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/658773/likelihoodResults_691632001_691891201_4FGL_J2304.6+3704_daily_bin1745.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) = 14023.4344553
delta logL = -0.0891171005842

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 14023.3453383
delta logL = -7.8574885265e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13767E-07   1.0000          .0000       .10000E+07
     2 'Index     '    .50700       1.0000          .0000       10.000    
     3 'Normalizat'    1.4667       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91622       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=   14023.35     FROM MIGRAD    STATUS=CONVERGED     24 CALLS      197 TOTAL
                     EDM=   .85E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .72164E-09    7.1035       -.16905E-05** at limit **
   2  Index         1.5255        2.4470        .56164E-04    .96543E-10
   3  Normalizat    1.4667        .22142       -.69531E-06   -.19353E-03
   4  Prefactor     .91622        .83444E-01    .31103E-07   -.37766E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.21645e-10
  Index      = 1.52554
  Normalizat = 1.4667
  Prefactor  = 0.916223
 **********
 **   18 **HESSE 
 **********

 FCN=   14023.35     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      232 TOTAL
                     EDM=   .30E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .72164E-09    .16243        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.5255        9.0908        .39770       -.76827    
   3  Normalizat    1.4667        .80798E-03    .88565E-01   -.78718    
   4  Prefactor     .91622        .30413E-03    .45211E-01   -.95577    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.01133e-12
Minuit parameter uncertainties:
  1  2.13874e-05
  2  7199.56
  3  0.000807982
  4  0.000304126
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/658773': 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) = 14023.3453382
delta logL = 1.63709046319e-11

Extracting fit parameters...

4FGL J2304.6+3704
   Spectrum: PowerLaw
376    Prefactor:  7.216e-10  2.139e-05  0.000e+00  1.000e+06 ( 1.000e-14)
377        Index:  1.526e+00  7.200e+03  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:  9.162e-01  3.041e-04  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.467e+00  8.080e-04  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/658773/cmap_HighResolution_691632001_691891201_4FGL_J2304.6+3704_daily_bin1745.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.20e-03', job_status='DONE', photon_flux_upper_limit='2.97e-08', time_completed='2022-12-05 01:45:44.133671', job_id='658773', GAL2='0.92', fit_tolerance='1e-08', EG2='1.47', EG='1.47', time_epoch_completed='1670233544.13', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='1.64e-11', ts2='-0.00', photon_index_error='0.00', photon_index='1.85' WHERE bin_id='1745' AND source_name='4FGL J2304.6+3704' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Dec  5 01:45:44 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0190>
Subject: Job 658773: <4FGL_J2304.6+3704_daily_bin1745> in cluster <slac> Done

Job <4FGL_J2304.6+3704_daily_bin1745> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Dec  5 01:30:23 2022
Job was executed on host(s) <bullet0190>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Dec  5 01:30:23 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Dec  5 01:30:23 2022
Terminated at Mon Dec  5 01:45:45 2022
Results reported at Mon Dec  5 01:45:45 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2304.6+3704_daily_bin1745 346.173 37.0826 691632001 691891201 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 :                                   844.10 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             322.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   921 sec.
    Turnaround time :                            922 sec.

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

