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


Performing analysis on: 4FGL_J1436.9+5638_daily_bin746
RA = 219.229, Dec = 56.649
tmin = 432691201, tmax = 432950401
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='630341', job_status='RUN', time_executed='2021-09-10 01:13:32.723470', time_epoch_executed='1631261612.72' WHERE source_name='4FGL J1436.9+5638' and cadence='daily' and bin_id='746'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/630341

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/630341/ft1_4FGL_J1436.9+5638_daily_bin746.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/630341/ft2_4FGL_J1436.9+5638_daily_bin746.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/630341/ft1_4FGL_J1436.9+5638_daily_bin746.fits outfile=/scratch/kocevski/630341/ft1_filteredMKT_4FGL_J1436.9+5638_daily_bin746.fits ra=219.229 dec=56.649 rad=12.0 tmin=432691201.0 tmax=432950401.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.28
user 5.03
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/630341/ft2_4FGL_J1436.9+5638_daily_bin746.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/630341/ft1_filteredMKT_4FGL_J1436.9+5638_daily_bin746.fits evtable="EVENTS" outfile="/scratch/kocevski/630341/ft1_filtered_4FGL_J1436.9+5638_daily_bin746.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/630341/ft1_filtered_4FGL_J1436.9+5638_daily_bin746.fits evtable="EVENTS" scfile=/scratch/kocevski/630341/ft2_4FGL_J1436.9+5638_daily_bin746.fits sctable="SC_DATA" expcube=/scratch/kocevski/630341/ltcube_432691201_432950401_4FGL_J1436.9+5638_daily_bin746.fits outfile=/scratch/kocevski/630341/expmap_432691201_432950401_4FGL_J1436.9+5638_daily_bin746.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/630341/ltcube_432691201_432950401_4FGL_J1436.9+5638_daily_bin746.fits
.....................!
real 190.46
user 185.51
sys 4.26

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/630341/ft1_filtered_4FGL_J1436.9+5638_daily_bin746.fits scfile=/scratch/kocevski/630341/ft2_4FGL_J1436.9+5638_daily_bin746.fits outfile=/scratch/kocevski/630341/cmap_432691201_432950401_4FGL_J1436.9+5638_daily_bin746.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.62
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/630341/ft1_filtered_4FGL_J1436.9+5638_daily_bin746.fits scfile=/scratch/kocevski/630341/ft2_4FGL_J1436.9+5638_daily_bin746.fits outfile=/scratch/kocevski/630341/cmap_HighResolution_432691201_432950401_4FGL_J1436.9+5638_daily_bin746.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.60
user 0.36
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10363E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .11855E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    42.502       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    59.646       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    69.069       1.0000         .10000E-03   10000.    
     8 'norm      '    .13410E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    32.815       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .70591E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12224E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    63.045       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10143E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    28.696       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .21932       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.6268       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10248E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10247E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    4.1227       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .61475E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10787E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    106.93       1.0000         .10000E-03   10000.    
    29 'norm      '    4.8002       1.0000         .10000E-03   10000.    
    30 'Prefactor '    24.954       1.0000         .10000E-03   10000.    
    31 'Prefactor '    16.301       1.0000         .10000E-03   10000.    
    32 'norm      '    64.186       1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.1100       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .71734       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=   4050.878     FROM MIGRAD    STATUS=CONVERGED    965 CALLS     4959 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    46.549       -.58685E-06** at limit **
   2  norm          .10005E-03    4.9356       -.22701E-05** at limit **
   3  Prefactor     42.510        41.836       -.48424E-07    .96655E-04
   4  Prefactor     .10000E-03    1.4496       -.81842E-07** at limit **
   5  Prefactor     59.638        53.573       -.67783E-06    .67993E-04
   6  Prefactor     .10000E-03    4.1969       -.14540E-06** at limit **
   7  norm          69.074        79.909        .37904E-06    .25611E-04
   8  norm          .10000E-03    3.6412       -.65049E-06** at limit **
   9  Prefactor     32.801        42.958       -.36036E-06   -.76151E-06
  10  Prefactor     .10001E-03    665.70       -.23917E-05** at limit **
  11  Prefactor     .10001E-03    189.35       -.35086E-05** at limit **
  12  Prefactor     63.016        55.228        .21944E-05    .35117E-03
  13  Prefactor     .10000E-03    6.2699       -.16018E-05** at limit **
  14  Prefactor     28.700        26.060        .89871E-06    .31498E-03
  15  Prefactor     .22492        3.3934        .72932E-06   -.10100E-03
  16  Prefactor     5.6508        26.652       -.18152E-06    .55360E-04
  17  Prefactor     .10000E-03    12.328       -.23411E-06** at limit **
  18  Prefactor     .10000E-03    80.170       -.10843E-05** at limit **
  19  Prefactor     .10000E-03    21.041       -.26348E-06** at limit **
  20  Prefactor     .10000E-03    6.7280       -.16509E-06** at limit **
  21  Prefactor     .10000E-03    12.280        .65587E-07** at limit **
  22  Prefactor     .10000E-03    8.3247       -.83334E-07** at limit **
  23  norm          4.1229        2.0302       -.17408E-07    .13420E-03
  24  Prefactor     .10006E-03    11.260       -.16677E-05** at limit **
  25  Prefactor     .10000E-03    7.1512        .11505E-06** at limit **
  26  Prefactor     .10000E-03    5.1842        .40406E-07** at limit **
  27  Prefactor     .10000E-03    14.023        .45541E-06** at limit **
  28  Prefactor     106.93        48.528        .13512E-06    .48644E-04
  29  norm          4.7994        4.3644        .65196E-07    .13741E-03
  30  Prefactor     25.082        316.56       -.20957E-06    .16738E-04
  31  Prefactor     16.301        16.436       -.54342E-07    .57046E-05
  32  norm          64.184        37.089       -.18073E-06    .17415E-04
  33  Normalizat    1.1102        .21715        .33570E-05    .80342E-03
  34  Prefactor     .71721        .24287       -.32187E-05    .48433E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.000100046
  Prefactor  = 42.5101
  Prefactor  = 0.0001
  Prefactor  = 59.6377
  Prefactor  = 0.0001
  norm       = 69.0736
  norm       = 0.0001
  Prefactor  = 32.8008
  Prefactor  = 0.000100011
  Prefactor  = 0.000100007
  Prefactor  = 63.0159
  Prefactor  = 0.000100001
  Prefactor  = 28.7
  Prefactor  = 0.224925
  Prefactor  = 5.65081
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.12295
  Prefactor  = 0.000100061
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 106.929
  norm       = 4.79935
  Prefactor  = 25.0819
  Prefactor  = 16.3007
  norm       = 64.1843
  Normalizat = 1.11023
  Prefactor  = 0.71721
 **********
 **   18 **HESSE 
 **********

 FCN=   4050.878     FROM HESSE     STATUS=OK           726 CALLS     5685 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    48.553        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10005E-03    12.792        .19613E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     42.510        41.771        .61491E-04   -1.4403    
   4  Prefactor     .10000E-03    1.4602        .74845E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     59.638        53.734        .51950E-04   -1.4162    
   6  Prefactor     .10000E-03    4.2290        .12735E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          69.074        79.800        .48299E-04   -1.4044    
   8  norm          .10000E-03    6.8887        .23172E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     32.801        42.970        .69950E-04   -1.4562    
  10  Prefactor     .10001E-03    666.05        .20975E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10001E-03    191.89        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     63.016        56.127        .50538E-04   -1.4119    
  13  Prefactor     .10000E-03    20.475        .29056E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     28.700        26.158        .37395E-03   -1.4636    
  15  Prefactor     .22492        6.5524        .20078E-02   -1.5613    
  16  Prefactor     5.6508        26.011        .16935E-03   -1.5232    
  17  Prefactor     .10000E-03    12.346        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    80.507        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    21.051        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    6.7368        .16129E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    12.310        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    8.3428        .17936E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          4.1229        2.0300        .61897E-04   -1.5302    
  24  Prefactor     .10006E-03    85.869        .39145E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    27.424        .32858E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    5.2024        .14144E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    14.123        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     106.93        48.424        .38892E-04   -1.3636    
  29  norm          4.7994        4.3593        .11876E-03   -1.5270    
  30  Prefactor     25.082        313.31        .80191E-04   -1.4706    
  31  Prefactor     16.301        16.436        .99200E-04   -1.4900    
  32  norm          64.184        37.102        .50090E-04   -1.4104    
  33  Normalizat    1.1102        .24423        .20864E-03   -.89424    
  34  Prefactor     .71721        .26717        .29178E-03   -1.0286    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.83613e-08
Minuit parameter uncertainties:
  1  0.000103551
  2  0.00153826
  3  41.8001
  4  5.10353e-06
  5  53.7778
  6  1.38503e-05
  7  79.9237
  8  4.25003e-05
  9  43.0104
  10  0.00557905
  11  0.00235632
  12  56.1738
  13  0.000312903
  14  26.1684
  15  2.42776
  16  24.2644
  17  4.21528e-05
  18  0.000467153
  19  6.23e-05
  20  2.05145e-05
  21  9.76471e-06
  22  1.44701e-05
  23  2.03
  24  0.00458313
  25  0.00035567
  26  9.24214e-07
  27  6.68565e-05
  28  48.4414
  29  4.3596
  30  178.462
  31  16.4409
  32  37.1158
  33  0.244476
  34  0.267648
Done.

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

Extracting fit parameters...

4FGL J1436.9+5638
   Spectrum: PowerLaw
357    Prefactor:  1.000e-04  6.230e-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:  7.172e-01  2.676e-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.110e+00  2.445e-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: 5.00e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.72e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/630341/likelihoodResults_432691201_432950401_4FGL_J1436.9+5638_daily_bin746.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) = 4050.87856082
delta logL = -0.000226256768656

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4050.87833459
delta logL = -2.27082637139e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9795       1.0000          .0000       10.000    
     3 'Normalizat'    1.1102       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71721       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=   4050.878     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      232 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    796.91        .90712E-02** at limit **
   2  Index         1.9777        5.0050        .50000        .65875E-06
   3  Normalizat    1.1102        .30787E-01    .37599E-01    .14756E-05
   4  Prefactor     .71721        .35502E-01    .65950E-01    .14693E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.97771
  Normalizat = 1.11023
  Prefactor  = 0.71721
 **********
 **   18 **HESSE 
 **********

 FCN=   4050.878     FROM HESSE     STATUS=OK            33 CALLS      265 TOTAL
                     EDM=   .17E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    79.170        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9777        5.2324        .50000       -.64909    
   3  Normalizat    1.1102        .22358        .20864E-03   -.89424    
   4  Prefactor     .71721        .25725        .29179E-03   -1.0286    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.72807e-12
Minuit parameter uncertainties:
  1  1.01881e-06
  2  7.78941
  3  0.223772
  4  0.257674
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/630341': 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) = 4050.87833458
delta logL = -1.48729668581e-08

Extracting fit parameters...

4FGL J1436.9+5638
   Spectrum: PowerLaw
357    Prefactor:  1.000e-04  1.019e-06  1.000e-04  1.000e+04 ( 1.000e-14)
358        Index:  1.978e+00  7.789e+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:  7.172e-01  2.577e-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.110e+00  2.238e-01  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/630341/cmap_HighResolution_432691201_432950401_4FGL_J1436.9+5638_daily_bin746.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.72e-03', job_status='DONE', photon_flux_upper_limit='5.00e-08', time_completed='2021-09-10 01:27:56.987961', job_id='630341', GAL2='0.72', fit_tolerance='1e-08', EG2='1.11', EG='1.11', time_epoch_completed='1631262476.99', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.72', dlogl='-1.49e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.90' WHERE bin_id='746' AND source_name='4FGL J1436.9+5638' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 01:27:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0144>
Subject: Job 630341: <4FGL_J1436.9+5638_daily_bin746> in cluster <slac> Done

Job <4FGL_J1436.9+5638_daily_bin746> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Fri Sep 10 01:11:26 2021
Job was executed on host(s) <bullet0144>, 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:27:59 2021
Results reported at Fri Sep 10 01:27:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1436.9+5638_daily_bin746 219.229 56.649 432691201 432950401 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 :                                   858.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             298.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   990 sec.
    Turnaround time :                            993 sec.

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

