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


Performing analysis on: 4FGL_J1736.0+2033_daily_bin1153
RA = 264.019, Dec = 20.5559
tmin = 538185601, tmax = 538444801
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='927515', job_status='RUN', time_executed='2021-09-18 00:05:34.743668', time_epoch_executed='1631948734.74' WHERE source_name='4FGL J1736.0+2033' and cadence='daily' and bin_id='1153'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/927515

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/927515/ft1_4FGL_J1736.0+2033_daily_bin1153.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/927515/ft2_4FGL_J1736.0+2033_daily_bin1153.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/927515/ft1_4FGL_J1736.0+2033_daily_bin1153.fits outfile=/scratch/kocevski/927515/ft1_filteredMKT_4FGL_J1736.0+2033_daily_bin1153.fits ra=264.019 dec=20.5559 rad=12.0 tmin=538185601.0 tmax=538444801.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 5.33
user 5.05
sys 0.26

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/927515/ft1_filtered_4FGL_J1736.0+2033_daily_bin1153.fits evtable="EVENTS" scfile=/scratch/kocevski/927515/ft2_4FGL_J1736.0+2033_daily_bin1153.fits sctable="SC_DATA" expcube=/scratch/kocevski/927515/ltcube_538185601_538444801_4FGL_J1736.0+2033_daily_bin1153.fits outfile=/scratch/kocevski/927515/expmap_538185601_538444801_4FGL_J1736.0+2033_daily_bin1153.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/927515/ltcube_538185601_538444801_4FGL_J1736.0+2033_daily_bin1153.fits
.....................!
real 191.12
user 186.00
sys 4.80

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/927515/ft1_filtered_4FGL_J1736.0+2033_daily_bin1153.fits scfile=/scratch/kocevski/927515/ft2_4FGL_J1736.0+2033_daily_bin1153.fits outfile=/scratch/kocevski/927515/cmap_538185601_538444801_4FGL_J1736.0+2033_daily_bin1153.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.17

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.273       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .30033E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    56.517       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .20132E-02   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.154       1.0000         .10000E-03   10000.    
     8 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.9909       1.0000         .10000E-03   10000.    
    10 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    81.656       1.0000         .10000E-03   10000.    
    13 'norm      '    1.2194       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10910E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.7812       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .12025E-01   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.3306       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .93831       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=   6072.447     FROM MIGRAD    STATUS=CONVERGED    443 CALLS     2042 TOTAL
                     EDM=   .56E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.253        11.780       -.53319E-06    .13483E-03
   2  Prefactor     .10000E-03    190.50       -.71978E-05** at limit **
   3  Prefactor     .10000E-03    22.409       -.63259E-07** at limit **
   4  Prefactor     56.524        104.23       -.13686E-05    .10904E-04
   5  Prefactor     .10000E-03    111.43       -.21644E-04** at limit **
   6  norm          .10000E-03    1.8952       -.83659E-07** at limit **
   7  Prefactor     11.163        22.744       -.52223E-06    .10560E-04
   8  norm          .10000E-03    8.4049       -.42156E-07** at limit **
   9  Prefactor     3.9913        3.3201       -.85478E-07    .50098E-04
  10  norm          .10000E-03    68.255        .52361E-05** at limit **
  11  Prefactor     .10000E-03    59.444       -.48080E-05** at limit **
  12  Prefactor     81.676        63.589       -.54378E-06    .49421E-04
  13  norm          1.2199        1.2053       -.14217E-06   -.81226E-04
  14  Prefactor     .10000E-03    37.033       -.18936E-06** at limit **
  15  Prefactor     .10000E-03    132.67       -.73480E-05** at limit **
  16  Prefactor     1.7823        10.380       -.41570E-05    .42364E-04
  17  norm          .10000E-03    3.9523       -.24682E-07** at limit **
  18  Prefactor     .10001E-03    399.96        .11584E-04** at limit **
  19  Normalizat    1.3304        .30704        .11048E-05    .13264E-03
  20  Prefactor     .93817        .10530        .34928E-06    .29238E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.2529
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 56.5241
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 11.163
  norm       = 0.0001
  Prefactor  = 3.99128
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 81.6756
  norm       = 1.21988
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.78233
  norm       = 0.0001
  Prefactor  = 0.000100005
  Normalizat = 1.33038
  Prefactor  = 0.938166
 **********
 **   18 **HESSE 
 **********

 FCN=   6072.447     FROM HESSE     STATUS=OK           285 CALLS     2327 TOTAL
                     EDM=   .92E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.253        11.774        .88956E-04   -1.4808    
   2  Prefactor     .10000E-03    193.19        .21389E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    22.418        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     56.524        103.96        .53360E-04   -1.4203    
   5  Prefactor     .10000E-03    108.70        .63692E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.9120        .10475E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     11.163        22.733        .11996E-03   -1.5040    
   8  norm          .10000E-03    8.4147        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.9913        3.3156        .12365E-03   -1.5308    
  10  norm          .10000E-03    68.973        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    60.087        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     81.676        63.575        .44448E-04   -1.3898    
  13  norm          1.2199        1.1918        .82283E-04   -1.5487    
  14  Prefactor     .10000E-03    37.260        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    134.16        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.7823        10.571        .31357E-03   -1.5441    
  17  norm          .10000E-03    3.9577        .15130E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10001E-03    407.27        .36332E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.3304        .36236        .39597E-03   -.82664    
  20  Prefactor     .93817        .12598        .16145E-03   -.94820    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.20786e-11
Minuit parameter uncertainties:
  1  11.7756
  2  0.0006368
  3  1.18678e-05
  4  104.295
  5  3.32009e-06
  6  4.24936e-06
  7  22.7503
  8  7.83125e-07
  9  3.31573
  10  0.000282825
  11  0.000287716
  12  63.6285
  13  1.19185
  14  5.61602e-05
  15  0.00034378
  16  8.68341
  17  1.78278e-06
  18  0.00292166
  19  0.363059
  20  0.126023
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
632    Prefactor:  9.382e-01  1.260e-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:  1.330e+00  3.631e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/927515/likelihoodResults_538185601_538444801_4FGL_J1736.0+2033_daily_bin1153.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) = 6072.44730393
delta logL = -6.89729495207e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6072.44723659
delta logL = -1.63158711075e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    .55235       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3304       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93816       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=   6072.447     FROM MIGRAD    STATUS=CONVERGED    108 CALLS      287 TOTAL
                     EDM=   .77E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10002E-03    1.2302        .18142    ** at limit **
   2  alpha         2.5969        3.7966        .50000        .65847E-07
   3  Normalizat    1.3304        .19371E-02    .39597E-03   -.39890E-03
   4  Prefactor     .93816        .68187E-03    .16145E-03   -.97422E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.00010002
  alpha      = 2.5969
  Normalizat = 1.33038
  Prefactor  = 0.938165
 **********
 **   18 **HESSE 
 **********

 FCN=   6072.447     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      318 TOTAL
                     EDM=   .40E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10002E-03    398.99        .68406E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.5969        2.8986        .50000        .38769E-01
   3  Normalizat    1.3304        .12366E-01    .79195E-04   -.82664    
   4  Prefactor     .93816        .43531E-02    .32290E-04   -.94820    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.04382e-11
Minuit parameter uncertainties:
  1  0.00573871
  2  424.602
  3  0.0123664
  4  0.00435309
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/927515': 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): 102
logL (Free Index) = 6072.44723453
delta logL = 4.24283825851e-07

Extracting fit parameters...

4FGL J1736.0+2033
   Spectrum: LogParabola
284         norm:  1.000e-04  5.739e-03  1.000e-04  1.000e+04 ( 1.000e-14)
285        alpha:  2.597e+00  4.246e+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.382e-01  4.353e-03  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.330e+00  1.237e-02  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/927515/cmap_HighResolution_538185601_538444801_4FGL_J1736.0+2033_daily_bin1153.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.55e-05', job_status='DONE', photon_flux_upper_limit='4.77e-08', time_completed='2021-09-18 00:16:20.275623', job_id='927515', GAL2='0.94', fit_tolerance='1e-08', EG2='1.33', EG='1.33', time_epoch_completed='1631949380.28', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='4.24e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.74' WHERE bin_id='1153' AND source_name='4FGL J1736.0+2033' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 00:16:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0058>
Subject: Job 927515: <4FGL_J1736.0+2033_daily_bin1153> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1736.0+2033_daily_bin1153 264.019 20.5559 538185601 538444801 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 :                                   641.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             337.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   657 sec.
    Turnaround time :                            660 sec.

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

