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


Performing analysis on: 4FGL_J1736.0+2033_daily_bin1171
RA = 264.019, Dec = 20.5559
tmin = 542851201, tmax = 543110401
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='927544', job_status='RUN', time_executed='2021-09-18 00:05:36.277110', time_epoch_executed='1631948736.28' WHERE source_name='4FGL J1736.0+2033' and cadence='daily' and bin_id='1171'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/927544

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

Retrieving the FT1 file...

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

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

Retrieving 4 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/927544/ft1_4FGL_J1736.0+2033_daily_bin1171.fits


Retrieving the FT1 file...

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

Retrieving 4 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/927544/ft2_4FGL_J1736.0+2033_daily_bin1171.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/927544/ft1_4FGL_J1736.0+2033_daily_bin1171.fits outfile=/scratch/kocevski/927544/ft1_filteredMKT_4FGL_J1736.0+2033_daily_bin1171.fits ra=264.019 dec=20.5559 rad=12.0 tmin=542851201.0 tmax=543110401.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 0.76
user 0.60
sys 0.14

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/927544/ft1_filtered_4FGL_J1736.0+2033_daily_bin1171.fits evtable="EVENTS" scfile=/scratch/kocevski/927544/ft2_4FGL_J1736.0+2033_daily_bin1171.fits sctable="SC_DATA" expcube=/scratch/kocevski/927544/ltcube_542851201_543110401_4FGL_J1736.0+2033_daily_bin1171.fits outfile=/scratch/kocevski/927544/expmap_542851201_543110401_4FGL_J1736.0+2033_daily_bin1171.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/927544/ltcube_542851201_543110401_4FGL_J1736.0+2033_daily_bin1171.fits
.....................!
real 192.95
user 187.01
sys 5.27

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/927544/ft1_filtered_4FGL_J1736.0+2033_daily_bin1171.fits scfile=/scratch/kocevski/927544/ft2_4FGL_J1736.0+2033_daily_bin1171.fits outfile=/scratch/kocevski/927544/cmap_542851201_543110401_4FGL_J1736.0+2033_daily_bin1171.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.52
user 0.35
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/927544/ft1_filtered_4FGL_J1736.0+2033_daily_bin1171.fits scfile=/scratch/kocevski/927544/ft2_4FGL_J1736.0+2033_daily_bin1171.fits outfile=/scratch/kocevski/927544/cmap_HighResolution_542851201_543110401_4FGL_J1736.0+2033_daily_bin1171.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.52
user 0.36
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    98.283       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10620E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    7.4242       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    314.16       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10164E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    60.679       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .75460       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .82395       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=   810.3858     FROM MIGRAD    STATUS=CONVERGED    423 CALLS     1971 TOTAL
                     EDM=   .52E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.6743       -.19013E-06** at limit **
   2  Prefactor     .10000E-03    45.970        .22996E-07** at limit **
   3  Prefactor     97.694        158.19       -.27574E-05   -.48883E-04
   4  Prefactor     .10000E-03    115.98        .17386E-06** at limit **
   5  Prefactor     .10000E-03    28.478        .71395E-06** at limit **
   6  norm          .10006E-03    31.481       -.70275E-05** at limit **
   7  Prefactor     .10000E-03    25.494        .41322E-06** at limit **
   8  norm          .10000E-03    16.638        .81996E-07** at limit **
   9  Prefactor     .10000E-03    3.1462        .27046E-06** at limit **
  10  norm          .10000E-03    169.52        .30253E-06** at limit **
  11  Prefactor     .10000E-03    224.86        .17422E-06** at limit **
  12  Prefactor     .10000E-03    123.10        .19069E-06** at limit **
  13  norm          7.4269        4.9024        .38318E-06   -.21815E-04
  14  Prefactor     .10000E-03    117.35       -.13726E-06** at limit **
  15  Prefactor     314.05        319.89       -.60889E-06   -.11605E-04
  16  Prefactor     .10000E-03    25.399        .10646E-05** at limit **
  17  norm          60.688        55.090        .14190E-06   -.22596E-05
  18  Prefactor     .10000E-03    66.695        .45456E-06** at limit **
  19  Normalizat    .75623        .71001        .21344E-04   -.61170E-04
  20  Prefactor     .82309        .25945       -.11114E-04   -.26520E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 97.6943
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100064
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.42694
  Prefactor  = 0.0001
  Prefactor  = 314.048
  Prefactor  = 0.0001
  norm       = 60.6878
  Prefactor  = 0.0001
  Normalizat = 0.756231
  Prefactor  = 0.823093
 **********
 **   18 **HESSE 
 **********

 FCN=   810.3858     FROM HESSE     STATUS=OK           279 CALLS     2250 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.6763        .86512E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    45.972        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     97.694        158.96        .20274E-03   -1.3728    
   4  Prefactor     .10000E-03    115.99        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    28.510        .14852E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10006E-03    47.742        .26518E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    25.518        .14050E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    16.639        .11346E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.1507        .49351E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    169.52        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    224.86        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    123.11        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          7.4269        4.9046        .49339E-04   -1.5163    
  14  Prefactor     .10000E-03    117.38        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     314.05        319.94        .11465E-03   -1.2145    
  16  Prefactor     .10000E-03    25.476        .14033E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          60.688        55.088        .51508E-04   -1.4148    
  18  Prefactor     .10000E-03    66.712        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .75623        .74377        .41177E-03   -1.0171    
  20  Prefactor     .82309        .27171        .14413E-03   -.98883    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.64846e-09
Minuit parameter uncertainties:
  1  1.5995e-05
  2  1.83671e-05
  3  159.656
  4  4.62882e-05
  5  0.000128583
  6  0.0035104
  7  7.27025e-05
  8  1.27348e-05
  9  1.52451e-05
  10  0.000219558
  11  0.000160178
  12  4.43772e-05
  13  4.90482
  14  8.6133e-05
  15  321.76
  16  0.000166093
  17  55.1346
  18  0.000140947
  19  0.754093
  20  0.272155
Done.

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

Extracting fit parameters...

4FGL J1736.0+2033
   Spectrum: LogParabola
284         norm:  1.000e-04  2.196e-04  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:  8.231e-01  2.722e-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:  7.562e-01  7.541e-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: 1.94e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.07e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/927544/likelihoodResults_542851201_543110401_4FGL_J1736.0+2033_daily_bin1171.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): 102
logL (Free Index) = 810.385811213
delta logL = -2.79651533219e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 809.57389045
delta logL = 0.811892797382

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .33346       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .41838       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88669       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=   809.5739     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      275 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .33296        .53035        .34662E-02    .27819E-04
   2  alpha         5.0000        3.1261        .46370    ** at limit **
   3  Normalizat    .41897        .75942        .12203        .20381E-04
   4  Prefactor     .88658        .27564        .31417E-01    .45857E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.332963
  alpha      = 5
  Normalizat = 0.418975
  Prefactor  = 0.886576
 **********
 **   18 **HESSE 
 **********

 FCN=   809.5739     FROM HESSE     STATUS=OK            29 CALLS      304 TOTAL
                     EDM=   .83E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .33296        .33826        .15429E-04   -1.5593    
   2  alpha         5.0000        3.1618        .17656E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .41897        .74383        .54085E-03   -1.1633    
   4  Prefactor     .88658        .27280        .13883E-03   -.96612    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.31575e-12
Minuit parameter uncertainties:
  1  0.338266
  2  1.34356e-06
  3  0.762549
  4  0.273218
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/927544': 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) = 809.573888925
delta logL = 0.811894322933

Extracting fit parameters...

4FGL J1736.0+2033
   Spectrum: LogParabola
284         norm:  3.330e-01  3.383e-01  1.000e-04  1.000e+04 ( 1.000e-14)
285        alpha:  5.000e+00  1.344e-06  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:  8.866e-01  2.732e-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:  4.190e-01  7.625e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.82
Ra Dec: 264.019 20.556
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 2.45e-07 +/- 2.48e-07
Energy Flux (Free Index): 3.53e-05 +/- 3.58e-05

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/927544/cmap_HighResolution_542851201_543110401_4FGL_J1736.0+2033_daily_bin1171.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.07e-04', comment='SUCCESS', energy_flux2='3.53e-05', dlogl='8.12e-01', photon_flux2='2.45e-07', job_status='DONE', time_completed='2021-09-18 00:11:09.242084', photon_index_error2='0.00', photon_index2='5.00', ts='-0.00', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', photon_flux_upper_limit='1.94e-07', energy_flux_error2='3.58e-05', EG='0.76', time_epoch_completed='1631949069.24', return_code='0', job_id='927544', GAL2='0.89', EG2='0.42', return_code2='0', photon_flux_error2='2.48e-07', ts2='1.82', photon_index='1.74' WHERE bin_id='1171' AND source_name='4FGL J1736.0+2033' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 00:11:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0013>
Subject: Job 927544: <4FGL_J1736.0+2033_daily_bin1171> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1736.0+2033_daily_bin1171 264.019 20.5559 542851201 543110401 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 :                                   336.11 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             346.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   344 sec.
    Turnaround time :                            346 sec.

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

