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


Performing analysis on: 4FGL_J1436.9+5638_daily_bin749
RA = 219.229, Dec = 56.649
tmin = 433468801, tmax = 433728001
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='630346', job_status='RUN', time_executed='2021-09-10 01:13:46.429966', time_epoch_executed='1631261626.43' WHERE source_name='4FGL J1436.9+5638' and cadence='daily' and bin_id='749'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/630346

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/630346/ft1_4FGL_J1436.9+5638_daily_bin749.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/630346/ft2_4FGL_J1436.9+5638_daily_bin749.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/630346/ft1_4FGL_J1436.9+5638_daily_bin749.fits outfile=/scratch/kocevski/630346/ft1_filteredMKT_4FGL_J1436.9+5638_daily_bin749.fits ra=219.229 dec=56.649 rad=12.0 tmin=433468801.0 tmax=433728001.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 6.00
user 5.75
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/630346/ft2_4FGL_J1436.9+5638_daily_bin749.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/630346/ft1_filteredMKT_4FGL_J1436.9+5638_daily_bin749.fits evtable="EVENTS" outfile="/scratch/kocevski/630346/ft1_filtered_4FGL_J1436.9+5638_daily_bin749.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.45
user 0.31
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/630346/ft1_filtered_4FGL_J1436.9+5638_daily_bin749.fits" evtable="EVENTS" scfile=/scratch/kocevski/630346/ft2_4FGL_J1436.9+5638_daily_bin749.fits sctable="SC_DATA" outfile=/scratch/kocevski/630346/ltcube_433468801_433728001_4FGL_J1436.9+5638_daily_bin749.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/630346/ft2_4FGL_J1436.9+5638_daily_bin749.fits
.....................!
real 11.89
user 11.53
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/630346/ft1_filtered_4FGL_J1436.9+5638_daily_bin749.fits evtable="EVENTS" scfile=/scratch/kocevski/630346/ft2_4FGL_J1436.9+5638_daily_bin749.fits sctable="SC_DATA" expcube=/scratch/kocevski/630346/ltcube_433468801_433728001_4FGL_J1436.9+5638_daily_bin749.fits outfile=/scratch/kocevski/630346/expmap_433468801_433728001_4FGL_J1436.9+5638_daily_bin749.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/630346/ltcube_433468801_433728001_4FGL_J1436.9+5638_daily_bin749.fits
.....................!
real 192.03
user 185.53
sys 4.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 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/630346/ft1_filtered_4FGL_J1436.9+5638_daily_bin749.fits scfile=/scratch/kocevski/630346/ft2_4FGL_J1436.9+5638_daily_bin749.fits outfile=/scratch/kocevski/630346/cmap_433468801_433728001_4FGL_J1436.9+5638_daily_bin749.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/630346/ft1_filtered_4FGL_J1436.9+5638_daily_bin749.fits scfile=/scratch/kocevski/630346/ft2_4FGL_J1436.9+5638_daily_bin749.fits outfile=/scratch/kocevski/630346/cmap_HighResolution_433468801_433728001_4FGL_J1436.9+5638_daily_bin749.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.55
user 0.36
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    6.4862       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10258E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.7115       1.0000         .10000E-03   10000.    
     5 'Prefactor '    389.10       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10074E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10078E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10167E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    83.742       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    25.274       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    23.476       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .22008E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    2.0401       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.1673       1.0000         .10000E-03   10000.    
    26 'Prefactor '    21.670       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .11568E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    93.042       1.0000         .10000E-03   10000.    
    29 'norm      '    3.9861       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    4.6892       1.0000         .10000E-03   10000.    
    32 'norm      '    39.969       1.0000         .10000E-03   10000.    
    33 'Normalizat'    .32267       1.0000         .10000E-01   10.000    
    34 'Prefactor '    1.3924       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=   2955.002     FROM MIGRAD    STATUS=CONVERGED    898 CALLS     4824 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.361        .87745E-06** at limit **
   2  norm          6.4864        6.2101        .48224E-06   -.50086E-04
   3  Prefactor     .10000E-03    107.23       -.96724E-05** at limit **
   4  Prefactor     7.7119        9.6532        .39002E-06   -.19047E-04
   5  Prefactor     389.08        213.80        .38882E-05   -.24764E-04
   6  Prefactor     .10000E-03    8.5725       -.51620E-07** at limit **
   7  norm          .10000E-03    188.44        .20670E-04** at limit **
   8  norm          .10000E-03    11.846       -.10910E-06** at limit **
   9  Prefactor     .10000E-03    31.628       -.15832E-05** at limit **
  10  Prefactor     .10036E-03    6705.1        .20063E-03** at limit **
  11  Prefactor     .10000E-03    58.151        .72769E-06** at limit **
  12  Prefactor     .10000E-03    120.52       -.58950E-05** at limit **
  13  Prefactor     .10000E-03    3.7254        .17394E-06** at limit **
  14  Prefactor     83.749        45.567        .66075E-06   -.14631E-03
  15  Prefactor     .10000E-03    2.2677        .72550E-07** at limit **
  16  Prefactor     .10000E-03    20.500       -.40539E-06** at limit **
  17  Prefactor     25.276        51.371        .32369E-05   -.57862E-04
  18  Prefactor     .10000E-03    137.28        .10164E-06** at limit **
  19  Prefactor     .10000E-03    31.576       -.15434E-05** at limit **
  20  Prefactor     23.475        25.548       -.18593E-05   -.37543E-03
  21  Prefactor     .10000E-03    15.888       -.11685E-05** at limit **
  22  Prefactor     .10005E-03    32.856       -.84892E-05** at limit **
  23  norm          2.0405        2.4390       -.15008E-05   -.24459E-02
  24  Prefactor     .10000E-03    16.507        .35075E-06** at limit **
  25  Prefactor     1.1702        15.002        .28446E-04   -.21477E-03
  26  Prefactor     21.671        15.435        .71796E-06   -.18893E-03
  27  Prefactor     .10000E-03    19.225        .96990E-06** at limit **
  28  Prefactor     93.053        72.476        .32483E-06   -.15750E-04
  29  norm          3.9859        4.0846        .35840E-06   -.78139E-04
  30  Prefactor     .10000E-03    41.562        .44618E-05** at limit **
  31  Prefactor     4.6915        21.809        .69395E-05    .23832E-06
  32  norm          39.966        28.529       -.15546E-05   -.92387E-04
  33  Normalizat    .32241        .30731       -.90757E-05   -.34891E-03
  34  Prefactor     1.3927        .30675       -.32802E-05   -.60592E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 6.48641
  Prefactor  = 0.000100001
  Prefactor  = 7.71188
  Prefactor  = 389.081
  Prefactor  = 0.0001
  norm       = 0.000100004
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100359
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 83.7489
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.2758
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 23.4752
  Prefactor  = 0.0001
  Prefactor  = 0.000100045
  norm       = 2.04054
  Prefactor  = 0.0001
  Prefactor  = 1.17022
  Prefactor  = 21.6713
  Prefactor  = 0.0001
  Prefactor  = 93.0533
  norm       = 3.98585
  Prefactor  = 0.0001
  Prefactor  = 4.69146
  norm       = 39.9661
  Normalizat = 0.322411
  Prefactor  = 1.39268
 **********
 **   18 **HESSE 
 **********

 FCN=   2955.002     FROM HESSE     STATUS=OK           718 CALLS     5542 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.374        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          6.4864        6.2087        .12897E-03   -1.5199    
   3  Prefactor     .10000E-03    107.23        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.7119        9.6435        .14440E-03   -1.5152    
   5  Prefactor     389.08        212.71        .10342E-03   -1.1737    
   6  Prefactor     .10000E-03    8.5745        .15546E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    188.04        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    11.964        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    31.629        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10036E-03    6690.0        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    58.185        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    120.64        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.7301        .10243E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     83.749        45.168        .43896E-04   -1.3875    
  15  Prefactor     .10000E-03    2.2712        .79867E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    20.504        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     25.276        51.052        .79681E-04   -1.4702    
  18  Prefactor     .10000E-03    137.44        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    31.578        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     23.475        25.369        .82672E-04   -1.4739    
  21  Prefactor     .10000E-03    15.891        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10005E-03    141.74        .51765E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          2.0405        2.3300        .82867E-04   -1.5422    
  24  Prefactor     .10000E-03    16.563        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     1.1702        15.351        .18979E-02   -1.5492    
  26  Prefactor     21.671        15.345        .86043E-04   -1.4777    
  27  Prefactor     .10000E-03    19.276        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     93.053        72.339        .20832E-03   -1.3776    
  29  norm          3.9859        4.0818        .10741E-03   -1.5309    
  30  Prefactor     .10000E-03    41.545        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     4.6915        21.088        .92917E-03   -1.5275    
  32  norm          39.966        28.002        .63402E-04   -1.4443    
  33  Normalizat    .32241        .31295        .40082E-03   -1.2152    
  34  Prefactor     1.3927        .32763        .22591E-03   -.80592    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.50956e-09
Minuit parameter uncertainties:
  1  4.63123e-05
  2  6.20928
  3  0.00052833
  4  9.64541
  5  213.141
  6  2.39568e-06
  7  0.0017129
  8  1.64839e-06
  9  4.6725e-05
  10  0.0743057
  11  5.55651e-05
  12  0.000945526
  13  2.18065e-05
  14  45.1864
  15  1.02098e-05
  16  2.61058e-05
  17  51.1405
  18  0.00092155
  19  7.81091e-05
  20  25.3802
  21  3.87266e-05
  22  0.0050825
  23  2.33006
  24  8.8543e-05
  25  8.47905
  26  15.3477
  27  2.88351e-05
  28  72.4075
  29  4.08209
  30  0.000163253
  31  19.9047
  32  28.0114
  33  0.314669
  34  0.328121
Done.

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

Extracting fit parameters...

4FGL J1436.9+5638
   Spectrum: PowerLaw
357    Prefactor:  1.000e-04  7.811e-05  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:  1.393e+00  3.281e-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:  3.224e-01  3.147e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/630346/likelihoodResults_433468801_433728001_4FGL_J1436.9+5638_daily_bin749.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): 102
logL (Free Index) = 2955.00202456
delta logL = -0.000147431215737

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2955.00188056
delta logL = -3.43162673744e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8313       1.0000          .0000       10.000    
     3 'Normalizat'    .32241       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3927       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.

 FCN=   2955.002     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      240 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.273        .90712E-02** at limit **
   2  Index         2.8062        6.2394        .50000        .23239E-04
   3  Normalizat    .32241        .86791E-02    .90488E-01    .25270E-04
   4  Prefactor     1.3927        .97596E-02    .51105E-01   -.10071E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.80618
  Normalizat = 0.322413
  Prefactor  = 1.39268
 **********
 **   18 **HESSE 
 **********

 FCN=   2955.002     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      273 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    355.98        .16965E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8062        5.8238        .50000       -.45422    
   3  Normalizat    .32241        .36011E-01    .40082E-03   -1.2152    
   4  Prefactor     1.3927        .40588E-01    .22591E-03   -.80591    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.26025e-08
Minuit parameter uncertainties:
  1  0.000529049
  2  26.6814
  3  0.0360139
  4  0.0405889
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/630346': 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): 102
logL (Free Index) = 2955.00188042
delta logL = -3.29085378326e-06

Extracting fit parameters...

4FGL J1436.9+5638
   Spectrum: PowerLaw
357    Prefactor:  1.000e-04  5.290e-04  1.000e-04  1.000e+04 ( 1.000e-14)
358        Index:  2.806e+00  2.668e+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:  1.393e+00  4.059e-02  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:  3.224e-01  3.601e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 219.229 56.649

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/630346/cmap_HighResolution_433468801_433728001_4FGL_J1436.9+5638_daily_bin749.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.39e-03', job_status='DONE', photon_flux_upper_limit='8.60e-08', time_completed='2021-09-10 01:25:19.222007', job_id='630346', GAL2='1.39', fit_tolerance='1e-08', EG2='0.32', EG='0.32', time_epoch_completed='1631262319.22', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.39', dlogl='-3.29e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.90' WHERE bin_id='749' AND source_name='4FGL J1436.9+5638' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 01:25:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0303>
Subject: Job 630346: <4FGL_J1436.9+5638_daily_bin749> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1436.9+5638_daily_bin749 219.229 56.649 433468801 433728001 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 :                                   678.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             286.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   832 sec.
    Turnaround time :                            833 sec.

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

