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


Performing analysis on: 4FGL_J1635.3+4258_daily_bin218
RA = 248.846, Dec = 42.9756
tmin = 295833601, tmax = 296092801
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='697348', job_status='RUN', time_executed='2021-09-14 22:11:24.072587', time_epoch_executed='1631682684.07' WHERE source_name='4FGL J1635.3+4258' and cadence='daily' and bin_id='218'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/697348

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/697348/ft1_4FGL_J1635.3+4258_daily_bin218.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/697348/ft2_4FGL_J1635.3+4258_daily_bin218.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/697348/ft1_4FGL_J1635.3+4258_daily_bin218.fits outfile=/scratch/kocevski/697348/ft1_filteredMKT_4FGL_J1635.3+4258_daily_bin218.fits ra=248.846 dec=42.9756 rad=12.0 tmin=295833601.0 tmax=296092801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 2.40
user 2.20
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/697348/ft2_4FGL_J1635.3+4258_daily_bin218.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/697348/ft2_4FGL_J1635.3+4258_daily_bin218.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/697348/ft1_filteredMKT_4FGL_J1635.3+4258_daily_bin218.fits evtable="EVENTS" outfile="/scratch/kocevski/697348/ft1_filtered_4FGL_J1635.3+4258_daily_bin218.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.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/697348/ft1_filtered_4FGL_J1635.3+4258_daily_bin218.fits" evtable="EVENTS" scfile=/scratch/kocevski/697348/ft2_4FGL_J1635.3+4258_daily_bin218.fits sctable="SC_DATA" outfile=/scratch/kocevski/697348/ltcube_295833601_296092801_4FGL_J1635.3+4258_daily_bin218.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/697348/ft2_4FGL_J1635.3+4258_daily_bin218.fits
.....................!
real 15.03
user 14.68
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/697348/ft1_filtered_4FGL_J1635.3+4258_daily_bin218.fits evtable="EVENTS" scfile=/scratch/kocevski/697348/ft2_4FGL_J1635.3+4258_daily_bin218.fits sctable="SC_DATA" expcube=/scratch/kocevski/697348/ltcube_295833601_296092801_4FGL_J1635.3+4258_daily_bin218.fits outfile=/scratch/kocevski/697348/expmap_295833601_296092801_4FGL_J1635.3+4258_daily_bin218.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/697348/ltcube_295833601_296092801_4FGL_J1635.3+4258_daily_bin218.fits
.....................!
real 192.31
user 186.67
sys 5.15

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 210 point sources and 0 extended sources

Setting source of interest to:
4FGL J1635.3+4258 @ 248.846 42.9756

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/697348/ft1_filtered_4FGL_J1635.3+4258_daily_bin218.fits scfile=/scratch/kocevski/697348/ft2_4FGL_J1635.3+4258_daily_bin218.fits outfile=/scratch/kocevski/697348/cmap_295833601_296092801_4FGL_J1635.3+4258_daily_bin218.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.846 yref=42.9756 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.58
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/697348/ft1_filtered_4FGL_J1635.3+4258_daily_bin218.fits scfile=/scratch/kocevski/697348/ft2_4FGL_J1635.3+4258_daily_bin218.fits outfile=/scratch/kocevski/697348/cmap_HighResolution_295833601_296092801_4FGL_J1635.3+4258_daily_bin218.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.846 yref=42.9756 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.57
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/697348/ft1_filtered_4FGL_J1635.3+4258_daily_bin218.fits evtable="EVENTS" scfile=/scratch/kocevski/697348/ft2_4FGL_J1635.3+4258_daily_bin218.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/697348/Model_4FGL_J1635.3+4258_daily_bin218.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/697348/ft1_filtered_4FGL_J1635.3+4258_daily_bin218.fits.....................!
real 60.81
user 58.89
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/697348/ft1_filtered_4FGL_J1635.3+4258_daily_bin218.fits', '/scratch/kocevski/697348/ft2_4FGL_J1635.3+4258_daily_bin218.fits', expMap='/scratch/kocevski/697348/expmap_295833601_296092801_4FGL_J1635.3+4258_daily_bin218.fits', expCube='/scratch/kocevski/697348/ltcube_295833601_296092801_4FGL_J1635.3+4258_daily_bin218.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/697348/Model_4FGL_J1635.3+4258_daily_bin218.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1635.3+4258'

4FGL J1635.3+4258
   Spectrum: LogParabola
311         norm:  1.168e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
312        alpha:  1.825e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
313         beta:  4.797e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
314           Eb:  1.661e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/697348/ft1_filtered_4FGL_J1635.3+4258_daily_bin218.fits
Spacecraft file(s): /scratch/kocevski/697348/ft2_4FGL_J1635.3+4258_daily_bin218.fits
Exposure map: /scratch/kocevski/697348/expmap_295833601_296092801_4FGL_J1635.3+4258_daily_bin218.fits
Exposure cube: /scratch/kocevski/697348/ltcube_295833601_296092801_4FGL_J1635.3+4258_daily_bin218.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/697348/Model_4FGL_J1635.3+4258_daily_bin218.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) = 7369.12084416

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.2366       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .58675E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .83113       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.6588       1.0000         .10000E-03   10000.    
     8 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .33747       1.0000         .10000E-03   10000.    
    10 'norm      '    22.217       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.9467       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.1585       1.0000         .10000E-03   10000.    
    13 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.3271       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11259E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.7083       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.1996       1.0000         .10000E-03   10000.    
    20 'norm      '    2.4824       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.1315       1.0000         .10000E-03   10000.    
    22 'norm      '    1.2695       1.0000         .10000E-03   10000.    
    23 'norm      '    15.344       1.0000         .10000E-03   10000.    
    24 'norm      '    2.0895       1.0000         .10000E-03   10000.    
    25 'Prefactor '    3.4754       1.0000         .10000E-03   10000.    
    26 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.4792       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .52723       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6770E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7369.077     FROM MIGRAD    STATUS=CONVERGED    731 CALLS     3560 TOTAL
                     EDM=   .55E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.6120        .46482E-06** at limit **
   2  Prefactor     .10000E-03    79.907       -.43670E-06** at limit **
   3  Prefactor     2.2370        2.6952       -.16002E-06   -.18920E-04
   4  Prefactor     .10000E-03    4.1206        .24314E-06** at limit **
   5  Prefactor     .10072E-03    18.826       -.10340E-05** at limit **
   6  Prefactor     .83296        .57042        .42367E-06   -.55799E-03
   7  Prefactor     4.6588        4.1267       -.11386E-05    .29707E-03
   8  norm          .10000E-03    6.8930       -.10866E-05** at limit **
   9  norm          .33749        .17061       -.88292E-07   -.49966E-03
  10  norm          22.217        17.120        .75033E-06   -.31403E-04
  11  Prefactor     3.9481        15.582        .49177E-05   -.77653E-04
  12  Prefactor     6.1570        5.7078       -.30733E-07    .44795E-03
  13  norm          .10000E-03    14.629        .56526E-06** at limit **
  14  Prefactor     4.3280        1.7713       -.52701E-07   -.48411E-03
  15  Prefactor     .10000E-03    .56526        .13345E-06** at limit **
  16  Prefactor     8.7093        4.0687       -.64139E-06    .69613E-03
  17  Prefactor     .10000E-03    1.7975        .28690E-06** at limit **
  18  Prefactor     .10000E-03    6.2835        .35748E-06** at limit **
  19  norm          1.1996        1.0977       -.31877E-07   -.28288E-04
  20  norm          2.4831        1.0953        .47307E-06    .19832E-02
  21  Prefactor     1.1252        13.393       -.16776E-04    .16076E-03
  22  norm          1.2705        .88628        .73273E-06    .32475E-02
  23  norm          15.345        8.7734       -.39717E-06    .12645E-03
  24  norm          2.0898        1.4616        .21225E-06    .93815E-03
  25  Prefactor     3.4756        3.2603        .39949E-07    .85837E-04
  26  norm          .10000E-03    2.1727       -.15158E-06** at limit **
  27  Normalizat    1.4788        .19302        .20794E-05    .36286E-03
  28  Prefactor     .52742        .15466       -.13648E-06    .38732E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.23699
  Prefactor  = 0.0001
  Prefactor  = 0.000100722
  Prefactor  = 0.832956
  Prefactor  = 4.65878
  norm       = 0.0001
  norm       = 0.337488
  norm       = 22.2175
  Prefactor  = 3.94811
  Prefactor  = 6.15704
  norm       = 0.0001
  Prefactor  = 4.32799
  Prefactor  = 0.000100001
  Prefactor  = 8.70934
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.19956
  norm       = 2.48306
  Prefactor  = 1.12523
  norm       = 1.2705
  norm       = 15.345
  norm       = 2.08984
  Prefactor  = 3.47559
  norm       = 0.0001
  Normalizat = 1.47883
  Prefactor  = 0.527425
 **********
 **   18 **HESSE 
 **********

 FCN=   7369.077     FROM HESSE     STATUS=OK           547 CALLS     4107 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.6181        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    80.311        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.2370        2.6895        .14900E-03   -1.5409    
   4  Prefactor     .10000E-03    4.1471        .16965E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10072E-03    23.518        .99915E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .83296        4.2805        .54807E-01   -1.5525    
   7  Prefactor     4.6588        4.1275        .15085E-03   -1.5276    
   8  norm          .10000E-03    6.8961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .33749        .16753        .21432E-04   -1.5592    
  10  norm          22.217        17.110        .84979E-04   -1.4765    
  11  Prefactor     3.9481        15.456        .20305E-03   -1.5311    
  12  Prefactor     6.1570        5.7018        .16177E-03   -1.5212    
  13  norm          .10000E-03    14.634        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.3280        2.3792        .54699E-04   -1.5292    
  15  Prefactor     .10000E-03    5.8168        .17502E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     8.7093        4.0674        .10858E-03   -1.5118    
  17  Prefactor     .10000E-03    1.8672        .22448E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.3177        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.1996        1.0994        .83244E-04   -1.5489    
  20  norm          2.4831        1.0967        .25947E-04   -1.5393    
  21  Prefactor     1.1252        13.606        .43900E-03   -1.5496    
  22  norm          1.2705        .87848        .61545E-04   -1.5483    
  23  norm          15.345        8.7747        .10225E-03   -1.4924    
  24  norm          2.0898        1.4527        .82952E-04   -1.5419    
  25  Prefactor     3.4756        3.2651        .14598E-03   -1.5335    
  26  norm          .10000E-03    2.1868        .12356E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.4788        .24051        .23424E-03   -.78375    
  28  Prefactor     .52742        .18393        .31539E-03   -1.1073    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.20275e-09
Minuit parameter uncertainties:
  1  1.81789e-05
  2  8.63051e-05
  3  2.68964
  4  5.81185e-06
  5  0.00824507
  6  3.7767
  7  4.12772
  8  2.02778e-05
  9  0.16753
  10  17.1138
  11  15.4718
  12  5.7023
  13  1.20406e-05
  14  2.37922
  15  0.000162483
  16  4.06752
  17  6.82447e-06
  18  7.13195e-06
  19  1.09943
  20  1.09671
  21  7.82753
  22  0.878489
  23  8.77539
  24  1.45276
  25  3.26528
  26  1.86813e-06
  27  0.240697
  28  0.184141
Done.

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

Extracting fit parameters...

4FGL J1635.3+4258
   Spectrum: LogParabola
311         norm:  2.222e+01  1.711e+01  1.000e-04  1.000e+04 ( 1.000e-13)
312        alpha:  1.825e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
313         beta:  4.797e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
314           Eb:  1.661e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
674    Prefactor:  5.274e-01  1.841e-01  0.000e+00  1.000e+01 ( 1.000e+00)
675        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
676        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
673   Normalization:  1.479e+00  2.407e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.47
Ra Dec: 248.846 42.976
Photon Index (Fixed Index): 1.82 +/- 0.00
Photon Flux (Fixed Index): 1.31e-08 +/- 1.01e-08
Energy Flux (Fixed Index): 1.59e-05 +/- 1.23e-05

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) = 7368.05083218
delta logL = 1.0256889071

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7368.04499332
delta logL = 1.03152776622

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.914       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.2104       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4450       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .53690       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6770E+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=   7368.045     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      302 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.912        14.466        .11146E-03    .28763E-04
   2  alpha         3.2107        .84679        .12025E-01   -.19320E-04
   3  Normalizat    1.4448        .21116        .23601E-03   -.14372E-03
   4  Prefactor     .53709        .17720        .31209E-03   -.25091E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 12.9122
  alpha      = 3.21066
  Normalizat = 1.44483
  Prefactor  = 0.537093
 **********
 **   18 **HESSE 
 **********

 FCN=   7368.045     FROM HESSE     STATUS=OK            25 CALLS      327 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.912        12.726        .44585E-05   -1.4989    
   2  alpha         3.2107        .74817        .48100E-03    .28824    
   3  Normalizat    1.4448        .21057        .47203E-04   -.79341    
   4  Prefactor     .53709        .17704        .12484E-04   -1.1030    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.85711e-10
Minuit parameter uncertainties:
  1  12.7286
  2  0.760883
  3  0.2107
  4  0.177222
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/697348': 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) = 7368.04499232
delta logL = 1.03152876422

Extracting fit parameters...

4FGL J1635.3+4258
   Spectrum: LogParabola
311         norm:  1.291e+01  1.273e+01  1.000e-04  1.000e+04 ( 1.000e-13)
312        alpha:  3.211e+00  7.609e-01  0.000e+00  5.000e+00 ( 1.000e+00)
313         beta:  4.797e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
314           Eb:  1.661e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
674    Prefactor:  5.371e-01  1.772e-01  0.000e+00  1.000e+01 ( 1.000e+00)
675        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
676        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
673   Normalization:  1.445e+00  2.107e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.51
Ra Dec: 248.846 42.976
Photon Index (Free Index): 3.21 +/- 0.76
Photon Flux (Free Index): 4.84e-08 +/- 3.78e-08
Energy Flux (Free Index): 1.83e-05 +/- 1.03e-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/697348/cmap_HighResolution_295833601_296092801_4FGL_J1635.3+4258_daily_bin218.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.31e-08', energy_flux2='1.83e-05', photon_flux_error='1.01e-08', dlogl='1.03e+00', energy_flux='1.59e-05', photon_flux2='4.84e-08', job_status='DONE', time_completed='2021-09-14 22:26:17.026121', photon_index_error2='0.76', photon_index2='3.21', ts='4.47', fit_tolerance='1e-08', GAL='0.53', photon_index_error='0.00', energy_flux_error2='1.03e-05', EG='1.48', time_epoch_completed='1631683577.03', return_code='0', job_id='697348', GAL2='0.54', EG2='1.44', return_code2='0', energy_flux_error='1.23e-05', photon_flux_error2='3.78e-08', ts2='6.51', photon_index='1.82' WHERE bin_id='218' AND source_name='4FGL J1635.3+4258' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 14 22:26:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0190>
Subject: Job 697348: <4FGL_J1635.3+4258_daily_bin218> in cluster <slac> Done

Job <4FGL_J1635.3+4258_daily_bin218> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 14 22:10:36 2021
Job was executed on host(s) <bullet0190>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 14 22:11:10 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:11:10 2021
Terminated at Tue Sep 14 22:26:17 2021
Results reported at Tue Sep 14 22:26:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1635.3+4258_daily_bin218 248.846 42.9756 295833601 296092801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1635.3+4258 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   889.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             315.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   907 sec.
    Turnaround time :                            941 sec.

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

