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


Performing analysis on: 4FGL_J1635.3+4258_daily_bin71
RA = 248.846, Dec = 42.9756
tmin = 257731201, tmax = 257990401
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='697113', job_status='RUN', time_executed='2021-09-14 22:13:35.929379', time_epoch_executed='1631682815.93' WHERE source_name='4FGL J1635.3+4258' and cadence='daily' and bin_id='71'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/697113

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/697113/ft1_4FGL_J1635.3+4258_daily_bin71.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/697113/ft2_4FGL_J1635.3+4258_daily_bin71.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/697113/ft1_4FGL_J1635.3+4258_daily_bin71.fits outfile=/scratch/kocevski/697113/ft1_filteredMKT_4FGL_J1635.3+4258_daily_bin71.fits ra=248.846 dec=42.9756 rad=12.0 tmin=257731201.0 tmax=257990401.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.95
user 1.23
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/697113/ft2_4FGL_J1635.3+4258_daily_bin71.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/697113/ft1_filteredMKT_4FGL_J1635.3+4258_daily_bin71.fits evtable="EVENTS" outfile="/scratch/kocevski/697113/ft1_filtered_4FGL_J1635.3+4258_daily_bin71.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.52
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/697113/ft1_filtered_4FGL_J1635.3+4258_daily_bin71.fits" evtable="EVENTS" scfile=/scratch/kocevski/697113/ft2_4FGL_J1635.3+4258_daily_bin71.fits sctable="SC_DATA" outfile=/scratch/kocevski/697113/ltcube_257731201_257990401_4FGL_J1635.3+4258_daily_bin71.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/697113/ft2_4FGL_J1635.3+4258_daily_bin71.fits
.....................!
real 17.23
user 16.78
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/697113/ft1_filtered_4FGL_J1635.3+4258_daily_bin71.fits evtable="EVENTS" scfile=/scratch/kocevski/697113/ft2_4FGL_J1635.3+4258_daily_bin71.fits sctable="SC_DATA" expcube=/scratch/kocevski/697113/ltcube_257731201_257990401_4FGL_J1635.3+4258_daily_bin71.fits outfile=/scratch/kocevski/697113/expmap_257731201_257990401_4FGL_J1635.3+4258_daily_bin71.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/697113/ltcube_257731201_257990401_4FGL_J1635.3+4258_daily_bin71.fits
.....................!
real 192.14
user 186.04
sys 5.48

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/697113/ft1_filtered_4FGL_J1635.3+4258_daily_bin71.fits scfile=/scratch/kocevski/697113/ft2_4FGL_J1635.3+4258_daily_bin71.fits outfile=/scratch/kocevski/697113/cmap_257731201_257990401_4FGL_J1635.3+4258_daily_bin71.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.57
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/697113/ft1_filtered_4FGL_J1635.3+4258_daily_bin71.fits scfile=/scratch/kocevski/697113/ft2_4FGL_J1635.3+4258_daily_bin71.fits outfile=/scratch/kocevski/697113/cmap_HighResolution_257731201_257990401_4FGL_J1635.3+4258_daily_bin71.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.56
user 0.39
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/697113/ft1_filtered_4FGL_J1635.3+4258_daily_bin71.fits', '/scratch/kocevski/697113/ft2_4FGL_J1635.3+4258_daily_bin71.fits', expMap='/scratch/kocevski/697113/expmap_257731201_257990401_4FGL_J1635.3+4258_daily_bin71.fits', expCube='/scratch/kocevski/697113/ltcube_257731201_257990401_4FGL_J1635.3+4258_daily_bin71.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/697113/Model_4FGL_J1635.3+4258_daily_bin71.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/697113/ft1_filtered_4FGL_J1635.3+4258_daily_bin71.fits
Spacecraft file(s): /scratch/kocevski/697113/ft2_4FGL_J1635.3+4258_daily_bin71.fits
Exposure map: /scratch/kocevski/697113/expmap_257731201_257990401_4FGL_J1635.3+4258_daily_bin71.fits
Exposure cube: /scratch/kocevski/697113/ltcube_257731201_257990401_4FGL_J1635.3+4258_daily_bin71.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/697113/Model_4FGL_J1635.3+4258_daily_bin71.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 5506.45936529

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.727       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.8850       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .45492       1.0000         .10000E-03   10000.    
    10 'norm      '    24.605       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.209       1.0000         .10000E-03   10000.    
    13 'norm      '    .10046E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.4851       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .98270       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.5588       1.0000         .10000E-03   10000.    
    18 'Prefactor '    18.168       1.0000         .10000E-03   10000.    
    19 'norm      '    2.5139       1.0000         .10000E-03   10000.    
    20 'norm      '    .11652       1.0000         .10000E-03   10000.    
    21 'Prefactor '    15.742       1.0000         .10000E-03   10000.    
    22 'norm      '    1.3493       1.0000         .10000E-03   10000.    
    23 'norm      '    14.878       1.0000         .10000E-03   10000.    
    24 'norm      '    2.8047       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    32.263       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .60346       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.2502       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=   5505.241     FROM MIGRAD    STATUS=CONVERGED    695 CALLS     2600 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.726        30.455       -.24102E-05   -.66392E-05
   2  Prefactor     .10000E-03    38.448        .27405E-04** at limit **
   3  Prefactor     4.8851        4.5226       -.25529E-05   -.27139E-03
   4  Prefactor     .10000E-03    4.0404       -.17406E-06** at limit **
   5  Prefactor     .10000E-03    13.990       -.28561E-05** at limit **
   6  Prefactor     .10000E-03    2.9882       -.13463E-06** at limit **
   7  Prefactor     .10000E-03    2.3418       -.18291E-07** at limit **
   8  norm          .10000E-03    15.490        .49238E-05** at limit **
   9  norm          .45496        .17988        .42582E-07    .28454E-02
  10  norm          24.603        23.883       -.58258E-06    .57365E-04
  11  Prefactor     .10000E-03    24.860       -.11941E-04** at limit **
  12  Prefactor     10.209        5.7732        .89375E-06    .17811E-03
  13  norm          .10000E-03    51.924       -.21529E-04** at limit **
  14  Prefactor     3.4849        1.6274       -.49036E-07    .75907E-03
  15  Prefactor     .10000E-03    1.1375       -.44508E-07** at limit **
  16  Prefactor     .98029        3.6221       -.17160E-05   -.10140E-02
  17  Prefactor     1.5588        3.3086        .95018E-07   -.61776E-03
  18  Prefactor     18.170        14.507        .12335E-06    .78153E-04
  19  norm          2.5139        1.9377       -.86481E-08   -.10874E-04
  20  norm          .11780        .77602       -.47448E-06   -.81725E-03
  21  Prefactor     15.742        10.179        .13362E-06    .16979E-03
  22  norm          1.3491        .90155       -.10738E-06   -.58252E-04
  23  norm          14.879        11.368       -.99500E-07   -.82196E-05
  24  norm          2.8046        1.7715       -.57400E-07    .27291E-04
  25  Prefactor     .10000E-03    2.0488        .30920E-08** at limit **
  26  norm          32.263        11.765       -.33538E-07    .17660E-04
  27  Normalizat    .60349        .21948        .12231E-05    .17810E-03
  28  Prefactor     1.2502        .19318        .73783E-06    .23491E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.7261
  Prefactor  = 0.0001
  Prefactor  = 4.88514
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.454955
  norm       = 24.6033
  Prefactor  = 0.0001
  Prefactor  = 10.2091
  norm       = 0.0001
  Prefactor  = 3.4849
  Prefactor  = 0.0001
  Prefactor  = 0.980285
  Prefactor  = 1.55881
  Prefactor  = 18.1695
  norm       = 2.51386
  norm       = 0.117797
  Prefactor  = 15.7417
  norm       = 1.34915
  norm       = 14.8787
  norm       = 2.80463
  Prefactor  = 0.0001
  norm       = 32.263
  Normalizat = 0.603494
  Prefactor  = 1.25017
 **********
 **   18 **HESSE 
 **********

 FCN=   5505.241     FROM HESSE     STATUS=OK           529 CALLS     3129 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.726        30.480        .12233E-03   -1.5053    
   2  Prefactor     .10000E-03    37.717        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.8851        4.5522        .14398E-03   -1.5266    
   4  Prefactor     .10000E-03    4.0710        .14561E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    14.028        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.0004        .12524E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.3980        .22150E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    15.501        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .45496        .17947        .18065E-04   -1.5573    
  10  norm          24.603        23.859        .80756E-04   -1.4716    
  11  Prefactor     .10000E-03    25.337        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     10.209        5.7601        .12540E-03   -1.5069    
  13  norm          .10000E-03    51.554        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.4849        1.4637        .52558E-04   -1.5335    
  15  Prefactor     .10000E-03    1.9160        .13411E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .98029        3.5534        .24627E-03   -1.5510    
  17  Prefactor     1.5588        3.2690        .18309E-03   -1.5458    
  18  Prefactor     18.170        14.424        .93966E-04   -1.4855    
  19  norm          2.5139        1.9329        .86793E-04   -1.5391    
  20  norm          .11780        1.3708        .11738E-02   -1.5639    
  21  Prefactor     15.742        10.035        .10095E-03   -1.4914    
  22  norm          1.3491        .88955        .53980E-04   -1.5476    
  23  norm          14.879        11.367        .10384E-03   -1.4936    
  24  norm          2.8046        1.7694        .75213E-04   -1.5373    
  25  Prefactor     .10000E-03    2.0629        .10371E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          32.263        11.763        .70544E-04   -1.4571    
  27  Normalizat    .60349        .25199        .34575E-03   -1.0784    
  28  Prefactor     1.2502        .22668        .22622E-03   -.84801    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.14016e-09
Minuit parameter uncertainties:
  1  30.5244
  2  2.72478e-05
  3  4.55251
  4  1.05503e-05
  5  2.2294e-05
  6  5.51141e-06
  7  2.60895e-06
  8  1.06483e-05
  9  0.179466
  10  23.8686
  11  0.000177184
  12  5.76039
  13  1.9739e-05
  14  1.46374
  15  3.45196e-06
  16  3.55418
  17  3.26937
  18  14.4266
  19  1.93296
  20  0.803364
  21  10.0359
  22  0.889558
  23  11.3691
  24  1.76945
  25  1.50875e-06
  26  11.7634
  27  0.252471
  28  0.226853
Done.

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

Extracting fit parameters...

4FGL J1635.3+4258
   Spectrum: LogParabola
311         norm:  2.460e+01  2.387e+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:  1.250e+00  2.269e-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:  6.035e-01  2.525e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.81
Ra Dec: 248.846 42.976
Photon Index (Fixed Index): 1.82 +/- 0.00
Photon Flux (Fixed Index): 1.45e-08 +/- 1.41e-08
Energy Flux (Fixed Index): 1.76e-05 +/- 1.71e-05

TS (Fixed Index): 1.81
Ra Dec: 248.846 42.976
Photon Flux Upper Limit: 5.00e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.08e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/697113/likelihoodResults_257731201_257990401_4FGL_J1635.3+4258_daily_bin71.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) = 5504.3137793
delta logL = 0.927362681212

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5504.30876965
delta logL = 0.932372325431

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    16.525       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9387       1.0000          .0000       5.0000    
     3 'Normalizat'    .59151       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2457       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=   5504.309     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      298 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          16.519        18.662        .98525E-04    .16376E-02
   2  alpha         2.9390        .77963        .12046E-01    .25691E-03
   3  Normalizat    .59112        .24185        .34849E-03   -.43039E-03
   4  Prefactor     1.2461        .22210        .22611E-03   -.92002E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 16.5195
  alpha      = 2.93904
  Normalizat = 0.591121
  Prefactor  = 1.24608
 **********
 **   18 **HESSE 
 **********

 FCN=   5504.309     FROM HESSE     STATUS=OK            23 CALLS      321 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          16.519        17.326        .19705E-04   -1.4895    
   2  alpha         2.9390        .72544        .48183E-03    .17653    
   3  Normalizat    .59112        .24187        .13940E-04   -1.0836    
   4  Prefactor     1.2461        .22217        .45221E-04   -.84925    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.81897e-09
Minuit parameter uncertainties:
  1  17.3315
  2  0.736379
  3  0.242302
  4  0.222342
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/697113': 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) = 5504.30876825
delta logL = 0.932373729636

Extracting fit parameters...

4FGL J1635.3+4258
   Spectrum: LogParabola
311         norm:  1.652e+01  1.733e+01  1.000e-04  1.000e+04 ( 1.000e-13)
312        alpha:  2.939e+00  7.364e-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:  1.246e+00  2.223e-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:  5.911e-01  2.423e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.67
Ra Dec: 248.846 42.976
Photon Index (Free Index): 2.94 +/- 0.74
Photon Flux (Free Index): 3.89e-08 +/- 3.09e-08
Energy Flux (Free Index): 1.78e-05 +/- 1.24e-05

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/697113/cmap_HighResolution_257731201_257990401_4FGL_J1635.3+4258_daily_bin71.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.08e-05', comment='SUCCESS', photon_flux='1.45e-08', energy_flux2='1.78e-05', photon_flux_error='1.41e-08', dlogl='9.32e-01', energy_flux='1.76e-05', photon_flux2='3.89e-08', job_status='DONE', time_completed='2021-09-14 22:26:32.270665', photon_index_error2='0.74', photon_index2='2.94', ts='1.81', fit_tolerance='1e-08', GAL='1.25', photon_index_error='0.00', photon_flux_upper_limit='5.00e-08', energy_flux_error2='1.24e-05', EG='0.60', time_epoch_completed='1631683592.27', return_code='0', job_id='697113', GAL2='1.25', EG2='0.59', return_code2='0', energy_flux_error='1.71e-05', photon_flux_error2='3.09e-08', ts2='3.67', photon_index='1.82' WHERE bin_id='71' AND source_name='4FGL J1635.3+4258' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 14 22:26:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0160>
Subject: Job 697113: <4FGL_J1635.3+4258_daily_bin71> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1635.3+4258_daily_bin71 248.846 42.9756 257731201 257990401 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 :                                   749.14 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             274.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   965 sec.
    Turnaround time :                            971 sec.

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

