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


Performing analysis on: 4FGL_J1436.9+5638_daily_bin808
RA = 219.229, Dec = 56.649
tmin = 448761601, tmax = 449020801
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='630442', job_status='RUN', time_executed='2021-09-10 01:11:47.093505', time_epoch_executed='1631261507.09' WHERE source_name='4FGL J1436.9+5638' and cadence='daily' and bin_id='808'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/630442

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/630442/ft1_4FGL_J1436.9+5638_daily_bin808.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/630442/ft2_4FGL_J1436.9+5638_daily_bin808.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/630442/ft1_4FGL_J1436.9+5638_daily_bin808.fits outfile=/scratch/kocevski/630442/ft1_filteredMKT_4FGL_J1436.9+5638_daily_bin808.fits ra=219.229 dec=56.649 rad=12.0 tmin=448761601.0 tmax=449020801.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 5.76
user 5.49
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/630442/ft2_4FGL_J1436.9+5638_daily_bin808.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/630442/ft2_4FGL_J1436.9+5638_daily_bin808.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/630442/ft1_filteredMKT_4FGL_J1436.9+5638_daily_bin808.fits evtable="EVENTS" outfile="/scratch/kocevski/630442/ft1_filtered_4FGL_J1436.9+5638_daily_bin808.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.48
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/630442/ft1_filtered_4FGL_J1436.9+5638_daily_bin808.fits" evtable="EVENTS" scfile=/scratch/kocevski/630442/ft2_4FGL_J1436.9+5638_daily_bin808.fits sctable="SC_DATA" outfile=/scratch/kocevski/630442/ltcube_448761601_449020801_4FGL_J1436.9+5638_daily_bin808.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/630442/ft2_4FGL_J1436.9+5638_daily_bin808.fits
.....................!
real 11.91
user 11.56
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/630442/ft1_filtered_4FGL_J1436.9+5638_daily_bin808.fits evtable="EVENTS" scfile=/scratch/kocevski/630442/ft2_4FGL_J1436.9+5638_daily_bin808.fits sctable="SC_DATA" expcube=/scratch/kocevski/630442/ltcube_448761601_449020801_4FGL_J1436.9+5638_daily_bin808.fits outfile=/scratch/kocevski/630442/expmap_448761601_449020801_4FGL_J1436.9+5638_daily_bin808.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/630442/ltcube_448761601_449020801_4FGL_J1436.9+5638_daily_bin808.fits
.....................!
real 189.87
user 185.60
sys 3.92

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

Setting source of interest to:
4FGL J1436.9+5638 @ 219.229 56.649

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/630442/ft1_filtered_4FGL_J1436.9+5638_daily_bin808.fits scfile=/scratch/kocevski/630442/ft2_4FGL_J1436.9+5638_daily_bin808.fits outfile=/scratch/kocevski/630442/cmap_448761601_449020801_4FGL_J1436.9+5638_daily_bin808.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=219.229 yref=56.649 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.66
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/630442/ft1_filtered_4FGL_J1436.9+5638_daily_bin808.fits scfile=/scratch/kocevski/630442/ft2_4FGL_J1436.9+5638_daily_bin808.fits outfile=/scratch/kocevski/630442/cmap_HighResolution_448761601_449020801_4FGL_J1436.9+5638_daily_bin808.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=219.229 yref=56.649 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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/630442/ft1_filtered_4FGL_J1436.9+5638_daily_bin808.fits evtable="EVENTS" scfile=/scratch/kocevski/630442/ft2_4FGL_J1436.9+5638_daily_bin808.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/630442/Model_4FGL_J1436.9+5638_daily_bin808.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/630442/ft1_filtered_4FGL_J1436.9+5638_daily_bin808.fits.....................!
real 37.46
user 31.79
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/630442/ft1_filtered_4FGL_J1436.9+5638_daily_bin808.fits', '/scratch/kocevski/630442/ft2_4FGL_J1436.9+5638_daily_bin808.fits', expMap='/scratch/kocevski/630442/expmap_448761601_449020801_4FGL_J1436.9+5638_daily_bin808.fits', expCube='/scratch/kocevski/630442/ltcube_448761601_449020801_4FGL_J1436.9+5638_daily_bin808.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/630442/Model_4FGL_J1436.9+5638_daily_bin808.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1436.9+5638'

4FGL J1436.9+5638
   Spectrum: PowerLaw
357    Prefactor:  8.188e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
358        Index:  1.896e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
359        Scale:  2.649e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/630442/ft1_filtered_4FGL_J1436.9+5638_daily_bin808.fits
Spacecraft file(s): /scratch/kocevski/630442/ft2_4FGL_J1436.9+5638_daily_bin808.fits
Exposure map: /scratch/kocevski/630442/expmap_448761601_449020801_4FGL_J1436.9+5638_daily_bin808.fits
Exposure cube: /scratch/kocevski/630442/ltcube_448761601_449020801_4FGL_J1436.9+5638_daily_bin808.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/630442/Model_4FGL_J1436.9+5638_daily_bin808.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) = 3186.47133115

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    6.2630       1.0000         .10000E-03   10000.    
     3 'Prefactor '    31.026       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.6738       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10059E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    28.961       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1289.6       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.7955       1.0000         .10000E-03   10000.    
    14 'Prefactor '    17.821       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .13597E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11144E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    77.743       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    37.124       1.0000         .10000E-03   10000.    
    20 'Prefactor '    50.282       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    15.780       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10141E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .13809E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    11.937       1.0000         .10000E-03   10000.    
    30 'Prefactor '    101.55       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    32 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.1838       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .61544       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7060E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3186.455     FROM MIGRAD    STATUS=CONVERGED    896 CALLS     4797 TOTAL
                     EDM=   .77E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.1287       -.91889E-07** at limit **
   2  norm          6.2616        5.6553       -.61079E-07   -.29935E-04
   3  Prefactor     30.963        53.895        .90330E-05   -.30580E-04
   4  Prefactor     4.6726        6.1577        .11148E-05   -.29855E-04
   5  Prefactor     .10000E-03    31.675        .14791E-05** at limit **
   6  Prefactor     .10000E-03    6.7968        .10348E-06** at limit **
   7  norm          .10000E-03    45.709        .62612E-06** at limit **
   8  norm          .10000E-03    2.6663       -.18297E-06** at limit **
   9  Prefactor     28.959        29.001       -.19672E-07   -.32701E-05
  10  Prefactor     1289.2        994.38        .15095E-04   -.48233E-05
  11  Prefactor     .10000E-03    22.718       -.11060E-05** at limit **
  12  Prefactor     .10000E-03    20.791        .29587E-06** at limit **
  13  Prefactor     1.7961        8.3319        .11965E-04   -.26350E-04
  14  Prefactor     17.800        31.072       -.15823E-05   -.67044E-05
  15  Prefactor     .10000E-03    2.4643       -.25502E-06** at limit **
  16  Prefactor     .10000E-03    20.540        .37518E-06** at limit **
  17  Prefactor     77.733        43.829        .43484E-06    .10098E-04
  18  Prefactor     .10000E-03    73.332       -.47120E-05** at limit **
  19  Prefactor     37.126        46.019        .33037E-07   -.44462E-05
  20  Prefactor     50.271        31.029        .57513E-06    .39170E-04
  21  Prefactor     .10000E-03    20.001        .12156E-05** at limit **
  22  Prefactor     .10000E-03    21.849       -.70141E-06** at limit **
  23  norm          .10000E-03    1.5345        .61172E-07** at limit **
  24  Prefactor     .10000E-03    13.060        .47382E-06** at limit **
  25  Prefactor     15.781        11.106        .38536E-06    .16216E-04
  26  Prefactor     .10000E-03    12.878        .18779E-06** at limit **
  27  Prefactor     .10000E-03    24.296       -.10921E-05** at limit **
  28  Prefactor     .10000E-03    95.451        .27561E-05** at limit **
  29  norm          11.936        5.9201        .30837E-07   -.14797E-04
  30  Prefactor     101.49        128.37        .76805E-05   -.11388E-04
  31  Prefactor     .10000E-03    3.8553        .66182E-07** at limit **
  32  norm          .10000E-03    5.0439        .58246E-07** at limit **
  33  Normalizat    1.1849        .24380        .32344E-05    .28655E-04
  34  Prefactor     .61427        .26769       -.95811E-05   -.66210E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 6.2616
  Prefactor  = 30.9629
  Prefactor  = 4.67261
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 28.959
  Prefactor  = 1289.21
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.79611
  Prefactor  = 17.8003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 77.7326
  Prefactor  = 0.0001
  Prefactor  = 37.1259
  Prefactor  = 50.2714
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.7811
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.9358
  Prefactor  = 101.486
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.18491
  Prefactor  = 0.614272
 **********
 **   18 **HESSE 
 **********

 FCN=   3186.455     FROM HESSE     STATUS=OK           718 CALLS     5515 TOTAL
                     EDM=   .89E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.1307        .15716E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          6.2616        5.6541        .12336E-03   -1.5207    
   3  Prefactor     30.963        53.991        .71933E-04   -1.4595    
   4  Prefactor     4.6726        6.1713        .77061E-03   -1.5276    
   5  Prefactor     .10000E-03    31.695        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.8019        .14356E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    45.709        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.7199        .90003E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     28.959        29.004        .74447E-04   -1.4631    
  10  Prefactor     1289.2        994.50        .59674E-04   -.83629    
  11  Prefactor     .10000E-03    22.725        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    20.797        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.7961        8.4056        .15178E-02   -1.5440    
  14  Prefactor     17.800        31.160        .94876E-04   -1.4864    
  15  Prefactor     .10000E-03    2.5225        .17239E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    20.569        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     77.733        43.864        .45544E-04   -1.3942    
  18  Prefactor     .10000E-03    73.410        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     37.126        46.013        .65778E-04   -1.4489    
  20  Prefactor     50.271        31.007        .56555E-04   -1.4289    
  21  Prefactor     .10000E-03    20.062        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    21.912        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    1.5857        .13638E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    13.131        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     15.781        11.102        .10082E-03   -1.4913    
  26  Prefactor     .10000E-03    13.062        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    24.389        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    96.016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          11.936        5.9207        .92470E-04   -1.5017    
  30  Prefactor     101.49        128.40        .19949E-03   -1.3690    
  31  Prefactor     .10000E-03    3.8580        .10825E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  norm          .10000E-03    5.0474        .12382E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    1.1849        .28088        .21161E-03   -.87071    
  34  Prefactor     .61427        .30347        .31844E-03   -1.0699    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.92315e-10
Minuit parameter uncertainties:
  1  1.44248e-05
  2  5.65458
  3  54.0759
  4  6.17212
  5  0.000128888
  6  1.90082e-07
  7  9.6829e-06
  8  1.3359e-05
  9  29.0181
  10  1009.71
  11  1.43786e-06
  12  1.82093e-05
  13  7.77264
  14  31.1885
  15  1.93703e-05
  16  2.41748e-05
  17  43.8825
  18  2.24633e-06
  19  46.0569
  20  31.0173
  21  1.78724e-05
  22  1.70412e-06
  23  3.46933e-06
  24  3.03052e-05
  25  11.1032
  26  6.02747e-05
  27  3.12395e-05
  28  1.41195e-05
  29  5.92104
  30  128.754
  31  3.37778e-06
  32  2.69514e-06
  33  0.281242
  34  0.304286
Done.

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

Extracting fit parameters...

4FGL J1436.9+5638
   Spectrum: PowerLaw
357    Prefactor:  3.713e+01  4.606e+01  1.000e-04  1.000e+04 ( 1.000e-14)
358        Index:  1.896e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
359        Scale:  2.649e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
703    Prefactor:  6.143e-01  3.043e-01  0.000e+00  1.000e+01 ( 1.000e+00)
704        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
705        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
702   Normalization:  1.185e+00  2.812e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.30
Ra Dec: 219.229 56.649
Photon Index (Fixed Index): 1.90 +/- 0.00
Photon Flux (Fixed Index): 2.06e-08 +/- 2.56e-08
Energy Flux (Fixed Index): 1.87e-05 +/- 2.32e-05

TS (Fixed Index): 1.30
Ra Dec: 219.229 56.649
Photon Flux Upper Limit: 9.63e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.15e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/630442/likelihoodResults_448761601_449020801_4FGL_J1436.9+5638_daily_bin808.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) = 3186.18482987
delta logL = 0.269979461507

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3186.16781134
delta logL = 0.286997997173

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.943       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6069       1.0000          .0000       10.000    
     3 'Normalizat'    1.1595       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .63021       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7060E+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=   3186.168     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      308 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.914        42.260        .10727E-03   -.17932E-03
   2  Index         2.6085        1.3369        .47648E-02    .32801E-03
   3  Normalizat    1.1586        .27105        .21353E-03    .26359E-03
   4  Prefactor     .63095        .29886        .31434E-03   -.11000E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.9137
  Index      = 2.60851
  Normalizat = 1.15857
  Prefactor  = 0.630949
 **********
 **   18 **HESSE 
 **********

 FCN=   3186.168     FROM HESSE     STATUS=OK            25 CALLS      333 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.914        32.901        .42907E-05   -1.4962    
   2  Index         2.6085        1.0458        .95295E-03   -.49872    
   3  Normalizat    1.1586        .26943        .42707E-04   -.87893    
   4  Prefactor     .63095        .29786        .12574E-04   -1.0630    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.44219e-09
Minuit parameter uncertainties:
  1  32.9436
  2  1.05595
  3  0.269753
  4  0.298611
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/630442': 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) = 3186.16780444
delta logL = 0.287004888998

Extracting fit parameters...

4FGL J1436.9+5638
   Spectrum: PowerLaw
357    Prefactor:  1.391e+01  3.294e+01  1.000e-04  1.000e+04 ( 1.000e-14)
358        Index:  2.609e+00  1.056e+00  0.000e+00  1.000e+01 (-1.000e+00)
359        Scale:  2.649e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
703    Prefactor:  6.309e-01  2.986e-01  0.000e+00  1.000e+01 ( 1.000e+00)
704        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
705        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
702   Normalization:  1.159e+00  2.698e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.88
Ra Dec: 219.229 56.649
Photon Index (Free Index): 2.61 +/- 1.06
Photon Flux (Free Index): 4.46e-08 +/- 5.50e-08
Energy Flux (Free Index): 1.16e-05 +/- 1.25e-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/630442/cmap_HighResolution_448761601_449020801_4FGL_J1436.9+5638_daily_bin808.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.15e-03', comment='SUCCESS', photon_flux='2.06e-08', energy_flux2='1.16e-05', photon_flux_error='2.56e-08', dlogl='2.87e-01', energy_flux='1.87e-05', photon_flux2='4.46e-08', job_status='DONE', time_completed='2021-09-10 01:24:24.256700', photon_index_error2='1.06', photon_index2='2.61', ts='1.30', fit_tolerance='1e-08', GAL='0.61', photon_index_error='0.00', photon_flux_upper_limit='9.63e-08', energy_flux_error2='1.25e-05', EG='1.18', time_epoch_completed='1631262264.26', return_code='0', job_id='630442', GAL2='0.63', EG2='1.16', return_code2='0', energy_flux_error='2.32e-05', photon_flux_error2='5.50e-08', ts2='1.88', photon_index='1.90' WHERE bin_id='808' AND source_name='4FGL J1436.9+5638' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 01:24:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0230>
Subject: Job 630442: <4FGL_J1436.9+5638_daily_bin808> in cluster <slac> Done

Job <4FGL_J1436.9+5638_daily_bin808> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Fri Sep 10 01:11:34 2021
Job was executed on host(s) <bullet0230>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 01:11:36 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 10 01:11:36 2021
Terminated at Fri Sep 10 01:24:25 2021
Results reported at Fri Sep 10 01:24:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1436.9+5638_daily_bin808 219.229 56.649 448761601 449020801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1436.9+5638 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   743.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             313.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   769 sec.
    Turnaround time :                            771 sec.

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

