/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 121 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_bin1523
RA = 264.019, Dec = 20.5559
tmin = 634089601, tmax = 634348801
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='928131', job_status='RUN', time_executed='2021-09-18 00:08:25.241306', time_epoch_executed='1631948905.24' WHERE source_name='4FGL J1736.0+2033' and cadence='daily' and bin_id='1523'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/928131

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/928131/ft1_4FGL_J1736.0+2033_daily_bin1523.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/928131/ft2_4FGL_J1736.0+2033_daily_bin1523.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/928131/ft1_4FGL_J1736.0+2033_daily_bin1523.fits outfile=/scratch/kocevski/928131/ft1_filteredMKT_4FGL_J1736.0+2033_daily_bin1523.fits ra=264.019 dec=20.5559 rad=12.0 tmin=634089601.0 tmax=634348801.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 4.89
user 4.63
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/928131/ft1_filtered_4FGL_J1736.0+2033_daily_bin1523.fits evtable="EVENTS" scfile=/scratch/kocevski/928131/ft2_4FGL_J1736.0+2033_daily_bin1523.fits sctable="SC_DATA" expcube=/scratch/kocevski/928131/ltcube_634089601_634348801_4FGL_J1736.0+2033_daily_bin1523.fits outfile=/scratch/kocevski/928131/expmap_634089601_634348801_4FGL_J1736.0+2033_daily_bin1523.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/928131/ltcube_634089601_634348801_4FGL_J1736.0+2033_daily_bin1523.fits
.....................!
real 190.98
user 186.17
sys 4.50

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/928131/ft1_filtered_4FGL_J1736.0+2033_daily_bin1523.fits scfile=/scratch/kocevski/928131/ft2_4FGL_J1736.0+2033_daily_bin1523.fits outfile=/scratch/kocevski/928131/cmap_634089601_634348801_4FGL_J1736.0+2033_daily_bin1523.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/928131/ft1_filtered_4FGL_J1736.0+2033_daily_bin1523.fits scfile=/scratch/kocevski/928131/ft2_4FGL_J1736.0+2033_daily_bin1523.fits outfile=/scratch/kocevski/928131/cmap_HighResolution_634089601_634348801_4FGL_J1736.0+2033_daily_bin1523.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/928131/ft1_filtered_4FGL_J1736.0+2033_daily_bin1523.fits evtable="EVENTS" scfile=/scratch/kocevski/928131/ft2_4FGL_J1736.0+2033_daily_bin1523.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/928131/Model_4FGL_J1736.0+2033_daily_bin1523.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/928131/ft1_filtered_4FGL_J1736.0+2033_daily_bin1523.fits.....................!
real 78.87
user 77.48
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10303E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.3809       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.4192       1.0000         .10000E-03   10000.    
     7 'Prefactor '    29.800       1.0000         .10000E-03   10000.    
     8 'norm      '    13.543       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    37.536       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .55135E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.5528       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.4534       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .92317       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0046       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=   9928.370     FROM MIGRAD    STATUS=CONVERGED    407 CALLS     1732 TOTAL
                     EDM=   .83E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.3140       -.21337E-05** at limit **
   2  Prefactor     6.3729        21.465       -.13135E-05   -.87558E-07
   3  Prefactor     .10000E-03    13.927        .37292E-05** at limit **
   4  Prefactor     .10000E-03    27.442       -.15464E-04** at limit **
   5  Prefactor     .10000E-03    6.5838       -.27150E-06** at limit **
   6  norm          1.4194        1.7185       -.13607E-06   -.28985E-03
   7  Prefactor     29.805        15.504       -.10843E-05    .13168E-04
   8  norm          13.544        9.0573        .25164E-06    .29130E-04
   9  Prefactor     .10000E-03    1.3011       -.34041E-07** at limit **
  10  norm          37.486        51.360       -.59351E-04   -.84894E-05
  11  Prefactor     .10000E-03    234.95       -.13307E-03** at limit **
  12  Prefactor     .10000E-03    30.688        .37876E-04** at limit **
  13  norm          1.5529        .83224       -.41047E-07   -.17223E-03
  14  Prefactor     .10000E-03    9.5266       -.22497E-05** at limit **
  15  Prefactor     .10000E-03    27.170       -.19661E-04** at limit **
  16  Prefactor     .10000E-03    5.2898       -.54082E-07** at limit **
  17  norm          3.4534        3.5713       -.77147E-06    .36591E-03
  18  Prefactor     .10000E-03    8.2989        .35373E-05** at limit **
  19  Normalizat    .92315        .21874        .61244E-07    .14751E-03
  20  Prefactor     1.0045        .80017E-01    .72660E-06    .85973E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 6.37294
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.41943
  Prefactor  = 29.8046
  norm       = 13.5437
  Prefactor  = 0.0001
  norm       = 37.4858
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 1.55294
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.45339
  Prefactor  = 0.0001
  Normalizat = 0.923151
  Prefactor  = 1.00454
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.6278        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.3729        21.458        .15889E-03   -1.5203    
   3  Prefactor     .10000E-03    13.936        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    27.463        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.6203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.4194        1.7018        .13987E-03   -1.5470    
   7  Prefactor     29.805        15.496        .73394E-04   -1.4616    
   8  norm          13.544        9.0567        .10884E-03   -1.4972    
   9  Prefactor     .10000E-03    1.3252        .11082E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          37.486        51.419        .32709E-03   -1.4483    
  11  Prefactor     .10000E-03    235.77        .21108E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    30.728        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.5529        .83173        .64567E-04   -1.5459    
  14  Prefactor     .10000E-03    9.5344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    27.200        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.3314        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.4534        3.5770        .18698E-03   -1.5336    
  18  Prefactor     .10000E-03    8.3028        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .92315        .24711        .42293E-03   -.95651    
  20  Prefactor     1.0045        .90923E-01    .14872E-03   -.92578    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.87199e-10
Minuit parameter uncertainties:
  1  2.1606e-05
  2  21.4844
  3  4.78166e-06
  4  9.9164e-07
  5  4.09452e-06
  6  1.70182
  7  15.4986
  8  9.05764
  9  2.37889e-07
  10  51.4802
  11  0.000874413
  12  4.38891e-05
  13  0.831734
  14  1.69415e-06
  15  4.99473e-06
  16  7.8143e-06
  17  3.57719
  18  3.83647e-06
  19  0.247412
  20  0.0909369
Done.

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

Extracting fit parameters...

4FGL J1736.0+2033
   Spectrum: LogParabola
284         norm:  3.749e+01  5.148e+01  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.005e+00  9.094e-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.232e-01  2.474e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.00
Ra Dec: 264.019 20.556
Photon Index (Fixed Index): 1.74 +/- 0.00
Photon Flux (Fixed Index): 7.34e-09 +/- 1.01e-08
Energy Flux (Fixed Index): 1.16e-05 +/- 1.59e-05

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

Saving results to:
/scratch/kocevski/928131/likelihoodResults_634089601_634348801_4FGL_J1736.0+2033_daily_bin1523.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) = 9928.36903435
delta logL = 0.000773877301981

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9928.36898616
delta logL = 0.000822064224849

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    37.901       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7024       1.0000          .0000       5.0000    
     3 'Normalizat'    .92319       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0046       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=   9928.369     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      268 TOTAL
                     EDM=   .98E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          38.034        54.489        .65103E-04   -.70060E-04
   2  alpha         1.7053        .92789        .29190E-01   -.57292E-05
   3  Normalizat    .92331        .24416        .42290E-03   -.22044E-04
   4  Prefactor     1.0046        .90062E-01    .14872E-03    .20035E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 38.0342
  alpha      = 1.70527
  Normalizat = 0.923308
  Prefactor  = 1.00456
 **********
 **   18 **HESSE 
 **********

 FCN=   9928.369     FROM HESSE     STATUS=OK            25 CALLS      293 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          38.034        53.607        .13021E-04   -1.4474    
   2  alpha         1.7053        .91426        .11676E-02   -.32350    
   3  Normalizat    .92331        .24429        .16916E-04   -.95646    
   4  Prefactor     1.0046        .90115E-01    .29744E-04   -.92578    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04908e-10
Minuit parameter uncertainties:
  1  53.6753
  2  0.938597
  3  0.244581
  4  0.0901282
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/928131': 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) = 9928.3689759
delta logL = 0.000832325758893

Extracting fit parameters...

4FGL J1736.0+2033
   Spectrum: LogParabola
284         norm:  3.803e+01  5.368e+01  1.000e-04  1.000e+04 ( 1.000e-14)
285        alpha:  1.705e+00  9.386e-01  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.005e+00  9.013e-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.233e-01  2.446e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.01
Ra Dec: 264.019 20.556
Photon Index (Free Index): 1.71 +/- 0.94
Photon Flux (Free Index): 7.04e-09 +/- 1.20e-08
Energy Flux (Free Index): 1.21e-05 +/- 2.09e-05

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/928131/cmap_HighResolution_634089601_634348801_4FGL_J1736.0+2033_daily_bin1523.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.32e-05', comment='SUCCESS', photon_flux='7.34e-09', energy_flux2='1.21e-05', photon_flux_error='1.01e-08', dlogl='8.32e-04', energy_flux='1.16e-05', photon_flux2='7.04e-09', job_status='DONE', time_completed='2021-09-18 00:22:11.076697', photon_index_error2='0.94', photon_index2='1.71', ts='1.00', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='3.99e-08', energy_flux_error2='2.09e-05', EG='0.92', time_epoch_completed='1631949731.08', return_code='0', job_id='928131', GAL2='1.00', EG2='0.92', return_code2='0', energy_flux_error='1.59e-05', photon_flux_error2='1.20e-08', ts2='1.01', photon_index='1.74' WHERE bin_id='1523' AND source_name='4FGL J1736.0+2033' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 00:22:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 928131: <4FGL_J1736.0+2033_daily_bin1523> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1736.0+2033_daily_bin1523 264.019 20.5559 634089601 634348801 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 :                                   793.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             299.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   957 sec.
    Turnaround time :                            958 sec.

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

