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


Performing analysis on: 4FGL_J2313.5+3945_daily_bin1735
RA = 348.4, Dec = 39.7644
tmin = 689040001, tmax = 689299201
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='866703', job_status='RUN', time_executed='2022-11-05 00:36:03.724100', time_epoch_executed='1667633763.72' WHERE source_name='4FGL J2313.5+3945' and cadence='daily' and bin_id='1735'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/866703

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/866703/ft1_4FGL_J2313.5+3945_daily_bin1735.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/866703/ft2_4FGL_J2313.5+3945_daily_bin1735.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/866703/ft1_4FGL_J2313.5+3945_daily_bin1735.fits outfile=/scratch/kocevski/866703/ft1_filteredMKT_4FGL_J2313.5+3945_daily_bin1735.fits ra=348.4 dec=39.7644 rad=12.0 tmin=689040001.0 tmax=689299201.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.70
user 3.47
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/866703/ft2_4FGL_J2313.5+3945_daily_bin1735.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/866703/ft1_filteredMKT_4FGL_J2313.5+3945_daily_bin1735.fits evtable="EVENTS" outfile="/scratch/kocevski/866703/ft1_filtered_4FGL_J2313.5+3945_daily_bin1735.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 1047

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/866703/ft1_filtered_4FGL_J2313.5+3945_daily_bin1735.fits" evtable="EVENTS" scfile=/scratch/kocevski/866703/ft2_4FGL_J2313.5+3945_daily_bin1735.fits sctable="SC_DATA" outfile=/scratch/kocevski/866703/ltcube_689040001_689299201_4FGL_J2313.5+3945_daily_bin1735.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/866703/ft2_4FGL_J2313.5+3945_daily_bin1735.fits
.....................!
real 11.90
user 11.55
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/866703/ft1_filtered_4FGL_J2313.5+3945_daily_bin1735.fits evtable="EVENTS" scfile=/scratch/kocevski/866703/ft2_4FGL_J2313.5+3945_daily_bin1735.fits sctable="SC_DATA" expcube=/scratch/kocevski/866703/ltcube_689040001_689299201_4FGL_J2313.5+3945_daily_bin1735.fits outfile=/scratch/kocevski/866703/expmap_689040001_689299201_4FGL_J2313.5+3945_daily_bin1735.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/866703/ltcube_689040001_689299201_4FGL_J2313.5+3945_daily_bin1735.fits
.....................!
real 191.67
user 186.63
sys 5.12

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/866703/ft1_filtered_4FGL_J2313.5+3945_daily_bin1735.fits scfile=/scratch/kocevski/866703/ft2_4FGL_J2313.5+3945_daily_bin1735.fits outfile=/scratch/kocevski/866703/cmap_689040001_689299201_4FGL_J2313.5+3945_daily_bin1735.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/866703/ft1_filtered_4FGL_J2313.5+3945_daily_bin1735.fits scfile=/scratch/kocevski/866703/ft2_4FGL_J2313.5+3945_daily_bin1735.fits outfile=/scratch/kocevski/866703/cmap_HighResolution_689040001_689299201_4FGL_J2313.5+3945_daily_bin1735.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.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/866703/ft1_filtered_4FGL_J2313.5+3945_daily_bin1735.fits evtable="EVENTS" scfile=/scratch/kocevski/866703/ft2_4FGL_J2313.5+3945_daily_bin1735.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/866703/Model_4FGL_J2313.5+3945_daily_bin1735.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/866703/ft1_filtered_4FGL_J2313.5+3945_daily_bin1735.fits.....................!
real 129.83
user 128.63
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/866703/ft1_filtered_4FGL_J2313.5+3945_daily_bin1735.fits', '/scratch/kocevski/866703/ft2_4FGL_J2313.5+3945_daily_bin1735.fits', expMap='/scratch/kocevski/866703/expmap_689040001_689299201_4FGL_J2313.5+3945_daily_bin1735.fits', expCube='/scratch/kocevski/866703/ltcube_689040001_689299201_4FGL_J2313.5+3945_daily_bin1735.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/866703/Model_4FGL_J2313.5+3945_daily_bin1735.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/866703/ft1_filtered_4FGL_J2313.5+3945_daily_bin1735.fits
Spacecraft file(s): /scratch/kocevski/866703/ft2_4FGL_J2313.5+3945_daily_bin1735.fits
Exposure map: /scratch/kocevski/866703/expmap_689040001_689299201_4FGL_J2313.5+3945_daily_bin1735.fits
Exposure cube: /scratch/kocevski/866703/ltcube_689040001_689299201_4FGL_J2313.5+3945_daily_bin1735.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/866703/Model_4FGL_J2313.5+3945_daily_bin1735.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) = 11212.4511399

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.7908       1.0000          .0000       .10000E+07
     2 'norm      '    24.373       1.0000          .0000       .10000E+07
     3 'Prefactor '    .71217       1.0000          .0000       .10000E+07
     4 'norm      '    5.4509       1.0000          .0000       .10000E+07
     5 'Prefactor '    .54567E-07   1.0000          .0000       .10000E+07
     6 'Prefactor '    3.4834       1.0000          .0000       .10000E+07
     7 'Prefactor '    .25535E-08   1.0000          .0000       .10000E+07
     8 'norm      '    .33700E-01   1.0000          .0000       .10000E+07
     9 'Prefactor '    .25024E-06   1.0000          .0000       .10000E+07
    10 'Prefactor '    .31839E-04   1.0000          .0000       .10000E+07
    11 'norm      '    .70338E-06   1.0000          .0000       .10000E+07
    12 'norm      '    .44409E-08   1.0000          .0000       .10000E+07
    13 'Prefactor '    .96517E-06   1.0000          .0000       .10000E+07
    14 'norm      '    .48529E-01   1.0000          .0000       .10000E+07
    15 'Prefactor '    .12109E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    .15981E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    .66316E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    .40523E-08   1.0000          .0000       .10000E+07
    19 'Normalizat'    1.2970       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .95221       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=   11212.32     FROM MIGRAD    STATUS=CONVERGED    201 CALLS     1325 TOTAL
                     EDM=   .89E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.6981        1.7542        .42338E-07   -.11552E-01
   2  norm          24.304        1.7218       -.14826E-07    .25906E-01
   3  Prefactor     .75453        1.5511        .72889E-07    .27032E-02
   4  norm          5.4510        4.0888       -.18853E-06    .15803E-03
   5  Prefactor      .0000        5.4081        .28601E-06** at limit **
   6  Prefactor     3.4834        6.6336        .38061E-06    .43108E-03
   7  Prefactor     .24203E-07    4.5365        .26872E-07** at limit **
   8  norm          .32961E-01    11.919        .17307E-05** at limit **
   9  Prefactor      .0000        4.5858       -.23210E-06** at limit **
  10  Prefactor     .16653E-09    6.0942        .56193E-06** at limit **
  11  norm           .0000        1.4921       -.77475E-07** at limit **
  12  norm           .0000        2.4451       -.12153E-06** at limit **
  13  Prefactor     .11102E-09    10.160        .16116E-06** at limit **
  14  norm          .47334E-01    21.276        .13381E-06** at limit **
  15  Prefactor     .55511E-09    27.142        .34657E-06** at limit **
  16  Prefactor     .11102E-09    13.459       -.65219E-06** at limit **
  17  Prefactor     .19429E-08    54.307       -.50062E-08** at limit **
  18  Prefactor     .29476E-07    3.1705        .98377E-07** at limit **
  19  Normalizat    1.2972        .24047        .26532E-05   -.82442E-04
  20  Prefactor     .95217        .87351E-01   -.22938E-06   -.17831E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.69805
  norm       = 24.3038
  Prefactor  = 0.754535
  norm       = 5.45096
  Prefactor  = 0
  Prefactor  = 3.48338
  Prefactor  = 2.42029e-08
  norm       = 0.0329608
  Prefactor  = 0
  Prefactor  = 1.66533e-10
  norm       = 0
  norm       = 0
  Prefactor  = 1.11022e-10
  norm       = 0.047334
  Prefactor  = 5.55112e-10
  Prefactor  = 1.11022e-10
  Prefactor  = 1.94289e-09
  Prefactor  = 2.94764e-08
  Normalizat = 1.29719
  Prefactor  = 0.952174
 **********
 **   18 **HESSE 
 **********

 FCN=   11212.32     FROM HESSE     STATUS=OK           339 CALLS     1664 TOTAL
                     EDM=   .34E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.6981        30.967        .41713E-03   -1.5660    
   2  norm          24.304        21.249        .20260E-03   -1.5609    
   3  Prefactor     .75453        15.069        .59726E-03   -1.5691    
   4  norm          5.4510        4.1185        .43015E-03   -1.5661    
   5  Prefactor      .0000        5.4165        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.4834        6.6689        .54152E-03   -1.5671    
   7  Prefactor     .24203E-07    7.7024        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .32961E-01    .55562        .48206E-02   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        4.6256        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .16653E-09    6.3675        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm           .0000        1.5052        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm           .0000        2.4511        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .11102E-09    10.283        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .47334E-01    .91636        .63342E-02   -1.5712    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .55511E-09    27.217        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .11102E-09    13.579        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .19429E-08    54.569        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .29476E-07    7.6012        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.2972        .21266        .87850E-01   -.83650    
  20  Prefactor     .95217        .74458E-01    .45667E-01   -.94341    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.42541e-08
Minuit parameter uncertainties:
  1  26.5674
  2  21.2486
  3  6.7439
  4  4.1185
  5  4.74379e-06
  6  6.6689
  7  0.000863408
  8  0.270656
  9  3.24187e-06
  10  6.63691e-05
  11  6.03074e-07
  12  3.49991e-06
  13  7.17193e-05
  14  0.416533
  15  0.000251747
  16  7.28842e-05
  17  0.000652053
  18  0.000947129
  19  0.212802
  20  0.0744661
Done.

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

Extracting fit parameters...

4FGL J2313.5+3945
   Spectrum: PowerLaw
406    Prefactor:  0.000e+00  3.242e-06  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:  9.522e-01  7.447e-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.297e+00  2.128e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/866703/likelihoodResults_689040001_689299201_4FGL_J2313.5+3945_daily_bin1735.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) = 11212.4249916
delta logL = -0.106942755241

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11212.1392299
delta logL = 0.178818944385

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.7517       1.0000          .0000       .10000E+07
     2 'Index     '    1.4587       1.0000          .0000       10.000    
     3 'Normalizat'    1.3002       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94974       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.

 FCN=   11212.14     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      228 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7537        3.6650        .79182E-03    .77724E-02
   2  Index         1.4596        .51314        .30297       -.10375E-03
   3  Normalizat    1.3006        .20434        .87754E-01    .29947E-04
   4  Prefactor     .94965        .74026E-01    .45636E-01    .55224E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.75365
  Index      = 1.45964
  Normalizat = 1.30057
  Prefactor  = 0.949648
 **********
 **   18 **HESSE 
 **********

 FCN=   11212.14     FROM HESSE     STATUS=OK            33 CALLS      261 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.7537        4.0737        .28285E-04   -1.5681    
   2  Index         1.4596        .85596        .14921E-01   -.78676    
   3  Normalizat    1.3006        .23875        .38858E-03   -.83549    
   4  Prefactor     .94965        .86670E-01    .16074E-03   -.94427    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.8684e-11
Minuit parameter uncertainties:
  1  4.0737
  2  0.864578
  3  0.238954
  4  0.0866829
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/866703': 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) = 11212.1392284
delta logL = 0.178820434587

Extracting fit parameters...

4FGL J2313.5+3945
   Spectrum: PowerLaw
406    Prefactor:  1.754e+00  4.074e+00  0.000e+00  1.000e+06 ( 1.000e-12)
407        Index:  1.460e+00  8.646e-01  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:  9.496e-01  8.668e-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.301e+00  2.390e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
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/866703/cmap_HighResolution_689040001_689299201_4FGL_J2313.5+3945_daily_bin1735.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.72e-03', job_status='DONE', photon_flux_upper_limit='7.24e-08', time_completed='2022-11-05 00:48:10.252792', job_id='866703', GAL2='0.95', fit_tolerance='1e-08', EG2='1.30', EG='1.30', time_epoch_completed='1667634490.25', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='1.79e-01', ts2='0.36', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='1735' AND source_name='4FGL J2313.5+3945' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Nov  5 00:48:10 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0064>
Subject: Job 866703: <4FGL_J2313.5+3945_daily_bin1735> in cluster <slac> Done

Job <4FGL_J2313.5+3945_daily_bin1735> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Nov  5 00:35:28 2022
Job was executed on host(s) <bullet0064>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Nov  5 00:35:29 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Nov  5 00:35:29 2022
Terminated at Sat Nov  5 00:48:11 2022
Results reported at Sat Nov  5 00:48:11 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2313.5+3945_daily_bin1735 348.4 39.7644 689040001 689299201 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 :                                   730.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             394.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   761 sec.
    Turnaround time :                            763 sec.

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

