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


Performing analysis on: 4FGL_J1436.9+5638_daily_bin714
RA = 219.229, Dec = 56.649
tmin = 424396801, tmax = 424656001
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='630291', job_status='RUN', time_executed='2021-09-10 01:15:30.938222', time_epoch_executed='1631261730.94' WHERE source_name='4FGL J1436.9+5638' and cadence='daily' and bin_id='714'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/630291

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/630291/ft1_4FGL_J1436.9+5638_daily_bin714.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/630291/ft2_4FGL_J1436.9+5638_daily_bin714.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/630291/ft1_4FGL_J1436.9+5638_daily_bin714.fits outfile=/scratch/kocevski/630291/ft1_filteredMKT_4FGL_J1436.9+5638_daily_bin714.fits ra=219.229 dec=56.649 rad=12.0 tmin=424396801.0 tmax=424656001.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.07
user 4.80
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/630291/ft1_filtered_4FGL_J1436.9+5638_daily_bin714.fits evtable="EVENTS" scfile=/scratch/kocevski/630291/ft2_4FGL_J1436.9+5638_daily_bin714.fits sctable="SC_DATA" expcube=/scratch/kocevski/630291/ltcube_424396801_424656001_4FGL_J1436.9+5638_daily_bin714.fits outfile=/scratch/kocevski/630291/expmap_424396801_424656001_4FGL_J1436.9+5638_daily_bin714.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/630291/ltcube_424396801_424656001_4FGL_J1436.9+5638_daily_bin714.fits
.....................!
real 193.94
user 185.04
sys 4.42

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/630291/ft1_filtered_4FGL_J1436.9+5638_daily_bin714.fits scfile=/scratch/kocevski/630291/ft2_4FGL_J1436.9+5638_daily_bin714.fits outfile=/scratch/kocevski/630291/cmap_424396801_424656001_4FGL_J1436.9+5638_daily_bin714.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 2.02
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/630291/ft1_filtered_4FGL_J1436.9+5638_daily_bin714.fits scfile=/scratch/kocevski/630291/ft2_4FGL_J1436.9+5638_daily_bin714.fits outfile=/scratch/kocevski/630291/cmap_HighResolution_424396801_424656001_4FGL_J1436.9+5638_daily_bin714.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 1.73
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    31.937       1.0000         .10000E-03   10000.    
     2 'norm      '    10.515       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.1790       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .14105E-01   1.0000         .10000E-03   10000.    
     8 'norm      '    .10651E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.1544       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .28142E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    82.373       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.8615       1.0000         .10000E-03   10000.    
    14 'Prefactor '    27.639       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.5635       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.6793       1.0000         .10000E-03   10000.    
    18 'Prefactor '    54.835       1.0000         .10000E-03   10000.    
    19 'Prefactor '    95.444       1.0000         .10000E-03   10000.    
    20 'Prefactor '    18.141       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.6995       1.0000         .10000E-03   10000.    
    23 'norm      '    5.8304       1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.1921       1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.2539       1.0000         .10000E-03   10000.    
    26 'Prefactor '    8.3794       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    25.141       1.0000         .10000E-03   10000.    
    29 'norm      '    10.530       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    6.8827       1.0000         .10000E-03   10000.    
    32 'norm      '    10.035       1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.3131       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .70744       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=   3364.030     FROM MIGRAD    STATUS=CONVERGED    943 CALLS     4835 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.928        43.999        .92348E-05   -.11239E-04
   2  norm          10.517        10.984        .46904E-05   -.43843E-04
   3  Prefactor     .10000E-03    50.252        .11166E-04** at limit **
   4  Prefactor     6.1800        6.8175        .84918E-06   -.19290E-03
   5  Prefactor     .10000E-03    63.007       -.21813E-04** at limit **
   6  Prefactor     .10000E-03    10.376        .12055E-07** at limit **
   7  norm          .10000E-03    1313.3       -.10651E-03** at limit **
   8  norm          .10000E-03    7.4196        .23528E-06** at limit **
   9  Prefactor     5.1562        65.764       -.71967E-05   -.14563E-04
  10  Prefactor     .10000E-03    270.78        .47605E-04** at limit **
  11  Prefactor     .10000E-03    41.440       -.16708E-04** at limit **
  12  Prefactor     82.390        111.73        .66405E-05   -.46157E-04
  13  Prefactor     2.8615        11.810        .86813E-05   -.22941E-03
  14  Prefactor     27.641        33.183       -.12798E-05   -.35739E-04
  15  Prefactor     2.5651        7.6220       -.29426E-05   -.67504E-03
  16  Prefactor     .10000E-03    58.536        .18833E-04** at limit **
  17  Prefactor     4.6674        254.84        .18143E-04   -.23549E-04
  18  Prefactor     54.850        105.57        .64881E-05   -.17352E-04
  19  Prefactor     95.446        67.144       -.41770E-06   -.82382E-04
  20  Prefactor     18.139        25.512        .13556E-04   -.23082E-04
  21  Prefactor     .10000E-03    8.7922        .10713E-06** at limit **
  22  Prefactor     7.7495        29.498       -.67776E-05   -.44799E-04
  23  norm          5.8300        2.9385       -.14767E-06   -.72292E-04
  24  Prefactor     2.1903        43.609        .77579E-06   -.20159E-03
  25  Prefactor     2.2479        14.530       -.10671E-05   -.21515E-03
  26  Prefactor     8.3832        16.204        .60565E-05   -.13782E-03
  27  Prefactor     .10000E-03    6.8644        .14155E-06** at limit **
  28  Prefactor     25.147        30.711       -.32336E-05   -.13525E-04
  29  norm          10.530        4.3362        .11345E-06   -.73474E-04
  30  Prefactor     .10000E-03    36.636        .75361E-05** at limit **
  31  Prefactor     6.8830        7.2483       -.18655E-05   -.36098E-05
  32  norm          10.035        9.9868        .43740E-05   -.13189E-04
  33  Normalizat    1.3130        .25733       -.59454E-05    .10713E-03
  34  Prefactor     .70737        .26902        .14971E-05   -.16050E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.9281
  norm       = 10.5171
  Prefactor  = 0.0001
  Prefactor  = 6.17995
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100004
  norm       = 0.0001
  Prefactor  = 5.15618
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 82.3896
  Prefactor  = 2.86151
  Prefactor  = 27.6408
  Prefactor  = 2.5651
  Prefactor  = 0.0001
  Prefactor  = 4.66739
  Prefactor  = 54.8502
  Prefactor  = 95.4456
  Prefactor  = 18.1393
  Prefactor  = 0.0001
  Prefactor  = 7.74951
  norm       = 5.83005
  Prefactor  = 2.19032
  Prefactor  = 2.24785
  Prefactor  = 8.38321
  Prefactor  = 0.0001
  Prefactor  = 25.1474
  norm       = 10.5305
  Prefactor  = 0.0001
  Prefactor  = 6.88304
  norm       = 10.0353
  Normalizat = 1.31302
  Prefactor  = 0.707373
 **********
 **   18 **HESSE 
 **********

 FCN=   3364.030     FROM HESSE     STATUS=OK           734 CALLS     5569 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.928        44.030        .70903E-04   -1.4577    
   2  norm          10.517        10.984        .12356E-03   -1.5059    
   3  Prefactor     .10000E-03    50.264        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.1800        6.8283        .15071E-03   -1.5211    
   5  Prefactor     .10000E-03    63.197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    10.390        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1319.8        .18187E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    7.7447        .30831E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.1562        65.771        .17708E-03   -1.5254    
  10  Prefactor     .10000E-03    270.85        .21417E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    41.471        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     82.390        110.50        .44256E-04   -1.3890    
  13  Prefactor     2.8615        11.356        .24032E-03   -1.5370    
  14  Prefactor     27.641        33.160        .76203E-04   -1.4656    
  15  Prefactor     2.5651        7.0458        .15148E-03   -1.5388    
  16  Prefactor     .10000E-03    58.748        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.6674        218.36        .18604E-03   -1.5276    
  18  Prefactor     54.850        105.32        .54168E-04   -1.4225    
  19  Prefactor     95.446        67.087        .41141E-04   -1.3751    
  20  Prefactor     18.139        25.466        .94035E-04   -1.4856    
  21  Prefactor     .10000E-03    8.7955        .16798E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     7.7495        28.689        .14452E-03   -1.5151    
  23  norm          5.8300        2.9345        .66856E-04   -1.5225    
  24  Prefactor     2.1903        39.441        .27796E-03   -1.5412    
  25  Prefactor     2.2479        13.721        .27367E-03   -1.5408    
  26  Prefactor     8.3832        15.636        .13849E-03   -1.5129    
  27  Prefactor     .10000E-03    6.8749        .14841E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     25.147        30.718        .79892E-04   -1.4705    
  29  norm          10.530        4.3371        .75069E-04   -1.5059    
  30  Prefactor     .10000E-03    36.644        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     6.8830        7.2503        .15293E-03   -1.5183    
  32  norm          10.035        9.9835        .12649E-03   -1.5074    
  33  Normalizat    1.3130        .31039        .22442E-03   -.83179    
  34  Prefactor     .70737        .31948        .32840E-03   -1.0324    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.6049e-09
Minuit parameter uncertainties:
  1  44.0753
  2  10.9858
  3  7.72418e-05
  4  6.82919
  5  0.000184159
  6  6.47187e-06
  7  0.00490008
  8  6.15691e-05
  9  36.8806
  10  4.67523e-05
  11  4.97502e-05
  12  110.78
  13  11.3649
  14  33.1816
  15  7.04806
  16  1.49975e-05
  17  64.0976
  18  105.683
  19  67.1401
  20  25.481
  21  1.3592e-05
  22  28.7398
  23  2.93456
  24  18.603
  25  11.111
  26  15.6436
  27  2.37439e-05
  28  30.7374
  29  4.33722
  30  1.50923e-05
  31  7.25122
  32  9.98511
  33  0.31083
  34  0.320315
Done.

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

Extracting fit parameters...

4FGL J1436.9+5638
   Spectrum: PowerLaw
357    Prefactor:  9.545e+01  6.714e+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:  7.074e-01  3.203e-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.313e+00  3.108e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.85
Ra Dec: 219.229 56.649
Photon Index (Fixed Index): 1.90 +/- 0.00
Photon Flux (Fixed Index): 5.30e-08 +/- 3.73e-08
Energy Flux (Fixed Index): 4.81e-05 +/- 3.39e-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) = 3363.86154673
delta logL = 0.168178715609

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3363.85226455
delta logL = 0.177460890036

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    61.233       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2609       1.0000          .0000       10.000    
     3 'Normalizat'    1.2754       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73359       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=   3363.852     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      285 TOTAL
                     EDM=   .97E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     61.279        81.734        .25638E-03    .45214E-03
   2  Index         2.2599        .70732        .36496E-02    .40932E-03
   3  Normalizat    1.2764        .29100        .22697E-03    .13654E-02
   4  Prefactor     .73211        .31601        .32323E-03    .14709E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 61.2789
  Index      = 2.25993
  Normalizat = 1.27637
  Prefactor  = 0.732112
 **********
 **   18 **HESSE 
 **********

 FCN=   3363.852     FROM HESSE     STATUS=OK            23 CALLS      308 TOTAL
                     EDM=   .94E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     61.279        72.513        .51276E-04   -1.4141    
   2  Index         2.2599        .62724        .14599E-03   -.57999    
   3  Normalizat    1.2764        .28927        .45394E-04   -.84275    
   4  Prefactor     .73211        .31511        .64646E-04   -1.0228    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.41886e-09
Minuit parameter uncertainties:
  1  72.6173
  2  0.629613
  3  0.289634
  4  0.31588
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/630291': 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) = 3363.8522498
delta logL = 0.177475637712

Extracting fit parameters...

4FGL J1436.9+5638
   Spectrum: PowerLaw
357    Prefactor:  6.128e+01  7.262e+01  1.000e-04  1.000e+04 ( 1.000e-14)
358        Index:  2.260e+00  6.296e-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:  7.321e-01  3.159e-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.276e+00  2.896e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.17
Ra Dec: 219.229 56.649
Photon Index (Free Index): 2.26 +/- 0.63
Photon Flux (Free Index): 8.00e-08 +/- 6.79e-08
Energy Flux (Free Index): 3.23e-05 +/- 2.60e-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/630291/cmap_HighResolution_424396801_424656001_4FGL_J1436.9+5638_daily_bin714.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.30e-08', energy_flux2='3.23e-05', photon_flux_error='3.73e-08', dlogl='1.77e-01', energy_flux='4.81e-05', photon_flux2='8.00e-08', job_status='DONE', time_completed='2021-09-10 01:27:54.359256', photon_index_error2='0.63', photon_index2='2.26', ts='5.85', fit_tolerance='1e-08', GAL='0.71', photon_index_error='0.00', energy_flux_error2='2.60e-05', EG='1.31', time_epoch_completed='1631262474.36', return_code='0', job_id='630291', GAL2='0.73', EG2='1.28', return_code2='0', energy_flux_error='3.39e-05', photon_flux_error2='6.79e-08', ts2='6.17', photon_index='1.90' WHERE bin_id='714' AND source_name='4FGL J1436.9+5638' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 01:27:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0287>
Subject: Job 630291: <4FGL_J1436.9+5638_daily_bin714> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1436.9+5638_daily_bin714 219.229 56.649 424396801 424656001 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 :                                   681.36 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             270.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   992 sec.
    Turnaround time :                            995 sec.

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

