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


Performing analysis on: 4FGL_J2353.2+3135_daily_bin1071
RA = 358.322, Dec = 31.5927
tmin = 516931201, tmax = 517190401
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='173369', job_status='RUN', time_executed='2021-09-30 07:55:35.578195', time_epoch_executed='1633013735.58' WHERE source_name='4FGL J2353.2+3135' and cadence='daily' and bin_id='1071'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/173369

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/173369/ft1_4FGL_J2353.2+3135_daily_bin1071.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/173369/ft2_4FGL_J2353.2+3135_daily_bin1071.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/173369/ft1_4FGL_J2353.2+3135_daily_bin1071.fits outfile=/scratch/kocevski/173369/ft1_filteredMKT_4FGL_J2353.2+3135_daily_bin1071.fits ra=358.322 dec=31.5927 rad=12.0 tmin=516931201.0 tmax=517190401.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.92
user 3.72
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/173369/ft1_filtered_4FGL_J2353.2+3135_daily_bin1071.fits evtable="EVENTS" scfile=/scratch/kocevski/173369/ft2_4FGL_J2353.2+3135_daily_bin1071.fits sctable="SC_DATA" expcube=/scratch/kocevski/173369/ltcube_516931201_517190401_4FGL_J2353.2+3135_daily_bin1071.fits outfile=/scratch/kocevski/173369/expmap_516931201_517190401_4FGL_J2353.2+3135_daily_bin1071.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/173369/ltcube_516931201_517190401_4FGL_J2353.2+3135_daily_bin1071.fits
.....................!
real 190.00
user 185.55
sys 4.07

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/173369/ft1_filtered_4FGL_J2353.2+3135_daily_bin1071.fits scfile=/scratch/kocevski/173369/ft2_4FGL_J2353.2+3135_daily_bin1071.fits outfile=/scratch/kocevski/173369/cmap_516931201_517190401_4FGL_J2353.2+3135_daily_bin1071.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/173369/ft1_filtered_4FGL_J2353.2+3135_daily_bin1071.fits scfile=/scratch/kocevski/173369/ft2_4FGL_J2353.2+3135_daily_bin1071.fits outfile=/scratch/kocevski/173369/cmap_HighResolution_516931201_517190401_4FGL_J2353.2+3135_daily_bin1071.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.4322       1.0000         .10000E-03   10000.    
     2 'norm      '    14.164       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.0884       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    19.293       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.8939       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    4.0561       1.0000         .10000E-03   10000.    
    11 'Prefactor '    19.277       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    6.2248       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.1455       1.0000         .10000E-03   10000.    
    16 'norm      '    3.7602       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    57.220       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .73478E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .89255       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1082       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=   9082.329     FROM MIGRAD    STATUS=CONVERGED    468 CALLS     2392 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.4319        3.7223        .90447E-07   -.16602E-04
   2  norm          14.140        15.543       -.75127E-05   -.10059E-02
   3  Prefactor     .10000E-03    5.5256        .57771E-06** at limit **
   4  Prefactor     1.0897        2.9101        .10169E-05   -.98600E-03
   5  Prefactor     .10000E-03    1.7971       -.15267E-07** at limit **
   6  Prefactor     19.293        26.148       -.23706E-06   -.11012E-06
   7  Prefactor     .10000E-03    31.594       -.12284E-04** at limit **
   8  norm          3.8939        1.9345        .24551E-07    .15848E-04
   9  Prefactor     .10000E-03    8.9779        .26732E-06** at limit **
  10  norm          4.0562        1.4868        .73267E-07    .10015E-03
  11  Prefactor     19.280        24.874        .32150E-05    .42880E-04
  12  Prefactor     .10000E-03    7.7834        .75514E-05** at limit **
  13  Prefactor     .10000E-03    9.4449       -.48791E-05** at limit **
  14  norm          6.2279        5.4283        .38070E-06    .32730E-03
  15  Prefactor     2.1361        36.699       -.16037E-04   -.34498E-04
  16  norm          3.7602        2.3630       -.70026E-07   -.29823E-03
  17  Prefactor     .10000E-03    6.7163       -.45262E-05** at limit **
  18  Prefactor     57.224        46.063        .43854E-05   -.44005E-05
  19  Prefactor     .10000E-03    28.983        .14578E-04** at limit **
  20  Prefactor     .10012E-03    5.1934        .40490E-05** at limit **
  21  Normalizat    .89256        .20078        .40174E-06   -.38123E-03
  22  Prefactor     1.1082        .10569        .29088E-06   -.75288E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.43192
  norm       = 14.1395
  Prefactor  = 0.0001
  Prefactor  = 1.08972
  Prefactor  = 0.0001
  Prefactor  = 19.2934
  Prefactor  = 0.0001
  norm       = 3.8939
  Prefactor  = 0.0001
  norm       = 4.05623
  Prefactor  = 19.2802
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.22787
  Prefactor  = 2.13605
  norm       = 3.76018
  Prefactor  = 0.0001
  Prefactor  = 57.224
  Prefactor  = 0.0001
  Prefactor  = 0.000100119
  Normalizat = 0.892557
  Prefactor  = 1.10819
 **********
 **   18 **HESSE 
 **********

 FCN=   9082.329     FROM HESSE     STATUS=OK           346 CALLS     2738 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.4319        3.8387        .13181E-03   -1.5201    
   2  norm          14.140        15.275        .10643E-03   -1.4956    
   3  Prefactor     .10000E-03    5.6054        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.0897        24.149        .22959E-02   -1.5499    
   5  Prefactor     .10000E-03    1.8028        .12474E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     19.293        26.162        .91185E-04   -1.4829    
   7  Prefactor     .10000E-03    31.782        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.8939        1.9363        .91051E-04   -1.5313    
   9  Prefactor     .10000E-03    8.9837        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.0562        1.4858        .67467E-04   -1.5305    
  11  Prefactor     19.280        24.901        .91224E-04   -1.4829    
  12  Prefactor     .10000E-03    7.7541        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    9.4259        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          6.2279        5.3137        .16090E-03   -1.5209    
  15  Prefactor     2.1361        35.047        .28135E-03   -1.5416    
  16  norm          3.7602        2.3641        .11235E-03   -1.5320    
  17  Prefactor     .10000E-03    6.7035        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     57.224        46.324        .53034E-04   -1.4194    
  19  Prefactor     .10000E-03    28.916        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10012E-03    31.122        .38831E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .89256        .22906        .35584E-03   -.96722    
  22  Prefactor     1.1082        .12111        .17989E-03   -.89205    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.40189e-08
Minuit parameter uncertainties:
  1  3.83885
  2  15.2796
  3  7.94162e-05
  4  10.264
  5  2.99281e-06
  6  26.1778
  7  7.97314e-05
  8  1.93634
  9  1.20844e-06
  10  1.4858
  11  24.914
  12  3.72704e-06
  13  9.86893e-07
  14  5.31407
  15  17.3161
  16  2.36419
  17  8.83186e-06
  18  46.3533
  19  0.000112853
  20  0.00385727
  21  0.229313
  22  0.121137
Done.

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

Extracting fit parameters...

4FGL J2353.2+3135
   Spectrum: PowerLaw
483    Prefactor:  5.722e+01  4.635e+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:  1.108e+00  1.211e-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:  8.926e-01  2.293e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.92
Ra Dec: 358.322 31.593
Photon Index (Fixed Index): 2.63 +/- 0.00
Photon Flux (Fixed Index): 6.94e-08 +/- 5.61e-08
Energy Flux (Fixed Index): 1.77e-05 +/- 1.43e-05

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

Saving results to:
/scratch/kocevski/173369/likelihoodResults_516931201_517190401_4FGL_J2353.2+3135_daily_bin1071.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) = 9082.27188247
delta logL = 0.0570438968825

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9082.26784607
delta logL = 0.0610803000382

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    42.880       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9097       1.0000          .0000       10.000    
     3 'Normalizat'    .87766       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1145       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   9082.268     FROM MIGRAD    STATUS=FAILED        90 CALLS      296 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     42.871        72.868        .61221E-04   -.63881E-04
   2  Index         2.9099        1.0940        .78617E-02    .63328E-03
   3  Normalizat    .87760        .22297        .35860E-03   -.37238E-03
   4  Prefactor     1.1146        .12160        .17945E-03   -.76034E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   9082.268     FROM SIMPLEX   STATUS=UNCHANGED     70 CALLS      366 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     42.871        72.868        .41919E-03   -1.4398    
   2  Index         2.9099        1.0940        .63284E-03   -.43127    
   3  Normalizat    .87760        .22297        .30192E-03   -.97252    
   4  Prefactor     1.1146        .12160        .13975E-03   -.89001    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9082.268     FROM MIGRAD    STATUS=CONVERGED     38 CALLS      404 TOTAL
                     EDM=   .89E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     42.871        59.392        .24488E-05   -.22284E-04
   2  Index         2.9099        .89281        .15723E-02    .43672E-05
   3  Normalizat    .87760        .22254        .14344E-04   -.32654E-04
   4  Prefactor     1.1146        .12110        .35890E-04   -.64874E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 42.8708
  Index      = 2.9099
  Normalizat = 0.877598
  Prefactor  = 1.11461
 **********
 **   18 **HESSE 
 **********

 FCN=   9082.268     FROM HESSE     STATUS=OK            23 CALLS      427 TOTAL
                     EDM=   .79E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     42.871        56.760        .48977E-06   -1.4398    
   2  Index         2.9099        .85553        .62894E-04   -.43126    
   3  Normalizat    .87760        .22259        .28688E-05   -.97252    
   4  Prefactor     1.1146        .12103        .71779E-05   -.89001    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.93386e-12
Minuit parameter uncertainties:
  1  56.8316
  2  0.860672
  3  0.22282
  4  0.121062
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/173369': 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) = 9082.26784555
delta logL = 0.0610808129277

Extracting fit parameters...

4FGL J2353.2+3135
   Spectrum: PowerLaw
483    Prefactor:  4.287e+01  5.683e+01  1.000e-04  1.000e+04 ( 1.000e-13)
484        Index:  2.910e+00  8.607e-01  0.000e+00  1.000e+01 (-1.000e+00)
485        Scale:  7.457e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
508    Prefactor:  1.115e+00  1.211e-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:  8.776e-01  2.228e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.06
Ra Dec: 358.322 31.593
Photon Index (Free Index): 2.91 +/- 0.86
Photon Flux (Free Index): 7.78e-08 +/- 6.23e-08
Energy Flux (Free Index): 1.63e-05 +/- 1.34e-05

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/173369/cmap_HighResolution_516931201_517190401_4FGL_J2353.2+3135_daily_bin1071.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.36e-02', comment='SUCCESS', photon_flux='6.94e-08', energy_flux2='1.63e-05', photon_flux_error='5.61e-08', dlogl='6.11e-02', energy_flux='1.77e-05', photon_flux2='7.78e-08', job_status='DONE', time_completed='2021-09-30 08:08:34.910343', photon_index_error2='0.86', photon_index2='2.91', ts='1.92', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', photon_flux_upper_limit='1.73e-07', energy_flux_error2='1.34e-05', EG='0.89', time_epoch_completed='1633014514.91', return_code='0', job_id='173369', GAL2='1.11', EG2='0.88', return_code2='0', energy_flux_error='1.43e-05', photon_flux_error2='6.23e-08', ts2='2.06', photon_index='2.63' WHERE bin_id='1071' AND source_name='4FGL J2353.2+3135' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 08:08:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0228>
Subject: Job 173369: <4FGL_J2353.2+3135_daily_bin1071> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2353.2+3135_daily_bin1071 358.322 31.5927 516931201 517190401 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 :                                   776.10 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             307.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   794 sec.
    Turnaround time :                            796 sec.

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

