/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 5 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 = 7399
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1635.6+3628_daily_bin200
RA = 248.923, Dec = 36.4795
tmin = 291168001, tmax = 291427201
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='706415', job_status='RUN', time_executed='2021-09-14 22:43:38.684392', time_epoch_executed='1631684618.68' WHERE source_name='4FGL J1635.6+3628' and cadence='daily' and bin_id='200'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/706415

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/706415/ft1_4FGL_J1635.6+3628_daily_bin200.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/706415/ft2_4FGL_J1635.6+3628_daily_bin200.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/706415/ft1_4FGL_J1635.6+3628_daily_bin200.fits outfile=/scratch/kocevski/706415/ft1_filteredMKT_4FGL_J1635.6+3628_daily_bin200.fits ra=248.923 dec=36.4795 rad=12.0 tmin=291168001.0 tmax=291427201.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 2.88
user 2.66
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/706415/ft1_filtered_4FGL_J1635.6+3628_daily_bin200.fits" evtable="EVENTS" scfile=/scratch/kocevski/706415/ft2_4FGL_J1635.6+3628_daily_bin200.fits sctable="SC_DATA" outfile=/scratch/kocevski/706415/ltcube_291168001_291427201_4FGL_J1635.6+3628_daily_bin200.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/706415/ft2_4FGL_J1635.6+3628_daily_bin200.fits
.....................!
real 12.17
user 11.83
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/706415/ft1_filtered_4FGL_J1635.6+3628_daily_bin200.fits evtable="EVENTS" scfile=/scratch/kocevski/706415/ft2_4FGL_J1635.6+3628_daily_bin200.fits sctable="SC_DATA" expcube=/scratch/kocevski/706415/ltcube_291168001_291427201_4FGL_J1635.6+3628_daily_bin200.fits outfile=/scratch/kocevski/706415/expmap_291168001_291427201_4FGL_J1635.6+3628_daily_bin200.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/706415/ltcube_291168001_291427201_4FGL_J1635.6+3628_daily_bin200.fits
.....................!
real 155.98
user 151.54
sys 4.05

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/706415/ft1_filtered_4FGL_J1635.6+3628_daily_bin200.fits scfile=/scratch/kocevski/706415/ft2_4FGL_J1635.6+3628_daily_bin200.fits outfile=/scratch/kocevski/706415/cmap_291168001_291427201_4FGL_J1635.6+3628_daily_bin200.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.49
user 0.33
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/706415/ft1_filtered_4FGL_J1635.6+3628_daily_bin200.fits scfile=/scratch/kocevski/706415/ft2_4FGL_J1635.6+3628_daily_bin200.fits outfile=/scratch/kocevski/706415/cmap_HighResolution_291168001_291427201_4FGL_J1635.6+3628_daily_bin200.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.50
user 0.35
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.657       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .44170E-02   1.0000         .10000E-03   10000.    
     7 'norm      '    1.5891       1.0000         .10000E-03   10000.    
     8 'norm      '    .20145E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.2378       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.1065       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.6732       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.0979       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.1351       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    35.510       1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.7363       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .53626       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=   8001.580     FROM MIGRAD    STATUS=CONVERGED    566 CALLS     2779 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.656        12.280        .31829E-06    .24518E-03
   2  Prefactor     .10000E-03    14.350       -.37585E-05** at limit **
   3  Prefactor     .10000E-03    1.1998        .79942E-08** at limit **
   4  Prefactor     .10000E-03    3.1561       -.67911E-07** at limit **
   5  Prefactor     .10000E-03    10.066       -.27713E-05** at limit **
   6  Prefactor     .10011E-03    1.7642       -.23676E-06** at limit **
   7  norm          1.5892        .27236        .30407E-07    .38372E-03
   8  norm          .10000E-03    7.5853        .14722E-06** at limit **
   9  Prefactor     5.2341        23.912       -.28389E-05   -.27996E-04
  10  Prefactor     3.1068        3.8606        .23781E-05   -.47429E-03
  11  norm          .10000E-03    11.534        .24269E-05** at limit **
  12  Prefactor     2.6739        2.3407       -.50509E-07   -.27798E-03
  13  Prefactor     1.0976        1.9347        .76064E-08   -.15928E-03
  14  Prefactor     .10000E-03    5.1109       -.31378E-06** at limit **
  15  Prefactor     .10000E-03    1.1157       -.15463E-07** at limit **
  16  norm          2.1350        1.5002       -.53271E-09   -.10788E-03
  17  Prefactor     .10000E-03    12.769        .37867E-05** at limit **
  18  Prefactor     .10000E-03    6.4839        .44252E-06** at limit **
  19  norm          .10000E-03    .22769       -.14476E-07** at limit **
  20  norm          .10000E-03    4.6231        .18825E-06** at limit **
  21  Prefactor     35.508        40.798       -.11624E-05   -.14677E-05
  22  norm          .10000E-03    2.5119       -.28304E-07** at limit **
  23  Normalizat    1.7364        .19301       -.18843E-06    .12094E-03
  24  Prefactor     .53619        .13636        .34613E-07   -.47164E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 11.6564
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100108
  norm       = 1.58917
  norm       = 0.000100001
  Prefactor  = 5.23407
  Prefactor  = 3.10683
  norm       = 0.0001
  Prefactor  = 2.67389
  Prefactor  = 1.09759
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.13501
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 35.5085
  norm       = 0.0001
  Normalizat = 1.73642
  Prefactor  = 0.536186
 **********
 **   18 **HESSE 
 **********

 FCN=   8001.580     FROM HESSE     STATUS=OK           403 CALLS     3182 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.656        12.329        .58667E-03   -1.5025    
   2  Prefactor     .10000E-03    14.429        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.2132        .95652E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.2002        .15518E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.161        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10011E-03    7.4593        .34259E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.5892        .27738        .15880E-04   -1.5456    
   8  norm          .10000E-03    32.891        .48026E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.2341        24.714        .17563E-03   -1.5250    
  10  Prefactor     3.1068        3.6927        .18083E-03   -1.5355    
  11  norm          .10000E-03    11.558        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.6739        2.4999        .72901E-04   -1.5381    
  13  Prefactor     1.0976        2.0674        .45427E-04   -1.5498    
  14  Prefactor     .10000E-03    5.1216        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.1515        .18441E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.1350        1.4962        .88577E-04   -1.5416    
  17  Prefactor     .10000E-03    12.830        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.6416        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .28148        .82970E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    4.6703        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     35.508        40.812        .67252E-04   -1.4515    
  22  norm          .10000E-03    2.5181        .13842E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.7364        .23010        .24418E-03   -.71335    
  24  Prefactor     .53619        .16095        .30169E-03   -1.1034    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.78143e-10
Minuit parameter uncertainties:
  1  12.3315
  2  3.7818e-06
  3  8.54211e-07
  4  4.99536e-06
  5  1.12592e-05
  6  0.00179864
  7  0.27738
  8  0.000349627
  9  22.762
  10  3.69296
  11  1.96457e-07
  12  2.50003
  13  2.06753
  14  7.93281e-07
  15  1.64275e-06
  16  1.49618
  17  1.0538e-07
  18  1.6078e-05
  19  4.14809e-07
  20  1.87451e-06
  21  40.8439
  22  1.93259e-06
  23  0.23024
  24  0.161091
Done.

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

Extracting fit parameters...

4FGL J1635.6+3628
   Spectrum: PowerLaw
282    Prefactor:  5.234e+00  2.276e+01  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:  5.362e-01  1.611e-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:  1.736e+00  2.302e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.07
Ra Dec: 248.923 36.480
Photon Flux Upper Limit: 1.29e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.02e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/706415/likelihoodResults_291168001_291427201_4FGL_J1635.6+3628_daily_bin200.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8001.57780722
delta logL = 0.00223199223547

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8001.57731201
delta logL = 0.00272720380963

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.5915       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8079       1.0000          .0000       10.000    
     3 'Normalizat'    1.7349       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .53694       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8001.577     FROM MIGRAD    STATUS=CONVERGED    107 CALLS      344 TOTAL
                     EDM=   .33E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.6152        26.390        .93924E-03    .59121E-04
   2  Index         2.8077        2.0494        .48323E-02    .12704E-05
   3  Normalizat    1.7349        .21712        .24425E-03    .29789E-05
   4  Prefactor     .53692        .15757        .30150E-03    .86727E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.61524
  Index      = 2.80768
  Normalizat = 1.73494
  Prefactor  = 0.536917
 **********
 **   18 **HESSE 
 **********

 FCN=   8001.577     FROM HESSE     STATUS=OK            27 CALLS      371 TOTAL
                     EDM=   .11E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.6152        23.317        .18785E-03   -1.5278    
   2  Index         2.8077        1.9348        .19329E-03   -.45389    
   3  Normalizat    1.7349        .21738        .97699E-05   -.71374    
   4  Prefactor     .53692        .15772        .12060E-04   -1.1031    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06185e-13
Minuit parameter uncertainties:
  1  20.7601
  2  2.00019
  3  0.217497
  4  0.157845
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/706415': 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) = 8001.57731095
delta logL = 0.00272826680884

Extracting fit parameters...

4FGL J1635.6+3628
   Spectrum: PowerLaw
282    Prefactor:  4.615e+00  2.076e+01  1.000e-04  1.000e+04 ( 1.000e-13)
283        Index:  2.808e+00  2.000e+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:  5.369e-01  1.578e-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:  1.735e+00  2.175e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.07
Ra Dec: 248.923 36.480

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/706415/cmap_HighResolution_291168001_291427201_4FGL_J1635.6+3628_daily_bin200.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.02e-02', job_status='DONE', photon_flux_upper_limit='1.29e-07', time_completed='2021-09-14 22:56:00.165284', job_id='706415', GAL2='0.54', fit_tolerance='1e-08', EG2='1.73', EG='1.74', time_epoch_completed='1631685360.17', return_code2='0', ts='0.07', comment='SUCCESS', return_code='0', GAL='0.54', dlogl='2.73e-03', ts2='0.08', photon_index_error='0.00', photon_index='2.67' WHERE bin_id='200' AND source_name='4FGL J1635.6+3628' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 14 22:56:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 706415: <4FGL_J1635.6+3628_daily_bin200> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1635.6+3628_daily_bin200 248.923 36.4795 291168001 291427201 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 :                                   737.47 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             332.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   755 sec.
    Turnaround time :                            925 sec.

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

