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


Performing analysis on: 4FGL_J2353.2+3135_daily_bin1087
RA = 358.322, Dec = 31.5927
tmin = 521078401, tmax = 521337601
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='173393', job_status='RUN', time_executed='2021-09-30 07:58:44.350251', time_epoch_executed='1633013924.35' WHERE source_name='4FGL J2353.2+3135' and cadence='daily' and bin_id='1087'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/173393

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/173393/ft1_4FGL_J2353.2+3135_daily_bin1087.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/173393/ft2_4FGL_J2353.2+3135_daily_bin1087.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/173393/ft1_4FGL_J2353.2+3135_daily_bin1087.fits outfile=/scratch/kocevski/173393/ft1_filteredMKT_4FGL_J2353.2+3135_daily_bin1087.fits ra=358.322 dec=31.5927 rad=12.0 tmin=521078401.0 tmax=521337601.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.69
user 4.39
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/173393/ft1_filtered_4FGL_J2353.2+3135_daily_bin1087.fits" evtable="EVENTS" scfile=/scratch/kocevski/173393/ft2_4FGL_J2353.2+3135_daily_bin1087.fits sctable="SC_DATA" outfile=/scratch/kocevski/173393/ltcube_521078401_521337601_4FGL_J2353.2+3135_daily_bin1087.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/173393/ft2_4FGL_J2353.2+3135_daily_bin1087.fits
.....................!
real 11.72
user 11.35
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/173393/ft1_filtered_4FGL_J2353.2+3135_daily_bin1087.fits evtable="EVENTS" scfile=/scratch/kocevski/173393/ft2_4FGL_J2353.2+3135_daily_bin1087.fits sctable="SC_DATA" expcube=/scratch/kocevski/173393/ltcube_521078401_521337601_4FGL_J2353.2+3135_daily_bin1087.fits outfile=/scratch/kocevski/173393/expmap_521078401_521337601_4FGL_J2353.2+3135_daily_bin1087.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/173393/ltcube_521078401_521337601_4FGL_J2353.2+3135_daily_bin1087.fits
.....................!
real 192.18
user 186.35
sys 5.45

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/173393/ft1_filtered_4FGL_J2353.2+3135_daily_bin1087.fits scfile=/scratch/kocevski/173393/ft2_4FGL_J2353.2+3135_daily_bin1087.fits outfile=/scratch/kocevski/173393/cmap_521078401_521337601_4FGL_J2353.2+3135_daily_bin1087.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/173393/ft1_filtered_4FGL_J2353.2+3135_daily_bin1087.fits scfile=/scratch/kocevski/173393/ft2_4FGL_J2353.2+3135_daily_bin1087.fits outfile=/scratch/kocevski/173393/cmap_HighResolution_521078401_521337601_4FGL_J2353.2+3135_daily_bin1087.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.1709       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.338       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .14527E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .24057       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.6084       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.6354       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.3105       1.0000         .10000E-03   10000.    
    14 'norm      '    .90222E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.7751       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.2563       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10174E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10139E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0228       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0956       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=   8872.575     FROM MIGRAD    STATUS=CONVERGED    480 CALLS     2086 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.4873        .39770E-07** at limit **
   2  norm          .10000E-03    33.217        .27512E-05** at limit **
   3  Prefactor     4.1702        6.3887        .45743E-06   -.10072E-03
   4  Prefactor     .10000E-03    5.0002        .12882E-08** at limit **
   5  Prefactor     12.339        7.7671        .99951E-06   -.27610E-03
   6  Prefactor     .10000E-03    16.659        .70554E-06** at limit **
   7  Prefactor     .10000E-03    39.728       -.23318E-05** at limit **
   8  norm          .24467        1.7226        .36189E-06   -.42131E-03
   9  Prefactor     .10000E-03    10.007       -.33364E-07** at limit **
  10  norm          1.6083        1.4494        .10276E-06    .12811E-03
  11  Prefactor     4.6421        28.758        .22706E-05    .74595E-04
  12  Prefactor     .10000E-03    4.1117        .11770E-07** at limit **
  13  Prefactor     2.3129        38.723        .15215E-05    .21119E-04
  14  norm          .81615E-01    4.6997       -.74713E-06    .39809E-03
  15  Prefactor     3.7642        22.026        .68107E-06    .15830E-03
  16  norm          .10000E-03    .76073        .10166E-07** at limit **
  17  Prefactor     6.2561        8.7040        .60264E-06   -.61888E-04
  18  Prefactor     .10000E-03    21.013       -.49615E-06** at limit **
  19  Prefactor     .10000E-03    19.770       -.75817E-06** at limit **
  20  Prefactor     .10000E-03    5.4540       -.78981E-08** at limit **
  21  Normalizat    1.0228        .19181       -.80700E-06    .44137E-05
  22  Prefactor     1.0956        .10401       -.21608E-06    .17403E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.000100004
  Prefactor  = 4.17023
  Prefactor  = 0.0001
  Prefactor  = 12.3387
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 0.244674
  Prefactor  = 0.0001
  norm       = 1.60834
  Prefactor  = 4.6421
  Prefactor  = 0.0001
  Prefactor  = 2.31286
  norm       = 0.0816148
  Prefactor  = 3.76421
  norm       = 0.0001
  Prefactor  = 6.25615
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.02284
  Prefactor  = 1.09561
 **********
 **   18 **HESSE 
 **********

 FCN=   8872.575     FROM HESSE     STATUS=OK           352 CALLS     2438 TOTAL
                     EDM=   .57E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.5938        .28993E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    35.677        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.1702        6.3723        .19735E-03   -1.5300    
   4  Prefactor     .10000E-03    5.0183        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     12.339        8.0168        .57020E-03   -1.5005    
   6  Prefactor     .10000E-03    16.818        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    41.135        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .24467        4.0899        .23670E-02   -1.5609    
   9  Prefactor     .10000E-03    10.013        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.6083        1.4351        .10216E-03   -1.5454    
  11  Prefactor     4.6421        29.164        .18694E-03   -1.5277    
  12  Prefactor     .10000E-03    4.1200        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.3129        38.540        .26992E-03   -1.5404    
  14  norm          .81615E-01    4.6231        .52552E-01   -1.5651    
  15  Prefactor     3.7642        22.075        .20778E-03   -1.5320    
  16  norm          .10000E-03    .77263        .80220E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.2561        8.7461        .80243E-03   -1.5208    
  18  Prefactor     .10000E-03    21.151        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    19.937        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.5159        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0228        .22061        .33259E-03   -.92269    
  22  Prefactor     1.0956        .12097        .17806E-03   -.89607    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.7374e-08
Minuit parameter uncertainties:
  1  6.49917e-06
  2  0.000795918
  3  6.37329
  4  1.70648e-06
  5  8.01745
  6  0.00014665
  7  0.000684743
  8  2.00045
  9  3.97032e-06
  10  1.43515
  11  23.2871
  12  2.1486e-06
  13  18.8964
  14  1.22787
  15  18.2414
  16  7.71595e-07
  17  8.74791
  18  0.000108283
  19  0.000168831
  20  7.56032e-07
  21  0.220803
  22  0.121001
Done.

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

Extracting fit parameters...

4FGL J2353.2+3135
   Spectrum: PowerLaw
483    Prefactor:  1.000e-04  1.083e-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:  1.096e+00  1.210e-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.023e+00  2.208e-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: 7.24e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.67e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/173393/likelihoodResults_521078401_521337601_4FGL_J2353.2+3135_daily_bin1087.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) = 8872.57500169
delta logL = -0.000225274496188

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8872.57477815
delta logL = -1.73567605088e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11184E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.0295       1.0000          .0000       10.000    
     3 'Normalizat'    1.0228       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0956       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=   8872.575     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      274 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10607E-03    11.731        .18142E-01** at limit **
   2  Index         2.9036        6.8000        .50000        .18471E-04
   3  Normalizat    1.0228        .42001E-02    .33259E-03   -.15095E-03
   4  Prefactor     1.0956        .23331E-02    .17806E-03   -.19632E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000106074
  Index      = 2.9036
  Normalizat = 1.02284
  Prefactor  = 1.09561
 **********
 **   18 **HESSE 
 **********

 FCN=   8872.575     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      303 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10607E-03    75.648        .36285E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.9036        6.0652        .50000       -.43265    
   3  Normalizat    1.0228        .10610E-01    .13304E-04   -.92269    
   4  Prefactor     1.0956        .58936E-02    .35611E-04   -.89607    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.17667e-09
Minuit parameter uncertainties:
  1  0.042927
  2  321.457
  3  0.0106098
  4  0.00589361
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/173393': 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) = 8872.57477734
delta logL = -9.33488990995e-07

Extracting fit parameters...

4FGL J2353.2+3135
   Spectrum: PowerLaw
483    Prefactor:  1.061e-04  4.293e-02  1.000e-04  1.000e+04 ( 1.000e-13)
484        Index:  2.904e+00  3.215e+02  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.096e+00  5.894e-03  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.023e+00  1.061e-02  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/173393/cmap_HighResolution_521078401_521337601_4FGL_J2353.2+3135_daily_bin1087.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.67e-03', job_status='DONE', photon_flux_upper_limit='7.24e-08', time_completed='2021-09-30 08:11:19.867803', job_id='173393', GAL2='1.10', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1633014679.87', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='-9.33e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.63' WHERE bin_id='1087' AND source_name='4FGL J2353.2+3135' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 08:11:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 173393: <4FGL_J2353.2+3135_daily_bin1087> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2353.2+3135_daily_bin1087 358.322 31.5927 521078401 521337601 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 :                                   730.42 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             275.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   956 sec.
    Turnaround time :                            958 sec.

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

