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 118 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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


Performing analysis on: 4FGL_J2353.2+3135_daily_bin1663
RA = 358.322, Dec = 31.5927
tmin = 670377601, tmax = 670636801
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='261705', job_status='RUN', time_executed='2022-04-03 00:37:57.054954', time_epoch_executed='1648971477.05' WHERE source_name='4FGL J2353.2+3135' and cadence='daily' and bin_id='1663'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/261705

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/261705/ft1_4FGL_J2353.2+3135_daily_bin1663.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/261705/ft2_4FGL_J2353.2+3135_daily_bin1663.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/261705/ft1_4FGL_J2353.2+3135_daily_bin1663.fits outfile=/scratch/kocevski/261705/ft1_filteredMKT_4FGL_J2353.2+3135_daily_bin1663.fits ra=358.322 dec=31.5927 rad=12.0 tmin=670377601.0 tmax=670636801.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.84
user 3.62
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/261705/ft2_4FGL_J2353.2+3135_daily_bin1663.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/261705/ft1_filteredMKT_4FGL_J2353.2+3135_daily_bin1663.fits evtable="EVENTS" outfile="/scratch/kocevski/261705/ft1_filtered_4FGL_J2353.2+3135_daily_bin1663.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.32
sys 0.15

Number of photons that the gtmktime cut: 764

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/261705/ft1_filtered_4FGL_J2353.2+3135_daily_bin1663.fits" evtable="EVENTS" scfile=/scratch/kocevski/261705/ft2_4FGL_J2353.2+3135_daily_bin1663.fits sctable="SC_DATA" outfile=/scratch/kocevski/261705/ltcube_670377601_670636801_4FGL_J2353.2+3135_daily_bin1663.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/261705/ft2_4FGL_J2353.2+3135_daily_bin1663.fits
.....................!
real 11.74
user 11.43
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/261705/ft1_filtered_4FGL_J2353.2+3135_daily_bin1663.fits evtable="EVENTS" scfile=/scratch/kocevski/261705/ft2_4FGL_J2353.2+3135_daily_bin1663.fits sctable="SC_DATA" expcube=/scratch/kocevski/261705/ltcube_670377601_670636801_4FGL_J2353.2+3135_daily_bin1663.fits outfile=/scratch/kocevski/261705/expmap_670377601_670636801_4FGL_J2353.2+3135_daily_bin1663.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/261705/ltcube_670377601_670636801_4FGL_J2353.2+3135_daily_bin1663.fits
.....................!
real 190.65
user 185.62
sys 4.66

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/261705/ft1_filtered_4FGL_J2353.2+3135_daily_bin1663.fits scfile=/scratch/kocevski/261705/ft2_4FGL_J2353.2+3135_daily_bin1663.fits outfile=/scratch/kocevski/261705/cmap_670377601_670636801_4FGL_J2353.2+3135_daily_bin1663.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/261705/ft1_filtered_4FGL_J2353.2+3135_daily_bin1663.fits scfile=/scratch/kocevski/261705/ft2_4FGL_J2353.2+3135_daily_bin1663.fits outfile=/scratch/kocevski/261705/cmap_HighResolution_670377601_670636801_4FGL_J2353.2+3135_daily_bin1663.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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/261705/ft1_filtered_4FGL_J2353.2+3135_daily_bin1663.fits evtable="EVENTS" scfile=/scratch/kocevski/261705/ft2_4FGL_J2353.2+3135_daily_bin1663.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/261705/Model_4FGL_J2353.2+3135_daily_bin1663.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/261705/ft1_filtered_4FGL_J2353.2+3135_daily_bin1663.fits.....................!
real 86.92
user 85.56
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/261705/ft1_filtered_4FGL_J2353.2+3135_daily_bin1663.fits', '/scratch/kocevski/261705/ft2_4FGL_J2353.2+3135_daily_bin1663.fits', expMap='/scratch/kocevski/261705/expmap_670377601_670636801_4FGL_J2353.2+3135_daily_bin1663.fits', expCube='/scratch/kocevski/261705/ltcube_670377601_670636801_4FGL_J2353.2+3135_daily_bin1663.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/261705/Model_4FGL_J2353.2+3135_daily_bin1663.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  1.000e-04  1.000e+04 ( 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/261705/ft1_filtered_4FGL_J2353.2+3135_daily_bin1663.fits
Spacecraft file(s): /scratch/kocevski/261705/ft2_4FGL_J2353.2+3135_daily_bin1663.fits
Exposure map: /scratch/kocevski/261705/expmap_670377601_670636801_4FGL_J2353.2+3135_daily_bin1663.fits
Exposure cube: /scratch/kocevski/261705/ltcube_670377601_670636801_4FGL_J2353.2+3135_daily_bin1663.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/261705/Model_4FGL_J2353.2+3135_daily_bin1663.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) = 8373.90970298

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.5235       1.0000         .10000E-03   10000.    
     2 'norm      '    .10188E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.8622       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    22.532       1.0000         .10000E-03   10000.    
     8 'norm      '    7.5211       1.0000         .10000E-03   10000.    
     9 'Prefactor '    49.513       1.0000         .10000E-03   10000.    
    10 'norm      '    2.3452       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10067E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.6925       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .16319E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    34.200       1.0000         .10000E-03   10000.    
    19 'Prefactor '    42.624       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .91470       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0935       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.

 FCN=   8373.908     FROM MIGRAD    STATUS=CONVERGED    483 CALLS     2353 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.5240        3.9704        .32230E-06    .38846E-03
   2  norm          .10000E-03    8.1922       -.10071E-05** at limit **
   3  Prefactor     4.8636        5.3453       -.46448E-08   -.80392E-04
   4  Prefactor     .10000E-03    5.0762        .16778E-07** at limit **
   5  Prefactor     .10000E-03    7.4996        .69496E-06** at limit **
   6  Prefactor     .10000E-03    31.978        .96078E-06** at limit **
   7  Prefactor     22.534        25.330        .28094E-06    .32107E-04
   8  norm          7.5213        2.8746        .12491E-07    .13176E-04
   9  Prefactor     49.515        30.590        .30636E-06    .64952E-04
  10  norm          2.3452        1.3343       -.27815E-07   -.10879E-03
  11  Prefactor     .10000E-03    12.113        .17569E-05** at limit **
  12  Prefactor     .10000E-03    2.8666       -.20373E-07** at limit **
  13  Prefactor     .10000E-03    13.858       -.18254E-05** at limit **
  14  norm          .10000E-03    3.5197       -.47768E-06** at limit **
  15  Prefactor     5.6869        12.676        .41534E-05   -.39197E-03
  16  norm          .10000E-03    .64460        .19591E-07** at limit **
  17  Prefactor     .10000E-03    51.153       -.15041E-05** at limit **
  18  Prefactor     34.188        43.680       -.32125E-05   -.24001E-03
  19  Prefactor     42.626        42.559        .51074E-06    .55715E-04
  20  Prefactor     .10000E-03    2.3530        .25682E-07** at limit **
  21  Normalizat    .91483        .20308        .54715E-07   -.45710E-04
  22  Prefactor     1.0934        .10826       -.25099E-06    .15747E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.52402
  norm       = 0.000100001
  Prefactor  = 4.86357
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.5337
  norm       = 7.52126
  Prefactor  = 49.5155
  norm       = 2.34524
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 5.68686
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 34.1879
  Prefactor  = 42.6256
  Prefactor  = 0.0001
  Normalizat = 0.914827
  Prefactor  = 1.09338
 **********
 **   18 **HESSE 
 **********

 FCN=   8373.908     FROM HESSE     STATUS=OK           336 CALLS     2689 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.5240        3.9927        .13515E-03   -1.5197    
   2  norm          .10000E-03    8.3349        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.8636        5.3448        .18243E-03   -1.5267    
   4  Prefactor     .10000E-03    5.0831        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.7649        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    32.103        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     22.534        25.340        .84384E-04   -1.4758    
   8  norm          7.5213        2.8747        .93316E-04   -1.5159    
   9  Prefactor     49.515        30.630        .56990E-04   -1.4299    
  10  norm          2.3452        1.3296        .76487E-04   -1.5402    
  11  Prefactor     .10000E-03    12.486        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.8710        .15131E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    14.268        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    3.6590        .33690E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.6869        13.638        .84178E-03   -1.5231    
  16  norm          .10000E-03    .64992        .71741E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    52.979        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     34.188        45.486        .68524E-04   -1.4538    
  19  Prefactor     42.626        42.606        .61403E-04   -1.4401    
  20  Prefactor     .10000E-03    2.3593        .13702E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .91483        .23328        .35190E-03   -.95941    
  22  Prefactor     1.0934        .12460        .17932E-03   -.89679    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.21507e-09
Minuit parameter uncertainties:
  1  3.99287
  2  0.000130864
  3  5.34534
  4  8.87225e-06
  5  9.01718e-05
  6  0.000224887
  7  25.352
  8  2.87475
  9  30.6399
  10  1.32963
  11  0.000265305
  12  2.25582e-06
  13  0.00030161
  14  3.60326e-05
  15  13.6458
  16  4.78131e-07
  17  0.000275973
  18  45.5321
  19  42.6369
  20  5.08831e-07
  21  0.233533
  22  0.12463
Done.

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

Extracting fit parameters...

4FGL J2353.2+3135
   Spectrum: PowerLaw
483    Prefactor:  3.419e+01  4.553e+01  1.000e-04  1.000e+04 ( 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.093e+00  1.246e-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:  9.148e-01  2.335e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/261705/likelihoodResults_670377601_670636801_4FGL_J2353.2+3135_daily_bin1663.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) = 8373.73142789
delta logL = 0.176085165978

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8373.72938482
delta logL = 0.178128236224

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.980       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2626       1.0000          .0000       10.000    
     3 'Normalizat'    .88508       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1043       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8373.729     FROM MIGRAD    STATUS=FAILED        97 CALLS      314 TOTAL
                     EDM=   .63E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.962        67.767        .89606E-04   -.41361E-04
   2  Index         3.2652        2.0288        .86133E-02    .54856E-03
   3  Normalizat    .88496        .23407        .35730E-03    .33982E-04
   4  Prefactor     1.1042        .12618        .17855E-03    .40368E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8373.729     FROM SIMPLEX   STATUS=UNCHANGED     76 CALLS      390 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.962        67.767        .46076E-03   -1.4814    
   2  Index         3.2652        2.0288        .11511E-02   -.35433    
   3  Normalizat    .88496        .23407        .27132E-03   -.96990    
   4  Prefactor     1.1042        .12618        .12807E-03   -.89332    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8373.729     FROM MIGRAD    STATUS=CONVERGED     37 CALLS      427 TOTAL
                     EDM=   .49E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.962        43.370        .35842E-05   -.12687E-04
   2  Index         3.2652        1.3188        .17227E-02    .36825E-05
   3  Normalizat    .88496        .23333        .14292E-04   -.15909E-05
   4  Prefactor     1.1042        .12518        .71421E-05   -.19101E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.962
  Index      = 3.26519
  Normalizat = 0.884964
  Prefactor  = 1.1042
 **********
 **   18 **HESSE 
 **********

 FCN=   8373.729     FROM HESSE     STATUS=OK            23 CALLS      450 TOTAL
                     EDM=   .35E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.962        40.601        .71685E-06   -1.4814    
   2  Index         3.2652        1.2384        .68906E-04   -.35433    
   3  Normalizat    .88496        .23236        .28584E-05   -.96991    
   4  Prefactor     1.1042        .12465        .14284E-05   -.89332    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.45079e-12
Minuit parameter uncertainties:
  1  40.6576
  2  1.25327
  3  0.232618
  4  0.124683
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/261705': 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) = 8373.72937793
delta logL = 0.178135126638

Extracting fit parameters...

4FGL J2353.2+3135
   Spectrum: PowerLaw
483    Prefactor:  1.996e+01  4.066e+01  1.000e-04  1.000e+04 ( 1.000e-13)
484        Index:  3.265e+00  1.253e+00  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.104e+00  1.247e-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:  8.850e-01  2.326e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.09
Ra Dec: 358.322 31.593
Photon Index (Free Index): 3.27 +/- 1.25
Photon Flux (Free Index): 6.24e-08 +/- 6.78e-08
Energy Flux (Free Index): 1.12e-05 +/- 1.21e-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/261705/cmap_HighResolution_670377601_670636801_4FGL_J2353.2+3135_daily_bin1663.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.19e-02', comment='SUCCESS', energy_flux2='1.12e-05', dlogl='1.78e-01', photon_flux2='6.24e-08', job_status='DONE', time_completed='2022-04-03 00:49:57.998041', photon_index_error2='1.25', photon_index2='3.27', ts='0.69', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', photon_flux_upper_limit='1.52e-07', energy_flux_error2='1.21e-05', EG='0.91', time_epoch_completed='1648972198.0', return_code='0', job_id='261705', GAL2='1.10', EG2='0.88', return_code2='0', photon_flux_error2='6.78e-08', ts2='1.09', photon_index='2.63' WHERE bin_id='1663' AND source_name='4FGL J2353.2+3135' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Apr  3 00:49:58 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0176>
Subject: Job 261705: <4FGL_J2353.2+3135_daily_bin1663> in cluster <slac> Done

Job <4FGL_J2353.2+3135_daily_bin1663> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Apr  3 00:35:49 2022
Job was executed on host(s) <bullet0176>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Apr  3 00:35:51 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Apr  3 00:35:51 2022
Terminated at Sun Apr  3 00:49:58 2022
Results reported at Sun Apr  3 00:49:58 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2353.2+3135_daily_bin1663 358.322 31.5927 670377601 670636801 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 :                                   723.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             301.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   847 sec.
    Turnaround time :                            849 sec.

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

