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


Performing analysis on: 4FGL_J2353.2+3135_daily_bin52
RA = 358.322, Dec = 31.5927
tmin = 252806401, tmax = 253065601
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='168906', job_status='RUN', time_executed='2021-09-30 07:43:32.210187', time_epoch_executed='1633013012.21' WHERE source_name='4FGL J2353.2+3135' and cadence='daily' and bin_id='52'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/168906

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/168906/ft1_4FGL_J2353.2+3135_daily_bin52.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/168906/ft2_4FGL_J2353.2+3135_daily_bin52.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/168906/ft1_4FGL_J2353.2+3135_daily_bin52.fits outfile=/scratch/kocevski/168906/ft1_filteredMKT_4FGL_J2353.2+3135_daily_bin52.fits ra=358.322 dec=31.5927 rad=12.0 tmin=252806401.0 tmax=253065601.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.41
user 1.24
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/168906/ft1_filtered_4FGL_J2353.2+3135_daily_bin52.fits" evtable="EVENTS" scfile=/scratch/kocevski/168906/ft2_4FGL_J2353.2+3135_daily_bin52.fits sctable="SC_DATA" outfile=/scratch/kocevski/168906/ltcube_252806401_253065601_4FGL_J2353.2+3135_daily_bin52.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/168906/ft2_4FGL_J2353.2+3135_daily_bin52.fits
.....................!
real 12.65
user 12.30
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/168906/ft1_filtered_4FGL_J2353.2+3135_daily_bin52.fits evtable="EVENTS" scfile=/scratch/kocevski/168906/ft2_4FGL_J2353.2+3135_daily_bin52.fits sctable="SC_DATA" expcube=/scratch/kocevski/168906/ltcube_252806401_253065601_4FGL_J2353.2+3135_daily_bin52.fits outfile=/scratch/kocevski/168906/expmap_252806401_253065601_4FGL_J2353.2+3135_daily_bin52.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/168906/ltcube_252806401_253065601_4FGL_J2353.2+3135_daily_bin52.fits
.....................!
real 191.28
user 185.54
sys 5.42

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/168906/ft1_filtered_4FGL_J2353.2+3135_daily_bin52.fits scfile=/scratch/kocevski/168906/ft2_4FGL_J2353.2+3135_daily_bin52.fits outfile=/scratch/kocevski/168906/cmap_252806401_253065601_4FGL_J2353.2+3135_daily_bin52.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.52
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/168906/ft1_filtered_4FGL_J2353.2+3135_daily_bin52.fits scfile=/scratch/kocevski/168906/ft2_4FGL_J2353.2+3135_daily_bin52.fits outfile=/scratch/kocevski/168906/cmap_HighResolution_252806401_253065601_4FGL_J2353.2+3135_daily_bin52.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.36
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.6225       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.8022       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.365       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.1201       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .20383E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11292E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10236E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .54106E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10264E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.3197       1.0000         .10000E-03   10000.    
    15 'Prefactor '    15.913       1.0000         .10000E-03   10000.    
    16 'norm      '    2.5950       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.7439       1.0000         .10000E-03   10000.    
    19 'Prefactor '    37.190       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .96913       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .97528       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=   9342.483     FROM MIGRAD    STATUS=CONVERGED    492 CALLS     2390 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.1706        .32610E-07** at limit **
   2  norm          3.6109        9.5107        .57288E-05   -.17841E-03
   3  Prefactor     3.8024        4.0466        .15993E-05   -.12545E-03
   4  Prefactor     10.359        10.106        .49030E-06   -.82724E-04
   5  Prefactor     5.1190        5.1420        .90736E-06   -.20119E-03
   6  Prefactor     .10000E-03    24.248        .13381E-04** at limit **
   7  Prefactor     .10000E-03    25.659       -.14835E-04** at limit **
   8  norm          .10000E-03    .75240       -.47693E-07** at limit **
   9  Prefactor     .10000E-03    7.0925        .22347E-06** at limit **
  10  norm          .10000E-03    .41311       -.71657E-07** at limit **
  11  Prefactor     .10000E-03    4.2747       -.50621E-06** at limit **
  12  Prefactor     .56559E-01    7.3805        .17515E-05   -.64426E-03
  13  Prefactor     .10000E-03    10.332       -.74449E-06** at limit **
  14  norm          2.3230        4.1142       -.49973E-05   -.13472E-02
  15  Prefactor     15.867        16.478        .14463E-04    .13615E-03
  16  norm          2.5963        1.8912        .39423E-08   -.30483E-03
  17  Prefactor     .10000E-03    4.0956        .15161E-06** at limit **
  18  Prefactor     1.6257        103.31       -.32864E-04   -.44437E-04
  19  Prefactor     37.203        36.149        .80638E-05   -.19501E-04
  20  Prefactor     .10000E-03    2.9698       -.23577E-06** at limit **
  21  Normalizat    .96948        .16605       -.14297E-05    .35127E-04
  22  Prefactor     .97509        .91484E-01   -.98231E-06    .69374E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 3.61087
  Prefactor  = 3.80245
  Prefactor  = 10.359
  Prefactor  = 5.11895
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0565587
  Prefactor  = 0.0001
  norm       = 2.32299
  Prefactor  = 15.867
  norm       = 2.59634
  Prefactor  = 0.0001
  Prefactor  = 1.62567
  Prefactor  = 37.2031
  Prefactor  = 0.0001
  Normalizat = 0.96948
  Prefactor  = 0.975087
 **********
 **   18 **HESSE 
 **********

 FCN=   9342.483     FROM HESSE     STATUS=OK           352 CALLS     2742 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.2001        .20388E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.6109        9.4137        .21228E-03   -1.5328    
   3  Prefactor     3.8024        4.0349        .19291E-03   -1.5318    
   4  Prefactor     10.359        10.102        .12445E-03   -1.5064    
   5  Prefactor     5.1190        5.1321        .17768E-03   -1.5255    
   6  Prefactor     .10000E-03    24.228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    25.729        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .76538        .81857E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.0961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .68302        .11995E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.2777        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .56559E-01    9.9878        .75675E-01   -1.5660    
  13  Prefactor     .10000E-03    10.358        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.3230        4.1725        .23423E-03   -1.5403    
  15  Prefactor     15.867        16.595        .10040E-03   -1.4911    
  16  norm          2.5963        1.8938        .10955E-03   -1.5386    
  17  Prefactor     .10000E-03    4.0984        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.6257        105.80        .31763E-03   -1.5453    
  19  Prefactor     37.203        35.995        .65720E-04   -1.4487    
  20  Prefactor     .10000E-03    2.9883        .16243E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .96948        .19436        .30775E-03   -.94060    
  22  Prefactor     .97509        .10781        .17330E-03   -.93565    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.9095e-09
Minuit parameter uncertainties:
  1  4.38374e-06
  2  9.41751
  3  4.03524
  4  10.1034
  5  5.13259
  6  2.35161e-05
  7  8.32951e-05
  8  2.68193e-06
  9  7.29117e-07
  10  1.47911e-05
  11  4.97954e-06
  12  1.50211
  13  5.06017e-05
  14  4.17299
  15  16.5997
  16  1.89388
  17  2.51042e-06
  18  26.2774
  19  36.0157
  20  7.16677e-05
  21  0.1945
  22  0.107833
Done.

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

Extracting fit parameters...

4FGL J2353.2+3135
   Spectrum: PowerLaw
483    Prefactor:  1.626e+00  2.628e+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:  9.751e-01  1.078e-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:  9.695e-01  1.945e-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.89e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.19e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/168906/likelihoodResults_252806401_253065601_4FGL_J2353.2+3135_daily_bin52.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) = 9342.17738995
delta logL = 0.305812252944

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9342.13914605
delta logL = 0.344056150598

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.7775       1.0000         .10000E-03   10000.    
     2 'Index     '    4.3555       1.0000          .0000       10.000    
     3 'Normalizat'    .92843       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98828       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   9342.139     FROM MIGRAD    STATUS=FAILED        82 CALLS      339 TOTAL
                     EDM=   .42E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7763        147.39        .15899E-03   -.26798E-02
   2  Index         4.3531        6.6940        .86147E-02   -.40973E-03
   3  Normalizat    .92850        .16029        .31379E-03   -.56090E-03
   4  Prefactor     .98824        .89976E-01    .17226E-03   -.60963E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   9342.139     FROM SIMPLEX   STATUS=UNCHANGED     89 CALLS      428 TOTAL
                     EDM=   .85E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7763        147.39        .13344E-03   -.26798E-02
   2  Index         4.3531        6.6940        .17955E-02   -.40973E-03
   3  Normalizat    .92850        .16029        .14347E-03   -.56090E-03
   4  Prefactor     .98824        .89976E-01    .52317E-04   -.60963E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9342.139     FROM MIGRAD    STATUS=CONVERGED     29 CALLS      457 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7759        9.0824        .63597E-05   -.30475E-02
   2  Index         4.3532        2.4330        .34459E-03   -.35183E-03
   3  Normalizat    .92850        .19252        .62757E-04   -.57092E-03
   4  Prefactor     .98824        .10691        .34452E-04   -.62512E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.77585
  Index      = 4.35325
  Normalizat = 0.928497
  Prefactor  = 0.98824
 **********
 **   18 **HESSE 
 **********

 FCN=   9342.139     FROM HESSE     STATUS=OK            23 CALLS      480 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.7759        8.2554        .12719E-05   -1.5441    
   2  Index         4.3532        2.3288        .13783E-04   -.12971    
   3  Normalizat    .92850        .19254        .12551E-04   -.95466    
   4  Prefactor     .98824        .10692        .68904E-05   -.93123    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.67719e-09
Minuit parameter uncertainties:
  1  7.65927
  2  2.42422
  3  0.192685
  4  0.10694
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/168906': 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) = 9342.13913883
delta logL = 0.344063370023

Extracting fit parameters...

4FGL J2353.2+3135
   Spectrum: PowerLaw
483    Prefactor:  1.776e+00  7.659e+00  1.000e-04  1.000e+04 ( 1.000e-13)
484        Index:  4.353e+00  2.424e+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:  9.882e-01  1.069e-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:  9.285e-01  1.927e-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/168906/cmap_HighResolution_252806401_253065601_4FGL_J2353.2+3135_daily_bin52.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.19e-03', job_status='DONE', photon_flux_upper_limit='7.89e-08', time_completed='2021-09-30 07:56:38.647721', job_id='168906', GAL2='0.99', fit_tolerance='1e-08', EG2='0.93', EG='0.97', time_epoch_completed='1633013798.65', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='3.44e-01', ts2='0.74', photon_index_error='0.00', photon_index='2.63' WHERE bin_id='52' AND source_name='4FGL J2353.2+3135' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 07:56:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 168906: <4FGL_J2353.2+3135_daily_bin52> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2353.2+3135_daily_bin52 358.322 31.5927 252806401 253065601 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 :                                   786.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             271.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   960 sec.
    Turnaround time :                            963 sec.

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

