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


Performing analysis on: 4FGL_J2353.2+3135_daily_bin1722
RA = 358.322, Dec = 31.5927
tmin = 685670401, tmax = 685929601
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='250579', job_status='RUN', time_executed='2022-09-27 01:13:29.685890', time_epoch_executed='1664266409.69' WHERE source_name='4FGL J2353.2+3135' and cadence='daily' and bin_id='1722'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/250579

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/250579/ft1_4FGL_J2353.2+3135_daily_bin1722.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/250579/ft2_4FGL_J2353.2+3135_daily_bin1722.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/250579/ft1_4FGL_J2353.2+3135_daily_bin1722.fits outfile=/scratch/kocevski/250579/ft1_filteredMKT_4FGL_J2353.2+3135_daily_bin1722.fits ra=358.322 dec=31.5927 rad=12.0 tmin=685670401.0 tmax=685929601.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.83
user 3.51
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/250579/ft2_4FGL_J2353.2+3135_daily_bin1722.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/250579/ft2_4FGL_J2353.2+3135_daily_bin1722.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/250579/ft1_filteredMKT_4FGL_J2353.2+3135_daily_bin1722.fits evtable="EVENTS" outfile="/scratch/kocevski/250579/ft1_filtered_4FGL_J2353.2+3135_daily_bin1722.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.55
user 0.35
sys 0.18

Number of photons that the gtmktime cut: 758

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/250579/ft1_filtered_4FGL_J2353.2+3135_daily_bin1722.fits" evtable="EVENTS" scfile=/scratch/kocevski/250579/ft2_4FGL_J2353.2+3135_daily_bin1722.fits sctable="SC_DATA" outfile=/scratch/kocevski/250579/ltcube_685670401_685929601_4FGL_J2353.2+3135_daily_bin1722.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/250579/ft2_4FGL_J2353.2+3135_daily_bin1722.fits
.....................!
real 14.74
user 14.29
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/250579/ft1_filtered_4FGL_J2353.2+3135_daily_bin1722.fits evtable="EVENTS" scfile=/scratch/kocevski/250579/ft2_4FGL_J2353.2+3135_daily_bin1722.fits sctable="SC_DATA" expcube=/scratch/kocevski/250579/ltcube_685670401_685929601_4FGL_J2353.2+3135_daily_bin1722.fits outfile=/scratch/kocevski/250579/expmap_685670401_685929601_4FGL_J2353.2+3135_daily_bin1722.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/250579/ltcube_685670401_685929601_4FGL_J2353.2+3135_daily_bin1722.fits
.....................!
real 192.96
user 187.89
sys 4.58

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
Added 158 point sources and 0 extended sources

Setting source of interest to:
4FGL J2353.2+3135 @ 358.322 31.5927

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/250579/ft1_filtered_4FGL_J2353.2+3135_daily_bin1722.fits scfile=/scratch/kocevski/250579/ft2_4FGL_J2353.2+3135_daily_bin1722.fits outfile=/scratch/kocevski/250579/cmap_685670401_685929601_4FGL_J2353.2+3135_daily_bin1722.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=358.322 yref=31.5927 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.57
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/250579/ft1_filtered_4FGL_J2353.2+3135_daily_bin1722.fits scfile=/scratch/kocevski/250579/ft2_4FGL_J2353.2+3135_daily_bin1722.fits outfile=/scratch/kocevski/250579/cmap_HighResolution_685670401_685929601_4FGL_J2353.2+3135_daily_bin1722.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=358.322 yref=31.5927 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.62
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/250579/ft1_filtered_4FGL_J2353.2+3135_daily_bin1722.fits evtable="EVENTS" scfile=/scratch/kocevski/250579/ft2_4FGL_J2353.2+3135_daily_bin1722.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/250579/Model_4FGL_J2353.2+3135_daily_bin1722.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 EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/250579/ft1_filtered_4FGL_J2353.2+3135_daily_bin1722.fits.....................!
real 92.44
user 90.86
sys 1.33

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/250579/ft1_filtered_4FGL_J2353.2+3135_daily_bin1722.fits', '/scratch/kocevski/250579/ft2_4FGL_J2353.2+3135_daily_bin1722.fits', expMap='/scratch/kocevski/250579/expmap_685670401_685929601_4FGL_J2353.2+3135_daily_bin1722.fits', expCube='/scratch/kocevski/250579/ltcube_685670401_685929601_4FGL_J2353.2+3135_daily_bin1722.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/250579/Model_4FGL_J2353.2+3135_daily_bin1722.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2353.2+3135'

4FGL J2353.2+3135
   Spectrum: PowerLaw
483    Prefactor:  7.403e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
484        Index:  2.631e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
485        Scale:  7.457e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/250579/ft1_filtered_4FGL_J2353.2+3135_daily_bin1722.fits
Spacecraft file(s): /scratch/kocevski/250579/ft2_4FGL_J2353.2+3135_daily_bin1722.fits
Exposure map: /scratch/kocevski/250579/expmap_685670401_685929601_4FGL_J2353.2+3135_daily_bin1722.fits
Exposure cube: /scratch/kocevski/250579/ltcube_685670401_685929601_4FGL_J2353.2+3135_daily_bin1722.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/250579/Model_4FGL_J2353.2+3135_daily_bin1722.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) = 8273.4072696

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4158       1.0000          .0000       .10000E+07
     2 'norm      '    .32481E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    .18003E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    .10012E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    .75358E-05   1.0000          .0000       .10000E+07
     6 'Prefactor '    .15118E-02   1.0000          .0000       .10000E+07
     7 'norm      '    2.3258       1.0000          .0000       .10000E+07
     8 'Prefactor '    .96001E-03   1.0000          .0000       .10000E+07
     9 'norm      '    2.1672       1.0000          .0000       .10000E+07
    10 'Prefactor '    23.059       1.0000          .0000       .10000E+07
    11 'Prefactor '    .60314E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    82.286       1.0000          .0000       .10000E+07
    13 'norm      '    .19379E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    29.311       1.0000          .0000       .10000E+07
    15 'norm      '    1.6598       1.0000          .0000       .10000E+07
    16 'Prefactor '    41.421       1.0000          .0000       .10000E+07
    17 'Prefactor '    .10800E-01   1.0000          .0000       .10000E+07
    18 'Prefactor '    .48048E-03   1.0000          .0000       .10000E+07
    19 'Normalizat'    1.1358       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0080       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5110E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8273.407     FROM MIGRAD    STATUS=CONVERGED    102 CALLS     1548 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4164        2.9925        .77683E-06   -.30483E-03
   2  norm          .13323E-08    3.4650       -.73955E-06** at limit **
   3  Prefactor      .0000        3.2393       -.68699E-06** at limit **
   4  Prefactor     .90816E-07    6.5563        .78314E-06** at limit **
   5  Prefactor      .0000        1.9122        .83086E-07** at limit **
   6  Prefactor     .11657E-08    6.8138        .41751E-06** at limit **
   7  norm          2.3262        2.1621        .73385E-06    .31957E-02
   8  Prefactor     .74496E-07    3.0734       -.30310E-06** at limit **
   9  norm          2.1674        1.3657       -.20035E-07    .26474E-02
  10  Prefactor     23.038        2.6174       -.13099E-06    .89900E-01
  11  Prefactor     .35916E-06    4.4356       -.66677E-06** at limit **
  12  Prefactor     82.296        2.2151       -.55368E-07    .17363    
  13  norm           .0000        2.2139       -.47333E-07** at limit **
  14  Prefactor     29.315        1.9866       -.54367E-07    .36509E-01
  15  norm          1.6595        2.2155        .21424E-06    .91649E-03
  16  Prefactor     41.392        3.0208       -.11407E-06    .19024    
  17  Prefactor     .34306E-07    20.584       -.12644E-05** at limit **
  18  Prefactor      .0000        2.5362       -.31125E-06** at limit **
  19  Normalizat    1.1358        .24211        .17143E-04    .11176E-03
  20  Prefactor     1.0079        .13236       -.82442E-05    .25809E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.41639
  norm       = 1.33227e-09
  Prefactor  = 0
  Prefactor  = 9.08162e-08
  Prefactor  = 0
  Prefactor  = 1.16573e-09
  norm       = 2.32623
  Prefactor  = 7.4496e-08
  norm       = 2.1674
  Prefactor  = 23.0377
  Prefactor  = 3.59157e-07
  Prefactor  = 82.2961
  norm       = 0
  Prefactor  = 29.3147
  norm       = 1.65954
  Prefactor  = 41.3924
  Prefactor  = 3.43059e-08
  Prefactor  = 0
  Normalizat = 1.13579
  Prefactor  = 1.00795
 **********
 **   18 **HESSE 
 **********

 FCN=   8273.407     FROM HESSE     STATUS=OK           327 CALLS     1875 TOTAL
                     EDM=   .25E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4164        3.0164        .90948E-03   -1.5684    
   2  norm          .13323E-08    8.5200        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        3.2227        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .90816E-07    6.9325        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        1.9134        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .11657E-08    9.5446        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.3262        2.1685        .67224E-03   -1.5677    
   8  Prefactor     .74496E-07    8.9407        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.1674        1.3729        .69930E-03   -1.5679    
  10  Prefactor     23.038        27.262        .20830E-03   -1.5612    
  11  Prefactor     .35916E-06    7.6417        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     82.296        44.090        .11025E-03   -1.5527    
  13  norm           .0000        2.2142        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     29.315        18.796        .18474E-03   -1.5600    
  15  norm          1.6595        2.2281        .81861E-03   -1.5682    
  16  Prefactor     41.392        41.304        .15539E-03   -1.5579    
  17  Prefactor     .34306E-07    20.662        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor      .0000        2.5339        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.1358        .21009        .74781E-01   -.88611    
  20  Prefactor     1.0079        .11188        .43644E-01   -.92465    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.45565e-06
Minuit parameter uncertainties:
  1  3.01644
  2  0.000213249
  3  4.85503e-06
  4  0.00158695
  5  3.34569e-06
  6  0.000212975
  7  2.1685
  8  0.00163253
  9  1.37288
  10  27.2626
  11  0.00331333
  12  44.0903
  13  2.06846e-06
  14  18.7962
  15  2.22809
  16  41.3042
  17  0.00168442
  18  7.8241e-06
  19  0.210249
  20  0.111908
Done.

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

Extracting fit parameters...

4FGL J2353.2+3135
   Spectrum: PowerLaw
483    Prefactor:  4.139e+01  4.130e+01  0.000e+00  1.000e+06 ( 1.000e-13)
484        Index:  2.631e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
485        Scale:  7.457e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
508    Prefactor:  1.008e+00  1.119e-01  0.000e+00  1.000e+01 ( 1.000e+00)
509        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
510        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
507   Normalization:  1.136e+00  2.102e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.58
Ra Dec: 358.322 31.593
Photon Index (Fixed Index): 2.63 +/- 0.00
Photon Flux (Fixed Index): 5.02e-08 +/- 5.00e-08
Energy Flux (Fixed Index): 1.28e-05 +/- 1.28e-05

TS (Fixed Index): 1.58
Ra Dec: 358.322 31.593
Photon Flux Upper Limit: 1.58e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.24e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/250579/likelihoodResults_685670401_685929601_4FGL_J2353.2+3135_daily_bin1722.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) = 8273.01704823
delta logL = 0.390169323035

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8273.01343321
delta logL = 0.393784348433

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8273.013     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      288 TOTAL
                     EDM=   .89E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.271        42.337        .82955E-05    .34810E-03
   2  Index         3.3971        1.1609        .71275E-02    .42291E-04
   3  Normalizat    1.0836        .25187        .33779E-03    .27733E-04
   4  Prefactor     1.0259        .13312        .18802E-03   -.10758E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.2707
  Index      = 3.39707
  Normalizat = 1.08364
  Prefactor  = 1.02592
 **********
 **   18 **HESSE 
 **********

 FCN=   8273.013     FROM HESSE     STATUS=OK            25 CALLS      313 TOTAL
                     EDM=   .43E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.271        32.794        .33182E-06   -1.5611    
   2  Index         3.3971        .90077        .28510E-03   -.32635    
   3  Normalizat    1.0836        .25170        .13512E-04   -.90279    
   4  Prefactor     1.0259        .13294        .37604E-04   -.91870    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.32374e-11
Minuit parameter uncertainties:
  1  32.7938
  2  0.906294
  3  0.25198
  4  0.132983
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/250579': 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) = 8273.01343313
delta logL = 0.393784427562

Extracting fit parameters...

4FGL J2353.2+3135
   Spectrum: PowerLaw
483    Prefactor:  2.327e+01  3.279e+01  0.000e+00  1.000e+06 ( 1.000e-13)
484        Index:  3.397e+00  9.063e-01  0.000e+00  1.000e+01 (-1.000e+00)
485        Scale:  7.457e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
508    Prefactor:  1.026e+00  1.330e-01  0.000e+00  1.000e+01 ( 1.000e+00)
509        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
510        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
507   Normalization:  1.084e+00  2.520e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.48
Ra Dec: 358.322 31.593
Photon Index (Free Index): 3.40 +/- 0.91
Photon Flux (Free Index): 8.96e-08 +/- 7.29e-08
Energy Flux (Free Index): 1.53e-05 +/- 1.18e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/250579/cmap_HighResolution_685670401_685929601_4FGL_J2353.2+3135_daily_bin1722.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.24e-02', comment='SUCCESS', photon_flux='5.02e-08', energy_flux2='1.53e-05', photon_flux_error='5.00e-08', dlogl='3.94e-01', energy_flux='1.28e-05', photon_flux2='8.96e-08', job_status='DONE', time_completed='2022-09-27 01:24:09.463024', photon_index_error2='0.91', photon_index2='3.40', ts='1.58', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='1.58e-07', energy_flux_error2='1.18e-05', EG='1.14', time_epoch_completed='1664267049.46', return_code='0', job_id='250579', GAL2='1.03', EG2='1.08', return_code2='0', energy_flux_error='1.28e-05', photon_flux_error2='7.29e-08', ts2='2.48', photon_index='2.63' WHERE bin_id='1722' AND source_name='4FGL J2353.2+3135' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 27 01:24:09 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0074>
Subject: Job 250579: <4FGL_J2353.2+3135_daily_bin1722> in cluster <slac> Done

Job <4FGL_J2353.2+3135_daily_bin1722> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 27 01:10:25 2022
Job was executed on host(s) <bullet0074>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 27 01:11:43 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 27 01:11:43 2022
Terminated at Tue Sep 27 01:24:10 2022
Results reported at Tue Sep 27 01:24:10 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2353.2+3135_daily_bin1722 358.322 31.5927 685670401 685929601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2353.2+3135 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   641.17 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             347.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   746 sec.
    Turnaround time :                            825 sec.

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

