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


Performing analysis on: 4FGL_J1736.0+2033_daily_bin1239
RA = 264.019, Dec = 20.5559
tmin = 560476801, tmax = 560736001
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='927666', job_status='RUN', time_executed='2021-09-18 00:05:53.509483', time_epoch_executed='1631948753.51' WHERE source_name='4FGL J1736.0+2033' and cadence='daily' and bin_id='1239'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/927666

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/927666/ft1_4FGL_J1736.0+2033_daily_bin1239.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/927666/ft2_4FGL_J1736.0+2033_daily_bin1239.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/927666/ft1_4FGL_J1736.0+2033_daily_bin1239.fits outfile=/scratch/kocevski/927666/ft1_filteredMKT_4FGL_J1736.0+2033_daily_bin1239.fits ra=264.019 dec=20.5559 rad=12.0 tmin=560476801.0 tmax=560736001.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.73
user 3.51
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/927666/ft2_4FGL_J1736.0+2033_daily_bin1239.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/927666/ft1_filteredMKT_4FGL_J1736.0+2033_daily_bin1239.fits evtable="EVENTS" outfile="/scratch/kocevski/927666/ft1_filtered_4FGL_J1736.0+2033_daily_bin1239.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.49
user 0.29
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/927666/ft1_filtered_4FGL_J1736.0+2033_daily_bin1239.fits" evtable="EVENTS" scfile=/scratch/kocevski/927666/ft2_4FGL_J1736.0+2033_daily_bin1239.fits sctable="SC_DATA" outfile=/scratch/kocevski/927666/ltcube_560476801_560736001_4FGL_J1736.0+2033_daily_bin1239.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/927666/ft2_4FGL_J1736.0+2033_daily_bin1239.fits
.....................!
real 12.50
user 12.14
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/927666/ft1_filtered_4FGL_J1736.0+2033_daily_bin1239.fits evtable="EVENTS" scfile=/scratch/kocevski/927666/ft2_4FGL_J1736.0+2033_daily_bin1239.fits sctable="SC_DATA" expcube=/scratch/kocevski/927666/ltcube_560476801_560736001_4FGL_J1736.0+2033_daily_bin1239.fits outfile=/scratch/kocevski/927666/expmap_560476801_560736001_4FGL_J1736.0+2033_daily_bin1239.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/927666/ltcube_560476801_560736001_4FGL_J1736.0+2033_daily_bin1239.fits
.....................!
real 191.78
user 185.78
sys 5.57

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/927666/ft1_filtered_4FGL_J1736.0+2033_daily_bin1239.fits scfile=/scratch/kocevski/927666/ft2_4FGL_J1736.0+2033_daily_bin1239.fits outfile=/scratch/kocevski/927666/cmap_560476801_560736001_4FGL_J1736.0+2033_daily_bin1239.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/927666/ft1_filtered_4FGL_J1736.0+2033_daily_bin1239.fits scfile=/scratch/kocevski/927666/ft2_4FGL_J1736.0+2033_daily_bin1239.fits outfile=/scratch/kocevski/927666/cmap_HighResolution_560476801_560736001_4FGL_J1736.0+2033_daily_bin1239.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17081       1.0000         .10000E-03   10000.    
     2 'Prefactor '    43.561       1.0000         .10000E-03   10000.    
     3 'Prefactor '    129.29       1.0000         .10000E-03   10000.    
     4 'Prefactor '    56.726       1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.227       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    19.888       1.0000         .10000E-03   10000.    
     8 'norm      '    25.687       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.6117       1.0000         .10000E-03   10000.    
    10 'norm      '    104.48       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.8996       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.3751       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.5879       1.0000         .10000E-03   10000.    
    17 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .55782       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1691       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=   5595.820     FROM MIGRAD    STATUS=CONVERGED    404 CALLS     2051 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .15863        7.5773        .13342E-05   -.45392E-03
   2  Prefactor     43.570        34.474       -.28392E-06   -.67766E-04
   3  Prefactor     129.28        75.810       -.11330E-06   -.23529E-04
   4  Prefactor     56.720        80.697       -.13285E-06   -.71189E-05
   5  Prefactor     16.226        19.582        .34569E-10   -.16989E-04
   6  norm          .10000E-03    2.0319       -.13918E-07** at limit **
   7  Prefactor     19.887        22.492       -.40739E-06   -.30844E-04
   8  norm          25.687        19.523       -.45033E-06   -.35160E-04
   9  Prefactor     1.6121        4.4255        .11720E-05    .11575E-03
  10  norm          104.48        97.770        .47902E-07   -.10880E-06
  11  Prefactor     .10000E-03    109.81        .65135E-06** at limit **
  12  Prefactor     .10000E-03    37.674        .10079E-06** at limit **
  13  norm          3.8997        1.6252        .42992E-08   -.41291E-04
  14  Prefactor     6.3817        48.620       -.77117E-05   -.50280E-04
  15  Prefactor     .10000E-03    151.97        .19431E-05** at limit **
  16  Prefactor     5.5878        7.5670        .12985E-06    .14108E-04
  17  norm          .10000E-03    21.733        .11465E-06** at limit **
  18  Prefactor     .10000E-03    15.641       -.41657E-08** at limit **
  19  Normalizat    .55805        .36479        .86098E-06   -.55932E-04
  20  Prefactor     1.1691        .13060       -.35822E-06   -.15822E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.158627
  Prefactor  = 43.5699
  Prefactor  = 129.284
  Prefactor  = 56.7204
  Prefactor  = 16.2263
  norm       = 0.0001
  Prefactor  = 19.887
  norm       = 25.6875
  Prefactor  = 1.61213
  norm       = 104.48
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 3.89967
  Prefactor  = 6.38171
  Prefactor  = 0.0001
  Prefactor  = 5.58781
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.558055
  Prefactor  = 1.16907
 **********
 **   18 **HESSE 
 **********

 FCN=   5595.820     FROM HESSE     STATUS=OK           291 CALLS     2342 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .15863        51.253        .34363E-02   -1.5628    
   2  Prefactor     43.570        34.562        .60742E-04   -1.4387    
   3  Prefactor     129.28        75.596        .17704E-03   -1.3429    
   4  Prefactor     56.720        80.662        .53262E-04   -1.4200    
   5  Prefactor     16.226        19.557        .99426E-04   -1.4902    
   6  norm          .10000E-03    2.0500        .10409E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     19.887        22.399        .89811E-04   -1.4816    
   8  norm          25.687        19.409        .79040E-04   -1.4694    
   9  Prefactor     1.6121        4.3594        .22587E-03   -1.5454    
  10  norm          104.48        97.809        .39340E-04   -1.3660    
  11  Prefactor     .10000E-03    109.52        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    37.716        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.8997        1.6266        .59523E-04   -1.5313    
  14  Prefactor     6.3817        48.806        .15897E-03   -1.5203    
  15  Prefactor     .10000E-03    153.17        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.5878        7.5558        .16995E-03   -1.5235    
  17  norm          .10000E-03    22.213        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    15.646        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .55805        .37065        .56763E-03   -1.0980    
  20  Prefactor     1.1691        .13555        .14971E-03   -.87289    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.16293e-09
Minuit parameter uncertainties:
  1  5.70581
  2  34.5779
  3  75.653
  4  80.8175
  5  19.5645
  6  6.103e-07
  7  22.4084
  8  19.4134
  9  4.36021
  10  97.9604
  11  0.000611263
  12  1.70761e-05
  13  1.62661
  14  35.3367
  15  0.000415677
  16  7.5571
  17  2.75455e-05
  18  1.27823e-06
  19  0.372315
  20  0.13559
Done.

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

Extracting fit parameters...

4FGL J1736.0+2033
   Spectrum: LogParabola
284         norm:  1.045e+02  9.796e+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:  1.169e+00  1.356e-01  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:  5.581e-01  3.723e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.56
Ra Dec: 264.019 20.556
Photon Index (Fixed Index): 1.74 +/- 0.00
Photon Flux (Fixed Index): 2.05e-08 +/- 1.92e-08
Energy Flux (Fixed Index): 3.24e-05 +/- 3.03e-05

TS (Fixed Index): 2.56
Ra Dec: 264.019 20.556
Photon Flux Upper Limit: 7.50e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.19e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/927666/likelihoodResults_560476801_560736001_4FGL_J1736.0+2033_daily_bin1239.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) = 5595.80791265
delta logL = 0.0124779971902

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5595.80363055
delta logL = 0.0167601009352

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    94.357       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8563       1.0000          .0000       5.0000    
     3 'Normalizat'    .55774       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1689       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=   5595.804     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      254 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          94.347        110.71        .20688E-03    .25976E-03
   2  alpha         1.8564        .63444        .12320E-01    .12293E-03
   3  Normalizat    .55718        .35168        .56805E-03   -.64043E-04
   4  Prefactor     1.1691        .13214        .14971E-03   -.24370E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 94.3469
  alpha      = 1.85639
  Normalizat = 0.557181
  Prefactor  = 1.16909
 **********
 **   18 **HESSE 
 **********

 FCN=   5595.804     FROM HESSE     STATUS=OK            23 CALLS      277 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          94.347        107.37        .41375E-04   -1.3762    
   2  alpha         1.8564        .61578        .49278E-03   -.26038    
   3  Normalizat    .55718        .35164        .22722E-04   -1.0983    
   4  Prefactor     1.1691        .13213        .29942E-04   -.87288    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.935e-10
Minuit parameter uncertainties:
  1  107.591
  2  0.622656
  3  0.353058
  4  0.132168
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/927666': 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) = 5595.80362908
delta logL = 0.0167615666151

Extracting fit parameters...

4FGL J1736.0+2033
   Spectrum: LogParabola
284         norm:  9.435e+01  1.076e+02  1.000e-04  1.000e+04 ( 1.000e-14)
285        alpha:  1.856e+00  6.227e-01  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.169e+00  1.322e-01  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:  5.572e-01  3.531e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.59
Ra Dec: 264.019 20.556
Photon Index (Free Index): 1.86 +/- 0.62
Photon Flux (Free Index): 2.20e-08 +/- 2.22e-08
Energy Flux (Free Index): 2.75e-05 +/- 3.58e-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/927666/cmap_HighResolution_560476801_560736001_4FGL_J1736.0+2033_daily_bin1239.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.19e-04', comment='SUCCESS', photon_flux='2.05e-08', energy_flux2='2.75e-05', photon_flux_error='1.92e-08', dlogl='1.68e-02', energy_flux='3.24e-05', photon_flux2='2.20e-08', job_status='DONE', time_completed='2021-09-18 00:16:39.632375', photon_index_error2='0.62', photon_index2='1.86', ts='2.56', fit_tolerance='1e-08', GAL='1.17', photon_index_error='0.00', photon_flux_upper_limit='7.50e-08', energy_flux_error2='3.58e-05', EG='0.56', time_epoch_completed='1631949399.63', return_code='0', job_id='927666', GAL2='1.17', EG2='0.56', return_code2='0', energy_flux_error='3.03e-05', photon_flux_error2='2.22e-08', ts2='2.59', photon_index='1.74' WHERE bin_id='1239' AND source_name='4FGL J1736.0+2033' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 00:16:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0116>
Subject: Job 927666: <4FGL_J1736.0+2033_daily_bin1239> in cluster <slac> Done

Job <4FGL_J1736.0+2033_daily_bin1239> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Sep 18 00:05:34 2021
Job was executed on host(s) <bullet0116>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 18 00:05:36 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:05:36 2021
Terminated at Sat Sep 18 00:16:40 2021
Results reported at Sat Sep 18 00:16:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1736.0+2033_daily_bin1239 264.019 20.5559 560476801 560736001 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 :                                   615.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             371.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   663 sec.
    Turnaround time :                            666 sec.

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

