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


Performing analysis on: 4FGL_J1635.6+3628_daily_bin33
RA = 248.923, Dec = 36.4795
tmin = 247881601, tmax = 248140801
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='706113', job_status='RUN', time_executed='2021-09-14 22:44:23.524207', time_epoch_executed='1631684663.52' WHERE source_name='4FGL J1635.6+3628' and cadence='daily' and bin_id='33'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/706113

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/706113/ft1_4FGL_J1635.6+3628_daily_bin33.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/706113/ft2_4FGL_J1635.6+3628_daily_bin33.fits


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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/706113/ft1_filtered_4FGL_J1635.6+3628_daily_bin33.fits" evtable="EVENTS" scfile=/scratch/kocevski/706113/ft2_4FGL_J1635.6+3628_daily_bin33.fits sctable="SC_DATA" outfile=/scratch/kocevski/706113/ltcube_247881601_248140801_4FGL_J1635.6+3628_daily_bin33.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/706113/ft2_4FGL_J1635.6+3628_daily_bin33.fits
.....................!
real 16.56
user 16.14
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/706113/ft1_filtered_4FGL_J1635.6+3628_daily_bin33.fits evtable="EVENTS" scfile=/scratch/kocevski/706113/ft2_4FGL_J1635.6+3628_daily_bin33.fits sctable="SC_DATA" expcube=/scratch/kocevski/706113/ltcube_247881601_248140801_4FGL_J1635.6+3628_daily_bin33.fits outfile=/scratch/kocevski/706113/expmap_247881601_248140801_4FGL_J1635.6+3628_daily_bin33.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/706113/ltcube_247881601_248140801_4FGL_J1635.6+3628_daily_bin33.fits
.....................!
real 191.86
user 185.87
sys 5.31

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/706113/ft1_filtered_4FGL_J1635.6+3628_daily_bin33.fits scfile=/scratch/kocevski/706113/ft2_4FGL_J1635.6+3628_daily_bin33.fits outfile=/scratch/kocevski/706113/cmap_247881601_248140801_4FGL_J1635.6+3628_daily_bin33.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.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/706113/ft1_filtered_4FGL_J1635.6+3628_daily_bin33.fits scfile=/scratch/kocevski/706113/ft2_4FGL_J1635.6+3628_daily_bin33.fits outfile=/scratch/kocevski/706113/cmap_HighResolution_247881601_248140801_4FGL_J1635.6+3628_daily_bin33.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.58
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/706113/ft1_filtered_4FGL_J1635.6+3628_daily_bin33.fits evtable="EVENTS" scfile=/scratch/kocevski/706113/ft2_4FGL_J1635.6+3628_daily_bin33.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/706113/Model_4FGL_J1635.6+3628_daily_bin33.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/706113/ft1_filtered_4FGL_J1635.6+3628_daily_bin33.fits.....................!
real 46.52
user 45.18
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/706113/ft1_filtered_4FGL_J1635.6+3628_daily_bin33.fits', '/scratch/kocevski/706113/ft2_4FGL_J1635.6+3628_daily_bin33.fits', expMap='/scratch/kocevski/706113/expmap_247881601_248140801_4FGL_J1635.6+3628_daily_bin33.fits', expCube='/scratch/kocevski/706113/ltcube_247881601_248140801_4FGL_J1635.6+3628_daily_bin33.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/706113/Model_4FGL_J1635.6+3628_daily_bin33.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/706113/ft1_filtered_4FGL_J1635.6+3628_daily_bin33.fits
Spacecraft file(s): /scratch/kocevski/706113/ft2_4FGL_J1635.6+3628_daily_bin33.fits
Exposure map: /scratch/kocevski/706113/expmap_247881601_248140801_4FGL_J1635.6+3628_daily_bin33.fits
Exposure cube: /scratch/kocevski/706113/ltcube_247881601_248140801_4FGL_J1635.6+3628_daily_bin33.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/706113/Model_4FGL_J1635.6+3628_daily_bin33.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) = 5748.04810272

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.172       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .15057E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    33.888       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .25001       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .30843E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .33534       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .75839       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.1597       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    36.459       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    18.037       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10082E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .90283       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .85647       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=   5748.010     FROM MIGRAD    STATUS=CONVERGED    544 CALLS     2774 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.169        17.307        .40503E-07   -.66987E-04
   2  Prefactor     .10000E-03    11.436        .10541E-06** at limit **
   3  Prefactor     .10000E-03    2.6122       -.12422E-05** at limit **
   4  Prefactor     .10000E-03    3.2352       -.18788E-05** at limit **
   5  Prefactor     33.876        22.954        .58529E-07   -.19752E-03
   6  Prefactor     .10000E-03    1.6656       -.50883E-07** at limit **
   7  norm          .25014        .12889       -.97010E-07   -.10430E-01
   8  norm          .10000E-03    4.2938       -.14820E-06** at limit **
   9  Prefactor     .10000E-03    44.287       -.13445E-05** at limit **
  10  Prefactor     .36656        7.2006        .39152E-05   -.96676E-03
  11  norm          .10000E-03    11.463        .54387E-07** at limit **
  12  Prefactor     .75828        1.1333        .28868E-06    .40394E-03
  13  Prefactor     2.1601        1.4116       -.10664E-06   -.12450E-02
  14  Prefactor     .10000E-03    5.2588        .64659E-07** at limit **
  15  Prefactor     .10000E-03    .99958        .63279E-07** at limit **
  16  norm          .10000E-03    .74564        .93980E-07** at limit **
  17  Prefactor     36.443        39.502       -.41756E-06   -.17879E-03
  18  Prefactor     .10000E-03    2.2311        .67459E-07** at limit **
  19  norm          .10000E-03    .28427        .13340E-06** at limit **
  20  norm          18.037        10.059        .23990E-06    .34280E-04
  21  Prefactor     .10000E-03    23.969        .19163E-06** at limit **
  22  norm          .10000E-03    5.0147        .25098E-06** at limit **
  23  Normalizat    .90271        .18081       -.13297E-05   -.75682E-03
  24  Prefactor     .85653        .13188       -.23966E-06   -.92478E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 14.1688
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.000100003
  Prefactor  = 33.8756
  Prefactor  = 0.0001
  norm       = 0.250139
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.366559
  norm       = 0.0001
  Prefactor  = 0.758283
  Prefactor  = 2.16013
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 36.4434
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 18.0373
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.902708
  Prefactor  = 0.856531
 **********
 **   18 **HESSE 
 **********

 FCN=   5748.010     FROM HESSE     STATUS=OK           395 CALLS     3169 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.169        17.318        .10639E-03   -1.4955    
   2  Prefactor     .10000E-03    11.458        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.9857        .20128E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.4607        .13733E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     33.876        23.014        .68837E-04   -1.4543    
   6  Prefactor     .10000E-03    2.7993        .18800E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .25014        .13028        .18292E-04   -1.5608    
   8  norm          .10000E-03    4.2979        .15350E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    45.485        .42756E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .36656        12.460        .21993E-02   -1.5587    
  11  norm          .10000E-03    11.467        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .75828        1.0895        .75930E-03   -1.5534    
  13  Prefactor     2.1601        1.4016        .55881E-04   -1.5414    
  14  Prefactor     .10000E-03    5.2719        .16983E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.0121        .73981E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .76542        .12785E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     36.443        39.662        .66373E-04   -1.4500    
  18  Prefactor     .10000E-03    2.2414        .11059E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .43113        .78530E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          18.037        10.043        .94307E-04   -1.4858    
  21  Prefactor     .10000E-03    23.989        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    5.0520        .16582E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .90271        .20509        .25035E-03   -.96365    
  24  Prefactor     .85653        .15440        .20083E-03   -.97677    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.27092e-09
Minuit parameter uncertainties:
  1  17.3244
  2  2.88883e-05
  3  0.000208098
  4  0.000204331
  5  23.0201
  6  1.0348e-05
  7  0.130281
  8  3.12256e-05
  9  0.000516783
  10  4.27472
  11  1.6804e-05
  12  1.08948
  13  1.40158
  14  2.35382e-05
  15  3.04801e-06
  16  5.53209e-06
  17  39.691
  18  4.72968e-06
  19  3.82207e-06
  20  10.0442
  21  7.22091e-05
  22  4.56919e-05
  23  0.20527
  24  0.154477
Done.

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

Extracting fit parameters...

4FGL J1635.6+3628
   Spectrum: PowerLaw
282    Prefactor:  1.000e-04  5.168e-04  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:  8.565e-01  1.545e-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:  9.027e-01  2.053e-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: 9.62e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.56e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/706113/likelihoodResults_247881601_248140801_4FGL_J1635.6+3628_daily_bin33.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) = 5748.01001512
delta logL = -0.000104816747807

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5748.0099107
delta logL = -3.92388756154e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5974       1.0000          .0000       10.000    
     3 'Normalizat'    .90273       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85654       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5748.010     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      284 TOTAL
                     EDM=   .74E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10004E-03    8974.7        .36285E-03** at limit **
   2  Index         2.6814        7.4547        .50000       -.26186E-04
   3  Normalizat    .90271        .18253        .25035E-03   -.11353E-05
   4  Prefactor     .85653        .14382        .20083E-03   -.15568E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100036
  Index      = 2.68143
  Normalizat = 0.902709
  Prefactor  = 0.856531
 **********
 **   18 **HESSE 
 **********

 FCN=   5748.010     FROM HESSE     STATUS=OK            29 CALLS      313 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10004E-03    51.106        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6814        6.3357        .50000       -.48218    
   3  Normalizat    .90271        .19140        .10014E-04   -.96365    
   4  Prefactor     .85653        .15086        .80330E-05   -.97677    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14427e-09
Minuit parameter uncertainties:
  1  0.00271255
  2  4.54048
  3  0.191541
  4  0.150937
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/706113': 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) = 5748.00991022
delta logL = 9.15606506169e-08

Extracting fit parameters...

4FGL J1635.6+3628
   Spectrum: PowerLaw
282    Prefactor:  1.000e-04  2.713e-03  1.000e-04  1.000e+04 ( 1.000e-13)
283        Index:  2.681e+00  4.540e+00  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:  8.565e-01  1.509e-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:  9.027e-01  1.915e-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/706113/cmap_HighResolution_247881601_248140801_4FGL_J1635.6+3628_daily_bin33.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.56e-03', job_status='DONE', photon_flux_upper_limit='9.62e-08', time_completed='2021-09-14 22:56:14.207166', job_id='706113', GAL2='0.86', fit_tolerance='1e-08', EG2='0.90', EG='0.90', time_epoch_completed='1631685374.21', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='9.16e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.67' WHERE bin_id='33' AND source_name='4FGL J1635.6+3628' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 14 22:56:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0262>
Subject: Job 706113: <4FGL_J1635.6+3628_daily_bin33> in cluster <slac> Done

Job <4FGL_J1635.6+3628_daily_bin33> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 14 22:40:19 2021
Job was executed on host(s) <bullet0262>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 14 22:41:11 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:11 2021
Terminated at Tue Sep 14 22:56:14 2021
Results reported at Tue Sep 14 22:56:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1635.6+3628_daily_bin33 248.923 36.4795 247881601 248140801 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 :                                   708.39 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             240.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   903 sec.
    Turnaround time :                            955 sec.

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

