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


Performing analysis on: 4FGL_J1736.0+2033_daily_bin1243
RA = 264.019, Dec = 20.5559
tmin = 561513601, tmax = 561772801
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='927673', job_status='RUN', time_executed='2021-09-18 00:07:30.012515', time_epoch_executed='1631948850.01' WHERE source_name='4FGL J1736.0+2033' and cadence='daily' and bin_id='1243'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/927673

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/927673/ft1_4FGL_J1736.0+2033_daily_bin1243.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/927673/ft2_4FGL_J1736.0+2033_daily_bin1243.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/927673/ft1_4FGL_J1736.0+2033_daily_bin1243.fits outfile=/scratch/kocevski/927673/ft1_filteredMKT_4FGL_J1736.0+2033_daily_bin1243.fits ra=264.019 dec=20.5559 rad=12.0 tmin=561513601.0 tmax=561772801.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.74
user 3.51
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/927673/ft1_filtered_4FGL_J1736.0+2033_daily_bin1243.fits" evtable="EVENTS" scfile=/scratch/kocevski/927673/ft2_4FGL_J1736.0+2033_daily_bin1243.fits sctable="SC_DATA" outfile=/scratch/kocevski/927673/ltcube_561513601_561772801_4FGL_J1736.0+2033_daily_bin1243.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/927673/ft2_4FGL_J1736.0+2033_daily_bin1243.fits
.....................!
real 11.74
user 11.40
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/927673/ft1_filtered_4FGL_J1736.0+2033_daily_bin1243.fits evtable="EVENTS" scfile=/scratch/kocevski/927673/ft2_4FGL_J1736.0+2033_daily_bin1243.fits sctable="SC_DATA" expcube=/scratch/kocevski/927673/ltcube_561513601_561772801_4FGL_J1736.0+2033_daily_bin1243.fits outfile=/scratch/kocevski/927673/expmap_561513601_561772801_4FGL_J1736.0+2033_daily_bin1243.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/927673/ltcube_561513601_561772801_4FGL_J1736.0+2033_daily_bin1243.fits
.....................!
real 196.06
user 191.14
sys 4.60

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

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/927673/ft1_filtered_4FGL_J1736.0+2033_daily_bin1243.fits scfile=/scratch/kocevski/927673/ft2_4FGL_J1736.0+2033_daily_bin1243.fits outfile=/scratch/kocevski/927673/cmap_HighResolution_561513601_561772801_4FGL_J1736.0+2033_daily_bin1243.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.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10449E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .15083E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5497.9       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    33.098       1.0000         .10000E-03   10000.    
     6 'norm      '    .40896       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    58.695       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    254.35       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11088E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    4.3601       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    47.729       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    19.213       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .27225       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .78305       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=   1589.156     FROM MIGRAD    STATUS=CONVERGED    688 CALLS     2601 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    265.48        .18142E-02** at limit **
   2  Prefactor     .10000E-03    242.30        .18142E-02** at limit **
   3  Prefactor     5497.2        7377.0        .40200E-04    .42421E-07
   4  Prefactor     .10000E-03    63.229        .18142E-02** at limit **
   5  Prefactor     33.111        65.579        .69651E-04    .76715E-05
   6  norm          .41347        84.181        .27027E-02    .80751E-04
   7  Prefactor     .10000E-03    31.192        .18142E-02** at limit **
   8  norm          58.692        33.352        .52367E-04    .19756E-05
   9  Prefactor     .10000E-03    2.8973        .66121E-03** at limit **
  10  norm          254.35        400.80        .25406E-04    .62647E-06
  11  Prefactor     .10000E-03    9986.9        .18142E-02** at limit **
  12  Prefactor     .10000E-03    262.45        .18142E-02** at limit **
  13  norm          4.3599        2.3557        .40300E-04   -.26800E-05
  14  Prefactor     .10000E-03    654.54        .18142E-02** at limit **
  15  Prefactor     .10000E-03    748.69        .18142E-02** at limit **
  16  Prefactor     47.717        59.402        .58041E-04    .34278E-06
  17  norm          .10000E-03    53.541        .18142E-02** at limit **
  18  Prefactor     19.213        59.930        .91375E-04   -.18663E-06
  19  Normalizat    .27204        .87364        .93821E-03    .30990E-05
  20  Prefactor     .78312        .22867        .13706E-03    .14744E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5497.24
  Prefactor  = 0.0001
  Prefactor  = 33.1115
  norm       = 0.413466
  Prefactor  = 0.0001
  norm       = 58.6917
  Prefactor  = 0.0001
  norm       = 254.354
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.35995
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 47.7171
  norm       = 0.0001
  Prefactor  = 19.2135
  Normalizat = 0.272037
  Prefactor  = 0.783123
 **********
 **   18 **HESSE 
 **********

 FCN=   1589.156     FROM HESSE     STATUS=OK           273 CALLS     2874 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    265.48        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    242.30        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5497.2        7372.9        .80400E-05    .99612E-01
   4  Prefactor     .10000E-03    63.229        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     33.111        65.248        .27860E-05   -1.4556    
   6  norm          .41347        83.219        .10811E-03   -1.5579    
   7  Prefactor     .10000E-03    31.196        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          58.692        33.352        .10473E-04   -1.4174    
   9  Prefactor     .10000E-03    2.8973        .13224E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          254.35        400.59        .50812E-05   -1.2505    
  11  Prefactor     .10000E-03    9986.9        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    262.45        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.3599        2.3547        .16120E-05   -1.5290    
  14  Prefactor     .10000E-03    654.54        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    748.69        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     47.717        59.394        .23216E-05   -1.4325    
  17  norm          .10000E-03    53.541        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     19.213        59.916        .36550E-05   -1.4831    
  19  Normalizat    .27204        .87092        .37528E-04   -1.2455    
  20  Prefactor     .78312        .22794        .54823E-05   -1.0035    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3969e-10
Minuit parameter uncertainties:
  1  7.98109e-06
  2  8.21935e-06
  3  5547.69
  4  5.9631e-07
  5  65.3892
  6  11.7469
  7  2.74217e-06
  8  33.363
  9  3.82811e-07
  10  405.039
  11  0.000287142
  12  4.5879e-06
  13  2.35479
  14  1.59067e-05
  15  2.20756e-05
  16  59.4681
  17  3.19515e-07
  18  60.1048
  19  0.921183
  20  0.228212
Done.

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

Extracting fit parameters...

4FGL J1736.0+2033
   Spectrum: LogParabola
284         norm:  2.544e+02  4.050e+02  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:  7.831e-01  2.282e-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:  2.720e-01  9.212e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.69
Ra Dec: 264.019 20.556
Photon Flux Upper Limit: 3.14e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.97e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/927673/likelihoodResults_561513601_561772801_4FGL_J1736.0+2033_daily_bin1243.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) = 1589.15526883
delta logL = 0.000570534690951

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1589.15521377
delta logL = 0.000625600370995

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    250.45       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7913       1.0000          .0000       5.0000    
     3 'Normalizat'    .27177       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78285       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=   1589.155     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      270 TOTAL
                     EDM=   .58E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          249.39        423.20        .12799E-03   -.13768E-06
   2  alpha         1.7863        1.1561        .15129E-01    .14899E-05
   3  Normalizat    .27070        .86257        .94015E-03    .75578E-07
   4  Prefactor     .78322        .22091        .13705E-03    .18664E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 249.394
  alpha      = 1.78631
  Normalizat = 0.270698
  Prefactor  = 0.783217
 **********
 **   18 **HESSE 
 **********

 FCN=   1589.155     FROM HESSE     STATUS=OK            25 CALLS      295 TOTAL
                     EDM=   .28E-14    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          249.39        417.11        .25598E-04   -1.2536    
   2  alpha         1.7863        1.1406        .60516E-03   -.28950    
   3  Normalizat    .27070        .86004        .37606E-04   -1.2463    
   4  Prefactor     .78322        .22020        .54821E-05   -1.0035    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.84902e-15
Minuit parameter uncertainties:
  1  422.249
  2  1.18882
  3  0.908518
  4  0.220451
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/927673': 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) = 1589.15519465
delta logL = 0.000644713432393

Extracting fit parameters...

4FGL J1736.0+2033
   Spectrum: LogParabola
284         norm:  2.494e+02  4.222e+02  1.000e-04  1.000e+04 ( 1.000e-14)
285        alpha:  1.786e+00  1.189e+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:  7.832e-01  2.205e-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:  2.707e-01  9.085e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.69
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/927673/cmap_HighResolution_561513601_561772801_4FGL_J1736.0+2033_daily_bin1243.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.97e-04', job_status='DONE', photon_flux_upper_limit='3.14e-07', time_completed='2021-09-18 00:14:24.615144', job_id='927673', GAL2='0.78', fit_tolerance='1e-08', EG2='0.27', EG='0.27', time_epoch_completed='1631949264.62', return_code2='0', ts='0.69', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='6.45e-04', ts2='0.68', photon_index_error='0.00', photon_index='1.74' WHERE bin_id='1243' AND source_name='4FGL J1736.0+2033' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 00:14:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0232>
Subject: Job 927673: <4FGL_J1736.0+2033_daily_bin1243> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1736.0+2033_daily_bin1243 264.019 20.5559 561513601 561772801 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 :                                   410.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             289.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   528 sec.
    Turnaround time :                            531 sec.

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

