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


Performing analysis on: 4FGL_J1736.0+2033_daily_bin1094
RA = 264.019, Dec = 20.5559
tmin = 522892801, tmax = 523152001
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='926308', job_status='RUN', time_executed='2021-09-18 00:01:01.361972', time_epoch_executed='1631948461.36' WHERE source_name='4FGL J1736.0+2033' and cadence='daily' and bin_id='1094'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/926308

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/926308/ft1_4FGL_J1736.0+2033_daily_bin1094.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/926308/ft2_4FGL_J1736.0+2033_daily_bin1094.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/926308/ft1_4FGL_J1736.0+2033_daily_bin1094.fits outfile=/scratch/kocevski/926308/ft1_filteredMKT_4FGL_J1736.0+2033_daily_bin1094.fits ra=264.019 dec=20.5559 rad=12.0 tmin=522892801.0 tmax=523152001.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.80
user 3.53
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/926308/ft1_filtered_4FGL_J1736.0+2033_daily_bin1094.fits evtable="EVENTS" scfile=/scratch/kocevski/926308/ft2_4FGL_J1736.0+2033_daily_bin1094.fits sctable="SC_DATA" expcube=/scratch/kocevski/926308/ltcube_522892801_523152001_4FGL_J1736.0+2033_daily_bin1094.fits outfile=/scratch/kocevski/926308/expmap_522892801_523152001_4FGL_J1736.0+2033_daily_bin1094.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/926308/ltcube_522892801_523152001_4FGL_J1736.0+2033_daily_bin1094.fits
.....................!
real 192.53
user 185.68
sys 5.37

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/926308/ft1_filtered_4FGL_J1736.0+2033_daily_bin1094.fits scfile=/scratch/kocevski/926308/ft2_4FGL_J1736.0+2033_daily_bin1094.fits outfile=/scratch/kocevski/926308/cmap_522892801_523152001_4FGL_J1736.0+2033_daily_bin1094.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/926308/ft1_filtered_4FGL_J1736.0+2033_daily_bin1094.fits scfile=/scratch/kocevski/926308/ft2_4FGL_J1736.0+2033_daily_bin1094.fits outfile=/scratch/kocevski/926308/cmap_HighResolution_522892801_523152001_4FGL_J1736.0+2033_daily_bin1094.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.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15570E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10183E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10187E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    19.496       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .51921E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .98422       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .17327       1.0000         .10000E-03   10000.    
     8 'norm      '    8.3420       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .90903       1.0000         .10000E-03   10000.    
    10 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    45.168       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .40205       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .77370       1.0000         .10000E-03   10000.    
    18 'Prefactor '    31.331       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2769       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .90027       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=   9651.312     FROM MIGRAD    STATUS=CONVERGED    451 CALLS     2087 TOTAL
                     EDM=   .78E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    3.3022       -.82505E-06** at limit **
   2  Prefactor     .10000E-03    10.375        .23755E-06** at limit **
   3  Prefactor     .10000E-03    21.015        .21295E-06** at limit **
   4  Prefactor     19.518        41.239       -.75271E-06   -.57091E-04
   5  Prefactor     .10008E-03    7.3897        .19805E-05** at limit **
   6  norm          .98740        2.5195        .41350E-06   -.16450E-04
   7  Prefactor     .69946E-01    8.3495        .39864E-06   -.48056E-04
   8  norm          8.3553        7.7657       -.18012E-06   -.24482E-03
   9  Prefactor     .89930        2.7103        .62523E-06   -.35134E-03
  10  norm          .10000E-03    25.794        .30351E-06** at limit **
  11  Prefactor     45.355        120.48       -.72672E-05   -.70594E-04
  12  Prefactor     .10000E-03    33.282       -.35574E-06** at limit **
  13  norm          .40095        .74304        .79963E-06    .15972E-02
  14  Prefactor     .10000E-03    10.228       -.98930E-06** at limit **
  15  Prefactor     .10000E-03    20.291       -.32032E-06** at limit **
  16  Prefactor     .10000E-03    1.7643        .13718E-06** at limit **
  17  norm          .76971        8.7924        .32013E-05    .80424E-05
  18  Prefactor     31.316        40.993        .17567E-05   -.20354E-04
  19  Normalizat    1.2764        .26293        .75422E-05   -.60056E-03
  20  Prefactor     .90060        .92899E-01   -.40718E-05   -.87036E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100024
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.5183
  Prefactor  = 0.000100075
  norm       = 0.987403
  Prefactor  = 0.0699457
  norm       = 8.35534
  Prefactor  = 0.899299
  norm       = 0.0001
  Prefactor  = 45.3554
  Prefactor  = 0.0001
  norm       = 0.400946
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.769715
  Prefactor  = 31.3164
  Normalizat = 1.27636
  Prefactor  = 0.900605
 **********
 **   18 **HESSE 
 **********

 FCN=   9651.312     FROM HESSE     STATUS=OK           307 CALLS     2394 TOTAL
                     EDM=   .36E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    30.806        .33783E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    10.396        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    21.054        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     19.518        41.238        .90710E-04   -1.4824    
   5  Prefactor     .10008E-03    51.075        .47786E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .98740        2.4631        .23940E-03   -1.5509    
   7  Prefactor     .69946E-01    9.6790        .86843E-01   -1.5655    
   8  norm          8.3553        7.7472        .13880E-03   -1.5130    
   9  Prefactor     .89930        3.4447        .24273E-02   -1.5518    
  10  norm          .10000E-03    25.800        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     45.355        120.70        .29828E-03   -1.4360    
  12  Prefactor     .10000E-03    33.373        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .40095        .73349        .11415E-02   -1.5581    
  14  Prefactor     .10000E-03    10.262        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    20.299        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.7676        .12746E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .76971        8.9539        .24683E-02   -1.5533    
  18  Prefactor     31.316        40.991        .71583E-04   -1.4588    
  19  Normalizat    1.2764        .26185        .37909E-03   -.84275    
  20  Prefactor     .90060        .93634E-01    .15538E-03   -.96120    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.57042e-08
Minuit parameter uncertainties:
  1  0.00173492
  2  1.53716e-05
  3  7.55397e-06
  4  41.2979
  5  0.0039243
  6  2.46331
  7  1.6447
  8  7.74812
  9  3.44549
  10  5.48418e-05
  11  121.358
  12  5.85827e-05
  13  0.733504
  14  8.69662e-05
  15  3.63067e-05
  16  5.24753e-06
  17  5.25115
  18  41.0276
  19  0.262126
  20  0.0936505
Done.

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

Extracting fit parameters...

4FGL J1736.0+2033
   Spectrum: LogParabola
284         norm:  1.000e-04  5.484e-05  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.006e-01  9.365e-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.276e+00  2.621e-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: 2.80e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.43e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/926308/likelihoodResults_522892801_523152001_4FGL_J1736.0+2033_daily_bin1094.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) = 9651.31202822
delta logL = -0.000184524844371

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9651.31184369
delta logL = -1.80625647772e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7387       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2764       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90060       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.

 FCN=   9651.312     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      196 TOTAL
                     EDM=   .22E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    25.678        .90712E-02** at limit **
   2  alpha         1.7405        3.3285        .43869       -.32860E-06
   3  Normalizat    1.2764        .21551        .85619E-01    .23645E-04
   4  Prefactor     .90060        .76169E-01    .45013E-01    .38399E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.74049
  Normalizat = 1.27637
  Prefactor  = 0.900603
 **********
 **   18 **HESSE 
 **********

 FCN=   9651.312     FROM HESSE     STATUS=OK            31 CALLS      227 TOTAL
                     EDM=   .14E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    25.545        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.7405        3.3276        .50000       -.30868    
   3  Normalizat    1.2764        .25406        .37910E-03   -.84275    
   4  Prefactor     .90060        .89965E-01    .15538E-03   -.96120    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37012e-13
Minuit parameter uncertainties:
  1  6.56035e-06
  2  2.38252
  3  0.254304
  4  0.0899801
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/926308': 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) = 9651.31184369
delta logL = -7.27595761418e-11

Extracting fit parameters...

4FGL J1736.0+2033
   Spectrum: LogParabola
284         norm:  1.000e-04  6.560e-06  1.000e-04  1.000e+04 ( 1.000e-14)
285        alpha:  1.740e+00  2.383e+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.006e-01  8.998e-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.276e+00  2.543e-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/926308/cmap_HighResolution_522892801_523152001_4FGL_J1736.0+2033_daily_bin1094.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.43e-05', job_status='DONE', photon_flux_upper_limit='2.80e-08', time_completed='2021-09-18 00:14:43.754629', job_id='926308', GAL2='0.90', fit_tolerance='1e-08', EG2='1.28', EG='1.28', time_epoch_completed='1631949283.75', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='-7.28e-11', ts2='-0.00', photon_index_error='0.00', photon_index='1.74' WHERE bin_id='1094' AND source_name='4FGL J1736.0+2033' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 00:14:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0254>
Subject: Job 926308: <4FGL_J1736.0+2033_daily_bin1094> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1736.0+2033_daily_bin1094 264.019 20.5559 522892801 523152001 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 :                                   810.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             309.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   832 sec.
    Turnaround time :                            834 sec.

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

