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


Performing analysis on: 4FGL_J2353.2+3135_daily_bin973
RA = 358.322, Dec = 31.5927
tmin = 491529601, tmax = 491788801
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='172336', job_status='RUN', time_executed='2021-09-30 07:51:34.458453', time_epoch_executed='1633013494.46' WHERE source_name='4FGL J2353.2+3135' and cadence='daily' and bin_id='973'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/172336

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/172336/ft1_4FGL_J2353.2+3135_daily_bin973.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/172336/ft2_4FGL_J2353.2+3135_daily_bin973.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/172336/ft1_4FGL_J2353.2+3135_daily_bin973.fits outfile=/scratch/kocevski/172336/ft1_filteredMKT_4FGL_J2353.2+3135_daily_bin973.fits ra=358.322 dec=31.5927 rad=12.0 tmin=491529601.0 tmax=491788801.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.48
user 3.26
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/172336/ft1_filtered_4FGL_J2353.2+3135_daily_bin973.fits evtable="EVENTS" scfile=/scratch/kocevski/172336/ft2_4FGL_J2353.2+3135_daily_bin973.fits sctable="SC_DATA" expcube=/scratch/kocevski/172336/ltcube_491529601_491788801_4FGL_J2353.2+3135_daily_bin973.fits outfile=/scratch/kocevski/172336/expmap_491529601_491788801_4FGL_J2353.2+3135_daily_bin973.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/172336/ltcube_491529601_491788801_4FGL_J2353.2+3135_daily_bin973.fits
.....................!
real 191.04
user 185.53
sys 5.19

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/172336/ft1_filtered_4FGL_J2353.2+3135_daily_bin973.fits scfile=/scratch/kocevski/172336/ft2_4FGL_J2353.2+3135_daily_bin973.fits outfile=/scratch/kocevski/172336/cmap_491529601_491788801_4FGL_J2353.2+3135_daily_bin973.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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/172336/ft1_filtered_4FGL_J2353.2+3135_daily_bin973.fits scfile=/scratch/kocevski/172336/ft2_4FGL_J2353.2+3135_daily_bin973.fits outfile=/scratch/kocevski/172336/cmap_HighResolution_491529601_491788801_4FGL_J2353.2+3135_daily_bin973.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/172336/ft1_filtered_4FGL_J2353.2+3135_daily_bin973.fits evtable="EVENTS" scfile=/scratch/kocevski/172336/ft2_4FGL_J2353.2+3135_daily_bin973.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/172336/Model_4FGL_J2353.2+3135_daily_bin973.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/172336/ft1_filtered_4FGL_J2353.2+3135_daily_bin973.fits.....................!
real 86.29
user 84.94
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11214E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10068E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .26708E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .32747       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .27802       1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.296       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.5697       1.0000         .10000E-03   10000.    
     8 'norm      '    4.1169       1.0000         .10000E-03   10000.    
     9 'Prefactor '    23.274       1.0000         .10000E-03   10000.    
    10 'norm      '    1.6036       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    19.482       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.5548       1.0000         .10000E-03   10000.    
    16 'norm      '    1.5239       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.866       1.0000         .10000E-03   10000.    
    19 'Prefactor '    45.462       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .12473E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .96785       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .96747       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=   8576.017     FROM MIGRAD    STATUS=CONVERGED    488 CALLS     2443 TOTAL
                     EDM=   .59E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.4301       -.36316E-06** at limit **
   2  norm          .10000E-03    4.6645       -.41577E-06** at limit **
   3  Prefactor     .10001E-03    12.347       -.64315E-05** at limit **
   4  Prefactor     .47448        9.1568        .31089E-05   -.14415E-03
   5  Prefactor     .33214        18.348       -.83687E-05    .24175E-03
   6  Prefactor     10.292        24.081        .92448E-07    .57601E-04
   7  Prefactor     2.5770        33.943       -.65496E-05   -.38916E-04
   8  norm          4.1177        2.3980       -.12449E-06    .17926E-03
   9  Prefactor     23.275        16.527       -.95000E-07   -.11644E-04
  10  norm          1.6043        1.2339       -.33366E-06    .43008E-03
  11  Prefactor     .10000E-03    19.490       -.22913E-06** at limit **
  12  Prefactor     19.488        12.841        .17589E-08    .21504E-04
  13  Prefactor     .10000E-03    6.6856        .23608E-06** at limit **
  14  norm          .10000E-03    2.4390       -.48906E-06** at limit **
  15  Prefactor     8.5750        12.441       -.10070E-05    .62837E-04
  16  norm          1.5244        2.5392       -.15105E-05    .47941E-03
  17  Prefactor     .10000E-03    6.2578       -.77647E-06** at limit **
  18  Prefactor     13.877        34.179       -.12501E-05   -.18580E-04
  19  Prefactor     45.462        49.328        .63711E-06    .12181E-04
  20  Prefactor     .10000E-03    5.4159       -.87522E-06** at limit **
  21  Normalizat    .96707        .18233        .33379E-05    .27643E-03
  22  Prefactor     .96764        .97146E-01    .24849E-06    .65068E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.000100012
  Prefactor  = 0.474484
  Prefactor  = 0.33214
  Prefactor  = 10.2924
  Prefactor  = 2.57701
  norm       = 4.11771
  Prefactor  = 23.2754
  norm       = 1.60433
  Prefactor  = 0.0001
  Prefactor  = 19.4883
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.57499
  norm       = 1.52437
  Prefactor  = 0.0001
  Prefactor  = 13.8773
  Prefactor  = 45.4616
  Prefactor  = 0.0001
  Normalizat = 0.967068
  Prefactor  = 0.967643
 **********
 **   18 **HESSE 
 **********

 FCN=   8576.017     FROM HESSE     STATUS=OK           354 CALLS     2797 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.8200        .21132E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    4.6747        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10001E-03    19.541        .35331E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .47448        51.995        .44000E-02   -1.5570    
   5  Prefactor     .33214        39.560        .39538E-02   -1.5593    
   6  Prefactor     10.292        24.113        .12487E-03   -1.5066    
   7  Prefactor     2.5770        34.088        .25463E-03   -1.5387    
   8  norm          4.1177        2.3971        .10603E-03   -1.5302    
   9  Prefactor     23.275        16.529        .83029E-04   -1.4743    
  10  norm          1.6043        1.2223        .86353E-04   -1.5455    
  11  Prefactor     .10000E-03    19.667        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     19.488        12.794        .90742E-04   -1.4825    
  13  Prefactor     .10000E-03    6.6946        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.4665        .14048E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     8.5750        12.383        .13705E-03   -1.5122    
  16  norm          1.5244        2.5193        .17868E-03   -1.5461    
  17  Prefactor     .10000E-03    6.2777        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     13.877        34.310        .10757E-03   -1.4963    
  19  Prefactor     45.462        48.960        .59464E-04   -1.4358    
  20  Prefactor     .10000E-03    5.4977        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .96707        .21583        .30917E-03   -.94142    
  22  Prefactor     .96764        .11547        .17455E-03   -.93816    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.18733e-09
Minuit parameter uncertainties:
  1  0.000146727
  2  1.08945e-05
  3  0.000961419
  4  9.9418
  5  7.25345
  6  24.1359
  7  18.7578
  8  2.39717
  9  16.5326
  10  1.22228
  11  0.000100856
  12  12.7953
  13  1.54946e-05
  14  2.06043e-05
  15  12.3869
  16  2.51952
  17  4.05249e-05
  18  34.3591
  19  49.0032
  20  4.49481e-06
  21  0.216021
  22  0.115497
Done.

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

Extracting fit parameters...

4FGL J2353.2+3135
   Spectrum: PowerLaw
483    Prefactor:  1.388e+01  3.436e+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.676e-01  1.155e-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.671e-01  2.160e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/172336/likelihoodResults_491529601_491788801_4FGL_J2353.2+3135_daily_bin973.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) = 8576.01152757
delta logL = 0.00561184546495

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8575.90506511
delta logL = 0.112074299319

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    9.6589       1.0000          .0000       10.000    
     3 'Normalizat'    .93482       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98360       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8575.905     FROM MIGRAD    STATUS=FAILED       350 CALLS      741 TOTAL
                     EDM=   .95E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .24714E-01    .23701E-03** at limit **
   2  Index         9.6598        8.1574        .50000        .96451E-04
   3  Normalizat    .93437        .69703E-01    .31416E-03   -.22929E-03
   4  Prefactor     .98376        .38761E-01    .17329E-03   -.51417E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8575.905     FROM SIMPLEX   STATUS=UNCHANGED    161 CALLS      902 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .24714E-01    .99547E-05** at limit **
   2  Index         9.6598        8.1574        .61140E-03    .96451E-04
   3  Normalizat    .93437        .69703E-01    .55864E-05   -.22929E-03
   4  Prefactor     .98376        .38761E-01    .14262E-05   -.51417E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8575.905     FROM MIGRAD    STATUS=CONVERGED     40 CALLS      942 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .14905E-01    .29709E-03** at limit **
   2  Index         9.6598        6.0649        .78392E-01    .17581E-04
   3  Normalizat    .93437        .61361E-01    .12566E-04   -.22943E-03
   4  Prefactor     .98376        .34332E-01    .34659E-04   -.51420E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 9.65976
  Normalizat = 0.934372
  Prefactor  = 0.983761
 **********
 **   18 **HESSE 
 **********

 FCN=   8575.905     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      977 TOTAL
                     EDM=   .67E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .20058E-01    .27190E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         9.6598        5.4672        .31357E-02   -5.0834    
   3  Normalizat    .93437        .70970E-01    .25133E-05    4.0942    
   4  Prefactor     .98376        .39553E-01    .69318E-05    10.358    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.72912e-11
Minuit parameter uncertainties:
  1  1.082e-07
  2  9.39451
  3  0.0709775
  4  0.0395542
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/172336': 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) = 8575.9050532
delta logL = 0.112086215147

Extracting fit parameters...

4FGL J2353.2+3135
   Spectrum: PowerLaw
483    Prefactor:  1.000e-04  1.082e-07  1.000e-04  1.000e+04 ( 1.000e-13)
484        Index:  9.660e+00  9.395e+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.838e-01  3.955e-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.344e-01  7.098e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.19
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/172336/cmap_HighResolution_491529601_491788801_4FGL_J2353.2+3135_daily_bin973.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.33e-03', job_status='DONE', photon_flux_upper_limit='1.06e-07', time_completed='2021-09-30 08:05:01.146910', job_id='172336', GAL2='0.98', fit_tolerance='1e-08', EG2='0.93', EG='0.97', time_epoch_completed='1633014301.15', return_code2='102', ts='0.19', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='1.12e-01', ts2='0.46', photon_index_error='0.00', photon_index='2.63' WHERE bin_id='973' AND source_name='4FGL J2353.2+3135' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 08:05:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0108>
Subject: Job 172336: <4FGL_J2353.2+3135_daily_bin973> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2353.2+3135_daily_bin973 358.322 31.5927 491529601 491788801 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 :                                   797.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             300.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   817 sec.
    Turnaround time :                            818 sec.

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

