/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 104 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 = 7428
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2353.2+3135_daily_bin16
RA = 358.322, Dec = 31.5927
tmin = 243475201, tmax = 243734401
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='168847', job_status='RUN', time_executed='2021-09-30 07:42:26.538652', time_epoch_executed='1633012946.54' WHERE source_name='4FGL J2353.2+3135' and cadence='daily' and bin_id='16'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/168847

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/168847/ft1_4FGL_J2353.2+3135_daily_bin16.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/168847/ft2_4FGL_J2353.2+3135_daily_bin16.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/168847/ft1_4FGL_J2353.2+3135_daily_bin16.fits outfile=/scratch/kocevski/168847/ft1_filteredMKT_4FGL_J2353.2+3135_daily_bin16.fits ra=358.322 dec=31.5927 rad=12.0 tmin=243475201.0 tmax=243734401.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 1.44
user 1.23
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/168847/ft1_filtered_4FGL_J2353.2+3135_daily_bin16.fits" evtable="EVENTS" scfile=/scratch/kocevski/168847/ft2_4FGL_J2353.2+3135_daily_bin16.fits sctable="SC_DATA" outfile=/scratch/kocevski/168847/ltcube_243475201_243734401_4FGL_J2353.2+3135_daily_bin16.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/168847/ft2_4FGL_J2353.2+3135_daily_bin16.fits
.....................!
real 12.87
user 12.53
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/168847/ft1_filtered_4FGL_J2353.2+3135_daily_bin16.fits evtable="EVENTS" scfile=/scratch/kocevski/168847/ft2_4FGL_J2353.2+3135_daily_bin16.fits sctable="SC_DATA" expcube=/scratch/kocevski/168847/ltcube_243475201_243734401_4FGL_J2353.2+3135_daily_bin16.fits outfile=/scratch/kocevski/168847/expmap_243475201_243734401_4FGL_J2353.2+3135_daily_bin16.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/168847/ltcube_243475201_243734401_4FGL_J2353.2+3135_daily_bin16.fits
.....................!
real 192.09
user 187.19
sys 4.54

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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/168847/ft1_filtered_4FGL_J2353.2+3135_daily_bin16.fits scfile=/scratch/kocevski/168847/ft2_4FGL_J2353.2+3135_daily_bin16.fits outfile=/scratch/kocevski/168847/cmap_HighResolution_243475201_243734401_4FGL_J2353.2+3135_daily_bin16.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/168847/ft1_filtered_4FGL_J2353.2+3135_daily_bin16.fits evtable="EVENTS" scfile=/scratch/kocevski/168847/ft2_4FGL_J2353.2+3135_daily_bin16.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/168847/Model_4FGL_J2353.2+3135_daily_bin16.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/168847/ft1_filtered_4FGL_J2353.2+3135_daily_bin16.fits.....................!
real 87.83
user 86.44
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.9341       1.0000         .10000E-03   10000.    
     2 'norm      '    1.8574       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10258E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.2086       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    23.505       1.0000         .10000E-03   10000.    
     8 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.4786       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .20479E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    6.7217       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.0691       1.0000         .10000E-03   10000.    
    16 'norm      '    .85962       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    56.992       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .74668       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1038       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=   8622.998     FROM MIGRAD    STATUS=CONVERGED    469 CALLS     2429 TOTAL
                     EDM=   .50E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.9343        3.1601       -.47350E-07   -.27999E-03
   2  norm          1.8509        19.550        .25290E-05   -.16212E-04
   3  Prefactor     .10000E-03    5.0747        .68912E-06** at limit **
   4  Prefactor     9.2083        10.022        .55294E-06   -.43717E-03
   5  Prefactor     .10000E-03    4.8985        .77777E-06** at limit **
   6  Prefactor     .10000E-03    8.8599       -.11154E-05** at limit **
   7  Prefactor     23.499        24.198       -.20950E-05   -.22367E-03
   8  norm          .10000E-03    .88573       -.33297E-07** at limit **
   9  Prefactor     .10000E-03    8.1450        .89148E-06** at limit **
  10  norm          1.4789        1.1379        .44559E-07    .37741E-04
  11  Prefactor     .10000E-03    11.719       -.28172E-06** at limit **
  12  Prefactor     .10000E-03    7.1542        .18333E-06** at limit **
  13  Prefactor     .10000E-03    4.6861       -.73588E-06** at limit **
  14  norm          6.7228        4.4369        .66335E-06   -.15425E-02
  15  Prefactor     7.0636        15.400       -.49288E-06    .16131E-04
  16  norm          .85978        1.7041        .27294E-06   -.18427E-03
  17  Prefactor     .10000E-03    5.5029       -.11257E-05** at limit **
  18  Prefactor     56.987        38.701       -.20892E-05   -.21622E-03
  19  Prefactor     .10000E-03    13.331        .80448E-07** at limit **
  20  Prefactor     .10000E-03    4.2058       -.62068E-07** at limit **
  21  Normalizat    .74673        .18667        .63611E-06   -.67162E-04
  22  Prefactor     1.1037        .10182       -.21201E-06   -.47104E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.93433
  norm       = 1.85091
  Prefactor  = 0.0001
  Prefactor  = 9.2083
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.4988
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.47888
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.72283
  Prefactor  = 7.06355
  norm       = 0.859781
  Prefactor  = 0.0001
  Prefactor  = 56.9869
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.746731
  Prefactor  = 1.10372
 **********
 **   18 **HESSE 
 **********

 FCN=   8622.998     FROM HESSE     STATUS=OK           344 CALLS     2773 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.9343        3.1439        .15521E-03   -1.5365    
   2  norm          1.8509        19.377        .30580E-03   -1.5436    
   3  Prefactor     .10000E-03    5.1040        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.2083        10.277        .66036E-03   -1.5101    
   5  Prefactor     .10000E-03    5.0549        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.9302        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     23.499        24.700        .82621E-04   -1.4738    
   8  norm          .10000E-03    .92208        .17065E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.1885        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.4789        1.1339        .83524E-04   -1.5465    
  11  Prefactor     .10000E-03    72.649        .61468E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.2239        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.7184        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          6.7228        5.3062        .77384E-03   -1.5189    
  15  Prefactor     7.0636        15.869        .15088E-03   -1.5176    
  16  norm          .85978        1.4374        .16969E-02   -1.5523    
  17  Prefactor     .10000E-03    5.5686        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     56.987        39.597        .53139E-04   -1.4197    
  19  Prefactor     .10000E-03    13.334        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.2407        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .74673        .21133        .35111E-03   -1.0208    
  22  Prefactor     1.1037        .11651        .16803E-03   -.89348    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.96189e-09
Minuit parameter uncertainties:
  1  3.14411
  2  11.9823
  3  2.10744e-05
  4  10.2792
  5  4.5522e-05
  6  9.11323e-05
  7  24.7108
  8  6.31318e-07
  9  6.74037e-05
  10  1.13388
  11  0.00106279
  12  8.11648e-06
  13  4.38748e-05
  14  5.30654
  15  15.8783
  16  1.43743
  17  6.98248e-05
  18  39.6157
  19  1.42872e-07
  20  1.64742e-05
  21  0.211566
  22  0.116534
Done.

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

Extracting fit parameters...

4FGL J2353.2+3135
   Spectrum: PowerLaw
483    Prefactor:  5.699e+01  3.962e+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.104e+00  1.165e-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.467e-01  2.116e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.86
Ra Dec: 358.322 31.593
Photon Index (Fixed Index): 2.63 +/- 0.00
Photon Flux (Fixed Index): 6.91e-08 +/- 4.80e-08
Energy Flux (Fixed Index): 1.76e-05 +/- 1.22e-05

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

Saving results to:
/scratch/kocevski/168847/likelihoodResults_243475201_243734401_4FGL_J2353.2+3135_daily_bin16.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) = 8622.21633246
delta logL = 0.78211499745

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8622.18618918
delta logL = 0.812258274298

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.774       1.0000         .10000E-03   10000.    
     2 'Index     '    3.7349       1.0000          .0000       10.000    
     3 'Normalizat'    .69803       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1250       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.

 FCN=   8622.186     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      263 TOTAL
                     EDM=   .96E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.713        135.45        .26051E-02    .28452E-03
   2  Index         3.7371        2.8465        .13444        .26135E-03
   3  Normalizat    .69796        .64838E-01    .81780E-01   -.14127E-04
   4  Prefactor     1.1250        .36528E-01    .36705E-01   -.61917E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.7131
  Index      = 3.73711
  Normalizat = 0.697956
  Prefactor  = 1.12501
 **********
 **   18 **HESSE 
 **********

 FCN=   8622.186     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      294 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.713        218.88        .10420E-03   -1.4941    
   2  Index         3.7371        3.9310        .50284E-02   -.25534    
   3  Normalizat    .69796        .20639        .36214E-03   -1.0397    
   4  Prefactor     1.1250        .11935        .16660E-03   -.88671    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.55637e-09
Minuit parameter uncertainties:
  1  114
  2  4.58883
  3  0.206622
  4  0.119377
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/168847': 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): 102
logL (Free Index) = 8622.18618612
delta logL = 0.812261330519

Extracting fit parameters...

4FGL J2353.2+3135
   Spectrum: PowerLaw
483    Prefactor:  1.471e+01  1.140e+02  1.000e-04  1.000e+04 ( 1.000e-13)
484        Index:  3.737e+00  4.589e+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.125e+00  1.194e-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:  6.980e-01  2.066e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.70
Ra Dec: 358.322 31.593
Photon Index (Free Index): 3.74 +/- 4.59
Photon Flux (Free Index): 9.83e-08 +/- 5.83e-08
Energy Flux (Free Index): 1.55e-05 +/- 1.98e-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/168847/cmap_HighResolution_243475201_243734401_4FGL_J2353.2+3135_daily_bin16.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.26e-02', comment='SUCCESS', photon_flux='6.91e-08', energy_flux2='1.55e-05', photon_flux_error='4.80e-08', dlogl='8.12e-01', energy_flux='1.76e-05', photon_flux2='9.83e-08', job_status='DONE', time_completed='2021-09-30 07:54:44.025343', photon_index_error2='4.59', photon_index2='3.74', ts='2.86', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', photon_flux_upper_limit='1.60e-07', energy_flux_error2='1.98e-05', EG='0.75', time_epoch_completed='1633013684.03', return_code='0', job_id='168847', GAL2='1.13', EG2='0.70', return_code2='102', energy_flux_error='1.22e-05', photon_flux_error2='5.83e-08', ts2='4.70', photon_index='2.63' WHERE bin_id='16' AND source_name='4FGL J2353.2+3135' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 07:54:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0055>
Subject: Job 168847: <4FGL_J2353.2+3135_daily_bin16> in cluster <slac> Done

Job <4FGL_J2353.2+3135_daily_bin16> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 07:40:31 2021
Job was executed on host(s) <bullet0055>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 07:40:33 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:40:33 2021
Terminated at Thu Sep 30 07:54:44 2021
Results reported at Thu Sep 30 07:54:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2353.2+3135_daily_bin16 358.322 31.5927 243475201 243734401 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 :                                   737.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             325.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   851 sec.
    Turnaround time :                            853 sec.

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

