/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 = 7344
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1736.0+2033_daily_bin367
RA = 264.019, Dec = 20.5559
tmin = 334454401, tmax = 334713601
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='921094', job_status='RUN', time_executed='2021-09-17 23:46:01.087571', time_epoch_executed='1631947561.09' WHERE source_name='4FGL J1736.0+2033' and cadence='daily' and bin_id='367'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/921094

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/921094/ft1_4FGL_J1736.0+2033_daily_bin367.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/921094/ft2_4FGL_J1736.0+2033_daily_bin367.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/921094/ft1_4FGL_J1736.0+2033_daily_bin367.fits outfile=/scratch/kocevski/921094/ft1_filteredMKT_4FGL_J1736.0+2033_daily_bin367.fits ra=264.019 dec=20.5559 rad=12.0 tmin=334454401.0 tmax=334713601.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.46
user 3.24
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/921094/ft1_filtered_4FGL_J1736.0+2033_daily_bin367.fits evtable="EVENTS" scfile=/scratch/kocevski/921094/ft2_4FGL_J1736.0+2033_daily_bin367.fits sctable="SC_DATA" expcube=/scratch/kocevski/921094/ltcube_334454401_334713601_4FGL_J1736.0+2033_daily_bin367.fits outfile=/scratch/kocevski/921094/expmap_334454401_334713601_4FGL_J1736.0+2033_daily_bin367.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/921094/ltcube_334454401_334713601_4FGL_J1736.0+2033_daily_bin367.fits
.....................!
real 189.44
user 184.68
sys 4.44

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/921094/ft1_filtered_4FGL_J1736.0+2033_daily_bin367.fits scfile=/scratch/kocevski/921094/ft2_4FGL_J1736.0+2033_daily_bin367.fits outfile=/scratch/kocevski/921094/cmap_334454401_334713601_4FGL_J1736.0+2033_daily_bin367.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.56
user 0.37
sys 0.17

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.6419       1.0000         .10000E-03   10000.    
     2 'Prefactor '    18.067       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.958       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.2813       1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .18670E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.5574       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.9122       1.0000         .10000E-03   10000.    
    17 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.948       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0481       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0357       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=   10147.13     FROM MIGRAD    STATUS=CONVERGED    426 CALLS     2034 TOTAL
                     EDM=   .21E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.6418        4.0968       -.89752E-08   -.69961E-05
   2  Prefactor     18.063        34.726        .69554E-06   -.17734E-05
   3  Prefactor     .10000E-03    17.938        .13016E-05** at limit **
   4  Prefactor     .10000E-03    25.747       -.41490E-06** at limit **
   5  Prefactor     14.957        16.504        .13607E-06   -.46475E-05
   6  norm          .10000E-03    .68252        .11855E-09** at limit **
   7  Prefactor     5.2667        15.421        .26370E-06   -.86785E-05
   8  norm          .10000E-03    5.3516        .50119E-08** at limit **
   9  Prefactor     .10000E-03    1.3899        .10322E-06** at limit **
  10  norm          .10000E-03    28.441        .17492E-05** at limit **
  11  Prefactor     .10000E-03    88.974        .11727E-05** at limit **
  12  Prefactor     .10000E-03    19.717       -.18536E-05** at limit **
  13  norm          1.5572        .88431        .26092E-08   -.25530E-04
  14  Prefactor     .10000E-03    10.801       -.11395E-07** at limit **
  15  Prefactor     .10000E-03    53.725       -.17269E-05** at limit **
  16  Prefactor     3.9133        8.0254        .21474E-05    .55374E-05
  17  norm          .10000E-03    8.0075        .33530E-07** at limit **
  18  Prefactor     13.913        37.857        .41041E-05   -.33265E-05
  19  Normalizat    1.0477        .24455       -.11003E-05   -.18544E-04
  20  Prefactor     1.0358        .84809E-01    .10129E-06    .15290E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.64184
  Prefactor  = 18.0628
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.9572
  norm       = 0.0001
  Prefactor  = 5.26668
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.55723
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.9133
  norm       = 0.0001
  Prefactor  = 13.9133
  Normalizat = 1.04774
  Prefactor  = 1.03584
 **********
 **   18 **HESSE 
 **********

 FCN=   10147.13     FROM HESSE     STATUS=OK           291 CALLS     2325 TOTAL
                     EDM=   .95E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.6418        4.0921        .20828E-03   -1.5326    
   2  Prefactor     18.063        34.684        .94226E-04   -1.4858    
   3  Prefactor     .10000E-03    17.961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    25.759        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     14.957        16.503        .10356E-03   -1.4934    
   6  norm          .10000E-03    .68383        .81263E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.2667        15.097        .17490E-03   -1.5249    
   8  norm          .10000E-03    5.3655        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.1210        .22040E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    28.451        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    89.030        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    19.715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.5572        .88702        .69075E-04   -1.5458    
  14  Prefactor     .10000E-03    10.807        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    53.815        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.9133        8.0528        .10199E-02   -1.5312    
  17  norm          .10000E-03    8.0888        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     13.913        37.982        .10725E-03   -1.4962    
  19  Normalizat    1.0477        .28237        .44583E-03   -.91448    
  20  Prefactor     1.0358        .99359E-01    .15485E-03   -.91544    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.52612e-12
Minuit parameter uncertainties:
  1  4.09242
  2  34.7232
  3  1.74527e-06
  4  2.4946e-06
  5  16.5076
  6  9.88752e-08
  7  15.1083
  8  6.33261e-07
  9  2.84563e-05
  10  3.16638e-06
  11  4.50322e-06
  12  7.57075e-06
  13  0.887023
  14  2.38729e-06
  15  2.43872e-05
  16  8.05502
  17  2.28649e-06
  18  38.0483
  19  0.282771
  20  0.0993766
Done.

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

Extracting fit parameters...

4FGL J1736.0+2033
   Spectrum: LogParabola
284         norm:  1.000e-04  3.166e-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:  1.036e+00  9.938e-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.048e+00  2.828e-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.95e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.67e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/921094/likelihoodResults_334454401_334713601_4FGL_J1736.0+2033_daily_bin367.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) = 10147.1307353
delta logL = -0.000167366159076

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10147.130568
delta logL = 1.2823875295e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7480       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0477       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0358       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=   10147.13     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      206 TOTAL
                     EDM=   .88E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    28.486        .90712E-02** at limit **
   2  alpha         1.7525        3.3337        .43794       -.72043E-06
   3  Normalizat    1.0477        .23747        .10061        .38741E-04
   4  Prefactor     1.0358        .82604E-01    .40821E-01    .66724E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.75245
  Normalizat = 1.04774
  Prefactor  = 1.03584
 **********
 **   18 **HESSE 
 **********

 FCN=   10147.13     FROM HESSE     STATUS=OK            33 CALLS      239 TOTAL
                     EDM=   .57E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    28.201        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.7525        3.3321        .50000       -.30366    
   3  Normalizat    1.0477        .27549        .44584E-03   -.91448    
   4  Prefactor     1.0358        .96138E-01    .15485E-03   -.91544    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.73107e-13
Minuit parameter uncertainties:
  1  4.25636e-06
  2  2.38681
  3  0.275871
  4  0.0961541
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/921094': 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) = 10147.130568
delta logL = 2.67391442321e-09

Extracting fit parameters...

4FGL J1736.0+2033
   Spectrum: LogParabola
284         norm:  1.000e-04  4.256e-06  1.000e-04  1.000e+04 ( 1.000e-14)
285        alpha:  1.752e+00  2.387e+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:  1.036e+00  9.615e-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.048e+00  2.759e-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/921094/cmap_HighResolution_334454401_334713601_4FGL_J1736.0+2033_daily_bin367.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.67e-05', job_status='DONE', photon_flux_upper_limit='2.95e-08', time_completed='2021-09-17 23:59:49.208695', job_id='921094', GAL2='1.04', fit_tolerance='1e-08', EG2='1.05', EG='1.05', time_epoch_completed='1631948389.21', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='2.67e-09', ts2='-0.00', photon_index_error='0.00', photon_index='1.74' WHERE bin_id='367' AND source_name='4FGL J1736.0+2033' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 17 23:59:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0218>
Subject: Job 921094: <4FGL_J1736.0+2033_daily_bin367> in cluster <slac> Done

Job <4FGL_J1736.0+2033_daily_bin367> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep 17 23:45:48 2021
Job was executed on host(s) <bullet0218>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 17 23:45:50 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 17 23:45:50 2021
Terminated at Fri Sep 17 23:59:49 2021
Results reported at Fri Sep 17 23:59:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1736.0+2033_daily_bin367 264.019 20.5559 334454401 334713601 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 :                                   816.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             343.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   839 sec.
    Turnaround time :                            841 sec.

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

