/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 = 6284
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1635.3+4258_daily_bin533
RA = 248.846, Dec = 42.9756
tmin = 377481601, tmax = 377740801
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='699025', job_status='RUN', time_executed='2021-09-14 22:18:31.341732', time_epoch_executed='1631683111.34' WHERE source_name='4FGL J1635.3+4258' and cadence='daily' and bin_id='533'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/699025

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

Retrieving the FT1 file...

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

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

Retrieving 36 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/699025/ft1_4FGL_J1635.3+4258_daily_bin533.fits


Retrieving the FT1 file...

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

Retrieving 40 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/699025/ft2_4FGL_J1635.3+4258_daily_bin533.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/699025/ft1_4FGL_J1635.3+4258_daily_bin533.fits outfile=/scratch/kocevski/699025/ft1_filteredMKT_4FGL_J1635.3+4258_daily_bin533.fits ra=248.846 dec=42.9756 rad=12.0 tmin=377481601.0 tmax=377740801.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 3.17
user 2.96
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/699025/ft2_4FGL_J1635.3+4258_daily_bin533.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/699025/ft1_filteredMKT_4FGL_J1635.3+4258_daily_bin533.fits evtable="EVENTS" outfile="/scratch/kocevski/699025/ft1_filtered_4FGL_J1635.3+4258_daily_bin533.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/699025/ft1_filtered_4FGL_J1635.3+4258_daily_bin533.fits" evtable="EVENTS" scfile=/scratch/kocevski/699025/ft2_4FGL_J1635.3+4258_daily_bin533.fits sctable="SC_DATA" outfile=/scratch/kocevski/699025/ltcube_377481601_377740801_4FGL_J1635.3+4258_daily_bin533.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/699025/ft2_4FGL_J1635.3+4258_daily_bin533.fits
.....................!
real 11.19
user 10.81
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/699025/ft1_filtered_4FGL_J1635.3+4258_daily_bin533.fits evtable="EVENTS" scfile=/scratch/kocevski/699025/ft2_4FGL_J1635.3+4258_daily_bin533.fits sctable="SC_DATA" expcube=/scratch/kocevski/699025/ltcube_377481601_377740801_4FGL_J1635.3+4258_daily_bin533.fits outfile=/scratch/kocevski/699025/expmap_377481601_377740801_4FGL_J1635.3+4258_daily_bin533.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/699025/ltcube_377481601_377740801_4FGL_J1635.3+4258_daily_bin533.fits
.....................!
real 191.59
user 185.48
sys 5.56

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/699025/ft1_filtered_4FGL_J1635.3+4258_daily_bin533.fits scfile=/scratch/kocevski/699025/ft2_4FGL_J1635.3+4258_daily_bin533.fits outfile=/scratch/kocevski/699025/cmap_377481601_377740801_4FGL_J1635.3+4258_daily_bin533.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/699025/ft1_filtered_4FGL_J1635.3+4258_daily_bin533.fits scfile=/scratch/kocevski/699025/ft2_4FGL_J1635.3+4258_daily_bin533.fits outfile=/scratch/kocevski/699025/cmap_HighResolution_377481601_377740801_4FGL_J1635.3+4258_daily_bin533.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.54
user 0.39
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/699025/ft1_filtered_4FGL_J1635.3+4258_daily_bin533.fits', '/scratch/kocevski/699025/ft2_4FGL_J1635.3+4258_daily_bin533.fits', expMap='/scratch/kocevski/699025/expmap_377481601_377740801_4FGL_J1635.3+4258_daily_bin533.fits', expCube='/scratch/kocevski/699025/ltcube_377481601_377740801_4FGL_J1635.3+4258_daily_bin533.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/699025/Model_4FGL_J1635.3+4258_daily_bin533.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/699025/ft1_filtered_4FGL_J1635.3+4258_daily_bin533.fits
Spacecraft file(s): /scratch/kocevski/699025/ft2_4FGL_J1635.3+4258_daily_bin533.fits
Exposure map: /scratch/kocevski/699025/expmap_377481601_377740801_4FGL_J1635.3+4258_daily_bin533.fits
Exposure cube: /scratch/kocevski/699025/ltcube_377481601_377740801_4FGL_J1635.3+4258_daily_bin533.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/699025/Model_4FGL_J1635.3+4258_daily_bin533.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) = 5362.79045217

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10161E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11380E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.894       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.8890       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10132E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    42.295       1.0000         .10000E-03   10000.    
     9 'norm      '    1.9077       1.0000         .10000E-03   10000.    
    10 'norm      '    15.588       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .29887E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .68604E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    31.901       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.5250       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10241E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10140E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    16.890       1.0000         .10000E-03   10000.    
    19 'norm      '    6.5671       1.0000         .10000E-03   10000.    
    20 'norm      '    5.1692       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10513E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10127E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.4995       1.0000         .10000E-03   10000.    
    24 'norm      '    1.2220       1.0000         .10000E-03   10000.    
    25 'Prefactor '    4.4656       1.0000         .10000E-03   10000.    
    26 'norm      '    .10043E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.3429       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .46199       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=   5362.782     FROM MIGRAD    STATUS=CONVERGED    710 CALLS     3517 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.5037       -.13458E-06** at limit **
   2  Prefactor     .10000E-03    138.60        .13113E-05** at limit **
   3  Prefactor     .10000E-03    1.9892        .91049E-07** at limit **
   4  Prefactor     .10000E-03    3.6114        .32985E-06** at limit **
   5  Prefactor     16.865        27.918        .33543E-06    .16837E-04
   6  Prefactor     6.8772        7.7348        .81551E-07   -.42868E-04
   7  Prefactor     .10000E-03    3.1137        .44009E-06** at limit **
   8  norm          42.306        26.844        .29893E-07   -.10948E-04
   9  norm          1.9078        .30246       -.11332E-06    .89148E-03
  10  norm          15.593        15.290        .23616E-06    .44599E-04
  11  Prefactor     .10000E-03    75.217       -.56234E-05** at limit **
  12  Prefactor     .10017E-03    4.5990       -.17917E-05** at limit **
  13  norm          31.896        38.890        .27508E-06   -.23857E-05
  14  Prefactor     2.5227        1.6514       -.59269E-07   -.37731E-03
  15  Prefactor     .10000E-03    .87096        .32735E-06** at limit **
  16  Prefactor     .10000E-03    1.9527        .17098E-07** at limit **
  17  Prefactor     .10000E-03    1.7701        .16038E-06** at limit **
  18  Prefactor     16.892        12.639        .12377E-06    .13358E-04
  19  norm          6.5671        2.7013        .14021E-08   -.16624E-03
  20  norm          5.1664        1.5679       -.15525E-07   -.94948E-05
  21  Prefactor     .10000E-03    5.9640        .73547E-07** at limit **
  22  norm          .10000E-03    .39421        .15775E-06** at limit **
  23  norm          1.5056        11.989        .44375E-05    .15711E-03
  24  norm          1.2219        1.5633        .67015E-07   -.52106E-04
  25  Prefactor     4.4656        3.6029        .20026E-07   -.18201E-04
  26  norm          .10000E-03    5.5503        .36953E-06** at limit **
  27  Normalizat    1.3440        .21998       -.82830E-06   -.49105E-04
  28  Prefactor     .46098        .17951       -.81320E-06   -.80509E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.8646
  Prefactor  = 6.87721
  Prefactor  = 0.0001
  norm       = 42.3061
  norm       = 1.90782
  norm       = 15.5934
  Prefactor  = 0.0001
  Prefactor  = 0.000100174
  norm       = 31.896
  Prefactor  = 2.5227
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.8917
  norm       = 6.56715
  norm       = 5.16643
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.50559
  norm       = 1.22192
  Prefactor  = 4.46562
  norm       = 0.0001
  Normalizat = 1.34399
  Prefactor  = 0.460978
 **********
 **   18 **HESSE 
 **********

 FCN=   5362.782     FROM HESSE     STATUS=OK           517 CALLS     4034 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.5067        .16783E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    139.31        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.0227        .10087E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.6154        .13568E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     16.865        27.967        .97444E-04   -1.4886    
   6  Prefactor     6.8772        7.7492        .15286E-03   -1.5183    
   7  Prefactor     .10000E-03    3.2250        .25318E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          42.306        26.834        .61641E-04   -1.4406    
   9  norm          1.9078        .30072        .14278E-04   -1.5432    
  10  norm          15.593        15.299        .10144E-03   -1.4918    
  11  Prefactor     .10000E-03    74.600        .42783E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10017E-03    36.995        .23226E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          31.896        38.853        .70942E-04   -1.4578    
  14  Prefactor     2.5227        1.6436        .67585E-04   -1.5390    
  15  Prefactor     .10000E-03    .91326        .13357E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.9701        .99810E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    1.7927        .95158E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     16.892        12.636        .97455E-04   -1.4886    
  19  norm          6.5671        2.6973        .73917E-04   -1.5195    
  20  norm          5.1664        1.5543        .47539E-04   -1.5253    
  21  Prefactor     .10000E-03    6.0327        .17445E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    .53015        .88882E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.5056        12.492        .17486E-02   -1.5463    
  24  norm          1.2219        1.5318        .99045E-04   -1.5487    
  25  Prefactor     4.4656        3.6040        .12170E-03   -1.5285    
  26  norm          .10000E-03    5.6283        .16865E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.3440        .26132        .23824E-03   -.82263    
  28  Prefactor     .46098        .20990        .32517E-03   -1.1380    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.96382e-09
Minuit parameter uncertainties:
  1  1.05325e-05
  2  0.000613756
  3  9.35288e-06
  4  4.28063e-06
  5  27.9892
  6  7.75037
  7  3.22097e-05
  8  26.8415
  9  0.300718
  10  15.3029
  11  0.000291521
  12  0.00507858
  13  38.8841
  14  1.64367
  15  1.88333e-05
  16  5.93792e-06
  17  8.91627e-06
  18  12.6384
  19  2.69739
  20  1.55431
  21  1.1239e-05
  22  2.06893e-06
  23  8.6757
  24  1.53189
  25  3.6042
  26  2.504e-05
  27  0.261576
  28  0.210247
Done.

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

Extracting fit parameters...

4FGL J1635.3+4258
   Spectrum: LogParabola
311         norm:  1.559e+01  1.530e+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:  4.610e-01  2.102e-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.344e+00  2.616e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.03
Ra Dec: 248.846 42.976
Photon Index (Fixed Index): 1.82 +/- 0.00
Photon Flux (Fixed Index): 9.18e-09 +/- 9.01e-09
Energy Flux (Fixed Index): 1.12e-05 +/- 1.10e-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) = 5362.76274942
delta logL = 0.0193682010631

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5362.76139395
delta logL = 0.0207236678916

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.883       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1710       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3419       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .46094       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.

 FCN=   5362.761     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      236 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.883        568.64        .25955E-02    .17722E-03
   2  alpha         2.1710        2.7178        .41611       -.76620E-05
   3  Normalizat    1.3418        .15901        .53909E-01    .12335E-03
   4  Prefactor     .46098        .90605E-01    .73409E-01    .97325E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 14.883
  alpha      = 2.17101
  Normalizat = 1.34184
  Prefactor  = 0.460976
 **********
 **   18 **HESSE 
 **********

 FCN=   5362.761     FROM HESSE     STATUS=OK            29 CALLS      265 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.883        15.964        .10382E-03   -1.4936    
   2  alpha         2.1710        1.6387        .34418E-01   -.13198    
   3  Normalizat    1.3418        .24213        .23835E-03   -.82326    
   4  Prefactor     .46098        .20290        .32509E-03   -1.1380    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.34315e-10
Minuit parameter uncertainties:
  1  15.9684
  2  1.79037
  3  0.242331
  4  0.203221
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/699025': 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) = 5362.76139394
delta logL = 0.0207236834858

Extracting fit parameters...

4FGL J1635.3+4258
   Spectrum: LogParabola
311         norm:  1.488e+01  1.597e+01  1.000e-04  1.000e+04 ( 1.000e-13)
312        alpha:  2.171e+00  1.790e+00  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:  4.610e-01  2.032e-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.342e+00  2.423e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.07
Ra Dec: 248.846 42.976
Photon Index (Free Index): 2.17 +/- 1.79
Photon Flux (Free Index): 1.22e-08 +/- 2.09e-08
Energy Flux (Free Index): 1.06e-05 +/- 1.03e-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/699025/cmap_HighResolution_377481601_377740801_4FGL_J1635.3+4258_daily_bin533.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.18e-09', energy_flux2='1.06e-05', photon_flux_error='9.01e-09', dlogl='2.07e-02', energy_flux='1.12e-05', photon_flux2='1.22e-08', job_status='DONE', time_completed='2021-09-14 22:30:44.120663', photon_index_error2='1.79', photon_index2='2.17', ts='4.03', fit_tolerance='1e-08', GAL='0.46', photon_index_error='0.00', energy_flux_error2='1.03e-05', EG='1.34', time_epoch_completed='1631683844.12', return_code='0', job_id='699025', GAL2='0.46', EG2='1.34', return_code2='0', energy_flux_error='1.10e-05', photon_flux_error2='2.09e-08', ts2='4.07', photon_index='1.82' WHERE bin_id='533' AND source_name='4FGL J1635.3+4258' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 14 22:30:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 699025: <4FGL_J1635.3+4258_daily_bin533> in cluster <slac> Done

Job <4FGL_J1635.3+4258_daily_bin533> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 14 22:15:43 2021
Job was executed on host(s) <bullet0031>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 14 22:18:16 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:18:16 2021
Terminated at Tue Sep 14 22:30:44 2021
Results reported at Tue Sep 14 22:30:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1635.3+4258_daily_bin533 248.846 42.9756 377481601 377740801 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 :                                   731.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             302.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   748 sec.
    Turnaround time :                            901 sec.

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

