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


Performing analysis on: 4FGL_J2353.2+3135_daily_bin232
RA = 358.322, Dec = 31.5927
tmin = 299462401, tmax = 299721601
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='169171', job_status='RUN', time_executed='2021-09-30 07:41:17.012317', time_epoch_executed='1633012877.01' WHERE source_name='4FGL J2353.2+3135' and cadence='daily' and bin_id='232'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/169171

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

Retrieving the FT1 file...

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

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

Retrieving 44 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/169171/ft1_4FGL_J2353.2+3135_daily_bin232.fits


Retrieving the FT1 file...

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

Retrieving 44 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/169171/ft2_4FGL_J2353.2+3135_daily_bin232.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/169171/ft1_4FGL_J2353.2+3135_daily_bin232.fits outfile=/scratch/kocevski/169171/ft1_filteredMKT_4FGL_J2353.2+3135_daily_bin232.fits ra=358.322 dec=31.5927 rad=12.0 tmin=299462401.0 tmax=299721601.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.21
user 2.98
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/169171/ft1_filtered_4FGL_J2353.2+3135_daily_bin232.fits" evtable="EVENTS" scfile=/scratch/kocevski/169171/ft2_4FGL_J2353.2+3135_daily_bin232.fits sctable="SC_DATA" outfile=/scratch/kocevski/169171/ltcube_299462401_299721601_4FGL_J2353.2+3135_daily_bin232.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/169171/ft2_4FGL_J2353.2+3135_daily_bin232.fits
.....................!
real 11.35
user 10.98
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/169171/ft1_filtered_4FGL_J2353.2+3135_daily_bin232.fits evtable="EVENTS" scfile=/scratch/kocevski/169171/ft2_4FGL_J2353.2+3135_daily_bin232.fits sctable="SC_DATA" expcube=/scratch/kocevski/169171/ltcube_299462401_299721601_4FGL_J2353.2+3135_daily_bin232.fits outfile=/scratch/kocevski/169171/expmap_299462401_299721601_4FGL_J2353.2+3135_daily_bin232.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/169171/ltcube_299462401_299721601_4FGL_J2353.2+3135_daily_bin232.fits
.....................!
real 190.51
user 185.33
sys 4.87

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/169171/ft1_filtered_4FGL_J2353.2+3135_daily_bin232.fits scfile=/scratch/kocevski/169171/ft2_4FGL_J2353.2+3135_daily_bin232.fits outfile=/scratch/kocevski/169171/cmap_299462401_299721601_4FGL_J2353.2+3135_daily_bin232.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/169171/ft1_filtered_4FGL_J2353.2+3135_daily_bin232.fits scfile=/scratch/kocevski/169171/ft2_4FGL_J2353.2+3135_daily_bin232.fits outfile=/scratch/kocevski/169171/cmap_HighResolution_299462401_299721601_4FGL_J2353.2+3135_daily_bin232.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.53
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .62954       1.0000         .10000E-03   10000.    
     2 'norm      '    24.181       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    25.737       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.1644       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.9355       1.0000         .10000E-03   10000.    
    11 'Prefactor '    42.160       1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.4458       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    4.9379       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.9584       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .71823E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.392       1.0000         .10000E-03   10000.    
    19 'Prefactor '    38.888       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2860       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .89110       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5110E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7784.419     FROM MIGRAD    STATUS=CONVERGED    107 CALLS     2030 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .63205        5.6995       -.51051E-06    .34937E-04
   2  norm          24.189        12.943       -.34639E-05   -.68332E-02
   3  Prefactor     .10000E-03    4.9758       -.14541E-05** at limit **
   4  Prefactor     25.737        8.8705       -.99752E-06   -.86650E-02
   5  Prefactor     3.1737        8.4252       -.24651E-04   -.21524E-02
   6  Prefactor     .10000E-03    22.381        .84582E-06** at limit **
   7  Prefactor     .10000E-03    8.0570       -.16636E-05** at limit **
   8  norm          .10000E-03    .63233        .39564E-06** at limit **
   9  Prefactor     .10000E-03    12.787       -.29921E-06** at limit **
  10  norm          2.9354        1.4630       -.26243E-06   -.69900E-04
  11  Prefactor     42.172        3.3724       -.91523E-06    .19509E-02
  12  Prefactor     8.4469        1.7594        .18309E-05   -.29476E-03
  13  Prefactor     .10000E-03    6.0374       -.10266E-05** at limit **
  14  norm          4.9374        3.9197       -.23039E-06   -.10562E-03
  15  Prefactor     .10000E-03    4.0993       -.28842E-06** at limit **
  16  norm          1.9575        2.7929       -.26777E-06   -.40138E-04
  17  Prefactor     .10947E-03    172.46       -.20220E-05** at limit **
  18  Prefactor     13.241        36.034       -.27099E-04    .31061E-02
  19  Prefactor     38.888        2.7275       -.66819E-06   -.12611E-02
  20  Prefactor     .10000E-03    5.0350        .43322E-06** at limit **
  21  Normalizat    1.2854        .25750        .11132E-04   -.73971E-04
  22  Prefactor     .89137        .12982        .77329E-06   -.14056E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.632047
  norm       = 24.1887
  Prefactor  = 0.0001
  Prefactor  = 25.7368
  Prefactor  = 3.17367
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.93545
  Prefactor  = 42.1717
  Prefactor  = 8.44688
  Prefactor  = 0.0001
  norm       = 4.93743
  Prefactor  = 0.0001
  norm       = 1.95748
  Prefactor  = 0.000109469
  Prefactor  = 13.2415
  Prefactor  = 38.8877
  Prefactor  = 0.0001
  Normalizat = 1.28544
  Prefactor  = 0.89137
 **********
 **   18 **HESSE 
 **********

 FCN=   7784.419     FROM HESSE     STATUS=OK           402 CALLS     2432 TOTAL
                     EDM=   .39E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .63205        2.4379        .62139E-01   -1.5549    
   2  norm          24.189        25.272        .20365E-02   -1.4724    
   3  Prefactor     .10000E-03    4.9299        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     25.737        19.691        .19741E-02   -1.4693    
   5  Prefactor     3.1737        8.7263        .56960E-02   -1.5352    
   6  Prefactor     .10000E-03    22.364        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.0533        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .63093        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    12.747        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.9354        1.4672        .59268E-02   -1.5365    
  11  Prefactor     42.172        28.921        .15435E-02   -1.4408    
  12  Prefactor     8.4469        10.844        .34485E-02   -1.5127    
  13  Prefactor     .10000E-03    6.0365        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.9374        3.9217        .45248E-02   -1.5264    
  15  Prefactor     .10000E-03    4.0964        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.9575        2.8440        .74111E-02   -1.5428    
  17  Prefactor     .10947E-03    24.701        .12726       -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     13.241        43.640        .27364E-02   -1.4980    
  19  Prefactor     38.888        63.304        .16068E-02   -1.4460    
  20  Prefactor     .10000E-03    5.0064        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.2854        .21897        .70465E-01   -.84002    
  22  Prefactor     .89137        .11038        .44892E-01   -.96443    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.92032e-07
Minuit parameter uncertainties:
  1  2.43828
  2  25.2834
  3  1.62349e-05
  4  19.6957
  5  8.72978
  6  7.638e-05
  7  4.07798e-06
  8  4.32093e-08
  9  2.91919e-05
  10  1.46725
  11  28.9301
  12  10.8466
  13  2.01636e-06
  14  3.92191
  15  2.13704e-07
  16  2.84419
  17  0.0305997
  18  43.7457
  19  63.4134
  20  1.39751e-05
  21  0.219125
  22  0.110407
Done.

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

Extracting fit parameters...

4FGL J2353.2+3135
   Spectrum: PowerLaw
483    Prefactor:  1.324e+01  4.375e+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:  8.914e-01  1.104e-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.285e+00  2.191e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.11
Ra Dec: 358.322 31.593
Photon Flux Upper Limit: 1.34e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.05e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/169171/likelihoodResults_299462401_299721601_4FGL_J2353.2+3135_daily_bin232.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) = 7784.35841803
delta logL = 0.0608219021133

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7784.34870305
delta logL = 0.0705368864819

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.0919       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2823       1.0000          .0000       10.000    
     3 'Normalizat'    1.2688       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89683       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=   7784.349     FROM MIGRAD    STATUS=FAILED        98 CALLS      262 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.0614        172.85        .66460E-03   -.39412E-04
   2  Index         3.2841        6.5988        .13061E-01    .35852E-03
   3  Normalizat    1.2686        .24761        .31358E-03   -.46043E-03
   4  Prefactor     .89687        .12920        .19340E-03   -.70268E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7784.349     FROM SIMPLEX   STATUS=UNCHANGED     92 CALLS      354 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.0614        172.85        .47922E-03   -1.5106    
   2  Index         3.2841        6.5988        .14493E-02   -.35031    
   3  Normalizat    1.2686        .24761        .27219E-03   -.84509    
   4  Prefactor     .89687        .12920        .19220E-03   -.96250    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7784.349     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      385 TOTAL
                     EDM=   .40E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.0615        34.881        .26584E-04    .24376E-04
   2  Index         3.2841        2.0633        .26122E-02   -.65934E-05
   3  Normalizat    1.2686        .24811        .62715E-04   -.65875E-04
   4  Prefactor     .89687        .12854        .38680E-04   -.10269E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.06154
  Index      = 3.28406
  Normalizat = 1.2686
  Prefactor  = 0.896873
 **********
 **   18 **HESSE 
 **********

 FCN=   7784.349     FROM HESSE     STATUS=OK            23 CALLS      408 TOTAL
                     EDM=   .38E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.0615        32.653        .53168E-05   -1.5106    
   2  Index         3.2841        1.9381        .10449E-03   -.35031    
   3  Normalizat    1.2686        .24822        .12543E-04   -.84509    
   4  Prefactor     .89687        .12855        .77360E-05   -.96250    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.81778e-11
Minuit parameter uncertainties:
  1  32.7179
  2  1.99776
  3  0.248456
  4  0.128593
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/169171': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7784.34870213
delta logL = 0.0705378081684

Extracting fit parameters...

4FGL J2353.2+3135
   Spectrum: PowerLaw
483    Prefactor:  9.062e+00  3.272e+01  1.000e-04  1.000e+04 ( 1.000e-13)
484        Index:  3.284e+00  1.998e+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:  8.969e-01  1.286e-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.269e+00  2.485e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.11
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/169171/cmap_HighResolution_299462401_299721601_4FGL_J2353.2+3135_daily_bin232.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.05e-02', job_status='DONE', photon_flux_upper_limit='1.34e-07', time_completed='2021-09-30 07:52:31.013548', job_id='169171', GAL2='0.90', fit_tolerance='1e-08', EG2='1.27', EG='1.29', time_epoch_completed='1633013551.01', return_code2='0', ts='0.11', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='7.05e-02', ts2='0.26', photon_index_error='0.00', photon_index='2.63' WHERE bin_id='232' AND source_name='4FGL J2353.2+3135' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 07:52:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0253>
Subject: Job 169171: <4FGL_J2353.2+3135_daily_bin232> in cluster <slac> Done

Job <4FGL_J2353.2+3135_daily_bin232> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 07:40:57 2021
Job was executed on host(s) <bullet0253>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 07:40:59 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 30 07:40:59 2021
Terminated at Thu Sep 30 07:52:31 2021
Results reported at Thu Sep 30 07:52:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2353.2+3135_daily_bin232 358.322 31.5927 299462401 299721601 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 :                                   671.24 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             344.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   692 sec.
    Turnaround time :                            694 sec.

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

