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


Performing analysis on: 4FGL_J1635.6+3628_daily_bin17
RA = 248.923, Dec = 36.4795
tmin = 243734401, tmax = 243993601
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='706090', job_status='RUN', time_executed='2021-09-14 22:44:54.421164', time_epoch_executed='1631684694.42' WHERE source_name='4FGL J1635.6+3628' and cadence='daily' and bin_id='17'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/706090

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/706090/ft1_4FGL_J1635.6+3628_daily_bin17.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/706090/ft2_4FGL_J1635.6+3628_daily_bin17.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/706090/ft1_4FGL_J1635.6+3628_daily_bin17.fits outfile=/scratch/kocevski/706090/ft1_filteredMKT_4FGL_J1635.6+3628_daily_bin17.fits ra=248.923 dec=36.4795 rad=12.0 tmin=243734401.0 tmax=243993601.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.41
user 1.22
sys 0.17

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/706090/ft2_4FGL_J1635.6+3628_daily_bin17.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/706090/ft2_4FGL_J1635.6+3628_daily_bin17.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/706090/ft1_filteredMKT_4FGL_J1635.6+3628_daily_bin17.fits evtable="EVENTS" outfile="/scratch/kocevski/706090/ft1_filtered_4FGL_J1635.6+3628_daily_bin17.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.51
user 0.36
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/706090/ft1_filtered_4FGL_J1635.6+3628_daily_bin17.fits" evtable="EVENTS" scfile=/scratch/kocevski/706090/ft2_4FGL_J1635.6+3628_daily_bin17.fits sctable="SC_DATA" outfile=/scratch/kocevski/706090/ltcube_243734401_243993601_4FGL_J1635.6+3628_daily_bin17.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/706090/ft2_4FGL_J1635.6+3628_daily_bin17.fits
.....................!
real 16.36
user 15.94
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/706090/ft1_filtered_4FGL_J1635.6+3628_daily_bin17.fits evtable="EVENTS" scfile=/scratch/kocevski/706090/ft2_4FGL_J1635.6+3628_daily_bin17.fits sctable="SC_DATA" expcube=/scratch/kocevski/706090/ltcube_243734401_243993601_4FGL_J1635.6+3628_daily_bin17.fits outfile=/scratch/kocevski/706090/expmap_243734401_243993601_4FGL_J1635.6+3628_daily_bin17.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/706090/ltcube_243734401_243993601_4FGL_J1635.6+3628_daily_bin17.fits
.....................!
real 195.02
user 189.09
sys 4.71

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 198 point sources and 0 extended sources

Setting source of interest to:
4FGL J1635.6+3628 @ 248.923 36.4795

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/706090/ft1_filtered_4FGL_J1635.6+3628_daily_bin17.fits scfile=/scratch/kocevski/706090/ft2_4FGL_J1635.6+3628_daily_bin17.fits outfile=/scratch/kocevski/706090/cmap_243734401_243993601_4FGL_J1635.6+3628_daily_bin17.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=248.923 yref=36.4795 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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/706090/ft1_filtered_4FGL_J1635.6+3628_daily_bin17.fits scfile=/scratch/kocevski/706090/ft2_4FGL_J1635.6+3628_daily_bin17.fits outfile=/scratch/kocevski/706090/cmap_HighResolution_243734401_243993601_4FGL_J1635.6+3628_daily_bin17.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=248.923 yref=36.4795 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/706090/ft1_filtered_4FGL_J1635.6+3628_daily_bin17.fits evtable="EVENTS" scfile=/scratch/kocevski/706090/ft2_4FGL_J1635.6+3628_daily_bin17.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/706090/Model_4FGL_J1635.6+3628_daily_bin17.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/706090/ft1_filtered_4FGL_J1635.6+3628_daily_bin17.fits.....................!
real 48.70
user 47.38
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/706090/ft1_filtered_4FGL_J1635.6+3628_daily_bin17.fits', '/scratch/kocevski/706090/ft2_4FGL_J1635.6+3628_daily_bin17.fits', expMap='/scratch/kocevski/706090/expmap_243734401_243993601_4FGL_J1635.6+3628_daily_bin17.fits', expCube='/scratch/kocevski/706090/ltcube_243734401_243993601_4FGL_J1635.6+3628_daily_bin17.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/706090/Model_4FGL_J1635.6+3628_daily_bin17.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1635.6+3628'

4FGL J1635.6+3628
   Spectrum: PowerLaw
282    Prefactor:  4.539e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
283        Index:  2.666e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
284        Scale:  9.602e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/706090/ft1_filtered_4FGL_J1635.6+3628_daily_bin17.fits
Spacecraft file(s): /scratch/kocevski/706090/ft2_4FGL_J1635.6+3628_daily_bin17.fits
Exposure map: /scratch/kocevski/706090/expmap_243734401_243993601_4FGL_J1635.6+3628_daily_bin17.fits
Exposure cube: /scratch/kocevski/706090/ltcube_243734401_243993601_4FGL_J1635.6+3628_daily_bin17.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/706090/Model_4FGL_J1635.6+3628_daily_bin17.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) = 5763.84711174

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.3474       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .15398E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    106.76       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.0632       1.0000         .10000E-03   10000.    
     7 'norm      '    .68286       1.0000         .10000E-03   10000.    
     8 'norm      '    .15952E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.3256       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.4203       1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.767       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.6168       1.0000         .10000E-03   10000.    
    16 'norm      '    2.0104       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.708       1.0000         .10000E-03   10000.    
    19 'norm      '    .25346E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    15.079       1.0000         .10000E-03   10000.    
    21 'Prefactor '    28.184       1.0000         .10000E-03   10000.    
    22 'norm      '    19.924       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .58669       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0534       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6430E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5763.733     FROM MIGRAD    STATUS=CONVERGED    555 CALLS     2747 TOTAL
                     EDM=   .53E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    7.8383        .55697E-06** at limit **
   2  Prefactor     .10000E-03    10.673        .35181E-05** at limit **
   3  Prefactor     2.3474        3.5000        .11769E-06   -.55277E-04
   4  Prefactor     .10000E-03    6.4142       -.17446E-06** at limit **
   5  Prefactor     106.77        40.568        .18965E-05    .35475E-05
   6  Prefactor     4.0605        4.1204        .11981E-05   -.13257E-04
   7  norm          .68258        .22182       -.78065E-08   -.12153E-02
   8  norm          .10000E-03    11.887       -.45043E-06** at limit **
   9  Prefactor     .10000E-03    25.224        .46710E-05** at limit **
  10  Prefactor     8.3252        6.5416       -.15688E-06   -.28950E-03
  11  norm          .10000E-03    23.991       -.35836E-05** at limit **
  12  Prefactor     1.4304        3.4374        .27238E-06   -.75913E-04
  13  Prefactor     10.757        3.8765       -.20052E-06   -.25249E-03
  14  Prefactor     .10000E-03    9.5512       -.29847E-05** at limit **
  15  Prefactor     2.6156        1.3887        .56998E-07   -.12062E-02
  16  norm          2.0105        1.4950        .11921E-07   -.16125E-05
  17  Prefactor     .10000E-03    14.643       -.14034E-05** at limit **
  18  Prefactor     15.709        9.3693        .43767E-07   -.40505E-04
  19  norm          .10000E-03    .38914        .84706E-08** at limit **
  20  norm          15.079        12.443        .12213E-07   -.36523E-05
  21  Prefactor     28.187        54.555        .36266E-05    .18768E-05
  22  norm          19.925        12.482       -.22302E-06   -.22857E-05
  23  Normalizat    .58675        .22287       -.18037E-05   -.17090E-04
  24  Prefactor     1.0534        .16200        .45151E-06   -.59377E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.34736
  Prefactor  = 0.0001
  Prefactor  = 106.767
  Prefactor  = 4.06047
  norm       = 0.68258
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 8.32521
  norm       = 0.0001
  Prefactor  = 1.43043
  Prefactor  = 10.757
  Prefactor  = 0.0001
  Prefactor  = 2.61556
  norm       = 2.01051
  Prefactor  = 0.0001
  Prefactor  = 15.7091
  norm       = 0.0001
  norm       = 15.0793
  Prefactor  = 28.187
  norm       = 19.925
  Normalizat = 0.586754
  Prefactor  = 1.05336
 **********
 **   18 **HESSE 
 **********

 FCN=   5763.733     FROM HESSE     STATUS=OK           411 CALLS     3158 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.8474        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    10.674        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.3474        3.4884        .16467E-03   -1.5402    
   4  Prefactor     .10000E-03    6.4503        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     106.77        40.532        .38921E-04   -1.3638    
   6  Prefactor     4.0605        4.0956        .14518E-03   -1.5305    
   7  norm          .68258        .21946        .18245E-04   -1.5543    
   8  norm          .10000E-03    53.711        .50982E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    25.415        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.3252        6.5828        .69469E-03   -1.5131    
  11  norm          .10000E-03    24.003        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.4304        3.0088        .11550E-03   -1.5469    
  13  Prefactor     10.757        3.5629        .49189E-04   -1.5052    
  14  Prefactor     .10000E-03    9.5609        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.6156        4.6764        .99603E-03   -1.5385    
  16  norm          2.0105        1.5011        .77534E-04   -1.5424    
  17  Prefactor     .10000E-03    14.642        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     15.709        9.3799        .50528E-03   -1.4915    
  19  norm          .10000E-03    .39963        .17183E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          15.079        12.433        .10314E-03   -1.4931    
  21  Prefactor     28.187        54.554        .75464E-04   -1.4646    
  22  norm          19.925        12.472        .89730E-04   -1.4815    
  23  Normalizat    .58675        .25435        .35849E-03   -1.0855    
  24  Prefactor     1.0534        .18566        .20959E-03   -.90971    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.21281e-09
Minuit parameter uncertainties:
  1  2.22203e-06
  2  5.01139e-06
  3  3.48875
  4  4.44377e-05
  5  40.5429
  6  4.09588
  7  0.219458
  8  0.000546153
  9  1.36256e-05
  10  6.58336
  11  1.20536e-05
  12  3.00911
  13  3.56299
  14  1.03022e-05
  15  4.67705
  16  1.50115
  17  5.15189e-07
  18  9.38076
  19  3.04418e-06
  20  12.4356
  21  54.6507
  22  12.474
  23  0.254858
  24  0.185772
Done.

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

Extracting fit parameters...

4FGL J1635.6+3628
   Spectrum: PowerLaw
282    Prefactor:  1.000e-04  1.363e-05  1.000e-04  1.000e+04 ( 1.000e-13)
283        Index:  2.666e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
284        Scale:  9.602e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
640    Prefactor:  1.053e+00  1.858e-01  0.000e+00  1.000e+01 ( 1.000e+00)
641        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
642        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
639   Normalization:  5.868e-01  2.549e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 248.923 36.480
Photon Flux Upper Limit: 1.17e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.17e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/706090/likelihoodResults_243734401_243993601_4FGL_J1635.6+3628_daily_bin17.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) = 5763.73328285
delta logL = -0.000187464895134

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5763.73309542
delta logL = -3.42715793522e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5801       1.0000          .0000       10.000    
     3 'Normalizat'    .58679       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0533       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6430E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5763.733     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      233 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6204.5        .90712E-02** at limit **
   2  Index         2.5802        8.6668        .50000       -.13326E-06
   3  Normalizat    .58675        .60244E-01    .80946E-01    .33128E-04
   4  Prefactor     1.0534        .46270E-01    .39718E-01    .15014E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.58025
  Normalizat = 0.586754
  Prefactor  = 1.05336
 **********
 **   18 **HESSE 
 **********

 FCN=   5763.733     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      266 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7070.5        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5802        6.1286        .50000       -.50516    
   3  Normalizat    .58675        .10882        .35849E-03   -1.0855    
   4  Prefactor     1.0534        .84055E-01    .20959E-03   -.90971    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.75032e-11
Minuit parameter uncertainties:
  1  0.000358409
  2  61.2279
  3  0.108861
  4  0.0840658
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/706090': 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) = 5763.7330954
delta logL = -1.77960828296e-08

Extracting fit parameters...

4FGL J1635.6+3628
   Spectrum: PowerLaw
282    Prefactor:  1.000e-04  3.584e-04  1.000e-04  1.000e+04 ( 1.000e-13)
283        Index:  2.580e+00  6.123e+01  0.000e+00  1.000e+01 (-1.000e+00)
284        Scale:  9.602e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
640    Prefactor:  1.053e+00  8.407e-02  0.000e+00  1.000e+01 ( 1.000e+00)
641        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
642        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
639   Normalization:  5.868e-01  1.089e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 248.923 36.480

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/706090/cmap_HighResolution_243734401_243993601_4FGL_J1635.6+3628_daily_bin17.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.17e-03', job_status='DONE', photon_flux_upper_limit='1.17e-07', time_completed='2021-09-14 22:56:51.321866', job_id='706090', GAL2='1.05', fit_tolerance='1e-08', EG2='0.59', EG='0.59', time_epoch_completed='1631685411.32', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='-1.78e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.67' WHERE bin_id='17' AND source_name='4FGL J1635.6+3628' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 14 22:56:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0169>
Subject: Job 706090: <4FGL_J1635.6+3628_daily_bin17> in cluster <slac> Done

Job <4FGL_J1635.6+3628_daily_bin17> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 14 22:40:18 2021
Job was executed on host(s) <bullet0169>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 14 22:41:01 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 14 22:41:01 2021
Terminated at Tue Sep 14 22:56:52 2021
Results reported at Tue Sep 14 22:56:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1635.6+3628_daily_bin17 248.923 36.4795 243734401 243993601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1635.6+3628 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   714.42 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             263.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   950 sec.
    Turnaround time :                            994 sec.

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

