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


Performing analysis on: 4FGL_J2353.2+3135_daily_bin1114
RA = 358.322, Dec = 31.5927
tmin = 528076801, tmax = 528336001
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='173433', job_status='RUN', time_executed='2021-09-30 07:57:25.744987', time_epoch_executed='1633013845.75' WHERE source_name='4FGL J2353.2+3135' and cadence='daily' and bin_id='1114'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/173433

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/173433/ft1_4FGL_J2353.2+3135_daily_bin1114.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/173433/ft2_4FGL_J2353.2+3135_daily_bin1114.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/173433/ft1_4FGL_J2353.2+3135_daily_bin1114.fits outfile=/scratch/kocevski/173433/ft1_filteredMKT_4FGL_J2353.2+3135_daily_bin1114.fits ra=358.322 dec=31.5927 rad=12.0 tmin=528076801.0 tmax=528336001.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.55
user 3.23
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/173433/ft2_4FGL_J2353.2+3135_daily_bin1114.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/173433/ft1_filteredMKT_4FGL_J2353.2+3135_daily_bin1114.fits evtable="EVENTS" outfile="/scratch/kocevski/173433/ft1_filtered_4FGL_J2353.2+3135_daily_bin1114.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/173433/ft1_filtered_4FGL_J2353.2+3135_daily_bin1114.fits" evtable="EVENTS" scfile=/scratch/kocevski/173433/ft2_4FGL_J2353.2+3135_daily_bin1114.fits sctable="SC_DATA" outfile=/scratch/kocevski/173433/ltcube_528076801_528336001_4FGL_J2353.2+3135_daily_bin1114.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/173433/ft2_4FGL_J2353.2+3135_daily_bin1114.fits
.....................!
real 12.81
user 11.84
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/173433/ft1_filtered_4FGL_J2353.2+3135_daily_bin1114.fits evtable="EVENTS" scfile=/scratch/kocevski/173433/ft2_4FGL_J2353.2+3135_daily_bin1114.fits sctable="SC_DATA" expcube=/scratch/kocevski/173433/ltcube_528076801_528336001_4FGL_J2353.2+3135_daily_bin1114.fits outfile=/scratch/kocevski/173433/expmap_528076801_528336001_4FGL_J2353.2+3135_daily_bin1114.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/173433/ltcube_528076801_528336001_4FGL_J2353.2+3135_daily_bin1114.fits
.....................!
real 190.62
user 184.96
sys 4.09

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/173433/ft1_filtered_4FGL_J2353.2+3135_daily_bin1114.fits scfile=/scratch/kocevski/173433/ft2_4FGL_J2353.2+3135_daily_bin1114.fits outfile=/scratch/kocevski/173433/cmap_528076801_528336001_4FGL_J2353.2+3135_daily_bin1114.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=358.322 yref=31.5927 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/173433/ft1_filtered_4FGL_J2353.2+3135_daily_bin1114.fits scfile=/scratch/kocevski/173433/ft2_4FGL_J2353.2+3135_daily_bin1114.fits outfile=/scratch/kocevski/173433/cmap_HighResolution_528076801_528336001_4FGL_J2353.2+3135_daily_bin1114.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.57
user 0.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.4908       1.0000         .10000E-03   10000.    
     2 'norm      '    6.0742       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .18057E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .74834E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .14297E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    65.383       1.0000         .10000E-03   10000.    
     7 'Prefactor '    25.996       1.0000         .10000E-03   10000.    
     8 'norm      '    .95225       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10174E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .96159       1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.8707       1.0000         .10000E-03   10000.    
    12 'Prefactor '    20.751       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.9538       1.0000         .10000E-03   10000.    
    14 'norm      '    10.861       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.0722       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10174E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    74.806       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .65674       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0425       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=   7395.478     FROM MIGRAD    STATUS=CONVERGED    496 CALLS     2433 TOTAL
                     EDM=   .75E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.4832        3.9636       -.13018E-06    .16566E-03
   2  norm          6.0619        20.603        .29171E-06    .55243E-04
   3  Prefactor     .10000E-03    9.5625        .38243E-05** at limit **
   4  Prefactor     .10001E-03    13.528       -.14939E-05** at limit **
   5  Prefactor     .10000E-03    6.5578       -.25379E-05** at limit **
   6  Prefactor     65.380        47.855        .28634E-06    .62513E-05
   7  Prefactor     26.017        23.906       -.15518E-05    .38769E-04
   8  norm          .95237        1.8402       -.55551E-06   -.19669E-04
   9  Prefactor     .10000E-03    7.8728       -.16246E-06** at limit **
  10  norm          .96173        .81709       -.64690E-08    .14825E-03
  11  Prefactor     8.8776        16.094       -.83506E-08    .15691E-04
  12  Prefactor     20.757        12.553        .18959E-06    .10824E-03
  13  Prefactor     5.9649        19.331       -.65319E-06    .12533E-04
  14  norm          10.866        5.4487       -.20405E-06    .78603E-05
  15  Prefactor     .10000E-03    30.328        .33721E-06** at limit **
  16  norm          1.0722        1.8925       -.52750E-06   -.17878E-03
  17  Prefactor     .10000E-03    32.648       -.15584E-05** at limit **
  18  Prefactor     .10000E-03    9.6978        .10444E-05** at limit **
  19  Prefactor     74.810        61.724       -.54749E-06    .16776E-04
  20  Prefactor     .10000E-03    2.7569        .12974E-06** at limit **
  21  Normalizat    .65676        .19298        .30785E-06    .13323E-03
  22  Prefactor     1.0425        .10502        .11650E-06    .91407E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.48317
  norm       = 6.06194
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 0.000100001
  Prefactor  = 65.3798
  Prefactor  = 26.0173
  norm       = 0.95237
  Prefactor  = 0.0001
  norm       = 0.961734
  Prefactor  = 8.87764
  Prefactor  = 20.7573
  Prefactor  = 5.96486
  norm       = 10.8657
  Prefactor  = 0.000100001
  norm       = 1.07219
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 74.8095
  Prefactor  = 0.0001
  Normalizat = 0.656763
  Prefactor  = 1.0425
 **********
 **   18 **HESSE 
 **********

 FCN=   7395.478     FROM HESSE     STATUS=OK           354 CALLS     2787 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.4832        3.6731        .11729E-03   -1.5199    
   2  norm          6.0619        19.512        .16291E-03   -1.5215    
   3  Prefactor     .10000E-03    11.342        .32609E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10001E-03    54.139        .53865E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    13.842        .32323E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     65.380        47.873        .49632E-04   -1.4089    
   7  Prefactor     26.017        24.053        .78570E-04   -1.4687    
   8  norm          .95237        1.7267        .16260E-02   -1.5513    
   9  Prefactor     .10000E-03    7.8789        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .96173        .79445        .69354E-03   -1.5512    
  11  Prefactor     8.8776        16.073        .13458E-03   -1.5112    
  12  Prefactor     20.757        12.504        .87927E-04   -1.4796    
  13  Prefactor     5.9649        19.298        .16457E-03   -1.5219    
  14  norm          10.866        5.4373        .12157E-03   -1.5049    
  15  Prefactor     .10000E-03    31.081        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.0722        1.7664        .15723E-02   -1.5501    
  17  Prefactor     .10000E-03    33.494        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    9.7304        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     74.810        61.301        .46423E-04   -1.3976    
  20  Prefactor     .10000E-03    2.7617        .13928E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .65676        .21353        .35531E-03   -1.0563    
  22  Prefactor     1.0425        .11927        .16419E-03   -.91326    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.45254e-08
Minuit parameter uncertainties:
  1  3.67318
  2  19.5326
  3  9.35504e-05
  4  0.00131065
  5  0.000167021
  6  47.9011
  7  24.062
  8  1.72683
  9  7.26708e-07
  10  0.794463
  11  16.0805
  12  12.5057
  13  19.3184
  14  5.43752
  15  0.000304556
  16  1.76649
  17  8.07392e-05
  18  8.04276e-06
  19  61.3523
  20  6.71031e-06
  21  0.213801
  22  0.119296
Done.

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

Extracting fit parameters...

4FGL J2353.2+3135
   Spectrum: PowerLaw
483    Prefactor:  1.000e-04  8.043e-06  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.042e+00  1.193e-01  0.000e+00  1.000e+01 ( 1.000e+00)
509        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
510        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
507   Normalization:  6.568e-01  2.138e-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: 5.47e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.29e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/173433/likelihoodResults_528076801_528336001_4FGL_J2353.2+3135_daily_bin1114.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) = 7395.47882891
delta logL = -0.000489575760184

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7395.47833935
delta logL = -1.66655809153e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10174E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6055       1.0000          .0000       10.000    
     3 'Normalizat'    .65670       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0425       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=   7395.478     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      262 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    35.216        .18142E-01** at limit **
   2  Index         2.0148        7.7620        .50000        .52119E-06
   3  Normalizat    .65676        .73843E-02    .35531E-03   -.10082E-03
   4  Prefactor     1.0425        .42519E-02    .16419E-03   -.21392E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.01484
  Normalizat = 0.656761
  Prefactor  = 1.0425
 **********
 **   18 **HESSE 
 **********

 FCN=   7395.478     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      291 TOTAL
                     EDM=   .83E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    206.65        .31381E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0148        8.9617        .50000       -.63980    
   3  Normalizat    .65676        .18155E-01    .14212E-04   -1.0563    
   4  Prefactor     1.0425        .10454E-01    .32837E-04   -.91326    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.33017e-09
Minuit parameter uncertainties:
  1  7.36996e-05
  2  722.634
  3  0.0181554
  4  0.010454
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/173433': 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) = 7395.47833778
delta logL = 1.56219266501e-06

Extracting fit parameters...

4FGL J2353.2+3135
   Spectrum: PowerLaw
483    Prefactor:  1.000e-04  7.370e-05  1.000e-04  1.000e+04 ( 1.000e-13)
484        Index:  2.015e+00  7.226e+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.042e+00  1.045e-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:  6.568e-01  1.816e-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/173433/cmap_HighResolution_528076801_528336001_4FGL_J2353.2+3135_daily_bin1114.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.29e-03', job_status='DONE', photon_flux_upper_limit='5.47e-08', time_completed='2021-09-30 08:09:02.714049', job_id='173433', GAL2='1.04', fit_tolerance='1e-08', EG2='0.66', EG='0.66', time_epoch_completed='1633014542.71', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='1.56e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.63' WHERE bin_id='1114' AND source_name='4FGL J2353.2+3135' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 08:09:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0044>
Subject: Job 173433: <4FGL_J2353.2+3135_daily_bin1114> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2353.2+3135_daily_bin1114 358.322 31.5927 528076801 528336001 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 :                                   682.39 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             335.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   815 sec.
    Turnaround time :                            817 sec.

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

