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


Performing analysis on: 4FGL_J1736.0+2033_daily_bin452
RA = 264.019, Dec = 20.5559
tmin = 356486401, tmax = 356745601
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='921227', job_status='RUN', time_executed='2021-09-17 23:46:13.561541', time_epoch_executed='1631947573.56' WHERE source_name='4FGL J1736.0+2033' and cadence='daily' and bin_id='452'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/921227

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/921227/ft1_4FGL_J1736.0+2033_daily_bin452.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/921227/ft2_4FGL_J1736.0+2033_daily_bin452.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/921227/ft1_4FGL_J1736.0+2033_daily_bin452.fits outfile=/scratch/kocevski/921227/ft1_filteredMKT_4FGL_J1736.0+2033_daily_bin452.fits ra=264.019 dec=20.5559 rad=12.0 tmin=356486401.0 tmax=356745601.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.47
user 3.25
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/921227/ft1_filtered_4FGL_J1736.0+2033_daily_bin452.fits" evtable="EVENTS" scfile=/scratch/kocevski/921227/ft2_4FGL_J1736.0+2033_daily_bin452.fits sctable="SC_DATA" outfile=/scratch/kocevski/921227/ltcube_356486401_356745601_4FGL_J1736.0+2033_daily_bin452.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/921227/ft2_4FGL_J1736.0+2033_daily_bin452.fits
.....................!
real 11.89
user 11.52
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/921227/ft1_filtered_4FGL_J1736.0+2033_daily_bin452.fits evtable="EVENTS" scfile=/scratch/kocevski/921227/ft2_4FGL_J1736.0+2033_daily_bin452.fits sctable="SC_DATA" expcube=/scratch/kocevski/921227/ltcube_356486401_356745601_4FGL_J1736.0+2033_daily_bin452.fits outfile=/scratch/kocevski/921227/expmap_356486401_356745601_4FGL_J1736.0+2033_daily_bin452.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/921227/ltcube_356486401_356745601_4FGL_J1736.0+2033_daily_bin452.fits
.....................!
real 192.57
user 187.28
sys 4.93

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/921227/ft1_filtered_4FGL_J1736.0+2033_daily_bin452.fits scfile=/scratch/kocevski/921227/ft2_4FGL_J1736.0+2033_daily_bin452.fits outfile=/scratch/kocevski/921227/cmap_356486401_356745601_4FGL_J1736.0+2033_daily_bin452.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/921227/ft1_filtered_4FGL_J1736.0+2033_daily_bin452.fits scfile=/scratch/kocevski/921227/ft2_4FGL_J1736.0+2033_daily_bin452.fits outfile=/scratch/kocevski/921227/cmap_HighResolution_356486401_356745601_4FGL_J1736.0+2033_daily_bin452.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/921227/ft1_filtered_4FGL_J1736.0+2033_daily_bin452.fits evtable="EVENTS" scfile=/scratch/kocevski/921227/ft2_4FGL_J1736.0+2033_daily_bin452.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/921227/Model_4FGL_J1736.0+2033_daily_bin452.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/921227/ft1_filtered_4FGL_J1736.0+2033_daily_bin452.fits.....................!
real 105.18
user 103.68
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.0840       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11106E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    32.035       1.0000         .10000E-03   10000.    
     8 'norm      '    9.3530       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .13333E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10162E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.1832       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .18188E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .17785E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.8881       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10379E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1979       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0142       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=   12747.58     FROM MIGRAD    STATUS=CONVERGED    421 CALLS     1746 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0869        2.0769        .27284E-06   -.17838E-02
   2  Prefactor     .10000E-03    8.1949        .32426E-07** at limit **
   3  Prefactor     .10000E-03    12.459        .50733E-06** at limit **
   4  Prefactor     .10000E-03    35.435        .63012E-05** at limit **
   5  Prefactor     .10000E-03    16.631       -.17043E-05** at limit **
   6  norm          .10000E-03    1.1589       -.28414E-10** at limit **
   7  Prefactor     32.023        15.351        .10940E-05    .24443E-04
   8  norm          9.3528        7.7542       -.17462E-06   -.56021E-05
   9  Prefactor     .10000E-03    .83011       -.39804E-08** at limit **
  10  norm          .10000E-03    23.044        .63092E-05** at limit **
  11  Prefactor     .10000E-03    138.32       -.10494E-04** at limit **
  12  Prefactor     .10000E-03    26.915       -.57716E-05** at limit **
  13  norm          1.1837        .76831        .78131E-08   -.15029E-03
  14  Prefactor     .10000E-03    32.257       -.53286E-05** at limit **
  15  Prefactor     .10000E-03    154.74        .23695E-04** at limit **
  16  Prefactor     .10000E-03    5.5009       -.11727E-07** at limit **
  17  norm          1.8843        6.4982       -.30150E-07   -.83101E-04
  18  Prefactor     .10000E-03    9.8904       -.17569E-06** at limit **
  19  Normalizat    1.1976        .21142       -.15540E-06   -.13192E-04
  20  Prefactor     1.0142        .73656E-01   -.56258E-07   -.17707E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.0869
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 32.0225
  norm       = 9.35283
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.18373
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.88429
  Prefactor  = 0.0001
  Normalizat = 1.19758
  Prefactor  = 1.01417
 **********
 **   18 **HESSE 
 **********

 FCN=   12747.58     FROM HESSE     STATUS=OK           283 CALLS     2029 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.0869        6.1018        .11548E-02   -1.5357    
   2  Prefactor     .10000E-03    8.1997        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    12.468        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    35.478        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    16.870        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.1946        .23732E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     32.023        15.344        .70795E-04   -1.4576    
   8  norm          9.3528        7.7524        .13104E-03   -1.5096    
   9  Prefactor     .10000E-03    .83784        .10030E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    23.066        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    138.60        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    26.980        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.1837        .75728        .76944E-04   -1.5490    
  14  Prefactor     .10000E-03    32.498        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    156.01        .20331E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.5879        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.8843        6.4917        .30286E-03   -1.5433    
  18  Prefactor     .10000E-03    9.8953        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.1976        .25042        .42485E-03   -.86678    
  20  Prefactor     1.0142        .87142E-01    .15741E-03   -.92259    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.77044e-09
Minuit parameter uncertainties:
  1  6.10298
  2  8.77771e-07
  3  3.9762e-06
  4  6.48993e-05
  5  1.01813e-06
  6  3.27583e-07
  7  15.3457
  8  7.75319
  9  2.09323e-06
  10  5.83485e-05
  11  0.000201935
  12  5.09903e-05
  13  0.757283
  14  6.83233e-05
  15  0.000382303
  16  1.55004e-06
  17  6.49416
  18  3.42101e-07
  19  0.250667
  20  0.0871537
Done.

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

Extracting fit parameters...

4FGL J1736.0+2033
   Spectrum: LogParabola
284         norm:  1.000e-04  5.835e-05  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.014e+00  8.715e-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.198e+00  2.507e-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.48e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.92e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/921227/likelihoodResults_356486401_356745601_4FGL_J1736.0+2033_daily_bin452.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) = 12747.575529
delta logL = -0.000206478078326

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12747.5753227
delta logL = -1.49426341522e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10676E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7343       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1976       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0142       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=   12747.58     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      198 TOTAL
                     EDM=   .58E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    23.227        .90712E-02** at limit **
   2  alpha         1.7362        3.3287        .43904       -.38137E-06
   3  Normalizat    1.1976        .21003        .95900E-01    .34890E-04
   4  Prefactor     1.0142        .72748E-01    .42776E-01   -.55063E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.73622
  Normalizat = 1.19758
  Prefactor  = 1.01417
 **********
 **   18 **HESSE 
 **********

 FCN=   12747.58     FROM HESSE     STATUS=OK            33 CALLS      231 TOTAL
                     EDM=   .16E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    22.878        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.7362        3.3262        .50000       -.31048    
   3  Normalizat    1.1976        .24642        .42485E-03   -.86678    
   4  Prefactor     1.0142        .85579E-01    .15741E-03   -.92259    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.59181e-13
Minuit parameter uncertainties:
  1  6.4938e-07
  2  2.38229
  3  0.246659
  4  0.0855902
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/921227': 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) = 12747.5753226
delta logL = -1.16961018648e-09

Extracting fit parameters...

4FGL J1736.0+2033
   Spectrum: LogParabola
284         norm:  1.000e-04  6.494e-07  1.000e-04  1.000e+04 ( 1.000e-14)
285        alpha:  1.736e+00  2.382e+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.014e+00  8.559e-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.198e+00  2.467e-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/921227/cmap_HighResolution_356486401_356745601_4FGL_J1736.0+2033_daily_bin452.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.92e-05', job_status='DONE', photon_flux_upper_limit='2.48e-08', time_completed='2021-09-18 00:01:32.512087', job_id='921227', GAL2='1.01', fit_tolerance='1e-08', EG2='1.20', EG='1.20', time_epoch_completed='1631948492.51', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='-1.17e-09', ts2='-0.00', photon_index_error='0.00', photon_index='1.74' WHERE bin_id='452' AND source_name='4FGL J1736.0+2033' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 00:01:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0098>
Subject: Job 921227: <4FGL_J1736.0+2033_daily_bin452> in cluster <slac> Done

Job <4FGL_J1736.0+2033_daily_bin452> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep 17 23:46:00 2021
Job was executed on host(s) <bullet0098>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 17 23:46:02 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:46:02 2021
Terminated at Sat Sep 18 00:01:33 2021
Results reported at Sat Sep 18 00:01:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1736.0+2033_daily_bin452 264.019 20.5559 356486401 356745601 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 :                                   902.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             322.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   930 sec.
    Turnaround time :                            933 sec.

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

