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


Performing analysis on: 4FGL_J1736.0+2033_daily_bin1318
RA = 264.019, Dec = 20.5559
tmin = 580953601, tmax = 581212801
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='927800', job_status='RUN', time_executed='2021-09-18 00:07:43.383801', time_epoch_executed='1631948863.38' WHERE source_name='4FGL J1736.0+2033' and cadence='daily' and bin_id='1318'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/927800

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/927800/ft1_4FGL_J1736.0+2033_daily_bin1318.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/927800/ft2_4FGL_J1736.0+2033_daily_bin1318.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/927800/ft1_4FGL_J1736.0+2033_daily_bin1318.fits outfile=/scratch/kocevski/927800/ft1_filteredMKT_4FGL_J1736.0+2033_daily_bin1318.fits ra=264.019 dec=20.5559 rad=12.0 tmin=580953601.0 tmax=581212801.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 2.94
user 2.73
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/927800/ft1_filtered_4FGL_J1736.0+2033_daily_bin1318.fits evtable="EVENTS" scfile=/scratch/kocevski/927800/ft2_4FGL_J1736.0+2033_daily_bin1318.fits sctable="SC_DATA" expcube=/scratch/kocevski/927800/ltcube_580953601_581212801_4FGL_J1736.0+2033_daily_bin1318.fits outfile=/scratch/kocevski/927800/expmap_580953601_581212801_4FGL_J1736.0+2033_daily_bin1318.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/927800/ltcube_580953601_581212801_4FGL_J1736.0+2033_daily_bin1318.fits
.....................!
real 191.16
user 185.83
sys 5.01

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/927800/ft1_filtered_4FGL_J1736.0+2033_daily_bin1318.fits scfile=/scratch/kocevski/927800/ft2_4FGL_J1736.0+2033_daily_bin1318.fits outfile=/scratch/kocevski/927800/cmap_580953601_581212801_4FGL_J1736.0+2033_daily_bin1318.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.41
sys 0.11

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.8611       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    203.23       1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.1354       1.0000         .10000E-03   10000.    
     6 'norm      '    2.3822       1.0000         .10000E-03   10000.    
     7 'Prefactor '    24.167       1.0000         .10000E-03   10000.    
     8 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .13946E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    131.27       1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .31447E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.3961       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    45.657       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .86574       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .94800       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=   8785.959     FROM MIGRAD    STATUS=CONVERGED    420 CALLS     2053 TOTAL
                     EDM=   .39E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.8651        6.1360        .28273E-06    .32724E-05
   2  Prefactor     .10000E-03    12.186        .31093E-07** at limit **
   3  Prefactor     .10000E-03    42.791        .74718E-06** at limit **
   4  Prefactor     203.22        151.57        .36943E-07   -.14142E-04
   5  Prefactor     8.1288        23.079       -.33522E-06   -.24696E-04
   6  norm          2.3845        3.7010        .52721E-06    .24816E-04
   7  Prefactor     24.170        24.497       -.30284E-06   -.68018E-04
   8  norm          .10000E-03    7.4434        .37149E-07** at limit **
   9  Prefactor     .10000E-03    3.0990        .51473E-06** at limit **
  10  norm          .10000E-03    26.743        .68838E-07** at limit **
  11  Prefactor     .10000E-03    58.866        .17742E-07** at limit **
  12  Prefactor     131.15        64.995       -.20476E-06   -.25467E-04
  13  norm          .10000E-03    .78410        .30894E-06** at limit **
  14  Prefactor     .10000E-03    131.86       -.13038E-04** at limit **
  15  Prefactor     .10000E-03    40.752       -.17435E-05** at limit **
  16  Prefactor     1.4024        9.1667        .93977E-06    .19070E-04
  17  norm          .10000E-03    2.2109       -.17546E-07** at limit **
  18  Prefactor     45.658        43.107        .41065E-06   -.11733E-04
  19  Normalizat    .86517        .24375        .21217E-05   -.68469E-04
  20  Prefactor     .94812        .87824E-01   -.11113E-05   -.10622E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.86509
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 203.225
  Prefactor  = 8.12884
  norm       = 2.38447
  Prefactor  = 24.17
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 131.152
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.40239
  norm       = 0.0001
  Prefactor  = 45.6576
  Normalizat = 0.86517
  Prefactor  = 0.94812
 **********
 **   18 **HESSE 
 **********

 FCN=   8785.959     FROM HESSE     STATUS=OK           289 CALLS     2342 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.8651        6.1396        .20537E-03   -1.5315    
   2  Prefactor     .10000E-03    12.196        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    42.969        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     203.22        151.52        .28348E-04   -1.2847    
   5  Prefactor     8.1288        22.972        .14056E-03   -1.5138    
   6  norm          2.3845        3.6784        .21209E-03   -1.5399    
   7  Prefactor     24.170        24.360        .81483E-04   -1.4724    
   8  norm          .10000E-03    7.4511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.9123        .31041E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    26.748        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    58.888        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     131.15        64.784        .17572E-03   -1.3412    
  13  norm          .10000E-03    1.3879        .15902E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    134.53        .42740E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    40.807        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.4024        9.1649        .36747E-03   -1.5471    
  17  norm          .10000E-03    2.2119        .13611E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     45.658        43.188        .59337E-04   -1.4356    
  19  Normalizat    .86517        .26594        .44221E-03   -.97695    
  20  Prefactor     .94812        .95905E-01    .15262E-03   -.94479    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.90311e-10
Minuit parameter uncertainties:
  1  6.14062
  2  1.43977e-06
  3  2.53525e-05
  4  151.812
  5  22.9967
  6  3.67873
  7  24.37
  8  2.6742e-09
  9  0.000229198
  10  6.385e-06
  11  4.3431e-05
  12  64.8188
  13  1.33183e-05
  14  0.000518359
  15  6.47283e-05
  16  7.17146
  17  4.05954e-07
  18  43.2173
  19  0.26634
  20  0.0959217
Done.

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

Extracting fit parameters...

4FGL J1736.0+2033
   Spectrum: LogParabola
284         norm:  1.000e-04  6.385e-06  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.481e-01  9.592e-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:  8.652e-01  2.663e-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.75e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.35e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/927800/likelihoodResults_580953601_581212801_4FGL_J1736.0+2033_daily_bin1318.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8785.95880637
delta logL = -0.000177991387318

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8785.95863257
delta logL = -4.19634488935e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10439E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8122       1.0000          .0000       5.0000    
     3 'Normalizat'    .86517       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94812       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=   8785.959     FROM MIGRAD    STATUS=CONVERGED    113 CALLS      318 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1039.6        .18142E-01** at limit **
   2  alpha         1.1999        4.0598        .16626       -.88894E-08
   3  Normalizat    .86517        .35669E-01    .44219E-03    .13302E-03
   4  Prefactor     .94812        .12946E-01    .15262E-03    .38612E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.19987
  Normalizat = 0.865171
  Prefactor  = 0.94812
 **********
 **   18 **HESSE 
 **********

 FCN=   8785.959     FROM HESSE     STATUS=OK            23 CALLS      341 TOTAL
                     EDM=   .52E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    33.227        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.1999        3.7885        .66503E-02   -.54691    
   3  Normalizat    .86517        .25720        .17688E-04   -.97695    
   4  Prefactor     .94812        .93465E-01    .30524E-04   -.94479    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.16879e-11
Minuit parameter uncertainties:
  1  5.30215e-05
  2  597.02
  3  0.257569
  4  0.0934806
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/927800': 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) = 8785.95862803
delta logL = 3.50317350239e-07

Extracting fit parameters...

4FGL J1736.0+2033
   Spectrum: LogParabola
284         norm:  1.000e-04  5.302e-05  1.000e-04  1.000e+04 ( 1.000e-14)
285        alpha:  1.200e+00  5.970e+02  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.481e-01  9.348e-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:  8.652e-01  2.576e-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/927800/cmap_HighResolution_580953601_581212801_4FGL_J1736.0+2033_daily_bin1318.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.35e-05', job_status='DONE', photon_flux_upper_limit='2.75e-08', time_completed='2021-09-18 00:20:30.129279', job_id='927800', GAL2='0.95', fit_tolerance='1e-08', EG2='0.87', EG='0.87', time_epoch_completed='1631949630.13', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='3.50e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.74' WHERE bin_id='1318' AND source_name='4FGL J1736.0+2033' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 00:20:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0250>
Subject: Job 927800: <4FGL_J1736.0+2033_daily_bin1318> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1736.0+2033_daily_bin1318 264.019 20.5559 580953601 581212801 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 :                                   740.18 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             313.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   884 sec.
    Turnaround time :                            886 sec.

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

