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


Performing analysis on: 4FGL_J2353.2+3135_daily_bin589
RA = 358.322, Dec = 31.5927
tmin = 391996801, tmax = 392256001
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='171734', job_status='RUN', time_executed='2021-09-30 07:50:39.362304', time_epoch_executed='1633013439.36' WHERE source_name='4FGL J2353.2+3135' and cadence='daily' and bin_id='589'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/171734

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/171734/ft1_4FGL_J2353.2+3135_daily_bin589.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/171734/ft2_4FGL_J2353.2+3135_daily_bin589.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/171734/ft1_4FGL_J2353.2+3135_daily_bin589.fits outfile=/scratch/kocevski/171734/ft1_filteredMKT_4FGL_J2353.2+3135_daily_bin589.fits ra=358.322 dec=31.5927 rad=12.0 tmin=391996801.0 tmax=392256001.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 5.39
user 5.10
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/171734/ft1_filtered_4FGL_J2353.2+3135_daily_bin589.fits evtable="EVENTS" scfile=/scratch/kocevski/171734/ft2_4FGL_J2353.2+3135_daily_bin589.fits sctable="SC_DATA" expcube=/scratch/kocevski/171734/ltcube_391996801_392256001_4FGL_J2353.2+3135_daily_bin589.fits outfile=/scratch/kocevski/171734/expmap_391996801_392256001_4FGL_J2353.2+3135_daily_bin589.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/171734/ltcube_391996801_392256001_4FGL_J2353.2+3135_daily_bin589.fits
.....................!
real 190.42
user 185.09
sys 4.95

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/171734/ft1_filtered_4FGL_J2353.2+3135_daily_bin589.fits scfile=/scratch/kocevski/171734/ft2_4FGL_J2353.2+3135_daily_bin589.fits outfile=/scratch/kocevski/171734/cmap_391996801_392256001_4FGL_J2353.2+3135_daily_bin589.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.55
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/171734/ft1_filtered_4FGL_J2353.2+3135_daily_bin589.fits scfile=/scratch/kocevski/171734/ft2_4FGL_J2353.2+3135_daily_bin589.fits outfile=/scratch/kocevski/171734/cmap_HighResolution_391996801_392256001_4FGL_J2353.2+3135_daily_bin589.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.55
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .28860E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.2368       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.7421       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.4680       1.0000         .10000E-03   10000.    
     6 'Prefactor '    61.327       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10894E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.7510       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.1411       1.0000         .10000E-03   10000.    
    10 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.5250       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    13.400       1.0000         .10000E-03   10000.    
    14 'norm      '    27.368       1.0000         .10000E-03   10000.    
    15 'Prefactor '    16.678       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    30.392       1.0000         .10000E-03   10000.    
    19 'Prefactor '    108.35       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .48932       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1024       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=   7067.800     FROM MIGRAD    STATUS=CONVERGED    503 CALLS     2396 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.1975       -.11501E-07** at limit **
   2  norm          .10009E-03    15.708       -.41114E-05** at limit **
   3  Prefactor     4.2226        7.7703        .13221E-05    .21813E-03
   4  Prefactor     5.7437        11.906        .61557E-07   -.37777E-04
   5  Prefactor     7.4614        8.9001        .27854E-06    .64816E-04
   6  Prefactor     61.392        48.503       -.29866E-06   -.75434E-04
   7  Prefactor     .10000E-03    18.843        .23859E-06** at limit **
   8  norm          1.7511        1.6799       -.11442E-07    .39193E-04
   9  Prefactor     7.1298        19.821       -.90179E-07   -.35124E-04
  10  norm          .10000E-03    .51178       -.65001E-07** at limit **
  11  Prefactor     5.5197        18.998        .30467E-07   -.24413E-04
  12  Prefactor     .10000E-03    13.686        .14422E-06** at limit **
  13  Prefactor     13.391        20.493       -.14682E-06   -.17398E-04
  14  norm          27.362        9.3115       -.10713E-07   -.15495E-04
  15  Prefactor     16.694        25.211        .46027E-08   -.27703E-04
  16  norm          .10000E-03    .75655        .35748E-07** at limit **
  17  Prefactor     .10000E-03    9.6205       -.21522E-07** at limit **
  18  Prefactor     30.409        30.508       -.12592E-06   -.31860E-04
  19  Prefactor     108.10        63.080        .36609E-05    .20724E-03
  20  Prefactor     .10000E-03    6.4419       -.11378E-05** at limit **
  21  Normalizat    .48911        .22482       -.69352E-06    .16458E-03
  22  Prefactor     1.1024        .11848        .45693E-06    .30101E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.000100086
  Prefactor  = 4.22264
  Prefactor  = 5.74366
  Prefactor  = 7.46144
  Prefactor  = 61.3923
  Prefactor  = 0.0001
  norm       = 1.75105
  Prefactor  = 7.12981
  norm       = 0.0001
  Prefactor  = 5.5197
  Prefactor  = 0.0001
  Prefactor  = 13.3907
  norm       = 27.362
  Prefactor  = 16.6937
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.4094
  Prefactor  = 108.1
  Prefactor  = 0.0001
  Normalizat = 0.489108
  Prefactor  = 1.1024
 **********
 **   18 **HESSE 
 **********

 FCN=   7067.800     FROM HESSE     STATUS=OK           348 CALLS     2744 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.2117        .89776E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10009E-03    53.692        .55912E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.2226        7.7861        .19576E-03   -1.5297    
   4  Prefactor     5.7437        11.880        .16762E-03   -1.5229    
   5  Prefactor     7.4614        8.8621        .14676E-03   -1.5162    
   6  Prefactor     61.392        48.228        .25619E-03   -1.4139    
   7  Prefactor     .10000E-03    18.914        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.7511        1.6932        .10383E-03   -1.5443    
   9  Prefactor     7.1298        19.804        .15011E-03   -1.5174    
  10  norm          .10000E-03    .72683        .11620E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.5197        18.958        .17093E-03   -1.5238    
  12  Prefactor     .10000E-03    13.917        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     13.391        20.490        .10942E-03   -1.4976    
  14  norm          27.362        9.2978        .76578E-04   -1.4661    
  15  Prefactor     16.694        25.105        .98072E-04   -1.4891    
  16  norm          .10000E-03    .76498        .71391E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    9.6666        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     30.409        30.437        .72677E-04   -1.4605    
  19  Prefactor     108.10        64.421        .19319E-03   -1.3625    
  20  Prefactor     .10000E-03    6.5719        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .48911        .23886        .43234E-03   -1.1292    
  22  Prefactor     1.1024        .12888        .16394E-03   -.89390    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.79701e-09
Minuit parameter uncertainties:
  1  1.23058e-07
  2  0.00429068
  3  7.78793
  4  11.8844
  5  8.86368
  6  48.2592
  7  2.67339e-05
  8  1.69327
  9  19.822
  10  1.80175e-06
  11  18.9785
  12  2.1576e-05
  13  20.5005
  14  9.29829
  15  25.1207
  16  1.27151e-06
  17  3.15226e-06
  18  30.4524
  19  64.4629
  20  2.0335e-06
  21  0.23936
  22  0.128914
Done.

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

Extracting fit parameters...

4FGL J2353.2+3135
   Spectrum: PowerLaw
483    Prefactor:  3.041e+01  3.045e+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.102e+00  1.289e-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:  4.891e-01  2.394e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.64
Ra Dec: 358.322 31.593
Photon Index (Fixed Index): 2.63 +/- 0.00
Photon Flux (Fixed Index): 3.69e-08 +/- 3.69e-08
Energy Flux (Fixed Index): 9.40e-06 +/- 9.41e-06

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

Saving results to:
/scratch/kocevski/171734/likelihoodResults_391996801_392256001_4FGL_J2353.2+3135_daily_bin589.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) = 7067.70977838
delta logL = 0.0902425669337

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7067.70737366
delta logL = 0.0926472886131

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    38.057       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2947       1.0000          .0000       10.000    
     3 'Normalizat'    .49863       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0988       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=   7067.707     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      288 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     38.064        39.187        .64969E-04   -.11042E-02
   2  Index         2.2945        .74510        .10649E-01   -.52247E-03
   3  Normalizat    .49875        .22644        .42827E-03    .29102E-03
   4  Prefactor     1.0987        .12580        .16417E-03    .82776E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 38.0638
  Index      = 2.29453
  Normalizat = 0.498746
  Prefactor  = 1.09873
 **********
 **   18 **HESSE 
 **********

 FCN=   7067.707     FROM HESSE     STATUS=OK            23 CALLS      311 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     38.064        38.720        .12994E-04   -1.4473    
   2  Index         2.2945        .73614        .42595E-03   -.57174    
   3  Normalizat    .49875        .22644        .17131E-04   -1.1247    
   4  Prefactor     1.0987        .12581        .32833E-04   -.89507    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09273e-08
Minuit parameter uncertainties:
  1  38.7454
  2  0.739954
  3  0.226854
  4  0.125843
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/171734': 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) = 7067.70737337
delta logL = 0.0926475804772

Extracting fit parameters...

4FGL J2353.2+3135
   Spectrum: PowerLaw
483    Prefactor:  3.806e+01  3.875e+01  1.000e-04  1.000e+04 ( 1.000e-13)
484        Index:  2.295e+00  7.400e-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.099e+00  1.258e-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:  4.987e-01  2.269e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.82
Ra Dec: 358.322 31.593
Photon Index (Free Index): 2.29 +/- 0.74
Photon Flux (Free Index): 2.96e-08 +/- 3.50e-08
Energy Flux (Free Index): 1.13e-05 +/- 1.25e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/171734/cmap_HighResolution_391996801_392256001_4FGL_J2353.2+3135_daily_bin589.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.89e-03', comment='SUCCESS', photon_flux='3.69e-08', energy_flux2='1.13e-05', photon_flux_error='3.69e-08', dlogl='9.26e-02', energy_flux='9.40e-06', photon_flux2='2.96e-08', job_status='DONE', time_completed='2021-09-30 08:01:40.228339', photon_index_error2='0.74', photon_index2='2.29', ts='1.64', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', photon_flux_upper_limit='1.26e-07', energy_flux_error2='1.25e-05', EG='0.49', time_epoch_completed='1633014100.23', return_code='0', job_id='171734', GAL2='1.10', EG2='0.50', return_code2='0', energy_flux_error='9.41e-06', photon_flux_error2='3.50e-08', ts2='1.82', photon_index='2.63' WHERE bin_id='589' AND source_name='4FGL J2353.2+3135' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 08:01:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 171734: <4FGL_J2353.2+3135_daily_bin589> in cluster <slac> Done

Job <4FGL_J2353.2+3135_daily_bin589> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Thu Sep 30 07:50:23 2021
Job was executed on host(s) <bullet0215>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 07:50:25 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:50:25 2021
Terminated at Thu Sep 30 08:01:41 2021
Results reported at Thu Sep 30 08:01:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2353.2+3135_daily_bin589 358.322 31.5927 391996801 392256001 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 :                                   659.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             355.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   675 sec.
    Turnaround time :                            678 sec.

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

