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


Performing analysis on: 4FGL_J1635.6+3628_daily_bin87
RA = 248.923, Dec = 36.4795
tmin = 261878401, tmax = 262137601
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='706193', job_status='RUN', time_executed='2021-09-14 22:44:29.131632', time_epoch_executed='1631684669.13' WHERE source_name='4FGL J1635.6+3628' and cadence='daily' and bin_id='87'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/706193

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/706193/ft1_4FGL_J1635.6+3628_daily_bin87.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/706193/ft2_4FGL_J1635.6+3628_daily_bin87.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/706193/ft1_4FGL_J1635.6+3628_daily_bin87.fits outfile=/scratch/kocevski/706193/ft1_filteredMKT_4FGL_J1635.6+3628_daily_bin87.fits ra=248.923 dec=36.4795 rad=12.0 tmin=261878401.0 tmax=262137601.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.40
user 1.21
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/706193/ft1_filtered_4FGL_J1635.6+3628_daily_bin87.fits evtable="EVENTS" scfile=/scratch/kocevski/706193/ft2_4FGL_J1635.6+3628_daily_bin87.fits sctable="SC_DATA" expcube=/scratch/kocevski/706193/ltcube_261878401_262137601_4FGL_J1635.6+3628_daily_bin87.fits outfile=/scratch/kocevski/706193/expmap_261878401_262137601_4FGL_J1635.6+3628_daily_bin87.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/706193/ltcube_261878401_262137601_4FGL_J1635.6+3628_daily_bin87.fits
.....................!
real 191.77
user 186.18
sys 5.21

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/706193/ft1_filtered_4FGL_J1635.6+3628_daily_bin87.fits scfile=/scratch/kocevski/706193/ft2_4FGL_J1635.6+3628_daily_bin87.fits outfile=/scratch/kocevski/706193/cmap_261878401_262137601_4FGL_J1635.6+3628_daily_bin87.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.54
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/706193/ft1_filtered_4FGL_J1635.6+3628_daily_bin87.fits scfile=/scratch/kocevski/706193/ft2_4FGL_J1635.6+3628_daily_bin87.fits outfile=/scratch/kocevski/706193/cmap_HighResolution_261878401_262137601_4FGL_J1635.6+3628_daily_bin87.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/706193/ft1_filtered_4FGL_J1635.6+3628_daily_bin87.fits evtable="EVENTS" scfile=/scratch/kocevski/706193/ft2_4FGL_J1635.6+3628_daily_bin87.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/706193/Model_4FGL_J1635.6+3628_daily_bin87.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/706193/ft1_filtered_4FGL_J1635.6+3628_daily_bin87.fits.....................!
real 54.04
user 52.73
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.581       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.5537       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .54683       1.0000         .10000E-03   10000.    
     8 'norm      '    8.1519       1.0000         .10000E-03   10000.    
     9 'Prefactor '    39.995       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.7408       1.0000         .10000E-03   10000.    
    11 'norm      '    16.852       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.2728       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .62877       1.0000         .10000E-03   10000.    
    14 'Prefactor '    18.649       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    6.5004       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.6295       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.7922       1.0000         .10000E-03   10000.    
    19 'norm      '    .98793       1.0000         .10000E-03   10000.    
    20 'norm      '    15.053       1.0000         .10000E-03   10000.    
    21 'Prefactor '    45.014       1.0000         .10000E-03   10000.    
    22 'norm      '    45.118       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .95660       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .94561       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6430E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6603.349     FROM MIGRAD    STATUS=CONVERGED     51 CALLS     2215 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.582        1.0130        .20810E-07   -.11453E-02
   2  Prefactor     .10000E-03    8.1687       -.24710E-06** at limit **
   3  Prefactor     4.5551        1.0117       -.23533E-07    .21562E-03
   4  Prefactor     .10000E-03    1.8211        .23577E-06** at limit **
   5  Prefactor     .10000E-03    6.8914        .64771E-07** at limit **
   6  Prefactor     .10000E-03    1.6491        .43402E-06** at limit **
   7  norm          .54669        .18217        .68015E-07    .87125E-03
   8  norm          8.1519        1.0019        .11442E-08   -.46075E-04
   9  Prefactor     39.996        1.1578        .43780E-07   -.92725E-02
  10  Prefactor     3.7430        1.0584        .51323E-07   -.10537E-02
  11  norm          16.851        1.0119       -.17592E-07    .15611E-02
  12  Prefactor     1.2717        1.1379       -.25440E-06   -.19679E-03
  13  Prefactor     .63166        .97700        .82794E-07    .10335E-03
  14  Prefactor     18.648        1.0240       -.23588E-07    .22866E-02
  15  Prefactor     .10000E-03    1.0295       -.30099E-06** at limit **
  16  norm          6.4997        2.1817        .27157E-06    .14046E-02
  17  Prefactor     3.6286        1.0670       -.86872E-07    .16540E-02
  18  Prefactor     5.7948        1.1010        .75062E-07   -.20788E-02
  19  norm          .98784        .80933        .18425E-06    .28735E-03
  20  norm          15.052        1.0182       -.20920E-07    .16682E-02
  21  Prefactor     45.013        1.0422       -.21020E-07    .50506E-02
  22  norm          45.118        1.0011       -.27288E-08    .64217E-03
  23  Normalizat    .95579        .23926       -.33811E-05    .80012E-04
  24  Prefactor     .94620        .18269        .38489E-05    .16320E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 10.582
  Prefactor  = 0.000100001
  Prefactor  = 4.55513
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.546695
  norm       = 8.15191
  Prefactor  = 39.9965
  Prefactor  = 3.74297
  norm       = 16.8509
  Prefactor  = 1.27167
  Prefactor  = 0.631656
  Prefactor  = 18.648
  Prefactor  = 0.0001
  norm       = 6.49965
  Prefactor  = 3.62856
  Prefactor  = 5.79484
  norm       = 0.987845
  norm       = 15.0521
  Prefactor  = 45.0132
  norm       = 45.1177
  Normalizat = 0.955791
  Prefactor  = 0.946204
 **********
 **   18 **HESSE 
 **********

 FCN=   6603.349     FROM HESSE     STATUS=OK           455 CALLS     2670 TOTAL
                     EDM=   .49E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.582        12.725        .30793E-02   -1.5057    
   2  Prefactor     .10000E-03    8.1843        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.5551        3.1462        .47162E-02   -1.5281    
   4  Prefactor     .10000E-03    1.8206        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.9043        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.6253        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .54669        .20089        .41717E-02   -1.5560    
   8  norm          8.1519        8.5297        .35105E-02   -1.5137    
   9  Prefactor     39.996        27.006        .15845E-02   -1.4442    
  10  Prefactor     3.7430        4.9309        .52190E-02   -1.5321    
  11  norm          16.851        24.538        .24392E-02   -1.4887    
  12  Prefactor     1.2717        2.7551        .98541E-03   -1.5482    
  13  Prefactor     .63166        3.8342        .11786E-01   -1.5549    
  14  Prefactor     18.648        17.039        .23187E-02   -1.4844    
  15  Prefactor     .10000E-03    1.0169        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          6.4997        2.3960        .39352E-02   -1.5198    
  17  Prefactor     3.6286        140.03        .53015E-02   -1.5327    
  18  Prefactor     5.7948        9.4799        .41720E-02   -1.5226    
  19  norm          .98784        .86304        .13123E-01   -1.5509    
  20  norm          15.052        11.991        .25808E-02   -1.4932    
  21  Prefactor     45.013        53.131        .14939E-02   -1.4365    
  22  norm          45.118        14.745        .14922E-02   -1.4364    
  23  Normalizat    .95579        .20978        .66537E-01   -.94527    
  24  Prefactor     .94620        .15564        .45584E-01   -.94545    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.94545e-07
Minuit parameter uncertainties:
  1  12.728
  2  0.000164294
  3  3.1463
  4  2.21132e-07
  5  9.45183e-05
  6  6.59141e-06
  7  0.200888
  8  8.53093
  9  27.0143
  10  4.93148
  11  24.5523
  12  2.75535
  13  3.11252
  14  17.0439
  15  2.27864e-06
  16  2.39599
  17  45.1954
  18  9.48238
  19  0.863052
  20  11.9928
  21  53.1865
  22  14.7461
  23  0.209961
  24  0.155716
Done.

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

Extracting fit parameters...

4FGL J1635.6+3628
   Spectrum: PowerLaw
282    Prefactor:  4.000e+01  2.701e+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:  9.462e-01  1.557e-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.558e-01  2.100e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.52
Ra Dec: 248.923 36.480
Photon Index (Fixed Index): 2.67 +/- 0.00
Photon Flux (Fixed Index): 9.99e-08 +/- 6.74e-08
Energy Flux (Fixed Index): 2.47e-05 +/- 1.67e-05

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

Saving results to:
/scratch/kocevski/706193/likelihoodResults_261878401_262137601_4FGL_J1635.6+3628_daily_bin87.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) = 6602.00279179
delta logL = 1.34619268935

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6601.98170069
delta logL = 1.36728379363

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.7336       1.0000         .10000E-03   10000.    
     2 'Index     '    3.7905       1.0000          .0000       10.000    
     3 'Normalizat'    .87248       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99189       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=   6601.982     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      259 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.7012        60.588        .33909E-02   -.24867E-03
   2  Index         3.7923        2.4184        .84676E-01    .51351E-04
   3  Normalizat    .87225        .80741E-01    .69140E-01   -.40301E-05
   4  Prefactor     .99202        .60506E-01    .46166E-01    .22193E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.70119
  Index      = 3.79235
  Normalizat = 0.87225
  Prefactor  = 0.992016
 **********
 **   18 **HESSE 
 **********

 FCN=   6601.982     FROM HESSE     STATUS=OK            33 CALLS      292 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.7012        41.947        .10248E-03   -1.5118    
   2  Index         3.7923        2.2299        .34207E-02   -.24394    
   3  Normalizat    .87225        .24614        .30590E-03   -.97442    
   4  Prefactor     .99202        .18778        .22433E-03   -.92996    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.88034e-10
Minuit parameter uncertainties:
  1  38.2528
  2  2.31697
  3  0.246455
  4  0.187906
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/706193': 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) = 6601.98169693
delta logL = 1.36728754549

Extracting fit parameters...

4FGL J1635.6+3628
   Spectrum: PowerLaw
282    Prefactor:  8.701e+00  3.825e+01  1.000e-04  1.000e+04 ( 1.000e-13)
283        Index:  3.792e+00  2.317e+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.920e-01  1.879e-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.722e-01  2.465e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.78
Ra Dec: 248.923 36.480
Photon Index (Free Index): 3.79 +/- 2.32
Photon Flux (Free Index): 1.66e-07 +/- 7.76e-08
Energy Flux (Free Index): 2.58e-05 +/- 1.63e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/706193/cmap_HighResolution_261878401_262137601_4FGL_J1635.6+3628_daily_bin87.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.68e-02', comment='SUCCESS', photon_flux='9.99e-08', energy_flux2='2.58e-05', photon_flux_error='6.74e-08', dlogl='1.37e+00', energy_flux='2.47e-05', photon_flux2='1.66e-07', job_status='DONE', time_completed='2021-09-14 22:56:38.102456', photon_index_error2='2.32', photon_index2='3.79', ts='3.52', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='2.14e-07', energy_flux_error2='1.63e-05', EG='0.96', time_epoch_completed='1631685398.1', return_code='0', job_id='706193', GAL2='0.99', EG2='0.87', return_code2='0', energy_flux_error='1.67e-05', photon_flux_error2='7.76e-08', ts2='6.78', photon_index='2.67' WHERE bin_id='87' AND source_name='4FGL J1635.6+3628' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 14 22:56:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 706193: <4FGL_J1635.6+3628_daily_bin87> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1635.6+3628_daily_bin87 248.923 36.4795 261878401 262137601 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 :                                   728.29 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             285.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   895 sec.
    Turnaround time :                            973 sec.

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

