/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 2 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 = 7473
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2353.2+3135_daily_bin349
RA = 358.322, Dec = 31.5927
tmin = 329788801, tmax = 330048001
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='170306', job_status='RUN', time_executed='2021-09-30 07:45:32.367686', time_epoch_executed='1633013132.37' WHERE source_name='4FGL J2353.2+3135' and cadence='daily' and bin_id='349'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/170306

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/170306/ft1_4FGL_J2353.2+3135_daily_bin349.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/170306/ft2_4FGL_J2353.2+3135_daily_bin349.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/170306/ft1_4FGL_J2353.2+3135_daily_bin349.fits outfile=/scratch/kocevski/170306/ft1_filteredMKT_4FGL_J2353.2+3135_daily_bin349.fits ra=358.322 dec=31.5927 rad=12.0 tmin=329788801.0 tmax=330048001.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.49
user 3.26
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/170306/ft1_filtered_4FGL_J2353.2+3135_daily_bin349.fits" evtable="EVENTS" scfile=/scratch/kocevski/170306/ft2_4FGL_J2353.2+3135_daily_bin349.fits sctable="SC_DATA" outfile=/scratch/kocevski/170306/ltcube_329788801_330048001_4FGL_J2353.2+3135_daily_bin349.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/170306/ft2_4FGL_J2353.2+3135_daily_bin349.fits
.....................!
real 11.79
user 11.45
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/170306/ft1_filtered_4FGL_J2353.2+3135_daily_bin349.fits evtable="EVENTS" scfile=/scratch/kocevski/170306/ft2_4FGL_J2353.2+3135_daily_bin349.fits sctable="SC_DATA" expcube=/scratch/kocevski/170306/ltcube_329788801_330048001_4FGL_J2353.2+3135_daily_bin349.fits outfile=/scratch/kocevski/170306/expmap_329788801_330048001_4FGL_J2353.2+3135_daily_bin349.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/170306/ltcube_329788801_330048001_4FGL_J2353.2+3135_daily_bin349.fits
.....................!
real 191.47
user 185.64
sys 5.45

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 158 point sources and 0 extended sources

Setting source of interest to:
4FGL J2353.2+3135 @ 358.322 31.5927

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/170306/ft1_filtered_4FGL_J2353.2+3135_daily_bin349.fits scfile=/scratch/kocevski/170306/ft2_4FGL_J2353.2+3135_daily_bin349.fits outfile=/scratch/kocevski/170306/cmap_329788801_330048001_4FGL_J2353.2+3135_daily_bin349.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/170306/ft1_filtered_4FGL_J2353.2+3135_daily_bin349.fits scfile=/scratch/kocevski/170306/ft2_4FGL_J2353.2+3135_daily_bin349.fits outfile=/scratch/kocevski/170306/cmap_HighResolution_329788801_330048001_4FGL_J2353.2+3135_daily_bin349.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    7.7981       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.6233       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.6375       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.1474       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10131E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.5528       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.9158       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.2949       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.1234       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .15207       1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.308       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    17.121       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .12807E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0021       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .99497       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=   7720.272     FROM MIGRAD    STATUS=CONVERGED    476 CALLS     2069 TOTAL
                     EDM=   .72E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.0466       -.50305E-08** at limit **
   2  norm          7.7993        10.240       -.53430E-06   -.39987E-03
   3  Prefactor     5.6241        5.9182       -.49145E-06   -.67419E-03
   4  Prefactor     .10000E-03    3.0781       -.22438E-07** at limit **
   5  Prefactor     3.6371        5.6946        .30356E-05   -.16042E-03
   6  Prefactor     2.1393        224.70        .28691E-05   -.33018E-04
   7  Prefactor     .10000E-03    43.309        .10696E-06** at limit **
   8  norm          2.5528        2.0728        .25455E-06   -.65822E-04
   9  Prefactor     .10000E-03    6.5127        .37266E-08** at limit **
  10  norm          1.9159        1.1344        .59097E-07    .12164E-03
  11  Prefactor     .10000E-03    5.4505        .26938E-08** at limit **
  12  Prefactor     7.2948        11.487        .22882E-06   -.33022E-04
  13  Prefactor     4.1210        11.937        .41147E-06    .25744E-04
  14  norm          .10000E-03    1.9003        .59623E-07** at limit **
  15  Prefactor     .10000E-03    16.837       -.13017E-06** at limit **
  16  norm          .15200        1.5414        .16263E-05   -.25427E-03
  17  Prefactor     12.308        11.928        .75857E-07   -.14348E-04
  18  Prefactor     .10000E-03    12.107       -.10102E-06** at limit **
  19  Prefactor     17.135        32.478       -.50220E-05   -.10418E-03
  20  Prefactor     .10001E-03    5.3750       -.18248E-05** at limit **
  21  Normalizat    1.0022        .18010        .39527E-06   -.21558E-03
  22  Prefactor     .99495        .10262       -.10938E-05   -.69441E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 7.79933
  Prefactor  = 5.62414
  Prefactor  = 0.0001
  Prefactor  = 3.63712
  Prefactor  = 2.13931
  Prefactor  = 0.0001
  norm       = 2.5528
  Prefactor  = 0.0001
  norm       = 1.91586
  Prefactor  = 0.0001
  Prefactor  = 7.29484
  Prefactor  = 4.12101
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.151998
  Prefactor  = 12.3083
  Prefactor  = 0.0001
  Prefactor  = 17.135
  Prefactor  = 0.000100014
  Normalizat = 1.0022
  Prefactor  = 0.994947
 **********
 **   18 **HESSE 
 **********

 FCN=   7720.272     FROM HESSE     STATUS=OK           346 CALLS     2415 TOTAL
                     EDM=   .52E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.0628        .87737E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          7.7993        10.203        .14359E-03   -1.5149    
   3  Prefactor     5.6241        5.8993        .16941E-03   -1.5234    
   4  Prefactor     .10000E-03    3.0806        .15055E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.6371        6.2419        .10591E-02   -1.5327    
   6  Prefactor     2.1393        226.55        .28121E-03   -1.5415    
   7  Prefactor     .10000E-03    43.824        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.5528        2.0740        .55557E-03   -1.5388    
   9  Prefactor     .10000E-03    6.5142        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.9159        1.1371        .69506E-04   -1.5431    
  11  Prefactor     .10000E-03    5.4557        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.2948        11.411        .14850E-03   -1.5168    
  13  Prefactor     4.1210        11.927        .19851E-03   -1.5302    
  14  norm          .10000E-03    1.9206        .11826E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    17.007        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .15200        3.0097        .18580E-02   -1.5630    
  17  Prefactor     12.308        11.929        .11418E-03   -1.5006    
  18  Prefactor     .10000E-03    12.127        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     17.135        32.771        .96795E-04   -1.4880    
  20  Prefactor     .10001E-03    14.798        .33297E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0022        .21141        .30766E-03   -.92957    
  22  Prefactor     .99495        .12027        .17493E-03   -.92898    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.21034e-08
Minuit parameter uncertainties:
  1  5.47402e-07
  2  10.205
  3  5.8999
  4  3.24295e-06
  5  6.24305
  6  44.2022
  7  3.20901e-05
  8  2.07401
  9  5.5047e-07
  10  1.13707
  11  4.11395e-06
  12  11.4147
  13  11.9339
  14  4.42454e-06
  15  0.000314785
  16  1.35235
  17  11.9313
  18  7.3296e-05
  19  32.8054
  20  0.000914072
  21  0.211587
  22  0.120306
Done.

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

Extracting fit parameters...

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

EG_v02
   Spectrum: FileFunction
507   Normalization:  1.002e+00  2.116e-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.73e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.49e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/170306/likelihoodResults_329788801_330048001_4FGL_J2353.2+3135_daily_bin349.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) = 7720.27229799
delta logL = -0.000392916960664

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7720.27190487
delta logL = 1.97077497432e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5954       1.0000          .0000       10.000    
     3 'Normalizat'    1.0022       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99494       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=   7720.272     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      250 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10660E-03    15.775        .18142E-01** at limit **
   2  Index         2.4651        5.3329        .50000        .18861E-04
   3  Normalizat    1.0022        .48983E-02    .30766E-03   -.17630E-03
   4  Prefactor     .99495        .27935E-02    .17493E-03   -.44207E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000106598
  Index      = 2.46515
  Normalizat = 1.00219
  Prefactor  = 0.994949
 **********
 **   18 **HESSE 
 **********

 FCN=   7720.272     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      279 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10660E-03    87.135        .33293E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4651        8.0190        .50000       -.53167    
   3  Normalizat    1.0022        .11526E-01    .12306E-04   -.92957    
   4  Prefactor     .99495        .65731E-02    .34986E-04   -.92898    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.34654e-08
Minuit parameter uncertainties:
  1  0.0480261
  2  339.546
  3  0.0115258
  4  0.00657314
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/170306': 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) = 7720.27190445
delta logL = 6.15653334535e-07

Extracting fit parameters...

4FGL J2353.2+3135
   Spectrum: PowerLaw
483    Prefactor:  1.066e-04  4.803e-02  1.000e-04  1.000e+04 ( 1.000e-13)
484        Index:  2.465e+00  3.395e+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:  9.949e-01  6.573e-03  0.000e+00  1.000e+01 ( 1.000e+00)
509        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
510        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
507   Normalization:  1.002e+00  1.153e-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/170306/cmap_HighResolution_329788801_330048001_4FGL_J2353.2+3135_daily_bin349.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.49e-03', job_status='DONE', photon_flux_upper_limit='5.73e-08', time_completed='2021-09-30 07:56:42.134471', job_id='170306', GAL2='0.99', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1633013802.13', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='6.16e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.63' WHERE bin_id='349' AND source_name='4FGL J2353.2+3135' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 07:56:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 170306: <4FGL_J2353.2+3135_daily_bin349> in cluster <slac> Done

Job <4FGL_J2353.2+3135_daily_bin349> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Sep 30 07:45:20 2021
Job was executed on host(s) <bullet0231>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 07:45:22 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:45:22 2021
Terminated at Thu Sep 30 07:56:42 2021
Results reported at Thu Sep 30 07:56:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2353.2+3135_daily_bin349 358.322 31.5927 329788801 330048001 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 :                                   666.06 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             353.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   680 sec.
    Turnaround time :                            682 sec.

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

