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


Performing analysis on: 4FGL_J1736.0+2033_daily_bin1015
RA = 264.019, Dec = 20.5559
tmin = 502416001, tmax = 502675201
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='926187', job_status='RUN', time_executed='2021-09-18 00:03:13.383075', time_epoch_executed='1631948593.38' WHERE source_name='4FGL J1736.0+2033' and cadence='daily' and bin_id='1015'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/926187

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/926187/ft1_4FGL_J1736.0+2033_daily_bin1015.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/926187/ft2_4FGL_J1736.0+2033_daily_bin1015.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/926187/ft1_4FGL_J1736.0+2033_daily_bin1015.fits outfile=/scratch/kocevski/926187/ft1_filteredMKT_4FGL_J1736.0+2033_daily_bin1015.fits ra=264.019 dec=20.5559 rad=12.0 tmin=502416001.0 tmax=502675201.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.51
user 3.31
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/926187/ft1_filtered_4FGL_J1736.0+2033_daily_bin1015.fits evtable="EVENTS" scfile=/scratch/kocevski/926187/ft2_4FGL_J1736.0+2033_daily_bin1015.fits sctable="SC_DATA" expcube=/scratch/kocevski/926187/ltcube_502416001_502675201_4FGL_J1736.0+2033_daily_bin1015.fits outfile=/scratch/kocevski/926187/expmap_502416001_502675201_4FGL_J1736.0+2033_daily_bin1015.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/926187/ltcube_502416001_502675201_4FGL_J1736.0+2033_daily_bin1015.fits
.....................!
real 191.81
user 185.71
sys 5.69

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/926187/ft1_filtered_4FGL_J1736.0+2033_daily_bin1015.fits scfile=/scratch/kocevski/926187/ft2_4FGL_J1736.0+2033_daily_bin1015.fits outfile=/scratch/kocevski/926187/cmap_502416001_502675201_4FGL_J1736.0+2033_daily_bin1015.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=264.019 yref=20.5559 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.53
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/926187/ft1_filtered_4FGL_J1736.0+2033_daily_bin1015.fits scfile=/scratch/kocevski/926187/ft2_4FGL_J1736.0+2033_daily_bin1015.fits outfile=/scratch/kocevski/926187/cmap_HighResolution_502416001_502675201_4FGL_J1736.0+2033_daily_bin1015.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/926187/ft1_filtered_4FGL_J1736.0+2033_daily_bin1015.fits evtable="EVENTS" scfile=/scratch/kocevski/926187/ft2_4FGL_J1736.0+2033_daily_bin1015.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/926187/Model_4FGL_J1736.0+2033_daily_bin1015.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/926187/ft1_filtered_4FGL_J1736.0+2033_daily_bin1015.fits.....................!
real 83.66
user 82.17
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.5574       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .63197E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10389E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.194       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.223       1.0000         .10000E-03   10000.    
     8 'norm      '    7.5364       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.3188       1.0000         .10000E-03   10000.    
    10 'norm      '    .10186E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .89009E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.9869       1.0000         .10000E-03   10000.    
    13 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .23488E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .91185       1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.183       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .93181       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .98450       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=   9887.793     FROM MIGRAD    STATUS=CONVERGED    484 CALLS     2147 TOTAL
                     EDM=   .67E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.5567        6.6726        .93075E-07   -.43437E-04
   2  Prefactor     .10000E-03    22.673        .23122E-06** at limit **
   3  Prefactor     .10172E-03    90.306        .24234E-04** at limit **
   4  Prefactor     .10000E-03    104.06        .10316E-06** at limit **
   5  Prefactor     16.189        11.941       -.22094E-06   -.85511E-04
   6  norm          .10000E-03    .85345       -.32607E-07** at limit **
   7  Prefactor     11.220        15.674       -.21322E-06    .10336E-04
   8  norm          7.5357        7.7427       -.76359E-07    .10165E-04
   9  Prefactor     4.3178        3.7638       -.17949E-06    .43447E-04
  10  norm          .10000E-03    28.531        .13185E-06** at limit **
  11  Prefactor     .10031E-03    6171.2        .61001E-04** at limit **
  12  Prefactor     8.0094        56.698        .54853E-05    .38167E-04
  13  norm          .10000E-03    .46193       -.21159E-06** at limit **
  14  Prefactor     .10000E-03    42.832        .52958E-05** at limit **
  15  Prefactor     .10004E-03    287.47        .27288E-04** at limit **
  16  Prefactor     .10000E-03    3.2889        .10407E-05** at limit **
  17  norm          .91175        12.046        .93250E-05    .34304E-03
  18  Prefactor     10.154        62.693       -.55852E-05   -.45056E-04
  19  Normalizat    .93151        .24491       -.42361E-05   -.37001E-04
  20  Prefactor     .98466        .87437E-01    .15800E-05   -.85639E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.55665
  Prefactor  = 0.0001
  Prefactor  = 0.000101724
  Prefactor  = 0.0001
  Prefactor  = 16.1887
  norm       = 0.0001
  Prefactor  = 11.2202
  norm       = 7.53569
  Prefactor  = 4.31782
  norm       = 0.0001
  Prefactor  = 0.000100309
  Prefactor  = 8.00937
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100035
  Prefactor  = 0.0001
  norm       = 0.911748
  Prefactor  = 10.154
  Normalizat = 0.931508
  Prefactor  = 0.984657
 **********
 **   18 **HESSE 
 **********

 FCN=   9887.793     FROM HESSE     STATUS=OK           301 CALLS     2448 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.5567        6.6808        .64814E-03   -1.5090    
   2  Prefactor     .10000E-03    22.752        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10172E-03    23.336        .14823       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    104.48        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     16.189        11.949        .99528E-04   -1.4903    
   6  norm          .10000E-03    .85918        .89694E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     11.220        15.606        .11959E-03   -1.5038    
   8  norm          7.5357        7.7375        .73042E-03   -1.5159    
   9  Prefactor     4.3178        3.7345        .15978E-03   -1.5292    
  10  norm          .10000E-03    28.537        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10031E-03    6221.4        .37835E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.0094        56.858        .14187E-03   -1.5142    
  13  norm          .10000E-03    .96419        .13074E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    43.324        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10004E-03    296.02        .20079E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.3043        .17628E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .91175        14.749        .25701E-02   -1.5517    
  18  Prefactor     10.154        62.993        .12556E-03   -1.5071    
  19  Normalizat    .93151        .26466        .44304E-03   -.95362    
  20  Prefactor     .98466        .93279E-01    .15036E-03   -.93243    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.28185e-09
Minuit parameter uncertainties:
  1  6.6813
  2  4.11319e-05
  3  0.0126914
  4  0.000118653
  5  11.9508
  6  1.88207e-07
  7  15.6115
  8  7.73849
  9  3.73469
  10  8.69828e-06
  11  0.0574925
  12  42.7376
  13  1.93363e-05
  14  0.000442855
  15  0.00649564
  16  2.51461e-05
  17  7.33579
  18  50.6607
  19  0.265036
  20  0.0932939
Done.

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

Extracting fit parameters...

4FGL J1736.0+2033
   Spectrum: LogParabola
284         norm:  1.000e-04  8.698e-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.847e-01  9.329e-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:  9.315e-01  2.650e-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.83e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.47e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/926187/likelihoodResults_502416001_502675201_4FGL_J1736.0+2033_daily_bin1015.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) = 9887.7928631
delta logL = -0.00016662233611

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9887.79269649
delta logL = -1.06338120531e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7326       1.0000          .0000       5.0000    
     3 'Normalizat'    .93150       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98466       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=   9887.793     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      203 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    29.200        .90712E-02** at limit **
   2  alpha         1.7437        3.3342        .43918       -.18256E-05
   3  Normalizat    .93150        .22675        .99986E-01   -.11659E-03
   4  Prefactor     .98466        .79463E-01    .34029E-01   -.35200E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100005
  alpha      = 1.74367
  Normalizat = 0.931502
  Prefactor  = 0.98466
 **********
 **   18 **HESSE 
 **********

 FCN=   9887.793     FROM HESSE     STATUS=OK            31 CALLS      234 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    28.287        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.7437        3.3291        .50000       -.30735    
   3  Normalizat    .93150        .25475        .44304E-03   -.95362    
   4  Prefactor     .98466        .89572E-01    .15036E-03   -.93243    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.34786e-10
Minuit parameter uncertainties:
  1  0.000772048
  2  2.38587
  3  0.255077
  4  0.0895857
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/926187': 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) = 9887.79269648
delta logL = 1.78260961547e-10

Extracting fit parameters...

4FGL J1736.0+2033
   Spectrum: LogParabola
284         norm:  1.000e-04  7.720e-04  1.000e-04  1.000e+04 ( 1.000e-14)
285        alpha:  1.744e+00  2.386e+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.847e-01  8.959e-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:  9.315e-01  2.551e-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/926187/cmap_HighResolution_502416001_502675201_4FGL_J1736.0+2033_daily_bin1015.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.47e-05', job_status='DONE', photon_flux_upper_limit='2.83e-08', time_completed='2021-09-18 00:16:57.383020', job_id='926187', GAL2='0.98', fit_tolerance='1e-08', EG2='0.93', EG='0.93', time_epoch_completed='1631949417.38', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='1.78e-10', ts2='-0.00', photon_index_error='0.00', photon_index='1.74' WHERE bin_id='1015' AND source_name='4FGL J1736.0+2033' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 00:16:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 926187: <4FGL_J1736.0+2033_daily_bin1015> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1736.0+2033_daily_bin1015 264.019 20.5559 502416001 502675201 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 :                                   818.21 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             310.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   974 sec.
    Turnaround time :                            977 sec.

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

