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


Performing analysis on: 4FGL_J2353.2+3135_daily_bin588
RA = 358.322, Dec = 31.5927
tmin = 391737601, tmax = 391996801
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='171732', job_status='RUN', time_executed='2021-09-30 07:50:34.517943', time_epoch_executed='1633013434.52' WHERE source_name='4FGL J2353.2+3135' and cadence='daily' and bin_id='588'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/171732

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/171732/ft1_4FGL_J2353.2+3135_daily_bin588.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/171732/ft2_4FGL_J2353.2+3135_daily_bin588.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/171732/ft1_4FGL_J2353.2+3135_daily_bin588.fits outfile=/scratch/kocevski/171732/ft1_filteredMKT_4FGL_J2353.2+3135_daily_bin588.fits ra=358.322 dec=31.5927 rad=12.0 tmin=391737601.0 tmax=391996801.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 3.28
user 3.07
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/171732/ft1_filtered_4FGL_J2353.2+3135_daily_bin588.fits evtable="EVENTS" scfile=/scratch/kocevski/171732/ft2_4FGL_J2353.2+3135_daily_bin588.fits sctable="SC_DATA" expcube=/scratch/kocevski/171732/ltcube_391737601_391996801_4FGL_J2353.2+3135_daily_bin588.fits outfile=/scratch/kocevski/171732/expmap_391737601_391996801_4FGL_J2353.2+3135_daily_bin588.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/171732/ltcube_391737601_391996801_4FGL_J2353.2+3135_daily_bin588.fits
.....................!
real 194.51
user 189.21
sys 4.98

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/171732/ft1_filtered_4FGL_J2353.2+3135_daily_bin588.fits scfile=/scratch/kocevski/171732/ft2_4FGL_J2353.2+3135_daily_bin588.fits outfile=/scratch/kocevski/171732/cmap_391737601_391996801_4FGL_J2353.2+3135_daily_bin588.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.53
user 0.38
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.3184       1.0000         .10000E-03   10000.    
     2 'norm      '    13.051       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .42678       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    43.566       1.0000         .10000E-03   10000.    
     8 'norm      '    .29236       1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.260       1.0000         .10000E-03   10000.    
    10 'norm      '    4.0208       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.333       1.0000         .10000E-03   10000.    
    14 'norm      '    5.6060       1.0000         .10000E-03   10000.    
    15 'Prefactor '    30.039       1.0000         .10000E-03   10000.    
    16 'norm      '    .13632E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10123E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .95912       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0183       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=   8116.644     FROM MIGRAD    STATUS=CONVERGED    476 CALLS     2406 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.3191        2.9539        .21673E-06   -.10267E-03
   2  norm          13.050        13.177        .14207E-07   -.32227E-06
   3  Prefactor     .10000E-03    2.1428       -.18156E-07** at limit **
   4  Prefactor     .10000E-03    4.2079       -.98853E-09** at limit **
   5  Prefactor     .42404        5.9910       -.15726E-07   -.11520E-04
   6  Prefactor     .10000E-03    14.228       -.35746E-06** at limit **
   7  Prefactor     43.565        27.595       -.26561E-06   -.47281E-04
   8  norm          .29244        1.4964        .14557E-05   -.32554E-03
   9  Prefactor     10.256        30.790       -.10073E-05   -.45544E-04
  10  norm          4.0208        1.9339        .61957E-07   -.45306E-04
  11  Prefactor     .10000E-03    14.293       -.46982E-06** at limit **
  12  Prefactor     .10000E-03    12.642        .10259E-05** at limit **
  13  Prefactor     10.333        16.282        .18342E-06    .22134E-05
  14  norm          5.6087        7.1827        .83821E-06    .10601E-03
  15  Prefactor     30.028        23.552       -.13935E-05   -.22086E-03
  16  norm          .10006E-03    1.2856       -.26997E-06** at limit **
  17  Prefactor     .10000E-03    10.737       -.19878E-06** at limit **
  18  Prefactor     .10000E-03    24.553        .18024E-05** at limit **
  19  Prefactor     .10000E-03    32.404       -.90937E-06** at limit **
  20  Prefactor     .10000E-03    3.2294        .45804E-07** at limit **
  21  Normalizat    .95898        .20163       -.94530E-07   -.74413E-05
  22  Prefactor     1.0183        .10621       -.17351E-06    .71811E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.31907
  norm       = 13.0505
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.424042
  Prefactor  = 0.0001
  Prefactor  = 43.5651
  norm       = 0.292443
  Prefactor  = 10.2559
  norm       = 4.02079
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.333
  norm       = 5.60871
  Prefactor  = 30.0276
  norm       = 0.000100059
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.958975
  Prefactor  = 1.01831
 **********
 **   18 **HESSE 
 **********

 FCN=   8116.644     FROM HESSE     STATUS=OK           344 CALLS     2750 TOTAL
                     EDM=   .60E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.3191        2.9526        .16781E-03   -1.5403    
   2  norm          13.050        13.165        .11088E-03   -1.4985    
   3  Prefactor     .10000E-03    2.1507        .12874E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.2121        .18045E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .42404        31.969        .40519E-02   -1.5578    
   6  Prefactor     .10000E-03    14.257        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     43.565        27.631        .60738E-04   -1.4387    
   8  norm          .29244        1.6131        .22617E-03   -1.5600    
   9  Prefactor     10.256        31.139        .12509E-03   -1.5067    
  10  norm          4.0208        1.9283        .81161E-04   -1.5307    
  11  Prefactor     .10000E-03    14.367        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    12.971        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     10.333        16.283        .12465E-03   -1.5065    
  14  norm          5.6087        7.2741        .16967E-03   -1.5234    
  15  Prefactor     30.028        24.483        .73103E-04   -1.4611    
  16  norm          .10006E-03    19.031        .19342E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    10.764        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    25.199        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    32.607        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.2437        .15800E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .95898        .23330        .34120E-03   -.94418    
  22  Prefactor     1.0183        .12284        .17996E-03   -.92122    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.96145e-08
Minuit parameter uncertainties:
  1  2.9528
  2  13.1682
  3  9.47775e-07
  4  9.2261e-07
  5  7.36697
  6  4.66125e-05
  7  27.6395
  8  1.37349
  9  31.1887
  10  1.92833
  11  5.34487e-05
  12  0.000125711
  13  16.29
  14  7.27526
  15  24.4909
  16  0.00211102
  17  1.99322e-05
  18  0.000307086
  19  0.000169557
  20  2.92383e-06
  21  0.233548
  22  0.122875
Done.

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

Extracting fit parameters...

4FGL J2353.2+3135
   Spectrum: PowerLaw
483    Prefactor:  1.000e-04  3.071e-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.018e+00  1.229e-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.590e-01  2.335e-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: 8.52e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.68e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/171732/likelihoodResults_391737601_391996801_4FGL_J2353.2+3135_daily_bin588.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) = 8116.64406749
delta logL = -0.000189061493984

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8116.64387856
delta logL = -1.25266524265e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10749E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2047       1.0000          .0000       10.000    
     3 'Normalizat'    .95897       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0183       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=   8116.564     FROM MIGRAD    STATUS=CONVERGED    137 CALLS      318 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .60491E-02    .85238E-01    .35889E-02    .15300E-01
   2  Index         7.4131        2.0323        .36168        .55549E-04
   3  Normalizat    .92467        .19062E-01    .34120E-03    .20392E-04
   4  Prefactor     1.0302        .10395E-01    .17996E-03    .26672E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00604912
  Index      = 7.41306
  Normalizat = 0.92467
  Prefactor  = 1.03017
 **********
 **   18 **HESSE 
 **********

 FCN=   8116.564     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      349 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .60491E-02    1.6817        .13855E-03   -1.5693    
   2  Index         7.4131        5.3426        .11451E-01    .50363    
   3  Normalizat    .92467        .13069        .13648E-04   -.95599    
   4  Prefactor     1.0302        .69554E-01    .35991E-04   -.91730    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.02246e-09
Minuit parameter uncertainties:
  1  0.200053
  2  17.5082
  3  0.130739
  4  0.0695597
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/171732': 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) = 8116.5638143
delta logL = 0.0800641333226

Extracting fit parameters...

4FGL J2353.2+3135
   Spectrum: PowerLaw
483    Prefactor:  6.049e-03  2.001e-01  1.000e-04  1.000e+04 ( 1.000e-13)
484        Index:  7.413e+00  1.751e+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.030e+00  6.956e-02  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.247e-01  1.307e-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/171732/cmap_HighResolution_391737601_391996801_4FGL_J2353.2+3135_daily_bin588.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.68e-03', job_status='DONE', photon_flux_upper_limit='8.52e-08', time_completed='2021-09-30 08:02:30.232072', job_id='171732', GAL2='1.03', fit_tolerance='1e-08', EG2='0.92', EG='0.96', time_epoch_completed='1633014150.23', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='8.01e-02', ts2='0.19', photon_index_error='0.00', photon_index='2.63' WHERE bin_id='588' AND source_name='4FGL J2353.2+3135' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 08:02:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0214>
Subject: Job 171732: <4FGL_J2353.2+3135_daily_bin588> in cluster <slac> Done

Job <4FGL_J2353.2+3135_daily_bin588> 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) <bullet0214>, 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:02:31 2021
Results reported at Thu Sep 30 08:02:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2353.2+3135_daily_bin588 358.322 31.5927 391737601 391996801 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 :                                   713.27 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             391.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   725 sec.
    Turnaround time :                            728 sec.

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

