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


Performing analysis on: 4FGL_J2353.2+3135_daily_bin914
RA = 358.322, Dec = 31.5927
tmin = 476236801, tmax = 476496001
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='172242', job_status='RUN', time_executed='2021-09-30 07:51:32.139563', time_epoch_executed='1633013492.14' WHERE source_name='4FGL J2353.2+3135' and cadence='daily' and bin_id='914'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/172242

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/172242/ft1_4FGL_J2353.2+3135_daily_bin914.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/172242/ft2_4FGL_J2353.2+3135_daily_bin914.fits


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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/172242/ft1_filtered_4FGL_J2353.2+3135_daily_bin914.fits" evtable="EVENTS" scfile=/scratch/kocevski/172242/ft2_4FGL_J2353.2+3135_daily_bin914.fits sctable="SC_DATA" outfile=/scratch/kocevski/172242/ltcube_476236801_476496001_4FGL_J2353.2+3135_daily_bin914.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/172242/ft2_4FGL_J2353.2+3135_daily_bin914.fits
.....................!
real 11.88
user 11.54
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/172242/ft1_filtered_4FGL_J2353.2+3135_daily_bin914.fits evtable="EVENTS" scfile=/scratch/kocevski/172242/ft2_4FGL_J2353.2+3135_daily_bin914.fits sctable="SC_DATA" expcube=/scratch/kocevski/172242/ltcube_476236801_476496001_4FGL_J2353.2+3135_daily_bin914.fits outfile=/scratch/kocevski/172242/expmap_476236801_476496001_4FGL_J2353.2+3135_daily_bin914.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/172242/ltcube_476236801_476496001_4FGL_J2353.2+3135_daily_bin914.fits
.....................!
real 190.93
user 185.85
sys 4.77

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/172242/ft1_filtered_4FGL_J2353.2+3135_daily_bin914.fits scfile=/scratch/kocevski/172242/ft2_4FGL_J2353.2+3135_daily_bin914.fits outfile=/scratch/kocevski/172242/cmap_476236801_476496001_4FGL_J2353.2+3135_daily_bin914.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/172242/ft1_filtered_4FGL_J2353.2+3135_daily_bin914.fits scfile=/scratch/kocevski/172242/ft2_4FGL_J2353.2+3135_daily_bin914.fits outfile=/scratch/kocevski/172242/cmap_HighResolution_476236801_476496001_4FGL_J2353.2+3135_daily_bin914.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/172242/ft1_filtered_4FGL_J2353.2+3135_daily_bin914.fits evtable="EVENTS" scfile=/scratch/kocevski/172242/ft2_4FGL_J2353.2+3135_daily_bin914.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/172242/Model_4FGL_J2353.2+3135_daily_bin914.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/172242/ft1_filtered_4FGL_J2353.2+3135_daily_bin914.fits.....................!
real 93.93
user 92.55
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    64.814       1.0000         .10000E-03   10000.    
     2 'norm      '    37.624       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    22.961       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.6554       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .67348E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10199E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10129E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.526       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .52706       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1651       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=   9151.529     FROM MIGRAD    STATUS=CONVERGED    474 CALLS     2022 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          64.815        7.1747        .33089E-07    .58569E-03
   2  norm          37.625        17.469        .66464E-07   -.43683E-04
   3  Prefactor     .10000E-03    4.9404        .23753E-06** at limit **
   4  Prefactor     .10000E-03    18.715       -.13291E-04** at limit **
   5  Prefactor     22.958        8.6065       -.27826E-06   -.95899E-03
   6  Prefactor     .10000E-03    15.600       -.31083E-05** at limit **
   7  Prefactor     .10000E-03    24.660        .14028E-04** at limit **
   8  norm          3.6555        2.0996       -.31548E-06   -.27091E-02
   9  Prefactor     .10000E-03    9.5390       -.39891E-05** at limit **
  10  norm          .10000E-03    .36733        .25324E-07** at limit **
  11  Prefactor     .10000E-03    11.641        .11904E-04** at limit **
  12  Prefactor     .10000E-03    4.7305        .71214E-07** at limit **
  13  Prefactor     .10000E-03    9.5233       -.40316E-05** at limit **
  14  norm          .10000E-03    1.2431       -.32086E-07** at limit **
  15  Prefactor     .10000E-03    7.0781        .48813E-05** at limit **
  16  norm          .10000E-03    1.0313        .71075E-07** at limit **
  17  Prefactor     .10000E-03    6.6600       -.28188E-05** at limit **
  18  Prefactor     .10000E-03    56.968       -.91012E-05** at limit **
  19  Prefactor     .10000E-03    22.612       -.26637E-06** at limit **
  20  Prefactor     11.526        7.5065       -.11671E-06   -.12341E-03
  21  Normalizat    .52704        .20645        .68678E-06   -.11333E-03
  22  Prefactor     1.1651        .11188       -.29788E-06   -.75928E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 64.8152
  norm       = 37.625
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.9583
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.65548
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.5261
  Normalizat = 0.527044
  Prefactor  = 1.1651
 **********
 **   18 **HESSE 
 **********

 FCN=   9151.529     FROM HESSE     STATUS=OK           338 CALLS     2360 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          64.815        7.1605        .49848E-04   -1.4096    
   2  norm          37.625        17.436        .65341E-04   -1.4480    
   3  Prefactor     .10000E-03    5.0133        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    18.875        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     22.958        8.6256        .41797E-03   -1.4749    
   6  Prefactor     .10000E-03    15.606        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    24.728        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.6555        2.1241        .51722E-03   -1.5326    
   9  Prefactor     .10000E-03    9.5434        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .55725        .11232E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    11.619        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    19.726        .40281E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    9.5388        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.2476        .10414E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    7.0935        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.2593        .18856E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.6735        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    57.633        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    22.630        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     11.526        7.4940        .11800E-03   -1.5029    
  21  Normalizat    .52704        .22019        .44205E-03   -1.1118    
  22  Prefactor     1.1651        .12059        .17288E-03   -.87412    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24437e-09
Minuit parameter uncertainties:
  1  7.16057
  2  17.4383
  3  2.56664e-07
  4  0.000114483
  5  8.62607
  6  1.78042e-06
  7  5.17602e-05
  8  2.12414
  9  1.33247e-06
  10  1.55851e-06
  11  2.2906e-05
  12  9.61688e-05
  13  1.01608e-06
  14  6.71419e-07
  15  5.58002e-06
  16  2.33483e-05
  17  2.39633e-06
  18  0.000119575
  19  5.76533e-06
  20  7.4946
  21  0.220556
  22  0.120622
Done.

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

Extracting fit parameters...

4FGL J2353.2+3135
   Spectrum: PowerLaw
483    Prefactor:  1.000e-04  1.196e-04  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.165e+00  1.206e-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:  5.270e-01  2.206e-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: 7.91e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.20e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/172242/likelihoodResults_476236801_476496001_4FGL_J2353.2+3135_daily_bin914.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) = 9151.52882609
delta logL = -8.25858369353e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9151.52874507
delta logL = -1.56488022185e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .18424E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.9337       1.0000          .0000       10.000    
     3 'Normalizat'    .52704       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1651       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=   9151.529     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      291 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10621E-03    .36837        .13041    ** at limit **
   2  Index         2.8122        6.0124        .50000        .76939E-05
   3  Normalizat    .52704        .77164E-03    .44205E-03   -.17951E-03
   4  Prefactor     1.1651        .43895E-03    .17288E-03   -.25294E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000106208
  Index      = 2.81223
  Normalizat = 0.527044
  Prefactor  = 1.1651
 **********
 **   18 **HESSE 
 **********

 FCN=   9151.529     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      322 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10621E-03    91.327        .68539E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8122        6.5720        .50000       -.45288    
   3  Normalizat    .52704        .66424E-02    .17682E-04   -1.1118    
   4  Prefactor     1.1651        .37785E-02    .34577E-04   -.87412    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.78776e-10
Minuit parameter uncertainties:
  1  0.0476929
  2  307.837
  3  0.00664237
  4  0.00377853
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/172242': 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) = 9151.5287438
delta logL = -2.95276549878e-07

Extracting fit parameters...

4FGL J2353.2+3135
   Spectrum: PowerLaw
483    Prefactor:  1.062e-04  4.769e-02  1.000e-04  1.000e+04 ( 1.000e-13)
484        Index:  2.812e+00  3.078e+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.165e+00  3.779e-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:  5.270e-01  6.642e-03  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/172242/cmap_HighResolution_476236801_476496001_4FGL_J2353.2+3135_daily_bin914.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.20e-03', job_status='DONE', photon_flux_upper_limit='7.91e-08', time_completed='2021-09-30 08:04:02.904383', job_id='172242', GAL2='1.17', fit_tolerance='1e-08', EG2='0.53', EG='0.53', time_epoch_completed='1633014242.9', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.17', dlogl='-2.95e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.63' WHERE bin_id='914' AND source_name='4FGL J2353.2+3135' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 08:04:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0295>
Subject: Job 172242: <4FGL_J2353.2+3135_daily_bin914> in cluster <slac> Done

Job <4FGL_J2353.2+3135_daily_bin914> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Thu Sep 30 07:51:14 2021
Job was executed on host(s) <bullet0295>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 07:51:15 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 30 07:51:15 2021
Terminated at Thu Sep 30 08:04:03 2021
Results reported at Thu Sep 30 08:04:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2353.2+3135_daily_bin914 358.322 31.5927 476236801 476496001 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 :                                   741.20 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             305.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   768 sec.
    Turnaround time :                            769 sec.

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

