/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 146 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 = 7449
number of fields = 30
RA_SUN column already exists. File will not be modified.DDone.


Performing analysis on: 4FGL_J2353.2+3135_daily_bin1518
RA = 358.322, Dec = 31.5927
tmin = 632793601, tmax = 633052801
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='178489', job_status='RUN', time_executed='2021-09-30 08:14:09.329512', time_epoch_executed='1633014849.33' WHERE source_name='4FGL J2353.2+3135' and cadence='daily' and bin_id='1518'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/178489

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/178489/ft1_4FGL_J2353.2+3135_daily_bin1518.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/178489/ft2_4FGL_J2353.2+3135_daily_bin1518.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/178489/ft1_4FGL_J2353.2+3135_daily_bin1518.fits outfile=/scratch/kocevski/178489/ft1_filteredMKT_4FGL_J2353.2+3135_daily_bin1518.fits ra=358.322 dec=31.5927 rad=12.0 tmin=632793601.0 tmax=633052801.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.61
user 3.40
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/178489/ft1_filtered_4FGL_J2353.2+3135_daily_bin1518.fits evtable="EVENTS" scfile=/scratch/kocevski/178489/ft2_4FGL_J2353.2+3135_daily_bin1518.fits sctable="SC_DATA" expcube=/scratch/kocevski/178489/ltcube_632793601_633052801_4FGL_J2353.2+3135_daily_bin1518.fits outfile=/scratch/kocevski/178489/expmap_632793601_633052801_4FGL_J2353.2+3135_daily_bin1518.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/178489/ltcube_632793601_633052801_4FGL_J2353.2+3135_daily_bin1518.fits
.....................!
real 190.43
user 185.91
sys 4.22

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/178489/ft1_filtered_4FGL_J2353.2+3135_daily_bin1518.fits scfile=/scratch/kocevski/178489/ft2_4FGL_J2353.2+3135_daily_bin1518.fits outfile=/scratch/kocevski/178489/cmap_632793601_633052801_4FGL_J2353.2+3135_daily_bin1518.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/178489/ft1_filtered_4FGL_J2353.2+3135_daily_bin1518.fits scfile=/scratch/kocevski/178489/ft2_4FGL_J2353.2+3135_daily_bin1518.fits outfile=/scratch/kocevski/178489/cmap_HighResolution_632793601_633052801_4FGL_J2353.2+3135_daily_bin1518.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/178489/ft1_filtered_4FGL_J2353.2+3135_daily_bin1518.fits evtable="EVENTS" scfile=/scratch/kocevski/178489/ft2_4FGL_J2353.2+3135_daily_bin1518.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/178489/Model_4FGL_J2353.2+3135_daily_bin1518.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/178489/ft1_filtered_4FGL_J2353.2+3135_daily_bin1518.fits.....................!
real 85.62
user 84.25
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.8061       1.0000         .10000E-03   10000.    
     2 'norm      '    9.8450       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.587       1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.555       1.0000         .10000E-03   10000.    
     6 'Prefactor '    71.259       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.3566       1.0000         .10000E-03   10000.    
     8 'norm      '    1.0066       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .94862       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    13.174       1.0000         .10000E-03   10000.    
    14 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .65489       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    23.993       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    14.132       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .76815       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1398       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=   8246.008     FROM MIGRAD    STATUS=CONVERGED    457 CALLS     2043 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.8059        3.1941       -.28973E-06   -.47254E-03
   2  norm          9.8481        17.864        .36552E-05   -.12544E-03
   3  Prefactor     .10000E-03    10.537        .55607E-05** at limit **
   4  Prefactor     16.587        14.633       -.19486E-06   -.15145E-04
   5  Prefactor     12.553        8.2251       -.10170E-07   -.53701E-04
   6  Prefactor     71.250        43.348       -.91446E-05    .55310E-05
   7  Prefactor     5.3530        31.729       -.11906E-04   -.32060E-04
   8  norm          1.0063        1.8013       -.51384E-06   -.17682E-02
   9  Prefactor     .10000E-03    9.1837       -.76148E-05** at limit **
  10  norm          .94860        .87160       -.93290E-07   -.18675E-03
  11  Prefactor     .10000E-03    6.0825       -.13005E-05** at limit **
  12  Prefactor     .10000E-03    3.0333        .19749E-08** at limit **
  13  Prefactor     13.167        16.995       -.63829E-05   -.70891E-05
  14  norm          .10000E-03    2.1234       -.79239E-08** at limit **
  15  Prefactor     .10000E-03    7.3406        .38600E-06** at limit **
  16  norm          .65487        1.3195       -.28687E-06   -.16749E-02
  17  Prefactor     .10000E-03    7.0181        .33905E-05** at limit **
  18  Prefactor     23.984        26.216       -.11458E-04   -.90554E-06
  19  Prefactor     .10000E-03    22.545       -.62571E-06** at limit **
  20  Prefactor     14.132        11.222       -.21858E-05   -.37444E-03
  21  Normalizat    .76826        .20257        .48439E-05   -.98833E-04
  22  Prefactor     1.1398        .10875       -.11217E-06    .36137E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.80593
  norm       = 9.84806
  Prefactor  = 0.0001
  Prefactor  = 16.5868
  Prefactor  = 12.5535
  Prefactor  = 71.2501
  Prefactor  = 5.353
  norm       = 1.00631
  Prefactor  = 0.0001
  norm       = 0.9486
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.1674
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.654869
  Prefactor  = 0.0001
  Prefactor  = 23.9844
  Prefactor  = 0.0001
  Prefactor  = 14.1316
  Normalizat = 0.768261
  Prefactor  = 1.13975
 **********
 **   18 **HESSE 
 **********

 FCN=   8246.008     FROM HESSE     STATUS=OK           350 CALLS     2393 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.8059        3.1843        .13563E-03   -1.5318    
   2  norm          9.8481        17.732        .12771E-03   -1.5080    
   3  Prefactor     .10000E-03    10.813        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     16.587        14.597        .98341E-04   -1.4893    
   5  Prefactor     12.553        8.2453        .11305E-03   -1.4999    
   6  Prefactor     71.250        43.253        .47556E-04   -1.4018    
   7  Prefactor     5.3530        31.876        .17364E-03   -1.5245    
   8  norm          1.0063        1.5445        .15961E-02   -1.5507    
   9  Prefactor     .10000E-03    9.1711        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .94860        .87556        .78547E-04   -1.5513    
  11  Prefactor     .10000E-03    6.0877        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.0381        .15445E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     13.167        16.987        .11036E-03   -1.4982    
  14  norm          .10000E-03    2.1517        .12918E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    7.3851        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .65487        1.0034        .14498E-02   -1.5546    
  17  Prefactor     .10000E-03    7.0277        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     23.984        26.139        .81778E-04   -1.4728    
  19  Prefactor     .10000E-03    22.547        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     14.132        11.185        .10655E-03   -1.4956    
  21  Normalizat    .76826        .22761        .36029E-03   -1.0126    
  22  Prefactor     1.1398        .12341        .17256E-03   -.88206    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.22794e-09
Minuit parameter uncertainties:
  1  3.18441
  2  17.7415
  3  5.95055e-05
  4  14.6004
  5  8.24607
  6  43.2719
  7  26.1461
  8  1.54456
  9  3.10321e-06
  10  0.875575
  11  3.84168e-09
  12  3.29287e-06
  13  16.9935
  14  4.04334e-06
  15  5.19832e-06
  16  1.00344
  17  1.62204e-06
  18  26.1516
  19  1.58393e-05
  20  11.1863
  21  0.227887
  22  0.123439
Done.

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

Extracting fit parameters...

4FGL J2353.2+3135
   Spectrum: PowerLaw
483    Prefactor:  2.398e+01  2.615e+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.140e+00  1.234e-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:  7.683e-01  2.279e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.54
Ra Dec: 358.322 31.593
Photon Index (Fixed Index): 2.63 +/- 0.00
Photon Flux (Fixed Index): 2.91e-08 +/- 3.17e-08
Energy Flux (Fixed Index): 7.41e-06 +/- 8.08e-06

TS (Fixed Index): 1.54
Ra Dec: 358.322 31.593
Photon Flux Upper Limit: 1.08e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.43e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/178489/likelihoodResults_632793601_633052801_4FGL_J2353.2+3135_daily_bin1518.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) = 8245.55889667
delta logL = 0.448811328615

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8245.51645788
delta logL = 0.491250118557

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    32.932       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8591       1.0000          .0000       10.000    
     3 'Normalizat'    .78886       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1321       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=   8245.516     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      248 TOTAL
                     EDM=   .85E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     32.956        34.870        .34913E-03    .79453E-05
   2  Index         1.8591        .67242        .11604E-01   -.11063E-04
   3  Normalizat    .78887        .21150        .35584E-03    .14313E-04
   4  Prefactor     1.1321        .12170        .17302E-03    .26134E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 32.9558
  Index      = 1.85907
  Normalizat = 0.788874
  Prefactor  = 1.1321
 **********
 **   18 **HESSE 
 **********

 FCN=   8245.516     FROM HESSE     STATUS=OK            25 CALLS      273 TOTAL
                     EDM=   .83E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     32.956        35.237        .13965E-04   -1.4559    
   2  Index         1.8591        .67963        .46418E-03   -.67922    
   3  Normalizat    .78887        .21161        .14234E-04   -1.0048    
   4  Prefactor     1.1321        .12177        .34603E-04   -.88447    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.28351e-11
Minuit parameter uncertainties:
  1  35.2594
  2  0.683137
  3  0.211832
  4  0.121795
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/178489': 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) = 8245.51645759
delta logL = 0.49125041086

Extracting fit parameters...

4FGL J2353.2+3135
   Spectrum: PowerLaw
483    Prefactor:  3.296e+01  3.526e+01  1.000e-04  1.000e+04 ( 1.000e-13)
484        Index:  1.859e+00  6.831e-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.132e+00  1.218e-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:  7.889e-01  2.118e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.51
Ra Dec: 358.322 31.593
Photon Index (Free Index): 1.86 +/- 0.68
Photon Flux (Free Index): 1.60e-08 +/- 2.18e-08
Energy Flux (Free Index): 1.61e-05 +/- 2.38e-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/178489/cmap_HighResolution_632793601_633052801_4FGL_J2353.2+3135_daily_bin1518.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.43e-03', comment='SUCCESS', photon_flux='2.91e-08', energy_flux2='1.61e-05', photon_flux_error='3.17e-08', dlogl='4.91e-01', energy_flux='7.41e-06', photon_flux2='1.60e-08', job_status='DONE', time_completed='2021-09-30 08:25:41.523190', photon_index_error2='0.68', photon_index2='1.86', ts='1.54', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', photon_flux_upper_limit='1.08e-07', energy_flux_error2='2.38e-05', EG='0.77', time_epoch_completed='1633015541.52', return_code='0', job_id='178489', GAL2='1.13', EG2='0.79', return_code2='0', energy_flux_error='8.08e-06', photon_flux_error2='2.18e-08', ts2='2.51', photon_index='2.63' WHERE bin_id='1518' AND source_name='4FGL J2353.2+3135' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 08:25:41 PDT 2021

------------------------------------------------------------
Sender: LSF System <scs@bullet0009>
Subject: Job 176122: <4FGL_J2353.2+3135_daily_bin1518> in cluster <slac> Done

Job <4FGL_J2353.2+3135_daily_bin1518> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 08:05:21 2021
Job was executed on host(s) <bullet0009>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 08:05:23 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 30 08:05:23 2021
Terminated at Thu Sep 30 08:18:47 2021
Results reported at Thu Sep 30 08:18:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2353.2+3135_daily_bin1518 358.322 31.5927 632793601 633052801 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 :                                   696.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             300.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   803 sec.
    Turnaround time :                            806 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0064>
Subject: Job 178489: <4FGL_J2353.2+3135_daily_bin1518> in cluster <slac> Done

Job <4FGL_J2353.2+3135_daily_bin1518> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 08:11:34 2021
Job was executed on host(s) <bullet0064>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 08:11:36 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 30 08:11:36 2021
Terminated at Thu Sep 30 08:25:42 2021
Results reported at Thu Sep 30 08:25:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2353.2+3135_daily_bin1518 358.322 31.5927 632793601 633052801 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 :                                   690.40 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             297.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   845 sec.
    Turnaround time :                            848 sec.

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

