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


Performing analysis on: 4FGL_J1635.6+3628_daily_bin49
RA = 248.923, Dec = 36.4795
tmin = 252028801, tmax = 252288001
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='706136', job_status='RUN', time_executed='2021-09-14 22:41:31.845700', time_epoch_executed='1631684491.85' WHERE source_name='4FGL J1635.6+3628' and cadence='daily' and bin_id='49'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/706136

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/706136/ft1_4FGL_J1635.6+3628_daily_bin49.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/706136/ft2_4FGL_J1635.6+3628_daily_bin49.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/706136/ft1_4FGL_J1635.6+3628_daily_bin49.fits outfile=/scratch/kocevski/706136/ft1_filteredMKT_4FGL_J1635.6+3628_daily_bin49.fits ra=248.923 dec=36.4795 rad=12.0 tmin=252028801.0 tmax=252288001.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.44
user 1.25
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/706136/ft2_4FGL_J1635.6+3628_daily_bin49.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/706136/ft1_filteredMKT_4FGL_J1635.6+3628_daily_bin49.fits evtable="EVENTS" outfile="/scratch/kocevski/706136/ft1_filtered_4FGL_J1635.6+3628_daily_bin49.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.49
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/706136/ft1_filtered_4FGL_J1635.6+3628_daily_bin49.fits" evtable="EVENTS" scfile=/scratch/kocevski/706136/ft2_4FGL_J1635.6+3628_daily_bin49.fits sctable="SC_DATA" outfile=/scratch/kocevski/706136/ltcube_252028801_252288001_4FGL_J1635.6+3628_daily_bin49.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/706136/ft2_4FGL_J1635.6+3628_daily_bin49.fits
.....................!
real 14.90
user 14.53
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/706136/ft1_filtered_4FGL_J1635.6+3628_daily_bin49.fits evtable="EVENTS" scfile=/scratch/kocevski/706136/ft2_4FGL_J1635.6+3628_daily_bin49.fits sctable="SC_DATA" expcube=/scratch/kocevski/706136/ltcube_252028801_252288001_4FGL_J1635.6+3628_daily_bin49.fits outfile=/scratch/kocevski/706136/expmap_252028801_252288001_4FGL_J1635.6+3628_daily_bin49.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/706136/ltcube_252028801_252288001_4FGL_J1635.6+3628_daily_bin49.fits
.....................!
real 190.59
user 185.62
sys 4.57

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/706136/ft1_filtered_4FGL_J1635.6+3628_daily_bin49.fits scfile=/scratch/kocevski/706136/ft2_4FGL_J1635.6+3628_daily_bin49.fits outfile=/scratch/kocevski/706136/cmap_252028801_252288001_4FGL_J1635.6+3628_daily_bin49.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/706136/ft1_filtered_4FGL_J1635.6+3628_daily_bin49.fits scfile=/scratch/kocevski/706136/ft2_4FGL_J1635.6+3628_daily_bin49.fits outfile=/scratch/kocevski/706136/cmap_HighResolution_252028801_252288001_4FGL_J1635.6+3628_daily_bin49.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.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.6767       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.9130       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .43638       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.2618       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .46252       1.0000         .10000E-03   10000.    
     8 'norm      '    18.188       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .83507E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .65153       1.0000         .10000E-03   10000.    
    14 'Prefactor '    18.983       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.9613       1.0000         .10000E-03   10000.    
    16 'norm      '    4.8581       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .18112E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .78176       1.0000         .10000E-03   10000.    
    20 'norm      '    46.412       1.0000         .10000E-03   10000.    
    21 'Prefactor '    72.052       1.0000         .10000E-03   10000.    
    22 'norm      '    3.1260       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .81422       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .99167       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=   7245.747     FROM MIGRAD    STATUS=CONVERGED    567 CALLS     2854 TOTAL
                     EDM=   .19E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.6745        28.800        .31823E-06    .33324E-07
   2  Prefactor     .10000E-03    10.675        .17081E-07** at limit **
   3  Prefactor     4.9131        3.6081        .94415E-07   -.83192E-05
   4  Prefactor     .44024        .47258       -.77934E-08   -.25412E-03
   5  Prefactor     5.2472        17.198        .73357E-05   -.28349E-06
   6  Prefactor     .10000E-03    1.3878       -.33130E-07** at limit **
   7  norm          .46262        .15152        .38416E-08   -.23286E-03
   8  norm          18.187        15.873        .22028E-06   -.74894E-07
   9  Prefactor     .10000E-03    10.019        .90004E-08** at limit **
  10  Prefactor     .10000E-03    .88513       -.17072E-07** at limit **
  11  norm          .10000E-03    15.588       -.10871E-07** at limit **
  12  Prefactor     .10000E-03    .40563        .68418E-08** at limit **
  13  Prefactor     .65156        .95982        .18968E-07    .16009E-04
  14  Prefactor     18.985        17.628       -.54223E-06    .15032E-05
  15  Prefactor     1.9614        2.4102        .21778E-08   -.23046E-04
  16  norm          4.8581        1.8520        .69775E-08   -.19391E-04
  17  Prefactor     .10000E-03    105.21       -.15574E-05** at limit **
  18  Prefactor     .10000E-03    1.8523       -.56832E-08** at limit **
  19  norm          .78164        .75722        .15539E-07   -.15145E-04
  20  norm          46.411        13.401        .13204E-06   -.31804E-04
  21  Prefactor     72.051        46.945       -.94224E-06   -.55898E-05
  22  norm          3.1260        5.4042        .19195E-05    .13717E-04
  23  Normalizat    .81425        .18314       -.11674E-05    .17466E-04
  24  Prefactor     .99170        .13498        .22908E-06   -.73510E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.67452
  Prefactor  = 0.0001
  Prefactor  = 4.91313
  Prefactor  = 0.440236
  Prefactor  = 5.24716
  Prefactor  = 0.0001
  norm       = 0.462621
  norm       = 18.1867
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.651557
  Prefactor  = 18.9852
  Prefactor  = 1.96136
  norm       = 4.85812
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.781636
  norm       = 46.4114
  Prefactor  = 72.0512
  norm       = 3.12596
  Normalizat = 0.814247
  Prefactor  = 0.991698
 **********
 **   18 **HESSE 
 **********

 FCN=   7245.747     FROM HESSE     STATUS=OK           413 CALLS     3267 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.6745        28.797        .21064E-03   -1.5325    
   2  Prefactor     .10000E-03    10.688        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.9131        3.6108        .13055E-03   -1.5265    
   4  Prefactor     .44024        8.7713        .22016E-02   -1.5575    
   5  Prefactor     5.2472        17.913        .17523E-03   -1.5250    
   6  Prefactor     .10000E-03    2.4242        .19263E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .46262        .14431        .16941E-04   -1.5572    
   8  norm          18.187        15.867        .93914E-04   -1.4855    
   9  Prefactor     .10000E-03    48.661        .49684E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    .88882        .78208E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    15.592        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    .48207        .97240E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .65156        .79146        .86273E-03   -1.5547    
  14  Prefactor     18.985        17.624        .91927E-04   -1.4836    
  15  Prefactor     1.9614        2.3746        .13768E-03   -1.5428    
  16  norm          4.8581        1.8440        .68518E-04   -1.5267    
  17  Prefactor     .10000E-03    106.70        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.8587        .11311E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .78164        .72427        .69393E-03   -1.5531    
  20  norm          46.411        13.363        .58855E-04   -1.4344    
  21  Prefactor     72.051        46.945        .47295E-04   -1.4008    
  22  norm          3.1260        5.3972        .22931E-03   -1.5354    
  23  Normalizat    .81425        .21379        .29097E-03   -.99542    
  24  Prefactor     .99170        .16076        .20961E-03   -.93007    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.81769e-10
Minuit parameter uncertainties:
  1  20.5867
  2  1.48457e-06
  3  3.61095
  4  3.93033
  5  17.9311
  6  7.17036e-06
  7  0.144308
  8  15.8703
  9  0.000645986
  10  1.78914e-06
  11  1.00097e-06
  12  3.22477e-07
  13  0.791475
  14  17.6284
  15  2.37473
  16  1.84404
  17  0.000159671
  18  2.11772e-07
  19  0.724275
  20  13.364
  21  46.9692
  22  5.39799
  23  0.214015
  24  0.160839
Done.

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

Extracting fit parameters...

4FGL J1635.6+3628
   Spectrum: PowerLaw
282    Prefactor:  1.000e-04  6.460e-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:  9.917e-01  1.608e-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:  8.142e-01  2.140e-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: 8.67e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.81e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/706136/likelihoodResults_252028801_252288001_4FGL_J1635.6+3628_daily_bin49.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) = 7245.74754072
delta logL = -9.68459071373e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7245.74754071
delta logL = -9.6835327895e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96354E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6656       1.0000          .0000       10.000    
     3 'Normalizat'    .81424       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99170       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=   7245.747     FROM MIGRAD    STATUS=CONVERGED     73 CALLS      224 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10159E-03    .27327        .10754    ** at limit **
   2  Index         2.5264        6.6683        .50000        .22221E-04
   3  Normalizat    .81425        .63892E-03    .65773E-01   -.33522E-04
   4  Prefactor     .99170        .50615E-03    .46163E-01    .33561E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101587
  Index      = 2.52636
  Normalizat = 0.814245
  Prefactor  = 0.991699
 **********
 **   18 **HESSE 
 **********

 FCN=   7245.747     FROM HESSE     STATUS=NOT POSDEF    43 CALLS      267 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10159E-03    .39685        .90081E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5264        5.7370        .50000       -.51752    
   3  Normalizat    .81425        .68049E-03    .29097E-03   -.99542    
   4  Prefactor     .99170        .53973E-03    .20961E-03   -.93007    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.86964e-08
Minuit parameter uncertainties:
  1  0.00158714
  2  25.9279
  3  0.000680493
  4  0.00053973
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/706136': 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) = 7245.74744313
delta logL = 7.48423190089e-07

Extracting fit parameters...

4FGL J1635.6+3628
   Spectrum: PowerLaw
282    Prefactor:  1.016e-04  1.587e-03  1.000e-04  1.000e+04 ( 1.000e-13)
283        Index:  2.526e+00  2.593e+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:  9.917e-01  5.397e-04  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:  8.142e-01  6.805e-04  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/706136/cmap_HighResolution_252028801_252288001_4FGL_J1635.6+3628_daily_bin49.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.81e-03', job_status='DONE', photon_flux_upper_limit='8.67e-08', time_completed='2021-09-14 22:55:18.750218', job_id='706136', GAL2='0.99', fit_tolerance='1e-08', EG2='0.81', EG='0.81', time_epoch_completed='1631685318.75', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='7.48e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.67' WHERE bin_id='49' AND source_name='4FGL J1635.6+3628' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 14 22:55:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0270>
Subject: Job 706136: <4FGL_J1635.6+3628_daily_bin49> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1635.6+3628_daily_bin49 248.923 36.4795 252028801 252288001 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 :                                   824.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             361.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   842 sec.
    Turnaround time :                            897 sec.

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

