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


Performing analysis on: 4FGL_J2304.6+3704_daily_bin1746
RA = 346.173, Dec = 37.0826
tmin = 691891201, tmax = 692150401
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='742546', job_status='RUN', time_executed='2022-12-08 01:50:32.660144', time_epoch_executed='1670493032.66' WHERE source_name='4FGL J2304.6+3704' and cadence='daily' and bin_id='1746'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/742546

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/742546/ft1_4FGL_J2304.6+3704_daily_bin1746.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/742546/ft2_4FGL_J2304.6+3704_daily_bin1746.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/742546/ft1_4FGL_J2304.6+3704_daily_bin1746.fits outfile=/scratch/kocevski/742546/ft1_filteredMKT_4FGL_J2304.6+3704_daily_bin1746.fits ra=346.173 dec=37.0826 rad=12.0 tmin=691891201.0 tmax=692150401.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 4.72
user 4.44
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/742546/ft2_4FGL_J2304.6+3704_daily_bin1746.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/742546/ft1_filteredMKT_4FGL_J2304.6+3704_daily_bin1746.fits evtable="EVENTS" outfile="/scratch/kocevski/742546/ft1_filtered_4FGL_J2304.6+3704_daily_bin1746.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.52
user 0.32
sys 0.17

Number of photons that the gtmktime cut: 1108

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/742546/ft1_filtered_4FGL_J2304.6+3704_daily_bin1746.fits evtable="EVENTS" scfile=/scratch/kocevski/742546/ft2_4FGL_J2304.6+3704_daily_bin1746.fits sctable="SC_DATA" expcube=/scratch/kocevski/742546/ltcube_691891201_692150401_4FGL_J2304.6+3704_daily_bin1746.fits outfile=/scratch/kocevski/742546/expmap_691891201_692150401_4FGL_J2304.6+3704_daily_bin1746.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/742546/ltcube_691891201_692150401_4FGL_J2304.6+3704_daily_bin1746.fits
.....................!
real 190.68
user 185.01
sys 5.34

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/742546/ft1_filtered_4FGL_J2304.6+3704_daily_bin1746.fits scfile=/scratch/kocevski/742546/ft2_4FGL_J2304.6+3704_daily_bin1746.fits outfile=/scratch/kocevski/742546/cmap_691891201_692150401_4FGL_J2304.6+3704_daily_bin1746.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/742546/ft1_filtered_4FGL_J2304.6+3704_daily_bin1746.fits scfile=/scratch/kocevski/742546/ft2_4FGL_J2304.6+3704_daily_bin1746.fits outfile=/scratch/kocevski/742546/cmap_HighResolution_691891201_692150401_4FGL_J2304.6+3704_daily_bin1746.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.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3124       1.0000          .0000       .10000E+07
     2 'norm      '    .77716E-09   1.0000          .0000       .10000E+07
     3 'Prefactor '    .29280E-01   1.0000          .0000       .10000E+07
     4 'Prefactor '    2.3860       1.0000          .0000       .10000E+07
     5 'Prefactor '    .11102E-09   1.0000          .0000       .10000E+07
     6 'norm      '    2.3622       1.0000          .0000       .10000E+07
     7 'Prefactor '    2.7487       1.0000          .0000       .10000E+07
     8 'Prefactor '    .28866E-08   1.0000          .0000       .10000E+07
     9 'Prefactor '    171.03       1.0000          .0000       .10000E+07
    10 'norm      '    .53846E-08   1.0000          .0000       .10000E+07
    11 'norm      '    .11102E-09   1.0000          .0000       .10000E+07
    12 'Prefactor '    .72853E-06   1.0000          .0000       .10000E+07
    13 'norm      '    .37748E-08   1.0000          .0000       .10000E+07
    14 'Prefactor '    57.520       1.0000          .0000       .10000E+07
    15 'Prefactor '    .21094E-08   1.0000          .0000       .10000E+07
    16 'Prefactor '    .44409E-09   1.0000          .0000       .10000E+07
    17 'Prefactor '    .66613E-09   1.0000          .0000       .10000E+07
    18 'Normalizat'    1.4125       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .92938       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=   11400.26     FROM MIGRAD    STATUS=CONVERGED    106 CALLS     1672 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3124        .74702       -.46251E-07    .23477E-02
   2  norm           .0000        .93425        .24992E-06** at limit **
   3  Prefactor     .17360E-02    7.6008       -.59745E-06** at limit **
   4  Prefactor     2.3866        5.2967       -.10984E-05    .22888E-02
   5  Prefactor     .28311E-08    5.3773        .43019E-06** at limit **
   6  norm          2.3621        1.4033       -.11908E-06    .41083E-02
   7  Prefactor     2.7477        1.3809       -.55785E-07    .10852E-01
   8  Prefactor     .77716E-09    4.5512        .16933E-06** at limit **
   9  Prefactor     171.00        1.1227        .48228E-09   -.13289    
  10  norm          .16653E-09    1.9170        .19159E-06** at limit **
  11  norm           .0000        3.0015       -.51533E-06** at limit **
  12  Prefactor     .21133E-05    13.998       -.21405E-05** at limit **
  13  norm          .22204E-09    2.1593       -.31326E-06** at limit **
  14  Prefactor     57.529        1.0127       -.81349E-09    .23318E-01
  15  Prefactor     .57644E-05    7.7007       -.20730E-05** at limit **
  16  Prefactor     .10995E-05    15.409       -.16580E-05** at limit **
  17  Prefactor     .22204E-09    2.2606        .11286E-05** at limit **
  18  Normalizat    1.4126        .23167       -.77487E-05    .20896E-03
  19  Prefactor     .92934        .90173E-01    .16543E-05    .31538E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.31241
  norm       = 0
  Prefactor  = 0.00173599
  Prefactor  = 2.38664
  Prefactor  = 2.83107e-09
  norm       = 2.36207
  Prefactor  = 2.74775
  Prefactor  = 7.77156e-10
  Prefactor  = 171.005
  norm       = 1.66533e-10
  norm       = 0
  Prefactor  = 2.11325e-06
  norm       = 2.22045e-10
  Prefactor  = 57.5291
  Prefactor  = 5.76444e-06
  Prefactor  = 1.09951e-06
  Prefactor  = 2.22045e-10
  Normalizat = 1.41258
  Prefactor  = 0.929344
 **********
 **   18 **HESSE 
 **********

 FCN=   11400.26     FROM HESSE     STATUS=OK           304 CALLS     1976 TOTAL
                     EDM=   .82E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3124        .74409        .96171E-03   -1.5685    
   2  norm           .0000        .93476        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .17360E-02    8.4834        .11848E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.3866        5.3523        .66282E-03   -1.5677    
   5  Prefactor     .28311E-08    5.3835        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.3621        1.4105        .66649E-03   -1.5677    
   7  Prefactor     2.7477        61.387        .61378E-03   -1.5675    
   8  Prefactor     .77716E-09    4.5516        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     171.00        45.646        .76471E-04   -1.5446    
  10  norm          .16653E-09    1.9109        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm           .0000        2.9988        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .21133E-05    21.593        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .22204E-09    2.1242        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     57.529        64.171        .13186E-03   -1.5556    
  15  Prefactor     .57644E-05    18.892        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10995E-05    16.395        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .22204E-09    2.2656        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.4126        .20416        .83008E-01   -.80265    
  19  Prefactor     .92934        .77804E-01    .45378E-01   -.95123    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.21594e-07
Minuit parameter uncertainties:
  1  0.744088
  2  1.21481e-06
  3  0.24271
  4  5.35229
  5  0.000246353
  6  1.41047
  7  25.9754
  8  0.000119831
  9  45.6466
  10  3.55271e-05
  11  6.1263e-06
  12  0.0135103
  13  4.10787e-05
  14  64.1715
  15  0.0208714
  16  0.00849147
  17  4.63898e-05
  18  0.204276
  19  0.077813
Done.

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

Extracting fit parameters...

4FGL J2304.6+3704
   Spectrum: PowerLaw
376    Prefactor:  2.831e-09  2.464e-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.293e-01  7.781e-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.413e+00  2.043e-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.02e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.23e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/742546/likelihoodResults_691891201_692150401_4FGL_J2304.6+3704_daily_bin1746.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): 102
logL (Free Index) = 11400.3479153
delta logL = -0.0886400914842

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11400.2592753
delta logL = -1.34181391331e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11013E-06   1.0000          .0000       .10000E+07
     2 'Index     '    .27328       1.0000          .0000       10.000    
     3 'Normalizat'    1.4125       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92938       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=   11400.26     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      203 TOTAL
                     EDM=   .50E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-10    6.4351       -.47455E-07** at limit **
   2  Index         1.6711        2.8325        .62846E-05    .15354E-10
   3  Normalizat    1.4126        .22930       -.32386E-04   -.19921E-03
   4  Prefactor     .92934        .90552E-01    .88300E-05   -.54379E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-11
  Index      = 1.67106
  Normalizat = 1.41258
  Prefactor  = 0.929343
 **********
 **   18 **HESSE 
 **********

 FCN=   11400.26     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      236 TOTAL
                     EDM=   .30E-13    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    .31823E-01    .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6711        7.8893        .36390       -.72855    
   3  Normalizat    1.4126        .37833E-03    .83008E-01   -.80265    
   4  Prefactor     .92934        .14836E-03    .45378E-01   -.95123    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.01703e-14
Minuit parameter uncertainties:
  1  1.88735e-06
  2  8449.57
  3  0.00037833
  4  0.000148362
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/742546': 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) = 11400.2592752
delta logL = 2.47382558882e-10

Extracting fit parameters...

4FGL J2304.6+3704
   Spectrum: PowerLaw
376    Prefactor:  5.551e-11  1.887e-06  0.000e+00  1.000e+06 ( 1.000e-14)
377        Index:  1.671e+00  8.450e+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.293e-01  1.484e-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.413e+00  3.783e-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/742546/cmap_HighResolution_691891201_692150401_4FGL_J2304.6+3704_daily_bin1746.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.23e-03', job_status='DONE', photon_flux_upper_limit='3.02e-08', time_completed='2022-12-08 02:03:26.527082', job_id='742546', GAL2='0.93', fit_tolerance='1e-08', EG2='1.41', EG='1.41', time_epoch_completed='1670493806.53', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='2.47e-10', ts2='-0.00', photon_index_error='0.00', photon_index='1.85' WHERE bin_id='1746' AND source_name='4FGL J2304.6+3704' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Dec  8 02:03:26 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0230>
Subject: Job 742546: <4FGL_J2304.6+3704_daily_bin1746> in cluster <slac> Done

Job <4FGL_J2304.6+3704_daily_bin1746> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Dec  8 01:50:21 2022
Job was executed on host(s) <bullet0230>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Dec  8 01:50:23 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Dec  8 01:50:23 2022
Terminated at Thu Dec  8 02:03:27 2022
Results reported at Thu Dec  8 02:03:27 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2304.6+3704_daily_bin1746 346.173 37.0826 691891201 692150401 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 :                                   776.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             374.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   783 sec.
    Turnaround time :                            786 sec.

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

