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


Performing analysis on: 4FGL_J1436.9+5638_daily_bin958
RA = 219.229, Dec = 56.649
tmin = 487641601, tmax = 487900801
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='631957', job_status='RUN', time_executed='2021-09-10 01:16:33.953753', time_epoch_executed='1631261793.95' WHERE source_name='4FGL J1436.9+5638' and cadence='daily' and bin_id='958'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/631957

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/631957/ft1_4FGL_J1436.9+5638_daily_bin958.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/631957/ft2_4FGL_J1436.9+5638_daily_bin958.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/631957/ft1_4FGL_J1436.9+5638_daily_bin958.fits outfile=/scratch/kocevski/631957/ft1_filteredMKT_4FGL_J1436.9+5638_daily_bin958.fits ra=219.229 dec=56.649 rad=12.0 tmin=487641601.0 tmax=487900801.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.12
user 4.82
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/631957/ft1_filtered_4FGL_J1436.9+5638_daily_bin958.fits evtable="EVENTS" scfile=/scratch/kocevski/631957/ft2_4FGL_J1436.9+5638_daily_bin958.fits sctable="SC_DATA" expcube=/scratch/kocevski/631957/ltcube_487641601_487900801_4FGL_J1436.9+5638_daily_bin958.fits outfile=/scratch/kocevski/631957/expmap_487641601_487900801_4FGL_J1436.9+5638_daily_bin958.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/631957/ltcube_487641601_487900801_4FGL_J1436.9+5638_daily_bin958.fits
.....................!
real 189.30
user 184.89
sys 4.03

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/631957/ft1_filtered_4FGL_J1436.9+5638_daily_bin958.fits scfile=/scratch/kocevski/631957/ft2_4FGL_J1436.9+5638_daily_bin958.fits outfile=/scratch/kocevski/631957/cmap_487641601_487900801_4FGL_J1436.9+5638_daily_bin958.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.54
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/631957/ft1_filtered_4FGL_J1436.9+5638_daily_bin958.fits scfile=/scratch/kocevski/631957/ft2_4FGL_J1436.9+5638_daily_bin958.fits outfile=/scratch/kocevski/631957/cmap_HighResolution_487641601_487900801_4FGL_J1436.9+5638_daily_bin958.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=219.229 yref=56.649 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.41
sys 0.12

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.1205       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.8778       1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.474       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    6.7798       1.0000         .10000E-03   10000.    
     9 'Prefactor '    36.224       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .18835E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    39.044       1.0000         .10000E-03   10000.    
    12 'Prefactor '    19.908       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    20.012       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10357E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.7021       1.0000         .10000E-03   10000.    
    20 'Prefactor '    22.559       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    5.7115       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .67853E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    18.857       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10127E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    6.8470       1.0000         .10000E-03   10000.    
    30 'Prefactor '    104.33       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    32 'norm      '    15.286       1.0000         .10000E-03   10000.    
    33 'Normalizat'    .72441       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .97422       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=   4215.753     FROM MIGRAD    STATUS=CONVERGED    974 CALLS     4871 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.9088        .24498E-07** at limit **
   2  norm          .10000E-03    2.0768        .10422E-06** at limit **
   3  Prefactor     1.1061        409.30        .20615E-04   -.26144E-05
   4  Prefactor     1.8779        3.7287       -.98474E-07   -.64657E-04
   5  Prefactor     11.485        40.343       -.14553E-05    .88583E-05
   6  Prefactor     .10000E-03    6.5502       -.28605E-06** at limit **
   7  norm          .10000E-03    44.364       -.31006E-07** at limit **
   8  norm          6.7810        5.1017       -.23620E-07    .11444E-03
   9  Prefactor     36.241        28.831       -.37845E-07   -.43971E-05
  10  Prefactor     .10000E-03    168.37       -.57904E-07** at limit **
  11  Prefactor     39.050        41.128        .22667E-06    .30066E-04
  12  Prefactor     19.914        40.009       -.54802E-06    .14007E-04
  13  Prefactor     .10000E-03    2.3026       -.53559E-07** at limit **
  14  Prefactor     .10000E-03    8.3724        .10648E-07** at limit **
  15  Prefactor     .10000E-03    1.4147       -.23961E-06** at limit **
  16  Prefactor     20.073        35.686        .66236E-06    .71579E-04
  17  Prefactor     .10000E-03    21.514       -.45506E-06** at limit **
  18  Prefactor     .10000E-03    16.614       -.37190E-07** at limit **
  19  Prefactor     4.5371        115.75       -.78392E-06    .75587E-05
  20  Prefactor     22.555        16.817       -.33310E-07   -.43251E-05
  21  Prefactor     .10000E-03    6.8150       -.74807E-07** at limit **
  22  Prefactor     .10000E-03    6.7567       -.18399E-07** at limit **
  23  norm          5.7116        2.4148       -.17078E-07   -.71621E-04
  24  Prefactor     .10000E-03    6.6062       -.31722E-06** at limit **
  25  Prefactor     .10002E-03    3.9788        .50246E-06** at limit **
  26  Prefactor     18.866        11.968       -.41291E-06   -.28827E-04
  27  Prefactor     .10000E-03    7.3752       -.56926E-06** at limit **
  28  Prefactor     .10000E-03    19.313       -.56026E-06** at limit **
  29  norm          6.8450        4.0317        .69304E-07    .36801E-03
  30  Prefactor     104.83        172.83        .92460E-06    .20667E-04
  31  Prefactor     .10000E-03    5.1896       -.55895E-07** at limit **
  32  norm          15.286        16.251       -.17979E-06   -.16044E-04
  33  Normalizat    .72406        .23430        .45760E-05    .71465E-04
  34  Prefactor     .97457        .24766       -.39911E-05    .11845E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.1061
  Prefactor  = 1.8779
  Prefactor  = 11.4846
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 6.78096
  Prefactor  = 36.2412
  Prefactor  = 0.0001
  Prefactor  = 39.0501
  Prefactor  = 19.914
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.0734
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.53709
  Prefactor  = 22.5548
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.71156
  Prefactor  = 0.0001
  Prefactor  = 0.000100019
  Prefactor  = 18.8661
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.84498
  Prefactor  = 104.83
  Prefactor  = 0.0001
  norm       = 15.2865
  Normalizat = 0.72406
  Prefactor  = 0.97457
 **********
 **   18 **HESSE 
 **********

 FCN=   4215.753     FROM HESSE     STATUS=OK           738 CALLS     5609 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.9101        .12537E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    2.1192        .91397E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.1061        412.60        .83615E-02   -1.5498    
   4  Prefactor     1.8779        3.6910        .16758E-03   -1.5434    
   5  Prefactor     11.485        40.043        .11827E-03   -1.5030    
   6  Prefactor     .10000E-03    6.5713        .16172E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    44.372        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          6.7810        5.0853        .11790E-03   -1.5187    
   9  Prefactor     36.241        28.824        .66587E-04   -1.4503    
  10  Prefactor     .10000E-03    168.37        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     39.050        41.132        .64146E-04   -1.4457    
  12  Prefactor     19.914        40.007        .89768E-04   -1.4815    
  13  Prefactor     .10000E-03    2.3077        .96183E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    8.3828        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.4714        .76027E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     20.073        35.835        .89535E-04   -1.4812    
  17  Prefactor     .10000E-03    21.689        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    16.616        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.5371        113.51        .18558E-03   -1.5282    
  20  Prefactor     22.555        16.815        .84333E-04   -1.4758    
  21  Prefactor     .10000E-03    6.8221        .16557E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    6.7637        .16483E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          5.7116        2.4142        .63161E-04   -1.5230    
  24  Prefactor     .10000E-03    6.6299        .16301E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10002E-03    5.8555        .46033E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     18.866        11.955        .92234E-04   -1.4839    
  27  Prefactor     .10000E-03    7.4708        .17303E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    19.407        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          6.8450        4.0322        .47611E-03   -1.5185    
  30  Prefactor     104.83        172.62        .19684E-03   -1.3657    
  31  Prefactor     .10000E-03    5.1922        .14445E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  norm          15.286        16.250        .10244E-03   -1.4926    
  33  Normalizat    .72406        .23584        .23299E-03   -1.0295    
  34  Prefactor     .97457        .24830        .23831E-03   -.93582    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.1864e-08
Minuit parameter uncertainties:
  1  2.85533e-06
  2  1.06558e-05
  3  43.0258
  4  3.69145
  5  40.1364
  6  1.7934e-05
  7  3.64598e-06
  8  5.0856
  9  28.8348
  10  1.20014e-05
  11  41.1618
  12  40.0606
  13  1.40826e-06
  14  3.70803e-06
  15  1.02313e-06
  16  35.8732
  17  6.60062e-06
  18  4.25995e-06
  19  45.4845
  20  16.8184
  21  1.10811e-05
  22  1.80755e-06
  23  2.41426
  24  4.31061e-05
  25  0.000673381
  26  11.9566
  27  0.000114848
  28  0.000175544
  29  4.03233
  30  173.454
  31  8.1125e-06
  32  16.2545
  33  0.236174
  34  0.24859
Done.

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

Extracting fit parameters...

4FGL J1436.9+5638
   Spectrum: PowerLaw
357    Prefactor:  4.537e+00  4.548e+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.746e-01  2.486e-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:  7.241e-01  2.362e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/631957/likelihoodResults_487641601_487900801_4FGL_J1436.9+5638_daily_bin958.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4213.63044299
delta logL = 2.12208370003

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4213.24040114
delta logL = 2.5121255488

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    6.8737       1.0000          .0000       10.000    
     3 'Normalizat'    .58896       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0834       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=   4213.240     FROM MIGRAD    STATUS=CONVERGED    291 CALLS      595 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .32549E-02    .25040E-03** at limit **
   2  Index         6.8738        1.7604        .52421E-01    .26386E-03
   3  Normalizat    .58875        .58600E-01    .40788E-01   -.70212E-04
   4  Prefactor     1.0836        .67683E-01    .38255E-01    .14878E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 6.87382
  Normalizat = 0.588753
  Prefactor  = 1.08361
 **********
 **   18 **HESSE 
 **********

 FCN=   4213.240     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      634 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .40672E-02    .26517E-03   -76.969    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         6.8738        2.1293        .22174E-02   -615.37    
   3  Normalizat    .58875        .78164E-01    .25466E-03    36.614    
   4  Prefactor     1.0836        .91301E-01    .22702E-03   -46.224    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.63092e-09
Minuit parameter uncertainties:
  1  1.26024e-09
  2  2.21236
  3  0.0781787
  4  0.0913137
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/631957': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4213.24040018
delta logL = 2.51212650511

Extracting fit parameters...

4FGL J1436.9+5638
   Spectrum: PowerLaw
357    Prefactor:  1.000e-04  1.260e-09  1.000e-04  1.000e+04 ( 1.000e-14)
358        Index:  6.874e+00  2.212e+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:  1.084e+00  9.131e-02  0.000e+00  1.000e+01 ( 1.000e+00)
704        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
705        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
702   Normalization:  5.888e-01  7.818e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.41
Ra Dec: 219.229 56.649
Photon Index (Free Index): 6.87 +/- 2.21
Photon Flux (Free Index): 1.04e-07 +/- 7.08e-07
Energy Flux (Free Index): 1.25e-05 +/- 8.43e-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/631957/cmap_HighResolution_487641601_487900801_4FGL_J1436.9+5638_daily_bin958.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.88e-03', comment='SUCCESS', energy_flux2='1.25e-05', dlogl='2.51e+00', photon_flux2='1.04e-07', job_status='DONE', time_completed='2021-09-10 01:31:27.919775', photon_index_error2='2.21', photon_index2='6.87', ts='0.01', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='6.57e-08', energy_flux_error2='8.43e-05', EG='0.72', time_epoch_completed='1631262687.92', return_code='0', job_id='631957', GAL2='1.08', EG2='0.59', return_code2='102', photon_flux_error2='7.08e-07', ts2='5.41', photon_index='1.90' WHERE bin_id='958' AND source_name='4FGL J1436.9+5638' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 01:31:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0161>
Subject: Job 631957: <4FGL_J1436.9+5638_daily_bin958> in cluster <slac> Done

Job <4FGL_J1436.9+5638_daily_bin958> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Sep 10 01:16:14 2021
Job was executed on host(s) <bullet0161>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 01:16:16 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:16:16 2021
Terminated at Fri Sep 10 01:31:29 2021
Results reported at Fri Sep 10 01:31:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1436.9+5638_daily_bin958 219.229 56.649 487641601 487900801 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 :                                   887.41 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             344.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   912 sec.
    Turnaround time :                            915 sec.

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

