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


Performing analysis on: 4FGL_J1635.6+3628_daily_bin36
RA = 248.923, Dec = 36.4795
tmin = 248659201, tmax = 248918401
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='706117', job_status='RUN', time_executed='2021-09-14 22:43:47.541355', time_epoch_executed='1631684627.54' WHERE source_name='4FGL J1635.6+3628' and cadence='daily' and bin_id='36'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/706117

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/706117/ft1_4FGL_J1635.6+3628_daily_bin36.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/706117/ft2_4FGL_J1635.6+3628_daily_bin36.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/706117/ft1_4FGL_J1635.6+3628_daily_bin36.fits outfile=/scratch/kocevski/706117/ft1_filteredMKT_4FGL_J1635.6+3628_daily_bin36.fits ra=248.923 dec=36.4795 rad=12.0 tmin=248659201.0 tmax=248918401.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.46
user 1.26
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/706117/ft1_filtered_4FGL_J1635.6+3628_daily_bin36.fits" evtable="EVENTS" scfile=/scratch/kocevski/706117/ft2_4FGL_J1635.6+3628_daily_bin36.fits sctable="SC_DATA" outfile=/scratch/kocevski/706117/ltcube_248659201_248918401_4FGL_J1635.6+3628_daily_bin36.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/706117/ft2_4FGL_J1635.6+3628_daily_bin36.fits
.....................!
real 16.48
user 16.05
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/706117/ft1_filtered_4FGL_J1635.6+3628_daily_bin36.fits evtable="EVENTS" scfile=/scratch/kocevski/706117/ft2_4FGL_J1635.6+3628_daily_bin36.fits sctable="SC_DATA" expcube=/scratch/kocevski/706117/ltcube_248659201_248918401_4FGL_J1635.6+3628_daily_bin36.fits outfile=/scratch/kocevski/706117/expmap_248659201_248918401_4FGL_J1635.6+3628_daily_bin36.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/706117/ltcube_248659201_248918401_4FGL_J1635.6+3628_daily_bin36.fits
.....................!
real 192.03
user 186.42
sys 4.82

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/706117/ft1_filtered_4FGL_J1635.6+3628_daily_bin36.fits scfile=/scratch/kocevski/706117/ft2_4FGL_J1635.6+3628_daily_bin36.fits outfile=/scratch/kocevski/706117/cmap_248659201_248918401_4FGL_J1635.6+3628_daily_bin36.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.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/706117/ft1_filtered_4FGL_J1635.6+3628_daily_bin36.fits scfile=/scratch/kocevski/706117/ft2_4FGL_J1635.6+3628_daily_bin36.fits outfile=/scratch/kocevski/706117/cmap_HighResolution_248659201_248918401_4FGL_J1635.6+3628_daily_bin36.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.56
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    15.267       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .27286       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.8001       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.2407       1.0000         .10000E-03   10000.    
     7 'norm      '    .62615       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.9522       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.7417       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.6737       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.3390       1.0000         .10000E-03   10000.    
    14 'Prefactor '    20.513       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.8704       1.0000         .10000E-03   10000.    
    16 'norm      '    .90015       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.0806       1.0000         .10000E-03   10000.    
    19 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    12.386       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    13.284       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0447       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .85342       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=   5813.752     FROM MIGRAD    STATUS=CONVERGED    548 CALLS     2770 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.1159        .41304E-06** at limit **
   2  Prefactor     15.268        20.140        .27455E-07   -.48072E-05
   3  Prefactor     .27538        2.0332       -.78161E-06   -.58503E-03
   4  Prefactor     .10000E-03    4.8891       -.10760E-05** at limit **
   5  Prefactor     9.8048        25.080        .30261E-05   -.84971E-04
   6  Prefactor     2.2413        3.5560       -.13166E-05   -.22288E-03
   7  norm          .62605        .22976       -.28418E-07    .82486E-03
   8  norm          .10000E-03    4.7204        .56551E-06** at limit **
   9  Prefactor     7.9555        26.760        .27373E-05   -.55012E-04
  10  Prefactor     1.7425        4.2946        .12976E-05   -.99062E-03
  11  norm          .10000E-03    14.196       -.17450E-06** at limit **
  12  Prefactor     1.6744        2.1833        .14346E-06   -.33317E-03
  13  Prefactor     1.3392        2.1895       -.67335E-07   -.45549E-03
  14  Prefactor     20.512        14.985        .71513E-07   -.27684E-04
  15  Prefactor     5.8706        3.7010       -.60496E-07   -.34598E-04
  16  norm          .90011        1.1480       -.44829E-06   -.26438E-02
  17  Prefactor     .10000E-03    40.330        .42494E-06** at limit **
  18  Prefactor     5.0800        7.8013       -.25664E-05    .86798E-04
  19  norm          .10000E-03    .59946        .22656E-06** at limit **
  20  norm          12.386        12.123        .97545E-07   -.98054E-04
  21  Prefactor     .10000E-03    77.559       -.75440E-06** at limit **
  22  norm          13.285        9.4674        .16623E-06   -.10118E-03
  23  Normalizat    1.0444        .21165        .30809E-06    .25841E-04
  24  Prefactor     .85362        .14892        .15141E-07    .24170E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 15.2679
  Prefactor  = 0.275378
  Prefactor  = 0.0001
  Prefactor  = 9.80475
  Prefactor  = 2.24127
  norm       = 0.626053
  norm       = 0.0001
  Prefactor  = 7.95548
  Prefactor  = 1.74247
  norm       = 0.0001
  Prefactor  = 1.6744
  Prefactor  = 1.3392
  Prefactor  = 20.5121
  Prefactor  = 5.8706
  norm       = 0.900106
  Prefactor  = 0.0001
  Prefactor  = 5.07998
  norm       = 0.0001
  norm       = 12.3856
  Prefactor  = 0.0001
  norm       = 13.2853
  Normalizat = 1.04437
  Prefactor  = 0.853622
 **********
 **   18 **HESSE 
 **********

 FCN=   5813.752     FROM HESSE     STATUS=OK           411 CALLS     3181 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.1102        .16834E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     15.268        20.140        .10251E-03   -1.4926    
   3  Prefactor     .27538        4.2056        .21297E-02   -1.5603    
   4  Prefactor     .10000E-03    4.8863        .16406E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.8048        24.967        .12800E-03   -1.5082    
   6  Prefactor     2.2413        3.6072        .17332E-03   -1.5409    
   7  norm          .62605        .23217        .17685E-04   -1.5550    
   8  norm          .10000E-03    4.7102        .16162E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.9555        27.040        .14219E-03   -1.5144    
  10  Prefactor     1.7425        4.1054        .22804E-03   -1.5444    
  11  norm          .10000E-03    14.196        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.6744        2.1718        .77322E-04   -1.5449    
  13  Prefactor     1.3392        2.1485        .87191E-04   -1.5477    
  14  Prefactor     20.512        14.989        .88434E-04   -1.4802    
  15  Prefactor     5.8706        3.6771        .10831E-03   -1.5223    
  16  norm          .90011        1.2572        .25616E-03   -1.5518    
  17  Prefactor     .10000E-03    40.643        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.0800        7.6792        .17838E-03   -1.5257    
  19  norm          .10000E-03    1.3192        .11190E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          12.386        12.092        .11382E-03   -1.5004    
  21  Prefactor     .10000E-03    78.115        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          13.285        9.4506        .10990E-03   -1.4979    
  23  Normalizat    1.0444        .25317        .27059E-03   -.91558    
  24  Prefactor     .85362        .17853        .22425E-03   -.97781    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.78413e-09
Minuit parameter uncertainties:
  1  1.66815e-05
  2  20.1491
  3  2.15213
  4  5.55533e-06
  5  24.9937
  6  3.60755
  7  0.232174
  8  2.0703e-05
  9  27.0814
  10  4.10602
  11  2.0083e-05
  12  2.17187
  13  2.14857
  14  14.9913
  15  3.67726
  16  1.25727
  17  5.84874e-05
  18  7.68072
  19  2.76471e-05
  20  12.094
  21  8.87422e-05
  22  9.45167
  23  0.253459
  24  0.178656
Done.

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

Extracting fit parameters...

4FGL J1635.6+3628
   Spectrum: PowerLaw
282    Prefactor:  7.955e+00  2.708e+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:  8.536e-01  1.787e-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.044e+00  2.535e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/706117/likelihoodResults_248659201_248918401_4FGL_J1635.6+3628_daily_bin36.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) = 5813.44353259
delta logL = 0.308942002626

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5813.39573396
delta logL = 0.356740627309

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8376       1.0000         .10000E-03   10000.    
     2 'Index     '    4.1959       1.0000          .0000       10.000    
     3 'Normalizat'    .97816       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88558       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=   5813.396     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      264 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8318        44.559        .76940E-02    .15407E-02
   2  Index         4.1977        3.6022        .10863        .25639E-03
   3  Normalizat    .97808        .53673E-01    .45893E-01   -.37975E-04
   4  Prefactor     .88566        .40132E-01    .44821E-01   -.17400E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.83179
  Index      = 4.19772
  Normalizat = 0.978077
  Prefactor  = 0.885664
 **********
 **   18 **HESSE 
 **********

 FCN=   5813.396     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      295 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8318        98.394        .10586E-03   -1.5437    
   2  Index         4.1977        7.0812        .64758E-02   -.16115    
   3  Normalizat    .97808        .19911        .27803E-03   -.93769    
   4  Prefactor     .88566        .14593        .22051E-03   -.96644    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.94445e-09
Minuit parameter uncertainties:
  1  26.8964
  2  7.54422
  3  0.199258
  4  0.145995
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/706117': 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) = 5813.39573353
delta logL = 0.356741060079

Extracting fit parameters...

4FGL J1635.6+3628
   Spectrum: PowerLaw
282    Prefactor:  1.832e+00  2.690e+01  1.000e-04  1.000e+04 ( 1.000e-13)
283        Index:  4.198e+00  7.544e+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.857e-01  1.460e-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.781e-01  1.993e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.12
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/706117/cmap_HighResolution_248659201_248918401_4FGL_J1635.6+3628_daily_bin36.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.15e-02', job_status='DONE', photon_flux_upper_limit='1.46e-07', time_completed='2021-09-14 22:55:52.989717', job_id='706117', GAL2='0.89', fit_tolerance='1e-08', EG2='0.98', EG='1.04', time_epoch_completed='1631685352.99', return_code2='102', ts='0.12', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='3.57e-01', ts2='0.94', photon_index_error='0.00', photon_index='2.67' WHERE bin_id='36' AND source_name='4FGL J1635.6+3628' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 14 22:55:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0046>
Subject: Job 706117: <4FGL_J1635.6+3628_daily_bin36> in cluster <slac> Done

Job <4FGL_J1635.6+3628_daily_bin36> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 14 22:40:20 2021
Job was executed on host(s) <bullet0046>, 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:55:53 2021
Results reported at Tue Sep 14 22:55:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1635.6+3628_daily_bin36 248.923 36.4795 248659201 248918401 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 :                                   725.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             289.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   882 sec.
    Turnaround time :                            933 sec.

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

