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


Performing analysis on: 4FGL_J1736.0+2033_daily_bin865
RA = 264.019, Dec = 20.5559
tmin = 463536001, tmax = 463795201
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='925961', job_status='RUN', time_executed='2021-09-18 00:00:36.174474', time_epoch_executed='1631948436.17' WHERE source_name='4FGL J1736.0+2033' and cadence='daily' and bin_id='865'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/925961

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/925961/ft1_4FGL_J1736.0+2033_daily_bin865.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/925961/ft2_4FGL_J1736.0+2033_daily_bin865.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/925961/ft1_4FGL_J1736.0+2033_daily_bin865.fits outfile=/scratch/kocevski/925961/ft1_filteredMKT_4FGL_J1736.0+2033_daily_bin865.fits ra=264.019 dec=20.5559 rad=12.0 tmin=463536001.0 tmax=463795201.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.45
user 3.23
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/925961/ft1_filtered_4FGL_J1736.0+2033_daily_bin865.fits" evtable="EVENTS" scfile=/scratch/kocevski/925961/ft2_4FGL_J1736.0+2033_daily_bin865.fits sctable="SC_DATA" outfile=/scratch/kocevski/925961/ltcube_463536001_463795201_4FGL_J1736.0+2033_daily_bin865.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/925961/ft2_4FGL_J1736.0+2033_daily_bin865.fits
.....................!
real 11.72
user 11.35
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/925961/ft1_filtered_4FGL_J1736.0+2033_daily_bin865.fits evtable="EVENTS" scfile=/scratch/kocevski/925961/ft2_4FGL_J1736.0+2033_daily_bin865.fits sctable="SC_DATA" expcube=/scratch/kocevski/925961/ltcube_463536001_463795201_4FGL_J1736.0+2033_daily_bin865.fits outfile=/scratch/kocevski/925961/expmap_463536001_463795201_4FGL_J1736.0+2033_daily_bin865.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/925961/ltcube_463536001_463795201_4FGL_J1736.0+2033_daily_bin865.fits
.....................!
real 190.85
user 185.53
sys 4.96

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/925961/ft1_filtered_4FGL_J1736.0+2033_daily_bin865.fits scfile=/scratch/kocevski/925961/ft2_4FGL_J1736.0+2033_daily_bin865.fits outfile=/scratch/kocevski/925961/cmap_463536001_463795201_4FGL_J1736.0+2033_daily_bin865.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.53
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/925961/ft1_filtered_4FGL_J1736.0+2033_daily_bin865.fits scfile=/scratch/kocevski/925961/ft2_4FGL_J1736.0+2033_daily_bin865.fits outfile=/scratch/kocevski/925961/cmap_HighResolution_463536001_463795201_4FGL_J1736.0+2033_daily_bin865.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.54
user 0.38
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/925961/ft1_filtered_4FGL_J1736.0+2033_daily_bin865.fits', '/scratch/kocevski/925961/ft2_4FGL_J1736.0+2033_daily_bin865.fits', expMap='/scratch/kocevski/925961/expmap_463536001_463795201_4FGL_J1736.0+2033_daily_bin865.fits', expCube='/scratch/kocevski/925961/ltcube_463536001_463795201_4FGL_J1736.0+2033_daily_bin865.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/925961/Model_4FGL_J1736.0+2033_daily_bin865.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/925961/ft1_filtered_4FGL_J1736.0+2033_daily_bin865.fits
Spacecraft file(s): /scratch/kocevski/925961/ft2_4FGL_J1736.0+2033_daily_bin865.fits
Exposure map: /scratch/kocevski/925961/expmap_463536001_463795201_4FGL_J1736.0+2033_daily_bin865.fits
Exposure cube: /scratch/kocevski/925961/ltcube_463536001_463795201_4FGL_J1736.0+2033_daily_bin865.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/925961/Model_4FGL_J1736.0+2033_daily_bin865.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) = 9592.92942789

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11898E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    46.515       1.0000         .10000E-03   10000.    
     3 'Prefactor '    36.289       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.3783       1.0000         .10000E-03   10000.    
     6 'norm      '    8.4507       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.6542       1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.1094       1.0000         .10000E-03   10000.    
    10 'norm      '    61.625       1.0000         .10000E-03   10000.    
    11 'Prefactor '    218.14       1.0000         .10000E-03   10000.    
    12 'Prefactor '    36.860       1.0000         .10000E-03   10000.    
    13 'norm      '    .27368       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10208E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10128E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10290E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0834       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .95504       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=   9592.928     FROM MIGRAD    STATUS=CONVERGED    420 CALLS     2636 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    3.7761        .19227E-05** at limit **
   2  Prefactor     46.530        34.493       -.20325E-05   -.17071E-03
   3  Prefactor     36.293        41.739       -.34615E-06   -.52025E-05
   4  Prefactor     .10000E-03    30.432       -.12364E-05** at limit **
   5  Prefactor     3.3782        7.5382        .31444E-05    .26475E-03
   6  norm          8.4509        3.6389       -.38540E-07   -.20929E-04
   7  Prefactor     5.6526        13.857       -.52084E-07    .55161E-05
   8  norm          .10000E-03    6.1293        .20268E-07** at limit **
   9  Prefactor     2.1105        3.5189        .17852E-06    .34656E-04
  10  norm          61.620        75.981        .57681E-06   -.10994E-04
  11  Prefactor     218.17        162.76       -.16400E-05    .30263E-04
  12  Prefactor     36.859        39.777        .20155E-06   -.32364E-05
  13  norm          .27320        .91204        .28893E-06    .87856E-04
  14  Prefactor     .10000E-03    21.169        .21852E-06** at limit **
  15  Prefactor     .10000E-03    36.331        .76667E-06** at limit **
  16  Prefactor     .10000E-03    1.8998       -.33342E-07** at limit **
  17  norm          .10001E-03    4.5507       -.12934E-05** at limit **
  18  Prefactor     .10000E-03    12.844        .76003E-07** at limit **
  19  Normalizat    1.0829        .24080       -.10672E-05   -.16806E-03
  20  Prefactor     .95521        .83059E-01    .32318E-06   -.10403E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100022
  Prefactor  = 46.5298
  Prefactor  = 36.293
  Prefactor  = 0.0001
  Prefactor  = 3.37822
  norm       = 8.45089
  Prefactor  = 5.6526
  norm       = 0.0001
  Prefactor  = 2.11052
  norm       = 61.6201
  Prefactor  = 218.173
  Prefactor  = 36.8595
  norm       = 0.273201
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.00010001
  Prefactor  = 0.0001
  Normalizat = 1.08294
  Prefactor  = 0.955207
 **********
 **   18 **HESSE 
 **********

 FCN=   9592.928     FROM HESSE     STATUS=OK           291 CALLS     2927 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    15.147        .30899E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     46.530        34.679        .58789E-04   -1.4343    
   3  Prefactor     36.293        41.769        .66528E-04   -1.4502    
   4  Prefactor     .10000E-03    30.429        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.3782        7.7519        .11007E-02   -1.5340    
   6  norm          8.4509        3.6391        .11841E-03   -1.5126    
   7  Prefactor     5.6526        13.766        .16894E-03   -1.5232    
   8  norm          .10000E-03    6.1415        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.1105        3.4802        .21524E-03   -1.5417    
  10  norm          61.620        75.993        .51114E-04   -1.4136    
  11  Prefactor     218.17        162.82        .13692E-03   -1.2743    
  12  Prefactor     36.859        39.804        .66012E-04   -1.4493    
  13  norm          .27320        .93348        .16254E-02   -1.5603    
  14  Prefactor     .10000E-03    21.206        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    36.342        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.9017        .13183E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10001E-03    19.018        .37966E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    12.857        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0829        .27320        .41532E-03   -.90302    
  20  Prefactor     .95521        .95265E-01    .15496E-03   -.94238    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.39741e-09
Minuit parameter uncertainties:
  1  0.00116234
  2  34.6938
  3  41.8023
  4  0.000109332
  5  7.7542
  6  3.63917
  7  13.7732
  8  1.7302e-07
  9  3.48058
  10  76.1134
  11  163.156
  12  39.8329
  13  0.933528
  14  1.06144e-05
  15  9.34265e-05
  16  1.78908e-06
  17  0.000862938
  18  1.42647e-05
  19  0.273557
  20  0.0952822
Done.

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

Extracting fit parameters...

4FGL J1736.0+2033
   Spectrum: LogParabola
284         norm:  6.162e+01  7.611e+01  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:  9.552e-01  9.528e-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.083e+00  2.736e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.11
Ra Dec: 264.019 20.556
Photon Index (Fixed Index): 1.74 +/- 0.00
Photon Flux (Fixed Index): 1.21e-08 +/- 1.49e-08
Energy Flux (Fixed Index): 1.91e-05 +/- 2.36e-05

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

Saving results to:
/scratch/kocevski/925961/likelihoodResults_463536001_463795201_4FGL_J1736.0+2033_daily_bin865.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) = 9592.90153694
delta logL = 0.0267269518881

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9592.88089743
delta logL = 0.047366468476

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    42.643       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1616       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0814       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95468       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=   9592.881     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      286 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          42.686        98.951        .61390E-04   -.42223E-05
   2  alpha         2.1603        1.4094        .17563E-01    .22459E-03
   3  Normalizat    1.0810        .25905        .41567E-03   -.41080E-04
   4  Prefactor     .95481        .92096E-01    .15498E-03    .77375E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 42.6856
  alpha      = 2.1603
  Normalizat = 1.08099
  Prefactor  = 0.954814
 **********
 **   18 **HESSE 
 **********

 FCN=   9592.881     FROM HESSE     STATUS=OK            25 CALLS      311 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          42.686        85.680        .12278E-04   -1.4400    
   2  alpha         2.1603        1.2390        .35127E-02   -.13630    
   3  Normalizat    1.0810        .25896        .16627E-04   -.90365    
   4  Prefactor     .95481        .92126E-01    .30996E-04   -.94251    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.22315e-11
Minuit parameter uncertainties:
  1  85.9285
  2  1.2975
  3  0.259266
  4  0.0921408
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/925961': 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) = 9592.88089559
delta logL = 0.0473683110922

Extracting fit parameters...

4FGL J1736.0+2033
   Spectrum: LogParabola
284         norm:  4.269e+01  8.593e+01  1.000e-04  1.000e+04 ( 1.000e-14)
285        alpha:  2.160e+00  1.297e+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:  9.548e-01  9.214e-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.081e+00  2.593e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.20
Ra Dec: 264.019 20.556
Photon Index (Free Index): 2.16 +/- 1.30
Photon Flux (Free Index): 1.74e-08 +/- 2.70e-08
Energy Flux (Free Index): 1.23e-05 +/- 2.08e-05

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/925961/cmap_HighResolution_463536001_463795201_4FGL_J1736.0+2033_daily_bin865.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.30e-05', comment='SUCCESS', photon_flux='1.21e-08', energy_flux2='1.23e-05', photon_flux_error='1.49e-08', dlogl='4.74e-02', energy_flux='1.91e-05', photon_flux2='1.74e-08', job_status='DONE', time_completed='2021-09-18 00:15:17.618076', photon_index_error2='1.30', photon_index2='2.16', ts='1.11', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='5.25e-08', energy_flux_error2='2.08e-05', EG='1.08', time_epoch_completed='1631949317.62', return_code='0', job_id='925961', GAL2='0.95', EG2='1.08', return_code2='0', energy_flux_error='2.36e-05', photon_flux_error2='2.70e-08', ts2='1.20', photon_index='1.74' WHERE bin_id='865' AND source_name='4FGL J1736.0+2033' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 00:15:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0236>
Subject: Job 925961: <4FGL_J1736.0+2033_daily_bin865> in cluster <slac> Done

Job <4FGL_J1736.0+2033_daily_bin865> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep 18 00:00:22 2021
Job was executed on host(s) <bullet0236>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 18 00:00:24 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:24 2021
Terminated at Sat Sep 18 00:15:18 2021
Results reported at Sat Sep 18 00:15:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1736.0+2033_daily_bin865 264.019 20.5559 463536001 463795201 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 :                                   878.48 sec.
    Max Memory :                                 1192 MB
    Average Memory :                             317.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   894 sec.
    Turnaround time :                            896 sec.

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

