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


Performing analysis on: 4FGL_J1635.6+3628_daily_bin147
RA = 248.923, Dec = 36.4795
tmin = 277430401, tmax = 277689601
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='706281', job_status='RUN', time_executed='2021-09-14 22:42:48.205504', time_epoch_executed='1631684568.21' WHERE source_name='4FGL J1635.6+3628' and cadence='daily' and bin_id='147'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/706281

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/706281/ft1_4FGL_J1635.6+3628_daily_bin147.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/706281/ft2_4FGL_J1635.6+3628_daily_bin147.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/706281/ft1_4FGL_J1635.6+3628_daily_bin147.fits outfile=/scratch/kocevski/706281/ft1_filteredMKT_4FGL_J1635.6+3628_daily_bin147.fits ra=248.923 dec=36.4795 rad=12.0 tmin=277430401.0 tmax=277689601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.53
user 3.30
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/706281/ft1_filtered_4FGL_J1635.6+3628_daily_bin147.fits" evtable="EVENTS" scfile=/scratch/kocevski/706281/ft2_4FGL_J1635.6+3628_daily_bin147.fits sctable="SC_DATA" outfile=/scratch/kocevski/706281/ltcube_277430401_277689601_4FGL_J1635.6+3628_daily_bin147.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/706281/ft2_4FGL_J1635.6+3628_daily_bin147.fits
.....................!
real 13.88
user 13.50
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/706281/ft1_filtered_4FGL_J1635.6+3628_daily_bin147.fits evtable="EVENTS" scfile=/scratch/kocevski/706281/ft2_4FGL_J1635.6+3628_daily_bin147.fits sctable="SC_DATA" expcube=/scratch/kocevski/706281/ltcube_277430401_277689601_4FGL_J1635.6+3628_daily_bin147.fits outfile=/scratch/kocevski/706281/expmap_277430401_277689601_4FGL_J1635.6+3628_daily_bin147.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/706281/ltcube_277430401_277689601_4FGL_J1635.6+3628_daily_bin147.fits
.....................!
real 191.17
user 186.00
sys 4.80

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/706281/ft1_filtered_4FGL_J1635.6+3628_daily_bin147.fits scfile=/scratch/kocevski/706281/ft2_4FGL_J1635.6+3628_daily_bin147.fits outfile=/scratch/kocevski/706281/cmap_277430401_277689601_4FGL_J1635.6+3628_daily_bin147.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.55
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/706281/ft1_filtered_4FGL_J1635.6+3628_daily_bin147.fits scfile=/scratch/kocevski/706281/ft2_4FGL_J1635.6+3628_daily_bin147.fits outfile=/scratch/kocevski/706281/cmap_HighResolution_277430401_277689601_4FGL_J1635.6+3628_daily_bin147.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.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10214E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.8907       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.5117       1.0000         .10000E-03   10000.    
     7 'norm      '    .33628       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    24.223       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.4561       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.0729       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.872       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .43912E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.8511       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .66500       1.0000         .10000E-03   10000.    
    20 'norm      '    9.9671       1.0000         .10000E-03   10000.    
    21 'Prefactor '    32.237       1.0000         .10000E-03   10000.    
    22 'norm      '    .94005       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .98066       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0165       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=   7551.625     FROM MIGRAD    STATUS=CONVERGED    578 CALLS     2782 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.2331       -.10470E-07** at limit **
   2  Prefactor     .10000E-03    9.0464        .12549E-06** at limit **
   3  Prefactor     .10000E-03    1.4133        .85661E-07** at limit **
   4  Prefactor     2.8917        5.6104        .19162E-06   -.42657E-04
   5  Prefactor     .10000E-03    10.972       -.32094E-06** at limit **
   6  Prefactor     2.5117        2.5525       -.85087E-08   -.57995E-04
   7  norm          .33628        .15380        .81329E-08   -.26010E-03
   8  norm          .10000E-03    4.5712        .81834E-08** at limit **
   9  Prefactor     24.229        18.958       -.72070E-06   -.27839E-04
  10  Prefactor     5.4576        3.4774       -.74827E-07   -.17889E-04
  11  norm          .10000E-03    14.381        .29806E-06** at limit **
  12  Prefactor     5.0729        1.6102       -.43937E-07   -.10907E-03
  13  Prefactor     .10000E-03    .78353       -.73059E-08** at limit **
  14  Prefactor     13.887        17.458       -.21862E-05   -.43936E-04
  15  Prefactor     .10001E-03    1.3352        .13523E-06** at limit **
  16  norm          .10000E-03    .62391        .38208E-07** at limit **
  17  Prefactor     7.8714        24.092       -.30643E-05   -.23129E-04
  18  Prefactor     .10000E-03    3.4485        .60515E-07** at limit **
  19  norm          .66505        .51733       -.33921E-07   -.27272E-03
  20  norm          9.9457        10.606        .34446E-05   -.16222E-03
  21  Prefactor     32.142        54.782        .25971E-06   -.10317E-03
  22  norm          .98266        9.2719       -.12857E-05   -.47707E-03
  23  Normalizat    .98079        .18916       -.10306E-07    .12788E-04
  24  Prefactor     1.0163        .14317        .13091E-05   -.99492E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.89166
  Prefactor  = 0.0001
  Prefactor  = 2.51169
  norm       = 0.336275
  norm       = 0.0001
  Prefactor  = 24.229
  Prefactor  = 5.45761
  norm       = 0.0001
  Prefactor  = 5.07288
  Prefactor  = 0.0001
  Prefactor  = 13.8866
  Prefactor  = 0.000100007
  norm       = 0.0001
  Prefactor  = 7.87143
  Prefactor  = 0.0001
  norm       = 0.665052
  norm       = 9.94573
  Prefactor  = 32.1418
  norm       = 0.982659
  Normalizat = 0.980793
  Prefactor  = 1.01627
 **********
 **   18 **HESSE 
 **********

 FCN=   7551.625     FROM HESSE     STATUS=OK           407 CALLS     3189 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.2355        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    9.0529        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.4383        .10080E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.8917        5.5967        .23902E-03   -1.5368    
   5  Prefactor     .10000E-03    10.987        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.5117        2.5433        .13359E-03   -1.5391    
   7  norm          .33628        .15220        .20189E-04   -1.5592    
   8  norm          .10000E-03    4.5725        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     24.229        18.985        .81389E-04   -1.4723    
  10  Prefactor     5.4576        3.4750        .12512E-03   -1.5241    
  11  norm          .10000E-03    14.387        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.0729        1.4240        .49499E-04   -1.5257    
  13  Prefactor     .10000E-03    1.0175        .12991E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     13.887        17.487        .10754E-03   -1.4962    
  15  Prefactor     .10001E-03    7.0630        .18878E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .63869        .13392E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     7.8714        24.117        .14310E-03   -1.5147    
  18  Prefactor     .10000E-03    3.4837        .15750E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .66505        .53658        .53228E-03   -1.5545    
  20  norm          9.9457        10.903        .12692E-03   -1.5077    
  21  Prefactor     32.142        55.244        .70572E-04   -1.4573    
  22  norm          .98266        21.718        .42177E-02   -1.5510    
  23  Normalizat    .98079        .21892        .28566E-03   -.93677    
  24  Prefactor     1.0163        .16625        .21863E-03   -.92189    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.04561e-09
Minuit parameter uncertainties:
  1  4.12161e-06
  2  3.7729e-06
  3  3.99237e-06
  4  5.59772
  5  1.69658e-05
  6  2.54344
  7  0.152203
  8  1.72545e-06
  9  18.9895
  10  3.47509
  11  1.60246e-06
  12  1.424
  13  5.51839e-06
  14  17.493
  15  0.000456753
  16  2.47056e-06
  17  24.1465
  18  9.82302e-06
  19  0.536581
  20  10.9056
  21  55.3321
  22  9.24271
  23  0.21912
  24  0.166339
Done.

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

Extracting fit parameters...

4FGL J1635.6+3628
   Spectrum: PowerLaw
282    Prefactor:  2.423e+01  1.899e+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:  1.016e+00  1.663e-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.808e-01  2.191e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.67
Ra Dec: 248.923 36.480
Photon Index (Fixed Index): 2.67 +/- 0.00
Photon Flux (Fixed Index): 6.05e-08 +/- 4.74e-08
Energy Flux (Fixed Index): 1.50e-05 +/- 1.17e-05

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

Saving results to:
/scratch/kocevski/706281/likelihoodResults_277430401_277689601_4FGL_J1635.6+3628_daily_bin147.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) = 7551.45472876
delta logL = 0.16999570575

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7551.44317438
delta logL = 0.181550085455

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.181       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9912       1.0000          .0000       10.000    
     3 'Normalizat'    1.0196       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99813       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=   7551.443     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      286 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.180        32.463        .74166E-04   -.16402E-04
   2  Index         1.9911        1.1684        .11677E-01   -.15450E-03
   3  Normalizat    1.0196        .21625        .28133E-03    .14313E-03
   4  Prefactor     .99816        .16333        .22044E-03    .28303E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.1799
  Index      = 1.99113
  Normalizat = 1.01964
  Prefactor  = 0.998159
 **********
 **   18 **HESSE 
 **********

 FCN=   7551.443     FROM HESSE     STATUS=OK            25 CALLS      311 TOTAL
                     EDM=   .72E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.180        33.713        .29667E-05   -1.4627    
   2  Index         1.9911        1.2113        .23353E-02   -.64572    
   3  Normalizat    1.0196        .21688        .11253E-04   -.92375    
   4  Prefactor     .99816        .16352        .44089E-04   -.92791    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.18836e-11
Minuit parameter uncertainties:
  1  33.7353
  2  1.23071
  3  0.217064
  4  0.163603
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/706281': 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) = 7551.44317428
delta logL = 0.181550177892

Extracting fit parameters...

4FGL J1635.6+3628
   Spectrum: PowerLaw
282    Prefactor:  2.918e+01  3.374e+01  1.000e-04  1.000e+04 ( 1.000e-13)
283        Index:  1.991e+00  1.231e+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:  9.982e-01  1.636e-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.020e+00  2.171e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.03
Ra Dec: 248.923 36.480
Photon Index (Free Index): 1.99 +/- 1.23
Photon Flux (Free Index): 2.66e-08 +/- 6.45e-08
Energy Flux (Free Index): 1.88e-05 +/- 2.32e-05

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/706281/cmap_HighResolution_277430401_277689601_4FGL_J1635.6+3628_daily_bin147.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.20e-02', comment='SUCCESS', photon_flux='6.05e-08', energy_flux2='1.88e-05', photon_flux_error='4.74e-08', dlogl='1.82e-01', energy_flux='1.50e-05', photon_flux2='2.66e-08', job_status='DONE', time_completed='2021-09-14 22:56:46.487315', photon_index_error2='1.23', photon_index2='1.99', ts='2.67', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='1.53e-07', energy_flux_error2='2.32e-05', EG='0.98', time_epoch_completed='1631685406.49', return_code='0', job_id='706281', GAL2='1.00', EG2='1.02', return_code2='0', energy_flux_error='1.17e-05', photon_flux_error2='6.45e-08', ts2='3.03', photon_index='2.67' WHERE bin_id='147' AND source_name='4FGL J1635.6+3628' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 14 22:56:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0124>
Subject: Job 706281: <4FGL_J1635.6+3628_daily_bin147> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1635.6+3628_daily_bin147 248.923 36.4795 277430401 277689601 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 :                                   835.00 sec.
    Max Memory :                                 1026 MB
    Average Memory :                             332.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   852 sec.
    Turnaround time :                            976 sec.

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

