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


Performing analysis on: 4FGL_J1736.0+2033_daily_bin948
RA = 264.019, Dec = 20.5559
tmin = 485049601, tmax = 485308801
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='926087', job_status='RUN', time_executed='2021-09-18 00:00:53.007579', time_epoch_executed='1631948453.01' WHERE source_name='4FGL J1736.0+2033' and cadence='daily' and bin_id='948'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/926087

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/926087/ft1_4FGL_J1736.0+2033_daily_bin948.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/926087/ft2_4FGL_J1736.0+2033_daily_bin948.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/926087/ft1_4FGL_J1736.0+2033_daily_bin948.fits outfile=/scratch/kocevski/926087/ft1_filteredMKT_4FGL_J1736.0+2033_daily_bin948.fits ra=264.019 dec=20.5559 rad=12.0 tmin=485049601.0 tmax=485308801.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.56
user 3.33
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/926087/ft1_filtered_4FGL_J1736.0+2033_daily_bin948.fits" evtable="EVENTS" scfile=/scratch/kocevski/926087/ft2_4FGL_J1736.0+2033_daily_bin948.fits sctable="SC_DATA" outfile=/scratch/kocevski/926087/ltcube_485049601_485308801_4FGL_J1736.0+2033_daily_bin948.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/926087/ft2_4FGL_J1736.0+2033_daily_bin948.fits
.....................!
real 12.03
user 11.62
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/926087/ft1_filtered_4FGL_J1736.0+2033_daily_bin948.fits evtable="EVENTS" scfile=/scratch/kocevski/926087/ft2_4FGL_J1736.0+2033_daily_bin948.fits sctable="SC_DATA" expcube=/scratch/kocevski/926087/ltcube_485049601_485308801_4FGL_J1736.0+2033_daily_bin948.fits outfile=/scratch/kocevski/926087/expmap_485049601_485308801_4FGL_J1736.0+2033_daily_bin948.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/926087/ltcube_485049601_485308801_4FGL_J1736.0+2033_daily_bin948.fits
.....................!
real 191.16
user 186.16
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/926087/ft1_filtered_4FGL_J1736.0+2033_daily_bin948.fits scfile=/scratch/kocevski/926087/ft2_4FGL_J1736.0+2033_daily_bin948.fits outfile=/scratch/kocevski/926087/cmap_485049601_485308801_4FGL_J1736.0+2033_daily_bin948.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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/926087/ft1_filtered_4FGL_J1736.0+2033_daily_bin948.fits scfile=/scratch/kocevski/926087/ft2_4FGL_J1736.0+2033_daily_bin948.fits outfile=/scratch/kocevski/926087/cmap_HighResolution_485049601_485308801_4FGL_J1736.0+2033_daily_bin948.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    32.802       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10840E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.3191       1.0000         .10000E-03   10000.    
    10 'norm      '    40.105       1.0000         .10000E-03   10000.    
    11 'Prefactor '    47.163       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .99977       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10445E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.5530       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.6911       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0921       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0386       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=   12505.09     FROM MIGRAD    STATUS=CONVERGED    427 CALLS     2055 TOTAL
                     EDM=   .37E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.7020        .69436E-07** at limit **
   2  Prefactor     .10000E-03    11.268        .73932E-07** at limit **
   3  Prefactor     .10000E-03    19.721        .51782E-07** at limit **
   4  Prefactor     32.844        53.410        .22545E-06    .13862E-04
   5  Prefactor     .10000E-03    8.7210        .33195E-06** at limit **
   6  norm          .10000E-03    1.1433        .67825E-07** at limit **
   7  Prefactor     .10000E-03    19.969        .18829E-06** at limit **
   8  norm          .10000E-03    5.4590       -.32883E-06** at limit **
   9  Prefactor     2.3194        2.7504        .68488E-06    .12772E-03
  10  norm          40.092        49.516        .47794E-07   -.71652E-05
  11  Prefactor     47.241        143.84       -.70051E-06    .97164E-05
  12  Prefactor     .10000E-03    101.41       -.44870E-05** at limit **
  13  norm          .99987        .68371        .35974E-07   -.70950E-04
  14  Prefactor     .10000E-03    58.190       -.61414E-05** at limit **
  15  Prefactor     3.4663        403.15       -.13700E-05    .44746E-06
  16  Prefactor     1.6921        11.588        .11637E-05    .11863E-04
  17  norm          .10000E-03    4.0300       -.17222E-06** at limit **
  18  Prefactor     .10000E-03    11.416        .39558E-07** at limit **
  19  Normalizat    1.0923        .22181        .62518E-07   -.14384E-04
  20  Prefactor     1.0385        .75714E-01   -.32899E-06    .87866E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.8436
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100003
  Prefactor  = 2.31944
  norm       = 40.092
  Prefactor  = 47.2407
  Prefactor  = 0.0001
  norm       = 0.999873
  Prefactor  = 0.0001
  Prefactor  = 3.46629
  Prefactor  = 1.69214
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.09227
  Prefactor  = 1.03848
 **********
 **   18 **HESSE 
 **********

 FCN=   12505.09     FROM HESSE     STATUS=OK           285 CALLS     2340 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.7266        .17951E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    11.299        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    19.799        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     32.844        53.399        .69964E-04   -1.4561    
   5  Prefactor     .10000E-03    8.7884        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.1648        .11674E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    20.435        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    23.493        .48739E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.3194        2.6942        .18741E-03   -1.5403    
  10  norm          40.092        49.529        .63294E-04   -1.4441    
  11  Prefactor     47.241        144.31        .58386E-04   -1.4332    
  12  Prefactor     .10000E-03    101.34        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .99987        .69667        .73798E-04   -1.5508    
  14  Prefactor     .10000E-03    56.954        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.4663        411.74        .21443E-03   -1.5336    
  16  Prefactor     1.6921        11.632        .32369E-03   -1.5448    
  17  norm          .10000E-03    4.0608        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    11.426        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0923        .25837        .43776E-03   -.90000    
  20  Prefactor     1.0385        .88063E-01    .15410E-03   -.91458    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.78407e-10
Minuit parameter uncertainties:
  1  1.12233e-06
  2  1.11268e-06
  3  1.99866e-07
  4  53.4772
  5  2.25827e-06
  6  4.2183e-07
  7  3.83835e-05
  8  0.000572826
  9  2.69435
  10  49.58
  11  145.401
  12  0.000166035
  13  0.696677
  14  9.69944e-05
  15  76.0978
  16  8.87551
  17  1.88993e-06
  18  4.67846e-06
  19  0.258671
  20  0.0880747
Done.

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

Extracting fit parameters...

4FGL J1736.0+2033
   Spectrum: LogParabola
284         norm:  4.009e+01  4.958e+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.038e+00  8.807e-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.092e+00  2.587e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.34
Ra Dec: 264.019 20.556
Photon Index (Fixed Index): 1.74 +/- 0.00
Photon Flux (Fixed Index): 7.85e-09 +/- 9.71e-09
Energy Flux (Fixed Index): 1.24e-05 +/- 1.54e-05

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

Saving results to:
/scratch/kocevski/926087/likelihoodResults_485049601_485308801_4FGL_J1736.0+2033_daily_bin948.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) = 12505.0862145
delta logL = 1.88224112208e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12505.0862133
delta logL = 1.99916812562e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    40.024       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7501       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0923       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0385       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=   12505.09     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      262 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          40.007        52.358        .31679E-03    .43064E-06
   2  alpha         1.7496        .92651        .30852E-01    .12583E-03
   3  Normalizat    1.0922        .24783        .43776E-03    .29138E-04
   4  Prefactor     1.0385        .86068E-01    .15410E-03   -.81447E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 40.0068
  alpha      = 1.74956
  Normalizat = 1.09224
  Prefactor  = 1.03848
 **********
 **   18 **HESSE 
 **********

 FCN=   12505.09     FROM HESSE     STATUS=OK            25 CALLS      287 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          40.007        51.421        .12672E-04   -1.4442    
   2  alpha         1.7496        .91161        .61703E-02   -.30488    
   3  Normalizat    1.0922        .24799        .17511E-04   -.90001    
   4  Prefactor     1.0385        .86131E-01    .61640E-05   -.91458    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.3342e-11
Minuit parameter uncertainties:
  1  51.4782
  2  0.935409
  3  0.248253
  4  0.0861428
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/926087': 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) = 12505.0862131
delta logL = 2.02804621949e-05

Extracting fit parameters...

4FGL J1736.0+2033
   Spectrum: LogParabola
284         norm:  4.001e+01  5.148e+01  1.000e-04  1.000e+04 ( 1.000e-14)
285        alpha:  1.750e+00  9.354e-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.038e+00  8.614e-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.092e+00  2.483e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.34
Ra Dec: 264.019 20.556
Photon Index (Free Index): 1.75 +/- 0.94
Photon Flux (Free Index): 7.90e-09 +/- 1.27e-08
Energy Flux (Free Index): 1.23e-05 +/- 1.95e-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/926087/cmap_HighResolution_485049601_485308801_4FGL_J1736.0+2033_daily_bin948.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.94e-05', comment='SUCCESS', photon_flux='7.85e-09', energy_flux2='1.23e-05', photon_flux_error='9.71e-09', dlogl='2.03e-05', energy_flux='1.24e-05', photon_flux2='7.90e-09', job_status='DONE', time_completed='2021-09-18 00:17:00.561175', photon_index_error2='0.94', photon_index2='1.75', ts='1.34', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='3.75e-08', energy_flux_error2='1.95e-05', EG='1.09', time_epoch_completed='1631949420.56', return_code='0', job_id='926087', GAL2='1.04', EG2='1.09', return_code2='0', energy_flux_error='1.54e-05', photon_flux_error2='1.27e-08', ts2='1.34', photon_index='1.74' WHERE bin_id='948' AND source_name='4FGL J1736.0+2033' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 00:17:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0047>
Subject: Job 926087: <4FGL_J1736.0+2033_daily_bin948> in cluster <slac> Done

Job <4FGL_J1736.0+2033_daily_bin948> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep 18 00:00:33 2021
Job was executed on host(s) <bullet0047>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 18 00:00:35 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 18 00:00:35 2021
Terminated at Sat Sep 18 00:17:01 2021
Results reported at Sat Sep 18 00:17:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1736.0+2033_daily_bin948 264.019 20.5559 485049601 485308801 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 :                                   962.46 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             347.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   985 sec.
    Turnaround time :                            988 sec.

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

