/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 0 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is 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 = 7376
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2353.2+3135_daily_bin1063
RA = 358.322, Dec = 31.5927
tmin = 514857601, tmax = 515116801
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='173357', job_status='RUN', time_executed='2021-09-30 07:55:28.081271', time_epoch_executed='1633013728.08' WHERE source_name='4FGL J2353.2+3135' and cadence='daily' and bin_id='1063'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/173357

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/173357/ft1_4FGL_J2353.2+3135_daily_bin1063.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/173357/ft2_4FGL_J2353.2+3135_daily_bin1063.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/173357/ft1_4FGL_J2353.2+3135_daily_bin1063.fits outfile=/scratch/kocevski/173357/ft1_filteredMKT_4FGL_J2353.2+3135_daily_bin1063.fits ra=358.322 dec=31.5927 rad=12.0 tmin=514857601.0 tmax=515116801.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.55
user 3.32
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/173357/ft2_4FGL_J2353.2+3135_daily_bin1063.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/173357/ft1_filteredMKT_4FGL_J2353.2+3135_daily_bin1063.fits evtable="EVENTS" outfile="/scratch/kocevski/173357/ft1_filtered_4FGL_J2353.2+3135_daily_bin1063.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.48
user 0.32
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/173357/ft1_filtered_4FGL_J2353.2+3135_daily_bin1063.fits evtable="EVENTS" scfile=/scratch/kocevski/173357/ft2_4FGL_J2353.2+3135_daily_bin1063.fits sctable="SC_DATA" expcube=/scratch/kocevski/173357/ltcube_514857601_515116801_4FGL_J2353.2+3135_daily_bin1063.fits outfile=/scratch/kocevski/173357/expmap_514857601_515116801_4FGL_J2353.2+3135_daily_bin1063.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/173357/ltcube_514857601_515116801_4FGL_J2353.2+3135_daily_bin1063.fits
.....................!
real 191.97
user 186.27
sys 5.33

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/173357/ft1_filtered_4FGL_J2353.2+3135_daily_bin1063.fits scfile=/scratch/kocevski/173357/ft2_4FGL_J2353.2+3135_daily_bin1063.fits outfile=/scratch/kocevski/173357/cmap_514857601_515116801_4FGL_J2353.2+3135_daily_bin1063.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.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/173357/ft1_filtered_4FGL_J2353.2+3135_daily_bin1063.fits scfile=/scratch/kocevski/173357/ft2_4FGL_J2353.2+3135_daily_bin1063.fits outfile=/scratch/kocevski/173357/cmap_HighResolution_514857601_515116801_4FGL_J2353.2+3135_daily_bin1063.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/173357/ft1_filtered_4FGL_J2353.2+3135_daily_bin1063.fits evtable="EVENTS" scfile=/scratch/kocevski/173357/ft2_4FGL_J2353.2+3135_daily_bin1063.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/173357/Model_4FGL_J2353.2+3135_daily_bin1063.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/173357/ft1_filtered_4FGL_J2353.2+3135_daily_bin1063.fits.....................!
real 94.15
user 92.55
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/173357/ft1_filtered_4FGL_J2353.2+3135_daily_bin1063.fits', '/scratch/kocevski/173357/ft2_4FGL_J2353.2+3135_daily_bin1063.fits', expMap='/scratch/kocevski/173357/expmap_514857601_515116801_4FGL_J2353.2+3135_daily_bin1063.fits', expCube='/scratch/kocevski/173357/ltcube_514857601_515116801_4FGL_J2353.2+3135_daily_bin1063.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/173357/Model_4FGL_J2353.2+3135_daily_bin1063.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/173357/ft1_filtered_4FGL_J2353.2+3135_daily_bin1063.fits
Spacecraft file(s): /scratch/kocevski/173357/ft2_4FGL_J2353.2+3135_daily_bin1063.fits
Exposure map: /scratch/kocevski/173357/expmap_514857601_515116801_4FGL_J2353.2+3135_daily_bin1063.fits
Exposure cube: /scratch/kocevski/173357/ltcube_514857601_515116801_4FGL_J2353.2+3135_daily_bin1063.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/173357/Model_4FGL_J2353.2+3135_daily_bin1063.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) = 8693.21599944

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.5929       1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.5789       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.1728       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    49.724       1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.220       1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .29694       1.0000         .10000E-03   10000.    
    11 'Prefactor '    28.987       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12083E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    29.286       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.4516       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    62.757       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1828       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .98559       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=   8693.215     FROM MIGRAD    STATUS=CONVERGED    471 CALLS     3023 TOTAL
                     EDM=   .67E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.5937        3.5594        .11991E-06   -.10884E-03
   2  norm          .10000E-03    8.1025       -.72337E-06** at limit **
   3  Prefactor     5.5796        4.8088        .15869E-05   -.12913E-02
   4  Prefactor     9.1750        12.988        .10971E-06   -.24337E-04
   5  Prefactor     .10000E-03    14.095        .13117E-05** at limit **
   6  Prefactor     49.731        39.246        .19405E-05    .23999E-03
   7  Prefactor     10.221        15.269        .17381E-06    .26294E-05
   8  norm          .10000E-03    1.4248       -.11137E-07** at limit **
   9  Prefactor     .10000E-03    9.2149        .57004E-06** at limit **
  10  norm          .29692        .75278        .24349E-06   -.58870E-03
  11  Prefactor     28.991        22.104        .84628E-06    .16184E-03
  12  Prefactor     .10000E-03    34.270       -.47677E-06** at limit **
  13  Prefactor     .10000E-03    9.3278        .58101E-06** at limit **
  14  norm          29.288        7.2117        .45702E-08   -.77725E-04
  15  Prefactor     .10000E-03    8.4580        .97942E-08** at limit **
  16  norm          1.4503        2.3407        .29581E-06   -.25833E-03
  17  Prefactor     .10000E-03    6.6520        .78723E-07** at limit **
  18  Prefactor     62.769        45.767        .33607E-05    .34498E-03
  19  Prefactor     .10000E-03    12.246       -.15435E-05** at limit **
  20  Prefactor     .10000E-03    2.6702       -.78983E-07** at limit **
  21  Normalizat    1.1824        .20161       -.18055E-05   -.97479E-05
  22  Prefactor     .98573        .10567        .19206E-06   -.20167E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.59374
  norm       = 0.0001
  Prefactor  = 5.5796
  Prefactor  = 9.17505
  Prefactor  = 0.0001
  Prefactor  = 49.7313
  Prefactor  = 10.2206
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.296924
  Prefactor  = 28.9906
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 29.288
  Prefactor  = 0.0001
  norm       = 1.45034
  Prefactor  = 0.0001
  Prefactor  = 62.7688
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 1.18242
  Prefactor  = 0.985731
 **********
 **   18 **HESSE 
 **********

 FCN=   8693.215     FROM HESSE     STATUS=OK           336 CALLS     3359 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.5937        3.5575        .13086E-03   -1.5235    
   2  norm          .10000E-03    8.1874        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.5796        5.2321        .85044E-03   -1.5236    
   4  Prefactor     9.1750        12.973        .13233E-03   -1.5102    
   5  Prefactor     .10000E-03    14.727        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     49.731        40.033        .56870E-04   -1.4296    
   7  Prefactor     10.221        15.267        .12534E-03   -1.5068    
   8  norm          .10000E-03    1.4721        .21729E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.2590        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .29692        .82205        .12358E-02   -1.5599    
  11  Prefactor     28.991        22.222        .74414E-04   -1.4631    
  12  Prefactor     .10000E-03    35.451        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    9.3867        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          29.288        7.1913        .74034E-04   -1.4625    
  15  Prefactor     .10000E-03    8.4980        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.4503        2.3319        .17436E-03   -1.5467    
  17  Prefactor     .10000E-03    6.6619        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     62.769        47.920        .50654E-04   -1.4122    
  19  Prefactor     .10000E-03    12.494        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.6862        .14878E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.1824        .23499        .32350E-03   -.87148    
  22  Prefactor     .98573        .12439        .19038E-03   -.93207    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.63272e-08
Minuit parameter uncertainties:
  1  3.55768
  2  8.58342e-05
  3  5.23251
  4  12.9773
  5  0.00014926
  6  40.0544
  7  15.273
  8  2.50778e-06
  9  8.28132e-05
  10  0.82208
  11  22.2284
  12  1.1152e-07
  13  8.03739e-05
  14  7.1915
  15  7.07054e-07
  16  2.33203
  17  4.76349e-06
  18  47.9497
  19  0.000248447
  20  2.27756e-06
  21  0.235201
  22  0.124431
Done.

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

Extracting fit parameters...

4FGL J2353.2+3135
   Spectrum: PowerLaw
483    Prefactor:  6.277e+01  4.795e+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:  9.857e-01  1.244e-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.182e+00  2.352e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.34
Ra Dec: 358.322 31.593
Photon Index (Fixed Index): 2.63 +/- 0.00
Photon Flux (Fixed Index): 7.61e-08 +/- 5.81e-08
Energy Flux (Fixed Index): 1.94e-05 +/- 1.48e-05

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

Saving results to:
/scratch/kocevski/173357/likelihoodResults_514857601_515116801_4FGL_J2353.2+3135_daily_bin1063.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) = 8691.90543338
delta logL = 1.30943524824

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8691.87946874
delta logL = 1.335399892

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.700       1.0000         .10000E-03   10000.    
     2 'Index     '    4.1630       1.0000          .0000       10.000    
     3 'Normalizat'    1.0800       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0254       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8691.879     FROM MIGRAD    STATUS=FAILED       105 CALLS      340 TOTAL
                     EDM=   .38E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.739        126.62        .61241E-03    .22646E-03
   2  Index         4.1617        3.6019        .45330E-02    .81811E-03
   3  Normalizat    1.0795        .21167        .33637E-03   -.67596E-07
   4  Prefactor     1.0255        .11453        .18704E-03   -.12156E-06
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8691.879     FROM SIMPLEX   STATUS=UNCHANGED     81 CALLS      421 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.739        126.62        .29960E-03    .22646E-03
   2  Index         4.1617        3.6019        .93879E-03    .81811E-03
   3  Normalizat    1.0795        .21167        .32317E-03   -.67596E-07
   4  Prefactor     1.0255        .11453        .19600E-03   -.12156E-06
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8691.879     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      454 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.739        34.297        .12248E-03   -.74255E-06
   2  Index         4.1617        1.8317        .90659E-03    .32674E-04
   3  Normalizat    1.0795        .23783        .13455E-04   -.67596E-07
   4  Prefactor     1.0255        .12576        .74817E-05   -.12156E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.7385
  Index      = 4.16167
  Normalizat = 1.07946
  Prefactor  = 1.02548
 **********
 **   18 **HESSE 
 **********

 FCN=   8691.879     FROM HESSE     STATUS=OK            25 CALLS      479 TOTAL
                     EDM=   .18E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.739        25.246        .48993E-05   -1.5052    
   2  Index         4.1617        1.3620        .18132E-03   -.16846    
   3  Normalizat    1.0795        .23758        .13455E-04   -.90414    
   4  Prefactor     1.0255        .12527        .74817E-05   -.91885    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.77262e-13
Minuit parameter uncertainties:
  1  25.2714
  2  1.37994
  3  0.237812
  4  0.125302
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/173357': 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) = 8691.87946302
delta logL = 1.33540561587

Extracting fit parameters...

4FGL J2353.2+3135
   Spectrum: PowerLaw
483    Prefactor:  1.074e+01  2.527e+01  1.000e-04  1.000e+04 ( 1.000e-13)
484        Index:  4.162e+00  1.380e+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.025e+00  1.253e-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.079e+00  2.378e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.45
Ra Dec: 358.322 31.593
Photon Index (Free Index): 4.16 +/- 1.38
Photon Flux (Free Index): 1.46e-07 +/- 7.66e-08
Energy Flux (Free Index): 2.13e-05 +/- 1.17e-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/173357/cmap_HighResolution_514857601_515116801_4FGL_J2353.2+3135_daily_bin1063.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.46e-02', comment='SUCCESS', photon_flux='7.61e-08', energy_flux2='2.13e-05', photon_flux_error='5.81e-08', dlogl='1.34e+00', energy_flux='1.94e-05', photon_flux2='1.46e-07', job_status='DONE', time_completed='2021-09-30 08:09:17.473567', photon_index_error2='1.38', photon_index2='4.16', ts='2.34', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='1.86e-07', energy_flux_error2='1.17e-05', EG='1.18', time_epoch_completed='1633014557.47', return_code='0', job_id='173357', GAL2='1.03', EG2='1.08', return_code2='0', energy_flux_error='1.48e-05', photon_flux_error2='7.66e-08', ts2='5.45', photon_index='2.63' WHERE bin_id='1063' AND source_name='4FGL J2353.2+3135' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 08:09:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0035>
Subject: Job 173357: <4FGL_J2353.2+3135_daily_bin1063> in cluster <slac> Done

Job <4FGL_J2353.2+3135_daily_bin1063> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 07:55:19 2021
Job was executed on host(s) <bullet0035>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 07:55:20 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 30 07:55:20 2021
Terminated at Thu Sep 30 08:09:17 2021
Results reported at Thu Sep 30 08:09:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2353.2+3135_daily_bin1063 358.322 31.5927 514857601 515116801 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 :                                   826.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             361.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   837 sec.
    Turnaround time :                            838 sec.

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

