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


Performing analysis on: 4FGL_J1436.9+5638_daily_bin836
RA = 219.229, Dec = 56.649
tmin = 456019201, tmax = 456278401
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='630485', job_status='RUN', time_executed='2021-09-10 01:11:57.681341', time_epoch_executed='1631261517.68' WHERE source_name='4FGL J1436.9+5638' and cadence='daily' and bin_id='836'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/630485

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/630485/ft1_4FGL_J1436.9+5638_daily_bin836.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/630485/ft2_4FGL_J1436.9+5638_daily_bin836.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/630485/ft1_4FGL_J1436.9+5638_daily_bin836.fits outfile=/scratch/kocevski/630485/ft1_filteredMKT_4FGL_J1436.9+5638_daily_bin836.fits ra=219.229 dec=56.649 rad=12.0 tmin=456019201.0 tmax=456278401.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.94
user 6.69
sys 0.22

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/630485/ft1_filtered_4FGL_J1436.9+5638_daily_bin836.fits" evtable="EVENTS" scfile=/scratch/kocevski/630485/ft2_4FGL_J1436.9+5638_daily_bin836.fits sctable="SC_DATA" outfile=/scratch/kocevski/630485/ltcube_456019201_456278401_4FGL_J1436.9+5638_daily_bin836.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/630485/ft2_4FGL_J1436.9+5638_daily_bin836.fits
.....................!
real 11.83
user 11.50
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/630485/ft1_filtered_4FGL_J1436.9+5638_daily_bin836.fits evtable="EVENTS" scfile=/scratch/kocevski/630485/ft2_4FGL_J1436.9+5638_daily_bin836.fits sctable="SC_DATA" expcube=/scratch/kocevski/630485/ltcube_456019201_456278401_4FGL_J1436.9+5638_daily_bin836.fits outfile=/scratch/kocevski/630485/expmap_456019201_456278401_4FGL_J1436.9+5638_daily_bin836.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/630485/ltcube_456019201_456278401_4FGL_J1436.9+5638_daily_bin836.fits
.....................!
real 189.10
user 184.41
sys 4.34

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/630485/ft1_filtered_4FGL_J1436.9+5638_daily_bin836.fits scfile=/scratch/kocevski/630485/ft2_4FGL_J1436.9+5638_daily_bin836.fits outfile=/scratch/kocevski/630485/cmap_456019201_456278401_4FGL_J1436.9+5638_daily_bin836.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.56
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/630485/ft1_filtered_4FGL_J1436.9+5638_daily_bin836.fits scfile=/scratch/kocevski/630485/ft2_4FGL_J1436.9+5638_daily_bin836.fits outfile=/scratch/kocevski/630485/cmap_HighResolution_456019201_456278401_4FGL_J1436.9+5638_daily_bin836.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.53
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.1085       1.0000         .10000E-03   10000.    
     2 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    26.790       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10349E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    49.861       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.2451       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.9314       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .15135E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11467E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    40.347       1.0000         .10000E-03   10000.    
    12 'Prefactor '    49.968       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.0650       1.0000         .10000E-03   10000.    
    16 'Prefactor '    23.255       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10193E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    60.416       1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.739       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    11.399       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    7.7113       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    4.9770       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    26.957       1.0000         .10000E-03   10000.    
    32 'norm      '    .10152E-03   1.0000         .10000E-03   10000.    
    33 'Normalizat'    .94791       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .97255       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=   3829.253     FROM MIGRAD    STATUS=CONVERGED    943 CALLS     4870 TOTAL
                     EDM=   .55E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.1170        25.584        .30628E-06    .25073E-04
   2  norm          .10000E-03    5.8022       -.90953E-06** at limit **
   3  Prefactor     26.878        104.71        .44162E-05    .29730E-05
   4  Prefactor     .10000E-03    5.0313       -.21042E-06** at limit **
   5  Prefactor     49.852        92.440       -.67787E-06    .59301E-05
   6  Prefactor     8.2452        9.1920        .50535E-06    .86673E-04
   7  norm          .10000E-03    55.268        .45011E-06** at limit **
   8  norm          2.9339        8.3298        .37957E-06   -.24807E-04
   9  Prefactor     .10000E-03    240.40        .83996E-05** at limit **
  10  Prefactor     .10000E-03    296.83       -.51622E-05** at limit **
  11  Prefactor     40.274        95.063       -.22296E-05    .21397E-04
  12  Prefactor     49.964        54.105        .92278E-07    .13937E-04
  13  Prefactor     .10000E-03    1.9246       -.21889E-07** at limit **
  14  Prefactor     .10000E-03    15.812       -.69698E-06** at limit **
  15  Prefactor     1.0614        3.5904       -.10385E-05    .21399E-04
  16  Prefactor     23.257        38.685        .26210E-06    .12548E-04
  17  Prefactor     .10000E-03    26.706       -.44200E-07** at limit **
  18  Prefactor     .10000E-03    39.309       -.76174E-07** at limit **
  19  Prefactor     60.418        67.451        .14186E-06    .64852E-05
  20  Prefactor     10.741        30.212        .16556E-06    .87116E-05
  21  Prefactor     .10000E-03    15.118        .64813E-06** at limit **
  22  Prefactor     .10000E-03    11.965        .13019E-06** at limit **
  23  norm          .10000E-03    1.1289       -.20243E-07** at limit **
  24  Prefactor     11.401        23.474        .52451E-07    .13111E-04
  25  Prefactor     .10000E-03    6.3278       -.86851E-08** at limit **
  26  Prefactor     7.7137        16.706       -.18048E-06    .12162E-04
  27  Prefactor     .10000E-03    11.645       -.31187E-06** at limit **
  28  Prefactor     .10000E-03    10.238        .36629E-07** at limit **
  29  norm          4.9772        2.9667       -.19050E-07    .10194E-04
  30  Prefactor     .10000E-03    54.182        .18291E-06** at limit **
  31  Prefactor     26.961        14.152       -.33010E-06    .32374E-04
  32  norm          .10000E-03    47.516       -.18800E-06** at limit **
  33  Normalizat    .94774        .22008        .61949E-06    .73053E-04
  34  Prefactor     .97270        .22600       -.14895E-06    .76352E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.11704
  norm       = 0.0001
  Prefactor  = 26.8777
  Prefactor  = 0.000100001
  Prefactor  = 49.8516
  Prefactor  = 8.24525
  norm       = 0.0001
  norm       = 2.93395
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 40.2741
  Prefactor  = 49.9642
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.06142
  Prefactor  = 23.2572
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 60.4183
  Prefactor  = 10.7408
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 11.4012
  Prefactor  = 0.0001
  Prefactor  = 7.71372
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.97717
  Prefactor  = 0.0001
  Prefactor  = 26.9613
  norm       = 0.0001
  Normalizat = 0.947738
  Prefactor  = 0.972696
 **********
 **   18 **HESSE 
 **********

 FCN=   3829.253     FROM HESSE     STATUS=OK           732 CALLS     5602 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.1170        25.369        .17789E-03   -1.5256    
   2  norm          .10000E-03    5.9276        .28983E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     26.878        105.03        .77399E-04   -1.4671    
   4  Prefactor     .10000E-03    8.5724        .25026E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     49.852        92.686        .56792E-04   -1.4295    
   6  Prefactor     8.2452        8.7040        .13962E-03   -1.5134    
   7  norm          .10000E-03    55.264        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.9339        8.3050        .11863E-02   -1.5365    
   9  Prefactor     .10000E-03    232.75        .67082E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    296.48        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     40.274        93.537        .63105E-04   -1.4438    
  12  Prefactor     49.964        54.107        .56731E-04   -1.4293    
  13  Prefactor     .10000E-03    1.9256        .83839E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    15.855        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.0614        3.5066        .19659E-03   -1.5502    
  16  Prefactor     23.257        38.664        .83064E-04   -1.4743    
  17  Prefactor     .10000E-03    26.718        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    39.320        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     60.418        67.463        .51620E-04   -1.4152    
  20  Prefactor     10.741        29.707        .12226E-03   -1.5052    
  21  Prefactor     .10000E-03    15.154        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    11.984        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    1.8325        .12517E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     11.401        23.082        .11866E-03   -1.5033    
  25  Prefactor     .10000E-03    6.4454        .15198E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     7.7137        16.548        .14441E-03   -1.5152    
  27  Prefactor     .10000E-03    11.788        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    10.242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          4.9772        2.9680        .79611E-04   -1.5262    
  30  Prefactor     .10000E-03    54.207        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     26.961        14.081        .77159E-04   -1.4669    
  32  norm          .10000E-03    48.185        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    .94774        .25696        .23301E-03   -.94802    
  34  Prefactor     .97270        .26305        .25873E-03   -.93645    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.9506e-10
Minuit parameter uncertainties:
  1  22.8024
  2  1.41208e-06
  3  105.761
  4  0.000136017
  5  92.9557
  6  8.70529
  7  1.24625e-05
  8  8.30824
  9  0.000336232
  10  0.000301398
  11  93.8807
  12  54.1602
  13  1.31052e-07
  14  6.55077e-06
  15  3.5073
  16  38.7052
  17  5.6936e-05
  18  7.66362e-06
  19  67.548
  20  29.7481
  21  1.49506e-05
  22  5.01816e-06
  23  2.67563e-06
  24  23.1001
  25  3.17824e-06
  26  16.5579
  27  6.07156e-07
  28  1.26537e-06
  29  2.9681
  30  1.12855e-05
  31  14.0826
  32  0.000135022
  33  0.257296
  34  0.263396
Done.

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

Extracting fit parameters...

4FGL J1436.9+5638
   Spectrum: PowerLaw
357    Prefactor:  6.042e+01  6.755e+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:  9.727e-01  2.634e-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:  9.477e-01  2.573e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.90
Ra Dec: 219.229 56.649
Photon Index (Fixed Index): 1.90 +/- 0.00
Photon Flux (Fixed Index): 3.36e-08 +/- 3.75e-08
Energy Flux (Fixed Index): 3.05e-05 +/- 3.41e-05

TS (Fixed Index): 1.90
Ra Dec: 219.229 56.649
Photon Flux Upper Limit: 1.23e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.13e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/630485/likelihoodResults_456019201_456278401_4FGL_J1436.9+5638_daily_bin836.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) = 3829.19577482
delta logL = 0.0570129151538

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3829.19433048
delta logL = 0.0584572531529

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    43.984       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1322       1.0000          .0000       10.000    
     3 'Normalizat'    .94128       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97627       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=   3829.194     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      273 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     43.957        74.300        .60450E-04    .61131E-03
   2  Index         2.1321        .79531        .57051E-02    .38284E-03
   3  Normalizat    .94118        .22824        .23370E-03   -.87300E-03
   4  Prefactor     .97677        .25672        .25823E-03   -.98768E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 43.9573
  Index      = 2.13213
  Normalizat = 0.941175
  Prefactor  = 0.976773
 **********
 **   18 **HESSE 
 **********

 FCN=   3829.194     FROM HESSE     STATUS=OK            23 CALLS      296 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     43.957        67.619        .12090E-04   -1.4381    
   2  Index         2.1321        .72410        .22820E-03   -.61086    
   3  Normalizat    .94118        .22815        .46739E-04   -.95028    
   4  Prefactor     .97677        .25673        .51646E-04   -.93508    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.18645e-09
Minuit parameter uncertainties:
  1  67.7373
  2  0.727926
  3  0.228381
  4  0.257056
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/630485': 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) = 3829.19432512
delta logL = 0.0584626108471

Extracting fit parameters...

4FGL J1436.9+5638
   Spectrum: PowerLaw
357    Prefactor:  4.396e+01  6.774e+01  1.000e-04  1.000e+04 ( 1.000e-14)
358        Index:  2.132e+00  7.279e-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:  9.768e-01  2.571e-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:  9.412e-01  2.284e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.02
Ra Dec: 219.229 56.649
Photon Index (Free Index): 2.13 +/- 0.73
Photon Flux (Free Index): 4.20e-08 +/- 4.72e-08
Energy Flux (Free Index): 2.15e-05 +/- 2.93e-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/630485/cmap_HighResolution_456019201_456278401_4FGL_J1436.9+5638_daily_bin836.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.13e-03', comment='SUCCESS', photon_flux='3.36e-08', energy_flux2='2.15e-05', photon_flux_error='3.75e-08', dlogl='5.85e-02', energy_flux='3.05e-05', photon_flux2='4.20e-08', job_status='DONE', time_completed='2021-09-10 01:25:46.788664', photon_index_error2='0.73', photon_index2='2.13', ts='1.90', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='1.23e-07', energy_flux_error2='2.93e-05', EG='0.95', time_epoch_completed='1631262346.79', return_code='0', job_id='630485', GAL2='0.98', EG2='0.94', return_code2='0', energy_flux_error='3.41e-05', photon_flux_error2='4.72e-08', ts2='2.02', photon_index='1.90' WHERE bin_id='836' AND source_name='4FGL J1436.9+5638' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 01:25:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0278>
Subject: Job 630485: <4FGL_J1436.9+5638_daily_bin836> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1436.9+5638_daily_bin836 219.229 56.649 456019201 456278401 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 :                                   822.30 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             323.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   848 sec.
    Turnaround time :                            850 sec.

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

