/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 185 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 = 7402
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2353.2+3135_daily_bin47
RA = 358.322, Dec = 31.5927
tmin = 251510401, tmax = 251769601
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='168898', job_status='RUN', time_executed='2021-09-30 07:43:51.529790', time_epoch_executed='1633013031.53' WHERE source_name='4FGL J2353.2+3135' and cadence='daily' and bin_id='47'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/168898

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/168898/ft1_4FGL_J2353.2+3135_daily_bin47.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/168898/ft2_4FGL_J2353.2+3135_daily_bin47.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/168898/ft1_4FGL_J2353.2+3135_daily_bin47.fits outfile=/scratch/kocevski/168898/ft1_filteredMKT_4FGL_J2353.2+3135_daily_bin47.fits ra=358.322 dec=31.5927 rad=12.0 tmin=251510401.0 tmax=251769601.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 1.50
user 1.29
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/168898/ft1_filtered_4FGL_J2353.2+3135_daily_bin47.fits" evtable="EVENTS" scfile=/scratch/kocevski/168898/ft2_4FGL_J2353.2+3135_daily_bin47.fits sctable="SC_DATA" outfile=/scratch/kocevski/168898/ltcube_251510401_251769601_4FGL_J2353.2+3135_daily_bin47.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/168898/ft2_4FGL_J2353.2+3135_daily_bin47.fits
.....................!
real 12.57
user 12.20
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/168898/ft1_filtered_4FGL_J2353.2+3135_daily_bin47.fits evtable="EVENTS" scfile=/scratch/kocevski/168898/ft2_4FGL_J2353.2+3135_daily_bin47.fits sctable="SC_DATA" expcube=/scratch/kocevski/168898/ltcube_251510401_251769601_4FGL_J2353.2+3135_daily_bin47.fits outfile=/scratch/kocevski/168898/expmap_251510401_251769601_4FGL_J2353.2+3135_daily_bin47.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/168898/ltcube_251510401_251769601_4FGL_J2353.2+3135_daily_bin47.fits
.....................!
real 191.53
user 186.64
sys 4.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/168898/ft1_filtered_4FGL_J2353.2+3135_daily_bin47.fits scfile=/scratch/kocevski/168898/ft2_4FGL_J2353.2+3135_daily_bin47.fits outfile=/scratch/kocevski/168898/cmap_251510401_251769601_4FGL_J2353.2+3135_daily_bin47.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/168898/ft1_filtered_4FGL_J2353.2+3135_daily_bin47.fits scfile=/scratch/kocevski/168898/ft2_4FGL_J2353.2+3135_daily_bin47.fits outfile=/scratch/kocevski/168898/cmap_HighResolution_251510401_251769601_4FGL_J2353.2+3135_daily_bin47.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.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .24618       1.0000         .10000E-03   10000.    
     2 'norm      '    .10064E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10321E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10826E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    5.7359       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.7857       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10150E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.621       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    12.497       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11611E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.3423       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .23183       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10130E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.6815       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .98392       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0463       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=   6826.423     FROM MIGRAD    STATUS=CONVERGED    510 CALLS     2059 TOTAL
                     EDM=   .81E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .24590        1.9770        .18404E-05   -.22128E-03
   2  norm          .10000E-03    11.930       -.13990E-06** at limit **
   3  Prefactor     .10000E-03    2.2385       -.40926E-07** at limit **
   4  Prefactor     .10000E-03    2.9951       -.21552E-07** at limit **
   5  Prefactor     .10000E-03    2.4758        .30415E-07** at limit **
   6  Prefactor     .10000E-03    23.980        .25442E-05** at limit **
   7  Prefactor     .10000E-03    23.074       -.23027E-05** at limit **
   8  norm          5.7359        3.1448        .15408E-07   -.36319E-04
   9  Prefactor     .10000E-03    54.880        .52066E-06** at limit **
  10  norm          1.7853        1.7142        .13484E-06   -.16418E-04
  11  Prefactor     .10000E-03    10.802       -.21927E-07** at limit **
  12  Prefactor     13.609        16.281       -.12089E-07   -.87125E-05
  13  Prefactor     .10000E-03    9.3660        .10249E-07** at limit **
  14  norm          12.498        7.0430       -.15331E-06    .10149E-03
  15  Prefactor     .10000E-03    44.891       -.17843E-05** at limit **
  16  norm          1.3429        2.5808        .40905E-06   -.74301E-04
  17  Prefactor     .10001E-03    17.587        .28054E-06** at limit **
  18  Prefactor     .10000E-03    14.474        .13391E-06** at limit **
  19  Prefactor     .10000E-03    55.714        .92496E-06** at limit **
  20  Prefactor     8.6805        7.9907        .13041E-06   -.41190E-04
  21  Normalizat    .98392        .19941       -.52003E-06   -.54574E-04
  22  Prefactor     1.0464        .11467       -.17678E-06   -.80582E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.245898
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.000100001
  norm       = 5.73586
  Prefactor  = 0.0001
  norm       = 1.78532
  Prefactor  = 0.0001
  Prefactor  = 13.6088
  Prefactor  = 0.0001
  norm       = 12.4978
  Prefactor  = 0.0001
  norm       = 1.34289
  Prefactor  = 0.000100014
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.68048
  Normalizat = 0.983923
  Prefactor  = 1.04641
 **********
 **   18 **HESSE 
 **********

 FCN=   6826.423     FROM HESSE     STATUS=OK           346 CALLS     2405 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .24590        2.0371        .22862E-03   -1.5609    
   2  norm          .10000E-03    12.125        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.2450        .12070E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.9967        .13965E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.4829        .12695E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    25.190        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    24.019        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          5.7359        3.1441        .10519E-03   -1.5229    
   9  Prefactor     .10000E-03    55.456        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.7853        1.7004        .99901E-04   -1.5441    
  11  Prefactor     .10000E-03    10.840        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     13.609        16.193        .10853E-03   -1.4970    
  13  Prefactor     .10000E-03    9.3849        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          12.498        7.0027        .11331E-03   -1.5001    
  15  Prefactor     .10000E-03    45.966        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.3429        2.5519        .17499E-03   -1.5476    
  17  Prefactor     .10001E-03    22.219        .10340       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    14.494        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    56.114        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     8.6805        7.9872        .13604E-03   -1.5119    
  21  Normalizat    .98392        .22846        .32346E-03   -.93571    
  22  Prefactor     1.0464        .13227        .17835E-03   -.91198    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.75647e-10
Minuit parameter uncertainties:
  1  1.41528
  2  6.26988e-06
  3  9.50392e-07
  4  1.75431e-06
  5  2.45019e-06
  6  0.000403121
  7  0.000339784
  8  3.14417
  9  0.000114056
  10  1.70046
  11  6.50747e-07
  12  16.1978
  13  3.51705e-06
  14  7.00319
  15  0.000233355
  16  2.55206
  17  0.00113236
  18  1.91646e-05
  19  0.000239766
  20  7.98818
  21  0.228687
  22  0.132315
Done.

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

Extracting fit parameters...

4FGL J2353.2+3135
   Spectrum: PowerLaw
483    Prefactor:  1.000e-04  1.916e-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:  1.046e+00  1.323e-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:  9.839e-01  2.287e-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.42e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.82e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/168898/likelihoodResults_251510401_251769601_4FGL_J2353.2+3135_daily_bin47.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) = 6826.42325617
delta logL = -0.000328696719407

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6826.42292886
delta logL = -1.3828948795e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12472E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6060       1.0000          .0000       10.000    
     3 'Normalizat'    .98367       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0465       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=   6826.423     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      256 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    62.484        .18142E-01** at limit **
   2  Index         2.0462        7.8522        .50000        .40620E-06
   3  Normalizat    .98392        .93541E-02    .32346E-03   -.40833E-03
   4  Prefactor     1.0464        .53360E-02    .17835E-03   -.74671E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.04623
  Normalizat = 0.983922
  Prefactor  = 1.04641
 **********
 **   18 **HESSE 
 **********

 FCN=   6826.423     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      285 TOTAL
                     EDM=   .85E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    319.42        .36276E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0462        7.3323        .50000       -.63199    
   3  Normalizat    .98392        .21498E-01    .64691E-04   -.93571    
   4  Prefactor     1.0464        .12264E-01    .35670E-04   -.91198    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.504e-09
Minuit parameter uncertainties:
  1  2.62576e-05
  2  908.569
  3  0.0214985
  4  0.0122638
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/168898': 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) = 6826.4229265
delta logL = 9.81104676612e-07

Extracting fit parameters...

4FGL J2353.2+3135
   Spectrum: PowerLaw
483    Prefactor:  1.000e-04  2.626e-05  1.000e-04  1.000e+04 ( 1.000e-13)
484        Index:  2.046e+00  9.086e+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.046e+00  1.226e-02  0.000e+00  1.000e+01 ( 1.000e+00)
509        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
510        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
507   Normalization:  9.839e-01  2.150e-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/168898/cmap_HighResolution_251510401_251769601_4FGL_J2353.2+3135_daily_bin47.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.82e-03', job_status='DONE', photon_flux_upper_limit='7.42e-08', time_completed='2021-09-30 07:54:08.434104', job_id='168898', GAL2='1.05', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1633013648.43', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='9.81e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.63' WHERE bin_id='47' AND source_name='4FGL J2353.2+3135' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 07:54:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0069>
Subject: Job 168898: <4FGL_J2353.2+3135_daily_bin47> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2353.2+3135_daily_bin47 358.322 31.5927 251510401 251769601 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 :                                   617.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             269.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   811 sec.
    Turnaround time :                            814 sec.

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

