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 42 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7626
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2313.5+3945_daily_bin1778
RA = 348.4, Dec = 39.7644
tmin = 700185601, tmax = 700444801
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository job = True

LAT data source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='982474', job_status='RUN', time_executed='2023-03-14 02:21:21.058359', time_epoch_executed='1678785681.06' WHERE source_name='4FGL J2313.5+3945' and cadence='daily' and bin_id='1778'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/982474

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/982474/ft1_4FGL_J2313.5+3945_daily_bin1778.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/982474/ft2_4FGL_J2313.5+3945_daily_bin1778.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/982474/ft1_4FGL_J2313.5+3945_daily_bin1778.fits outfile=/scratch/kocevski/982474/ft1_filteredMKT_4FGL_J2313.5+3945_daily_bin1778.fits ra=348.4 dec=39.7644 rad=12.0 tmin=700185601.0 tmax=700444801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.95
user 3.71
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/982474/ft2_4FGL_J2313.5+3945_daily_bin1778.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/982474/ft2_4FGL_J2313.5+3945_daily_bin1778.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/982474/ft1_filteredMKT_4FGL_J2313.5+3945_daily_bin1778.fits evtable="EVENTS" outfile="/scratch/kocevski/982474/ft1_filtered_4FGL_J2313.5+3945_daily_bin1778.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.34
sys 0.15

Number of photons that the gtmktime cut: 1036

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/982474/ft1_filtered_4FGL_J2313.5+3945_daily_bin1778.fits" evtable="EVENTS" scfile=/scratch/kocevski/982474/ft2_4FGL_J2313.5+3945_daily_bin1778.fits sctable="SC_DATA" outfile=/scratch/kocevski/982474/ltcube_700185601_700444801_4FGL_J2313.5+3945_daily_bin1778.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Working on file /scratch/kocevski/982474/ft2_4FGL_J2313.5+3945_daily_bin1778.fits
.....................!
real 12.04
user 11.73
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/982474/ft1_filtered_4FGL_J2313.5+3945_daily_bin1778.fits evtable="EVENTS" scfile=/scratch/kocevski/982474/ft2_4FGL_J2313.5+3945_daily_bin1778.fits sctable="SC_DATA" expcube=/scratch/kocevski/982474/ltcube_700185601_700444801_4FGL_J2313.5+3945_daily_bin1778.fits outfile=/scratch/kocevski/982474/expmap_700185601_700444801_4FGL_J2313.5+3945_daily_bin1778.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /scratch/kocevski/982474/ltcube_700185601_700444801_4FGL_J2313.5+3945_daily_bin1778.fits
.....................!
real 192.43
user 187.38
sys 4.72

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 161 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 J2313.5+3945 @ 348.4 39.7644

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/982474/ft1_filtered_4FGL_J2313.5+3945_daily_bin1778.fits scfile=/scratch/kocevski/982474/ft2_4FGL_J2313.5+3945_daily_bin1778.fits outfile=/scratch/kocevski/982474/cmap_700185601_700444801_4FGL_J2313.5+3945_daily_bin1778.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=348.4 yref=39.7644 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/982474/ft1_filtered_4FGL_J2313.5+3945_daily_bin1778.fits scfile=/scratch/kocevski/982474/ft2_4FGL_J2313.5+3945_daily_bin1778.fits outfile=/scratch/kocevski/982474/cmap_HighResolution_700185601_700444801_4FGL_J2313.5+3945_daily_bin1778.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=348.4 yref=39.7644 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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/982474/ft1_filtered_4FGL_J2313.5+3945_daily_bin1778.fits evtable="EVENTS" scfile=/scratch/kocevski/982474/ft2_4FGL_J2313.5+3945_daily_bin1778.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/982474/Model_4FGL_J2313.5+3945_daily_bin1778.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source CTB 109
adding source EG_v02
adding source FHES J2304.0+5406
adding source GAL_V02
Working on...
/scratch/kocevski/982474/ft1_filtered_4FGL_J2313.5+3945_daily_bin1778.fits.....................!
real 128.59
user 127.12
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/982474/ft1_filtered_4FGL_J2313.5+3945_daily_bin1778.fits', '/scratch/kocevski/982474/ft2_4FGL_J2313.5+3945_daily_bin1778.fits', expMap='/scratch/kocevski/982474/expmap_700185601_700444801_4FGL_J2313.5+3945_daily_bin1778.fits', expCube='/scratch/kocevski/982474/ltcube_700185601_700444801_4FGL_J2313.5+3945_daily_bin1778.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/982474/Model_4FGL_J2313.5+3945_daily_bin1778.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2313.5+3945'

4FGL J2313.5+3945
   Spectrum: PowerLaw
406    Prefactor:  4.195e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
407        Index:  2.758e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
408        Scale:  4.854e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/982474/ft1_filtered_4FGL_J2313.5+3945_daily_bin1778.fits
Spacecraft file(s): /scratch/kocevski/982474/ft2_4FGL_J2313.5+3945_daily_bin1778.fits
Exposure map: /scratch/kocevski/982474/expmap_700185601_700444801_4FGL_J2313.5+3945_daily_bin1778.fits
Exposure cube: /scratch/kocevski/982474/ltcube_700185601_700444801_4FGL_J2313.5+3945_daily_bin1778.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/982474/Model_4FGL_J2313.5+3945_daily_bin1778.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    41.349       1.0000          .0000       .10000E+07
     2 'norm      '    .20305E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    9.4974       1.0000          .0000       .10000E+07
     4 'norm      '    3.1891       1.0000          .0000       .10000E+07
     5 'Prefactor '    12.819       1.0000          .0000       .10000E+07
     6 'Prefactor '    .11152E-05   1.0000          .0000       .10000E+07
     7 'Prefactor '    .21246E-02   1.0000          .0000       .10000E+07
     8 'norm      '    1.0920       1.0000          .0000       .10000E+07
     9 'Prefactor '    2.6209       1.0000          .0000       .10000E+07
    10 'Prefactor '    17.291       1.0000          .0000       .10000E+07
    11 'norm      '    .40153E-05   1.0000          .0000       .10000E+07
    12 'norm      '    19.304       1.0000          .0000       .10000E+07
    13 'Prefactor '    25.501       1.0000          .0000       .10000E+07
    14 'norm      '    .24640E-04   1.0000          .0000       .10000E+07
    15 'Prefactor '    .77363E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    .35644E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    7.2612       1.0000          .0000       .10000E+07
    18 'Prefactor '    .38802E-02   1.0000          .0000       .10000E+07
    19 'Normalizat'    1.3308       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .77890       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5410E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10789.11     FROM MIGRAD    STATUS=CONVERGED    122 CALLS     1508 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     41.516        2.1699       -.51097E-09    .19490E-01
   2  norm          .24889E-05    9.0227       -.10507E-07** at limit **
   3  Prefactor     9.3960        7.4111       -.15545E-09   -.33056E-02
   4  norm          3.1757        3.4308        .23710E-10   -.50928E-02
   5  Prefactor     13.087        11.424       -.11995E-08    .32257E-01
   6  Prefactor     .11102E-09    1.8317       -.63973E-10** at limit **
   7  Prefactor     .16713E-05    10.372        .78839E-08** at limit **
   8  norm          1.0917        .97340       -.28637E-10   -.12053E-01
   9  Prefactor     2.6815        7.6837        .60008E-09    .69115E-03
  10  Prefactor     17.317        3.4133        .19784E-08   -.31358E-01
  11  norm           .0000        4.4267        .14092E-09** at limit **
  12  norm          19.064        5.0658       -.27926E-08    .54902E-01
  13  Prefactor     25.491        4.1997        .11151E-08   -.22864E-01
  14  norm          .88818E-09    2.8708       -.64256E-10** at limit **
  15  Prefactor     .34653E-05    17.091        .11411E-07** at limit **
  16  Prefactor     .25779E-06    9.3778       -.27811E-08** at limit **
  17  Prefactor     8.6907        30.375        .29057E-08   -.10234E-01
  18  Prefactor     .16833E-05    5.5397       -.80869E-08** at limit **
  19  Normalizat    1.3299        .21885       -.12452E-08   -.19479E-03
  20  Prefactor     .77904        .78307E-01   -.30517E-09    .65042E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 41.516
  norm       = 2.4889e-06
  Prefactor  = 9.39596
  norm       = 3.17572
  Prefactor  = 13.087
  Prefactor  = 1.11022e-10
  Prefactor  = 1.67127e-06
  norm       = 1.09173
  Prefactor  = 2.68153
  Prefactor  = 17.3175
  norm       = 0
  norm       = 19.064
  Prefactor  = 25.4906
  norm       = 8.88178e-10
  Prefactor  = 3.46528e-06
  Prefactor  = 2.57794e-07
  Prefactor  = 8.69069
  Prefactor  = 1.68326e-06
  Normalizat = 1.32991
  Prefactor  = 0.77904
 **********
 **   18 **HESSE 
 **********

 FCN=   10789.11     FROM HESSE     STATUS=OK           335 CALLS     1843 TOTAL
                     EDM=   .90E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     41.516        23.948        .15553E-03   -1.5579    
   2  norm          .24889E-05    15.421        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.3960        7.4254        .32494E-03   -1.5647    
   4  norm          3.1757        3.4390        .56717E-03   -1.5672    
   5  Prefactor     13.087        11.467        .27951E-03   -1.5636    
   6  Prefactor     .11102E-09    1.8265        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .16713E-05    11.061        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.0917        .97146        .11431E-02   -1.5687    
   9  Prefactor     2.6815        7.7303        .62972E-03   -1.5675    
  10  Prefactor     17.317        24.910        .24059E-03   -1.5625    
  11  norm           .0000        4.4150        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          19.064        12.721        .22768E-03   -1.5621    
  13  Prefactor     25.491        16.766        .19807E-03   -1.5607    
  14  norm          .88818E-09    2.8011        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .34653E-05    17.639        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .25779E-06    9.8066        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     8.6907        30.464        .37199E-03   -1.5649    
  18  Prefactor     .16833E-05    16.403        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.3299        .19486        .77718E-01   -.82678    
  20  Prefactor     .77904        .67918E-01    .43442E-01   -1.0051    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.02954e-07
Minuit parameter uncertainties:
  1  23.9483
  2  0.0123905
  3  7.42538
  4  3.43896
  5  11.4673
  6  2.46921e-05
  7  0.00859908
  8  0.971464
  9  7.73033
  10  24.91
  11  1.15503e-05
  12  12.7209
  13  16.7664
  14  9.89611e-05
  15  0.0156363
  16  0.00318011
  17  30.4648
  18  0.0105093
  19  0.194967
  20  0.0679251
Done.

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

Extracting fit parameters...

4FGL J2313.5+3945
   Spectrum: PowerLaw
406    Prefactor:  2.682e+00  7.730e+00  0.000e+00  1.000e+06 ( 1.000e-12)
407        Index:  2.758e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
408        Scale:  4.854e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
538    Prefactor:  7.790e-01  6.793e-02  0.000e+00  1.000e+01 ( 1.000e+00)
539        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
540        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
533   Normalization:  1.330e+00  1.950e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.14
Ra Dec: 348.400 39.764
Photon Flux Upper Limit: 9.87e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.79e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/982474/likelihoodResults_700185601_700444801_4FGL_J2313.5+3945_daily_bin1778.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10789.109034
delta logL = 0.0049782515398

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10789.1087596
delta logL = 0.00525265342912

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.5789       1.0000          .0000       .10000E+07
     2 'Index     '    2.9694       1.0000          .0000       10.000    
     3 'Normalizat'    1.3266       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77968       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5410E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10789.11     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      292 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.5768        8.2251        .12705E-03   -.40750E-03
   2  Index         2.9694        2.2341        .25105E-01    .11130E-03
   3  Normalizat    1.3269        .21706        .34431E-03   -.11028E-03
   4  Prefactor     .77965        .78021E-01    .15829E-03   -.26778E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.57682
  Index      = 2.96939
  Normalizat = 1.3269
  Prefactor  = 0.779652
 **********
 **   18 **HESSE 
 **********

 FCN=   10789.11     FROM HESSE     STATUS=OK            27 CALLS      319 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.5768        7.5628        .50820E-05   -1.5676    
   2  Index         2.9694        2.0705        .50210E-02   -.41821    
   3  Normalizat    1.3269        .21730        .13773E-04   -.82767    
   4  Prefactor     .77965        .78043E-01    .31658E-04   -1.0048    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.41786e-11
Minuit parameter uncertainties:
  1  7.56285
  2  2.14883
  3  0.217448
  4  0.0780541
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/982474': 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) = 10789.1087571
delta logL = 0.00525516496054

Extracting fit parameters...

4FGL J2313.5+3945
   Spectrum: PowerLaw
406    Prefactor:  2.577e+00  7.563e+00  0.000e+00  1.000e+06 ( 1.000e-12)
407        Index:  2.969e+00  2.149e+00  0.000e+00  1.000e+01 (-1.000e+00)
408        Scale:  4.854e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
538    Prefactor:  7.797e-01  7.805e-02  0.000e+00  1.000e+01 ( 1.000e+00)
539        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
540        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
533   Normalization:  1.327e+00  2.174e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.14
Ra Dec: 348.400 39.764

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/982474/cmap_HighResolution_700185601_700444801_4FGL_J2313.5+3945_daily_bin1778.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.79e-03', job_status='DONE', photon_flux_upper_limit='9.87e-08', time_completed='2023-03-14 02:33:49.567601', job_id='982474', GAL2='0.78', fit_tolerance='1e-08', EG2='1.33', EG='1.33', time_epoch_completed='1678786429.57', return_code2='0', ts='0.14', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='5.26e-03', ts2='0.15', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='1778' AND source_name='4FGL J2313.5+3945' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Mar 14 02:33:49 PDT 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0196>
Subject: Job 982474: <4FGL_J2313.5+3945_daily_bin1778> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2313.5+3945_daily_bin1778 348.4 39.7644 700185601 700444801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2313.5+3945 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   750.36 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             353.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   802 sec.
    Turnaround time :                            804 sec.

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

