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


Performing analysis on: 4FGL_J1736.0+2033_daily_bin1074
RA = 264.019, Dec = 20.5559
tmin = 517708801, tmax = 517968001
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='926277', job_status='RUN', time_executed='2021-09-18 00:03:01.106057', time_epoch_executed='1631948581.11' WHERE source_name='4FGL J1736.0+2033' and cadence='daily' and bin_id='1074'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/926277

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/926277/ft1_4FGL_J1736.0+2033_daily_bin1074.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/926277/ft2_4FGL_J1736.0+2033_daily_bin1074.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/926277/ft1_4FGL_J1736.0+2033_daily_bin1074.fits outfile=/scratch/kocevski/926277/ft1_filteredMKT_4FGL_J1736.0+2033_daily_bin1074.fits ra=264.019 dec=20.5559 rad=12.0 tmin=517708801.0 tmax=517968001.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 3.66
user 3.41
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/926277/ft2_4FGL_J1736.0+2033_daily_bin1074.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/926277/ft2_4FGL_J1736.0+2033_daily_bin1074.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/926277/ft1_filteredMKT_4FGL_J1736.0+2033_daily_bin1074.fits evtable="EVENTS" outfile="/scratch/kocevski/926277/ft1_filtered_4FGL_J1736.0+2033_daily_bin1074.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.50
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/926277/ft1_filtered_4FGL_J1736.0+2033_daily_bin1074.fits" evtable="EVENTS" scfile=/scratch/kocevski/926277/ft2_4FGL_J1736.0+2033_daily_bin1074.fits sctable="SC_DATA" outfile=/scratch/kocevski/926277/ltcube_517708801_517968001_4FGL_J1736.0+2033_daily_bin1074.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/926277/ft2_4FGL_J1736.0+2033_daily_bin1074.fits
.....................!
real 11.85
user 11.49
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/926277/ft1_filtered_4FGL_J1736.0+2033_daily_bin1074.fits evtable="EVENTS" scfile=/scratch/kocevski/926277/ft2_4FGL_J1736.0+2033_daily_bin1074.fits sctable="SC_DATA" expcube=/scratch/kocevski/926277/ltcube_517708801_517968001_4FGL_J1736.0+2033_daily_bin1074.fits outfile=/scratch/kocevski/926277/expmap_517708801_517968001_4FGL_J1736.0+2033_daily_bin1074.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/926277/ltcube_517708801_517968001_4FGL_J1736.0+2033_daily_bin1074.fits
.....................!
real 189.94
user 185.34
sys 4.18

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 189 point sources and 0 extended sources

Setting source of interest to:
4FGL J1736.0+2033 @ 264.019 20.5559

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/926277/ft1_filtered_4FGL_J1736.0+2033_daily_bin1074.fits scfile=/scratch/kocevski/926277/ft2_4FGL_J1736.0+2033_daily_bin1074.fits outfile=/scratch/kocevski/926277/cmap_517708801_517968001_4FGL_J1736.0+2033_daily_bin1074.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=264.019 yref=20.5559 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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/926277/ft1_filtered_4FGL_J1736.0+2033_daily_bin1074.fits scfile=/scratch/kocevski/926277/ft2_4FGL_J1736.0+2033_daily_bin1074.fits outfile=/scratch/kocevski/926277/cmap_HighResolution_517708801_517968001_4FGL_J1736.0+2033_daily_bin1074.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=264.019 yref=20.5559 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.58
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/926277/ft1_filtered_4FGL_J1736.0+2033_daily_bin1074.fits evtable="EVENTS" scfile=/scratch/kocevski/926277/ft2_4FGL_J1736.0+2033_daily_bin1074.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/926277/Model_4FGL_J1736.0+2033_daily_bin1074.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/926277/ft1_filtered_4FGL_J1736.0+2033_daily_bin1074.fits.....................!
real 93.90
user 92.47
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/926277/ft1_filtered_4FGL_J1736.0+2033_daily_bin1074.fits', '/scratch/kocevski/926277/ft2_4FGL_J1736.0+2033_daily_bin1074.fits', expMap='/scratch/kocevski/926277/expmap_517708801_517968001_4FGL_J1736.0+2033_daily_bin1074.fits', expCube='/scratch/kocevski/926277/ltcube_517708801_517968001_4FGL_J1736.0+2033_daily_bin1074.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/926277/Model_4FGL_J1736.0+2033_daily_bin1074.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1736.0+2033'

4FGL J1736.0+2033
   Spectrum: LogParabola
284         norm:  9.104e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
285        alpha:  1.744e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
286         beta:  1.473e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
287           Eb:  2.550e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/926277/ft1_filtered_4FGL_J1736.0+2033_daily_bin1074.fits
Spacecraft file(s): /scratch/kocevski/926277/ft2_4FGL_J1736.0+2033_daily_bin1074.fits
Exposure map: /scratch/kocevski/926277/expmap_517708801_517968001_4FGL_J1736.0+2033_daily_bin1074.fits
Exposure cube: /scratch/kocevski/926277/ltcube_517708801_517968001_4FGL_J1736.0+2033_daily_bin1074.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/926277/Model_4FGL_J1736.0+2033_daily_bin1074.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) = 11070.7478284

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    33.412       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.880       1.0000         .10000E-03   10000.    
     6 'norm      '    1.0897       1.0000         .10000E-03   10000.    
     7 'Prefactor '    22.832       1.0000         .10000E-03   10000.    
     8 'norm      '    11.606       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .20401E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .23475E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .88609       1.0000         .10000E-03   10000.    
    14 'Prefactor '    34.123       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10134E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0144       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0474       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6350E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   11070.74     FROM MIGRAD    STATUS=CONVERGED    422 CALLS     2040 TOTAL
                     EDM=   .82E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.1618       -.11518E-06** at limit **
   2  Prefactor     33.421        37.383        .36964E-05    .59635E-05
   3  Prefactor     .10000E-03    16.819       -.80657E-06** at limit **
   4  Prefactor     .10000E-03    56.226        .15194E-04** at limit **
   5  Prefactor     12.881        13.085       -.84449E-07    .15810E-04
   6  norm          1.0892        2.2202       -.54027E-06   -.13862E-02
   7  Prefactor     22.826        16.071        .67973E-06    .35650E-03
   8  norm          11.603        9.0040        .74578E-05    .39263E-03
   9  Prefactor     .10000E-03    1.3470       -.11641E-05** at limit **
  10  norm          .10000E-03    181.86       -.95643E-05** at limit **
  11  Prefactor     .10000E-03    38.266       -.60846E-06** at limit **
  12  Prefactor     .10000E-03    24.831        .21038E-05** at limit **
  13  norm          .88593        .83115       -.64539E-07   -.99015E-03
  14  Prefactor     34.131        33.759        .19310E-05    .29319E-04
  15  Prefactor     .10000E-03    52.357       -.90815E-05** at limit **
  16  Prefactor     .10000E-03    2.3957       -.19194E-07** at limit **
  17  norm          .10000E-03    3.2309       -.64864E-07** at limit **
  18  Prefactor     .10000E-03    38.416       -.37486E-05** at limit **
  19  Normalizat    1.0141        .24521       -.10910E-05    .22293E-03
  20  Prefactor     1.0475        .81244E-01   -.10192E-06    .82409E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 33.4212
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.881
  norm       = 1.08922
  Prefactor  = 22.8256
  norm       = 11.6029
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.885928
  Prefactor  = 34.1308
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.01411
  Prefactor  = 1.04751
 **********
 **   18 **HESSE 
 **********

 FCN=   11070.74     FROM HESSE     STATUS=OK           287 CALLS     2327 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.1711        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     33.421        37.515        .69325E-04   -1.4551    
   3  Prefactor     .10000E-03    16.827        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    56.007        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     12.881        13.068        .11161E-03   -1.4990    
   6  norm          1.0892        2.1844        .21815E-03   -1.5499    
   7  Prefactor     22.826        15.806        .83828E-04   -1.4752    
   8  norm          11.603        8.9578        .11759E-03   -1.5027    
   9  Prefactor     .10000E-03    7.2057        .22549E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    182.73        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    38.268        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    24.861        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .88593        .75478        .89606E-03   -1.5520    
  14  Prefactor     34.131        33.761        .68600E-04   -1.4539    
  15  Prefactor     .10000E-03    52.337        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.3997        .15903E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    3.2348        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    38.621        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0141        .28177        .46440E-03   -.92559    
  20  Prefactor     1.0475        .94156E-01    .15582E-03   -.91162    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.76203e-09
Minuit parameter uncertainties:
  1  1.06943e-05
  2  37.5417
  3  2.02487e-06
  4  1.48256e-05
  5  13.0709
  6  2.18452
  7  15.8093
  8  8.95883
  9  0.00030069
  10  0.000157647
  11  2.56463e-07
  12  1.9009e-06
  13  0.754789
  14  33.7795
  15  8.34946e-05
  16  9.76237e-07
  17  4.77787e-07
  18  4.05089e-05
  19  0.282189
  20  0.0941712
Done.

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

Extracting fit parameters...

4FGL J1736.0+2033
   Spectrum: LogParabola
284         norm:  1.000e-04  1.576e-04  1.000e-04  1.000e+04 ( 1.000e-14)
285        alpha:  1.744e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
286         beta:  1.473e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
287           Eb:  2.550e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
632    Prefactor:  1.048e+00  9.417e-02  0.000e+00  1.000e+01 ( 1.000e+00)
633        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
634        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
631   Normalization:  1.014e+00  2.822e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 264.019 20.556
Photon Flux Upper Limit: 4.00e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.33e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/926277/likelihoodResults_517708801_517968001_4FGL_J1736.0+2033_daily_bin1074.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) = 11070.7365237
delta logL = -2.59366297541e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11070.7365237
delta logL = -2.59361258941e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .96365E-02   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7436       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0141       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0475       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6350E+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=   11070.74     FROM MIGRAD    STATUS=CONVERGED    118 CALLS      259 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .27423E-02    7614.8        .24066       -.94283E-03
   2  alpha         1.8869        3.8936        .17532       -.14030E-03
   3  Normalizat    1.0141        .89817E-01    .46440E-03   -.82235E-03
   4  Prefactor     1.0475        .33316E-01    .15582E-03   -.23605E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.00274232
  alpha      = 1.88685
  Normalizat = 1.01411
  Prefactor  = 1.04751
 **********
 **   18 **HESSE 
 **********

 FCN=   11070.74     FROM HESSE     STATUS=OK            33 CALLS      292 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .27423E-02    71.264        .23940       -1.5698    
   2  alpha         1.8869        3.4281        .35063E-01   -.24779    
   3  Normalizat    1.0141        .26669        .92880E-04   -.92559    
   4  Prefactor     1.0475        .91993E-01    .31164E-04   -.91162    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.60174e-08
Minuit parameter uncertainties:
  1  0.86891
  2  2.82602
  3  0.267037
  4  0.0920073
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/926277': 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) = 11070.7364969
delta logL = 7.78378307587e-07

Extracting fit parameters...

4FGL J1736.0+2033
   Spectrum: LogParabola
284         norm:  2.742e-03  8.689e-01  1.000e-04  1.000e+04 ( 1.000e-14)
285        alpha:  1.887e+00  2.826e+00  0.000e+00  5.000e+00 ( 1.000e+00)
286         beta:  1.473e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
287           Eb:  2.550e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
632    Prefactor:  1.048e+00  9.201e-02  0.000e+00  1.000e+01 ( 1.000e+00)
633        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
634        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
631   Normalization:  1.014e+00  2.670e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 264.019 20.556

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/926277/cmap_HighResolution_517708801_517968001_4FGL_J1736.0+2033_daily_bin1074.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.33e-05', job_status='DONE', photon_flux_upper_limit='4.00e-08', time_completed='2021-09-18 00:17:14.741772', job_id='926277', GAL2='1.05', fit_tolerance='1e-08', EG2='1.01', EG='1.01', time_epoch_completed='1631949434.74', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='7.78e-07', ts2='0.00', photon_index_error='0.00', photon_index='1.74' WHERE bin_id='1074' AND source_name='4FGL J1736.0+2033' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 00:17:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0043>
Subject: Job 926277: <4FGL_J1736.0+2033_daily_bin1074> in cluster <slac> Done

Job <4FGL_J1736.0+2033_daily_bin1074> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep 18 00:00:48 2021
Job was executed on host(s) <bullet0043>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 18 00:00:50 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 18 00:00:50 2021
Terminated at Sat Sep 18 00:17:15 2021
Results reported at Sat Sep 18 00:17:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1736.0+2033_daily_bin1074 264.019 20.5559 517708801 517968001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1736.0+2033 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   848.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             352.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   985 sec.
    Turnaround time :                            987 sec.

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

