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


Performing analysis on: 4FGL_J2353.2+3135_daily_bin1055
RA = 358.322, Dec = 31.5927
tmin = 512784001, tmax = 513043201
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='173346', job_status='RUN', time_executed='2021-09-30 07:59:15.693932', time_epoch_executed='1633013955.69' WHERE source_name='4FGL J2353.2+3135' and cadence='daily' and bin_id='1055'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/173346

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/173346/ft1_4FGL_J2353.2+3135_daily_bin1055.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/173346/ft2_4FGL_J2353.2+3135_daily_bin1055.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/173346/ft1_4FGL_J2353.2+3135_daily_bin1055.fits outfile=/scratch/kocevski/173346/ft1_filteredMKT_4FGL_J2353.2+3135_daily_bin1055.fits ra=358.322 dec=31.5927 rad=12.0 tmin=512784001.0 tmax=513043201.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 4.41
user 4.19
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/173346/ft1_filtered_4FGL_J2353.2+3135_daily_bin1055.fits" evtable="EVENTS" scfile=/scratch/kocevski/173346/ft2_4FGL_J2353.2+3135_daily_bin1055.fits sctable="SC_DATA" outfile=/scratch/kocevski/173346/ltcube_512784001_513043201_4FGL_J2353.2+3135_daily_bin1055.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/173346/ft2_4FGL_J2353.2+3135_daily_bin1055.fits
.....................!
real 11.86
user 11.45
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/173346/ft1_filtered_4FGL_J2353.2+3135_daily_bin1055.fits evtable="EVENTS" scfile=/scratch/kocevski/173346/ft2_4FGL_J2353.2+3135_daily_bin1055.fits sctable="SC_DATA" expcube=/scratch/kocevski/173346/ltcube_512784001_513043201_4FGL_J2353.2+3135_daily_bin1055.fits outfile=/scratch/kocevski/173346/expmap_512784001_513043201_4FGL_J2353.2+3135_daily_bin1055.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/173346/ltcube_512784001_513043201_4FGL_J2353.2+3135_daily_bin1055.fits
.....................!
real 191.45
user 185.09
sys 6.01

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/173346/ft1_filtered_4FGL_J2353.2+3135_daily_bin1055.fits scfile=/scratch/kocevski/173346/ft2_4FGL_J2353.2+3135_daily_bin1055.fits outfile=/scratch/kocevski/173346/cmap_512784001_513043201_4FGL_J2353.2+3135_daily_bin1055.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/173346/ft1_filtered_4FGL_J2353.2+3135_daily_bin1055.fits scfile=/scratch/kocevski/173346/ft2_4FGL_J2353.2+3135_daily_bin1055.fits outfile=/scratch/kocevski/173346/cmap_HighResolution_512784001_513043201_4FGL_J2353.2+3135_daily_bin1055.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/173346/ft1_filtered_4FGL_J2353.2+3135_daily_bin1055.fits evtable="EVENTS" scfile=/scratch/kocevski/173346/ft2_4FGL_J2353.2+3135_daily_bin1055.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/173346/Model_4FGL_J2353.2+3135_daily_bin1055.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/173346/ft1_filtered_4FGL_J2353.2+3135_daily_bin1055.fits.....................!
real 75.91
user 74.47
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.2672       1.0000         .10000E-03   10000.    
     2 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.2585       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.3395       1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.243       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .19435E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10086E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.6281       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.7989       1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.338       1.0000         .10000E-03   10000.    
    14 'norm      '    .52376       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10267E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.0207       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10291E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .15354E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.4399       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .79156       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=   7115.237     FROM MIGRAD    STATUS=CONVERGED    497 CALLS     2391 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.2671        3.0936        .89703E-07    .42585E-05
   2  norm          .10000E-03    18.526        .45299E-07** at limit **
   3  Prefactor     7.2596        8.4227        .18683E-06    .15773E-03
   4  Prefactor     9.3369        13.895       -.14254E-06   -.17294E-05
   5  Prefactor     10.243        6.1445        .15736E-06    .55364E-04
   6  Prefactor     .10000E-03    173.40       -.39075E-05** at limit **
   7  Prefactor     .10000E-03    13.534        .12217E-06** at limit **
   8  norm          .10000E-03    .98621        .27487E-07** at limit **
   9  Prefactor     .10000E-03    23.679        .21287E-06** at limit **
  10  norm          1.6284        1.1773       -.28088E-07   -.19297E-03
  11  Prefactor     .10000E-03    6.5537        .44636E-08** at limit **
  12  Prefactor     7.8004        10.794       -.91130E-07   -.59452E-04
  13  Prefactor     14.338        18.410       -.39972E-07   -.14130E-04
  14  norm          .52529        3.7329        .27058E-05    .30688E-04
  15  Prefactor     .10000E-03    16.550       -.45397E-06** at limit **
  16  norm          1.0216        2.1156        .73591E-06    .45423E-03
  17  Prefactor     .10000E-03    12.663       -.47308E-08** at limit **
  18  Prefactor     .10000E-03    94.538        .28612E-05** at limit **
  19  Prefactor     .10000E-03    49.968       -.30931E-06** at limit **
  20  Prefactor     .10002E-03    5.0241       -.91043E-06** at limit **
  21  Normalizat    1.4399        .19628       -.15805E-06   -.79542E-05
  22  Prefactor     .79151        .10641       -.35301E-06    .22134E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.26706
  norm       = 0.0001
  Prefactor  = 7.25965
  Prefactor  = 9.33688
  Prefactor  = 10.2429
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.62845
  Prefactor  = 0.0001
  Prefactor  = 7.80041
  Prefactor  = 14.3377
  norm       = 0.525289
  Prefactor  = 0.0001
  norm       = 1.02159
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.000100019
  Normalizat = 1.43989
  Prefactor  = 0.791507
 **********
 **   18 **HESSE 
 **********

 FCN=   7115.237     FROM HESSE     STATUS=OK           348 CALLS     2739 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.2671        3.0829        .13557E-03   -1.5346    
   2  norm          .10000E-03    18.691        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.2596        8.2508        .14888E-03   -1.5169    
   4  Prefactor     9.3369        13.875        .13114E-03   -1.5097    
   5  Prefactor     10.243        6.1524        .12519E-03   -1.5068    
   6  Prefactor     .10000E-03    176.88        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    13.580        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.7681        .16329E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    24.031        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.6284        1.1764        .75013E-04   -1.5453    
  11  Prefactor     .10000E-03    6.5578        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.8004        10.732        .14359E-03   -1.5149    
  13  Prefactor     14.338        18.405        .10578E-03   -1.4950    
  14  norm          .52529        3.6369        .31257E-03   -1.5563    
  15  Prefactor     .10000E-03    16.758        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.0216        1.9590        .17565E-02   -1.5506    
  17  Prefactor     .10000E-03    12.698        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    96.502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    50.137        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10002E-03    17.225        .34570E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.4399        .22824        .27570E-03   -.79482    
  22  Prefactor     .79151        .12349        .19374E-03   -1.0004    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.29978e-09
Minuit parameter uncertainties:
  1  3.08307
  2  3.92847e-05
  3  8.25214
  4  13.8798
  5  6.15277
  6  0.00154504
  7  3.03475e-05
  8  1.89177e-06
  9  4.02301e-05
  10  1.17645
  11  8.49695e-07
  12  10.7342
  13  18.4123
  14  2.76432
  15  0.000101067
  16  1.95914
  17  9.83487e-06
  18  0.000940967
  19  9.90766e-05
  20  0.00113652
  21  0.228402
  22  0.123534
Done.

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

Extracting fit parameters...

4FGL J2353.2+3135
   Spectrum: PowerLaw
483    Prefactor:  1.000e-04  9.410e-04  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:  7.915e-01  1.235e-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.440e+00  2.284e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 358.322 31.593
Photon Flux Upper Limit: 9.99e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.84e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/173346/likelihoodResults_512784001_513043201_4FGL_J2353.2+3135_daily_bin1055.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7115.23682276
delta logL = -4.92581657454e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7115.23677363
delta logL = -1.29721229314e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5857       1.0000          .0000       10.000    
     3 'Normalizat'    1.4399       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79151       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=   7115.237     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      284 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10003E-03    145.51        .36285E-03** at limit **
   2  Index         2.6873        6.3415        .50000       -.13057E-04
   3  Normalizat    1.4399        .22232        .27570E-03    .16618E-04
   4  Prefactor     .79151        .12066        .19374E-03   -.13027E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100027
  Index      = 2.68735
  Normalizat = 1.43989
  Prefactor  = 0.791507
 **********
 **   18 **HESSE 
 **********

 FCN=   7115.237     FROM HESSE     STATUS=OK            29 CALLS      313 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10003E-03    133.11        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6873        6.3340        .50000       -.48085    
   3  Normalizat    1.4399        .22250        .11028E-04   -.79482    
   4  Prefactor     .79151        .12076        .77495E-05   -1.0004    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.3146e-10
Minuit parameter uncertainties:
  1  0.00377718
  2  4.44214
  3  0.222652
  4  0.120804
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/173346': 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) = 7115.23677334
delta logL = 1.60589479492e-07

Extracting fit parameters...

4FGL J2353.2+3135
   Spectrum: PowerLaw
483    Prefactor:  1.000e-04  3.777e-03  1.000e-04  1.000e+04 ( 1.000e-13)
484        Index:  2.687e+00  4.442e+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:  7.915e-01  1.208e-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.440e+00  2.227e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 358.322 31.593

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/173346/cmap_HighResolution_512784001_513043201_4FGL_J2353.2+3135_daily_bin1055.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.84e-03', job_status='DONE', photon_flux_upper_limit='9.99e-08', time_completed='2021-09-30 08:10:42.602549', job_id='173346', GAL2='0.79', fit_tolerance='1e-08', EG2='1.44', EG='1.44', time_epoch_completed='1633014642.6', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='1.61e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.63' WHERE bin_id='1055' AND source_name='4FGL J2353.2+3135' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 08:10:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0233>
Subject: Job 173346: <4FGL_J2353.2+3135_daily_bin1055> in cluster <slac> Done

Job <4FGL_J2353.2+3135_daily_bin1055> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 07:55:18 2021
Job was executed on host(s) <bullet0233>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 07:55:19 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:19 2021
Terminated at Thu Sep 30 08:10:42 2021
Results reported at Thu Sep 30 08:10:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2353.2+3135_daily_bin1055 358.322 31.5927 512784001 513043201 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 :                                   667.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             276.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   923 sec.
    Turnaround time :                            924 sec.

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

