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


Performing analysis on: 4FGL_J1436.9+5638_daily_bin569
RA = 219.229, Dec = 56.649
tmin = 386812801, tmax = 387072001
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='628823', job_status='RUN', time_executed='2021-09-10 01:06:45.122752', time_epoch_executed='1631261205.12' WHERE source_name='4FGL J1436.9+5638' and cadence='daily' and bin_id='569'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/628823

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/628823/ft1_4FGL_J1436.9+5638_daily_bin569.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/628823/ft2_4FGL_J1436.9+5638_daily_bin569.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/628823/ft1_4FGL_J1436.9+5638_daily_bin569.fits outfile=/scratch/kocevski/628823/ft1_filteredMKT_4FGL_J1436.9+5638_daily_bin569.fits ra=219.229 dec=56.649 rad=12.0 tmin=386812801.0 tmax=387072001.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.44
user 3.19
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/628823/ft1_filtered_4FGL_J1436.9+5638_daily_bin569.fits" evtable="EVENTS" scfile=/scratch/kocevski/628823/ft2_4FGL_J1436.9+5638_daily_bin569.fits sctable="SC_DATA" outfile=/scratch/kocevski/628823/ltcube_386812801_387072001_4FGL_J1436.9+5638_daily_bin569.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/628823/ft2_4FGL_J1436.9+5638_daily_bin569.fits
.....................!
real 12.00
user 11.61
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/628823/ft1_filtered_4FGL_J1436.9+5638_daily_bin569.fits evtable="EVENTS" scfile=/scratch/kocevski/628823/ft2_4FGL_J1436.9+5638_daily_bin569.fits sctable="SC_DATA" expcube=/scratch/kocevski/628823/ltcube_386812801_387072001_4FGL_J1436.9+5638_daily_bin569.fits outfile=/scratch/kocevski/628823/expmap_386812801_387072001_4FGL_J1436.9+5638_daily_bin569.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/628823/ltcube_386812801_387072001_4FGL_J1436.9+5638_daily_bin569.fits
.....................!
real 191.09
user 185.62
sys 5.09

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/628823/ft1_filtered_4FGL_J1436.9+5638_daily_bin569.fits scfile=/scratch/kocevski/628823/ft2_4FGL_J1436.9+5638_daily_bin569.fits outfile=/scratch/kocevski/628823/cmap_386812801_387072001_4FGL_J1436.9+5638_daily_bin569.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.55
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/628823/ft1_filtered_4FGL_J1436.9+5638_daily_bin569.fits scfile=/scratch/kocevski/628823/ft2_4FGL_J1436.9+5638_daily_bin569.fits outfile=/scratch/kocevski/628823/cmap_HighResolution_386812801_387072001_4FGL_J1436.9+5638_daily_bin569.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.54
user 0.37
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/628823/ft1_filtered_4FGL_J1436.9+5638_daily_bin569.fits', '/scratch/kocevski/628823/ft2_4FGL_J1436.9+5638_daily_bin569.fits', expMap='/scratch/kocevski/628823/expmap_386812801_387072001_4FGL_J1436.9+5638_daily_bin569.fits', expCube='/scratch/kocevski/628823/ltcube_386812801_387072001_4FGL_J1436.9+5638_daily_bin569.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/628823/Model_4FGL_J1436.9+5638_daily_bin569.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/628823/ft1_filtered_4FGL_J1436.9+5638_daily_bin569.fits
Spacecraft file(s): /scratch/kocevski/628823/ft2_4FGL_J1436.9+5638_daily_bin569.fits
Exposure map: /scratch/kocevski/628823/expmap_386812801_387072001_4FGL_J1436.9+5638_daily_bin569.fits
Exposure cube: /scratch/kocevski/628823/ltcube_386812801_387072001_4FGL_J1436.9+5638_daily_bin569.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/628823/Model_4FGL_J1436.9+5638_daily_bin569.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) = 5653.73790744

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    37.686       1.0000         .10000E-03   10000.    
     2 'norm      '    .16686E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .77049       1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.318       1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.707       1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.8109       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.3109       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .70405       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    35.512       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    25.906       1.0000         .10000E-03   10000.    
    20 'Prefactor '    22.180       1.0000         .10000E-03   10000.    
    21 'Prefactor '    16.327       1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.8710       1.0000         .10000E-03   10000.    
    23 'norm      '    .70422       1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.8960       1.0000         .10000E-03   10000.    
    25 'Prefactor '    4.9792       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    16.327       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    7.0722       1.0000         .10000E-03   10000.    
    30 'Prefactor '    74.380       1.0000         .10000E-03   10000.    
    31 'Prefactor '    3.5723       1.0000         .10000E-03   10000.    
    32 'norm      '    37.559       1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.2902       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .42104       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=   5653.735     FROM MIGRAD    STATUS=CONVERGED    928 CALLS     4812 TOTAL
                     EDM=   .65E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     37.707        19.399        .30903E-07    .12751E-05
   2  norm          .10000E-03    2.9381       -.28646E-07** at limit **
   3  Prefactor     .10000E-03    71.005        .11260E-05** at limit **
   4  Prefactor     .77686        7.0333        .33682E-05   -.12924E-03
   5  Prefactor     13.306        31.744       -.36005E-06   -.19297E-04
   6  Prefactor     10.703        9.5795       -.14008E-05   -.28938E-03
   7  norm          .10000E-03    26.290       -.78120E-06** at limit **
   8  norm          .10000E-03    4.8021        .22413E-06** at limit **
   9  Prefactor     .10000E-03    17.289        .20949E-06** at limit **
  10  Prefactor     .10000E-03    126.08        .49598E-05** at limit **
  11  Prefactor     .10000E-03    19.276       -.19658E-06** at limit **
  12  Prefactor     .10000E-03    66.744       -.18695E-05** at limit **
  13  Prefactor     1.8109        5.1136        .70504E-06   -.55123E-04
  14  Prefactor     2.3111        45.260       -.49756E-06   -.16092E-04
  15  Prefactor     .71643        4.6623       -.10786E-05   -.74092E-04
  16  Prefactor     .10000E-03    22.881        .11445E-05** at limit **
  17  Prefactor     35.397        33.511        .10707E-05   -.13542E-03
  18  Prefactor     .10000E-03    19.376       -.30860E-06** at limit **
  19  Prefactor     25.906        25.483        .62320E-06    .51848E-05
  20  Prefactor     22.179        15.072       -.15453E-07    .22464E-05
  21  Prefactor     16.327        17.435       -.38070E-07   -.42665E-05
  22  Prefactor     7.8718        9.4050        .51254E-06   -.62967E-04
  23  norm          .70475        1.0695       -.58757E-07   -.14218E-03
  24  Prefactor     4.9007        7.6811       -.27196E-06   -.58804E-04
  25  Prefactor     4.9795        3.9067       -.28718E-07    .12146E-04
  26  Prefactor     .10000E-03    9.7244       -.29871E-06** at limit **
  27  Prefactor     16.328        12.037       -.36063E-07    .37286E-05
  28  Prefactor     .10000E-03    19.313       -.21994E-06** at limit **
  29  norm          7.0725        3.2824       -.54400E-07    .92093E-05
  30  Prefactor     74.401        95.948        .21803E-05    .25129E-04
  31  Prefactor     3.5728        7.1839        .41049E-06    .79392E-06
  32  norm          37.563        17.205       -.72613E-07    .14990E-04
  33  Normalizat    1.2899        .18206        .64007E-06   -.13940E-03
  34  Prefactor     .42118        .19054       -.96277E-06   -.48366E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 37.7072
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.776864
  Prefactor  = 13.3064
  Prefactor  = 10.7026
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.81087
  Prefactor  = 2.31114
  Prefactor  = 0.71643
  Prefactor  = 0.0001
  Prefactor  = 35.3971
  Prefactor  = 0.0001
  Prefactor  = 25.9058
  Prefactor  = 22.1792
  Prefactor  = 16.3274
  Prefactor  = 7.87181
  norm       = 0.704755
  Prefactor  = 4.90073
  Prefactor  = 4.97953
  Prefactor  = 0.0001
  Prefactor  = 16.3279
  Prefactor  = 0.0001
  norm       = 7.0725
  Prefactor  = 74.4013
  Prefactor  = 3.5728
  norm       = 37.5631
  Normalizat = 1.28991
  Prefactor  = 0.421184
 **********
 **   18 **HESSE 
 **********

 FCN=   5653.735     FROM HESSE     STATUS=OK           740 CALLS     5552 TOTAL
                     EDM=   .76E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     37.707        18.563        .65287E-04   -1.4479    
   2  norm          .10000E-03    6.5409        .23883E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    71.506        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .77686        7.1082        .31036E-02   -1.5532    
   5  Prefactor     13.306        31.848        .10976E-03   -1.4978    
   6  Prefactor     10.703        9.5916        .12244E-03   -1.5054    
   7  norm          .10000E-03    26.307        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    4.9879        .32082E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    17.336        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    126.76        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    19.282        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    67.233        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.8109        4.9765        .25512E-03   -1.5439    
  14  Prefactor     2.3111        43.718        .26989E-03   -1.5404    
  15  Prefactor     .71643        3.9506        .22228E-03   -1.5539    
  16  Prefactor     .10000E-03    23.118        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     35.397        31.195        .67249E-04   -1.4517    
  18  Prefactor     .10000E-03    19.385        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     25.906        25.481        .78705E-04   -1.4690    
  20  Prefactor     22.179        15.040        .85051E-04   -1.4766    
  21  Prefactor     16.327        17.424        .99122E-04   -1.4900    
  22  Prefactor     7.8718        9.3788        .71461E-03   -1.5147    
  23  norm          .70475        .91276        .92465E-03   -1.5540    
  24  Prefactor     4.9007        7.6766        .18178E-03   -1.5265    
  25  Prefactor     4.9795        3.9060        .12798E-03   -1.5262    
  26  Prefactor     .10000E-03    9.9031        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     16.328        12.033        .99122E-04   -1.4900    
  28  Prefactor     .10000E-03    19.358        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          7.0725        3.2817        .88724E-04   -1.5176    
  30  Prefactor     74.401        96.349        .46555E-04   -1.3981    
  31  Prefactor     3.5728        7.1581        .21382E-03   -1.5330    
  32  norm          37.563        17.202        .65397E-04   -1.4481    
  33  Normalizat    1.2899        .20140        .19184E-03   -.83868    
  34  Prefactor     .42118        .20801        .35498E-03   -1.1574    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.6215e-08
Minuit parameter uncertainties:
  1  18.5662
  2  4.50552e-06
  3  9.12282e-05
  4  4.70026
  5  31.889
  6  9.59295
  7  5.04749e-05
  8  2.75772e-07
  9  4.96485e-06
  10  0.000710261
  11  1.24223e-05
  12  0.000223012
  13  4.97763
  14  20.1201
  15  3.36482
  16  8.10382e-05
  17  31.2095
  18  1.29236e-05
  19  25.4914
  20  15.0428
  21  17.4294
  22  9.38051
  23  0.912781
  24  7.67811
  25  3.90621
  26  7.3341e-06
  27  12.0347
  28  1.74022e-05
  29  3.28179
  30  96.5521
  31  7.15979
  32  17.2047
  33  0.201524
  34  0.208384
Done.

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

Extracting fit parameters...

4FGL J1436.9+5638
   Spectrum: PowerLaw
357    Prefactor:  2.591e+01  2.549e+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:  4.212e-01  2.084e-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.290e+00  2.015e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.48
Ra Dec: 219.229 56.649
Photon Index (Fixed Index): 1.90 +/- 0.00
Photon Flux (Fixed Index): 1.44e-08 +/- 1.42e-08
Energy Flux (Fixed Index): 1.31e-05 +/- 1.29e-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) = 5652.7266535
delta logL = 1.00831385619

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5652.72180886
delta logL = 1.01315849136

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.944       1.0000         .10000E-03   10000.    
     2 'Index     '    .97964       1.0000          .0000       10.000    
     3 'Normalizat'    1.2968       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .42131       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=   5652.722     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      213 TOTAL
                     EDM=   .94E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 15.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.956        31.073        .10263E-04   -.96039E-04
   2  Index         .97978        .66943        .56763E-04    .13774E-04
   3  Normalizat    1.2967        .16873       -.32107E-06   -.44615E-03
   4  Prefactor     .42135        .18777       -.29914E-06   -.20959E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.9562
  Index      = 0.979785
  Normalizat = 1.29674
  Prefactor  = 0.421353
 **********
 **   18 **HESSE 
 **********

 FCN=   5652.722     FROM HESSE     STATUS=OK            29 CALLS      242 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.956        30.026        .83623E-04   -1.4749    
   2  Index         .97978        .64676        .12083E-01   -.93406    
   3  Normalizat    1.2967        .18415        .19139E-03   -.83664    
   4  Prefactor     .42135        .20425        .35489E-03   -1.1573    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.57546e-10
Minuit parameter uncertainties:
  1  30.0459
  2  0.65197
  3  0.184247
  4  0.204601
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/628823': 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) = 5652.72180877
delta logL = 1.01315858917

Extracting fit parameters...

4FGL J1436.9+5638
   Spectrum: PowerLaw
357    Prefactor:  2.296e+01  3.005e+01  1.000e-04  1.000e+04 ( 1.000e-14)
358        Index:  9.798e-01  6.520e-01  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:  4.214e-01  2.046e-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.297e+00  1.842e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.50
Ra Dec: 219.229 56.649
Photon Index (Free Index): 0.98 +/- 0.65
Photon Flux (Free Index): 4.22e-09 +/- 5.10e-09
Energy Flux (Free Index): 6.41e-05 +/- 8.65e-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/628823/cmap_HighResolution_386812801_387072001_4FGL_J1436.9+5638_daily_bin569.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.44e-08', energy_flux2='6.41e-05', photon_flux_error='1.42e-08', dlogl='1.01e+00', energy_flux='1.31e-05', photon_flux2='4.22e-09', job_status='DONE', time_completed='2021-09-10 01:22:00.503925', photon_index_error2='0.65', photon_index2='0.98', ts='4.48', fit_tolerance='1e-08', GAL='0.42', photon_index_error='0.00', energy_flux_error2='8.65e-05', EG='1.29', time_epoch_completed='1631262120.5', return_code='0', job_id='628823', GAL2='0.42', EG2='1.30', return_code2='0', energy_flux_error='1.29e-05', photon_flux_error2='5.10e-09', ts2='6.50', photon_index='1.90' WHERE bin_id='569' AND source_name='4FGL J1436.9+5638' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 01:22:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0289>
Subject: Job 628823: <4FGL_J1436.9+5638_daily_bin569> in cluster <slac> Done

Job <4FGL_J1436.9+5638_daily_bin569> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 10 01:06:27 2021
Job was executed on host(s) <bullet0289>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 01:06:28 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:06:28 2021
Terminated at Fri Sep 10 01:22:01 2021
Results reported at Fri Sep 10 01:22:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1436.9+5638_daily_bin569 219.229 56.649 386812801 387072001 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 :                                   908.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             324.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   932 sec.
    Turnaround time :                            934 sec.

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

