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


Performing analysis on: 4FGL_J1736.0+2033_daily_bin1308
RA = 264.019, Dec = 20.5559
tmin = 578361601, tmax = 578620801
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='927784', job_status='RUN', time_executed='2021-09-18 00:08:28.851755', time_epoch_executed='1631948908.85' WHERE source_name='4FGL J1736.0+2033' and cadence='daily' and bin_id='1308'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/927784

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/927784/ft1_4FGL_J1736.0+2033_daily_bin1308.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/927784/ft2_4FGL_J1736.0+2033_daily_bin1308.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/927784/ft1_4FGL_J1736.0+2033_daily_bin1308.fits outfile=/scratch/kocevski/927784/ft1_filteredMKT_4FGL_J1736.0+2033_daily_bin1308.fits ra=264.019 dec=20.5559 rad=12.0 tmin=578361601.0 tmax=578620801.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.64
user 3.39
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/927784/ft1_filtered_4FGL_J1736.0+2033_daily_bin1308.fits evtable="EVENTS" scfile=/scratch/kocevski/927784/ft2_4FGL_J1736.0+2033_daily_bin1308.fits sctable="SC_DATA" expcube=/scratch/kocevski/927784/ltcube_578361601_578620801_4FGL_J1736.0+2033_daily_bin1308.fits outfile=/scratch/kocevski/927784/expmap_578361601_578620801_4FGL_J1736.0+2033_daily_bin1308.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/927784/ltcube_578361601_578620801_4FGL_J1736.0+2033_daily_bin1308.fits
.....................!
real 191.95
user 186.44
sys 5.08

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/927784/ft1_filtered_4FGL_J1736.0+2033_daily_bin1308.fits scfile=/scratch/kocevski/927784/ft2_4FGL_J1736.0+2033_daily_bin1308.fits outfile=/scratch/kocevski/927784/cmap_578361601_578620801_4FGL_J1736.0+2033_daily_bin1308.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/927784/ft1_filtered_4FGL_J1736.0+2033_daily_bin1308.fits scfile=/scratch/kocevski/927784/ft2_4FGL_J1736.0+2033_daily_bin1308.fits outfile=/scratch/kocevski/927784/cmap_HighResolution_578361601_578620801_4FGL_J1736.0+2033_daily_bin1308.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/927784/ft1_filtered_4FGL_J1736.0+2033_daily_bin1308.fits evtable="EVENTS" scfile=/scratch/kocevski/927784/ft2_4FGL_J1736.0+2033_daily_bin1308.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/927784/Model_4FGL_J1736.0+2033_daily_bin1308.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/927784/ft1_filtered_4FGL_J1736.0+2033_daily_bin1308.fits.....................!
real 77.01
user 75.52
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    87.662       1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.0741       1.0000         .10000E-03   10000.    
     6 'norm      '    .10118E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.6406       1.0000         .10000E-03   10000.    
    10 'norm      '    51.082       1.0000         .10000E-03   10000.    
    11 'Prefactor '    56.269       1.0000         .10000E-03   10000.    
    12 'Prefactor '    116.77       1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .29948E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    69.590       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .21413E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .92140       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .95880       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=   9355.606     FROM MIGRAD    STATUS=CONVERGED    413 CALLS     2057 TOTAL
                     EDM=   .82E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.0954       -.16856E-06** at limit **
   2  Prefactor     .10000E-03    10.007        .52343E-05** at limit **
   3  Prefactor     .10000E-03    12.583        .92140E-06** at limit **
   4  Prefactor     87.672        74.862        .85561E-05   -.79492E-04
   5  Prefactor     8.0765        12.324       -.51865E-05    .98358E-04
   6  norm          .10000E-03    1.0780       -.89668E-07** at limit **
   7  Prefactor     .10000E-03    10.438       -.58089E-05** at limit **
   8  norm          .10000E-03    6.0173       -.48005E-06** at limit **
   9  Prefactor     1.6423        2.7167       -.10435E-05   -.12074E-02
  10  norm          51.085        49.492        .24586E-05   -.38291E-04
  11  Prefactor     56.265        107.44       -.52930E-05   -.16424E-04
  12  Prefactor     116.77        67.238        .14830E-05   -.14285E-03
  13  norm          .10000E-03    .28743       -.35967E-07** at limit **
  14  Prefactor     .10002E-03    81.756        .73636E-04** at limit **
  15  Prefactor     69.541        69.122       -.49877E-04    .83114E-04
  16  Prefactor     .10000E-03    4.5083        .28157E-06** at limit **
  17  norm          .10000E-03    2.8648        .18539E-06** at limit **
  18  Prefactor     .10000E-03    94.548       -.14473E-04** at limit **
  19  Normalizat    .92137        .22732        .60049E-05   -.29610E-03
  20  Prefactor     .95875        .79555E-01   -.34596E-06   -.13456E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 87.6717
  Prefactor  = 8.07655
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.64234
  norm       = 51.0846
  Prefactor  = 56.2645
  Prefactor  = 116.774
  norm       = 0.0001
  Prefactor  = 0.000100017
  Prefactor  = 69.5415
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  Normalizat = 0.921366
  Prefactor  = 0.958749
 **********
 **   18 **HESSE 
 **********

 FCN=   9355.606     FROM HESSE     STATUS=OK           285 CALLS     2342 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.1601        .16616E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    10.016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    12.588        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     87.672        74.841        .42911E-04   -1.3833    
   5  Prefactor     8.0765        12.296        .14110E-03   -1.5140    
   6  norm          .10000E-03    1.8786        .19509E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    10.526        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    6.0379        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.6423        2.7044        .19463E-03   -1.5452    
  10  norm          51.085        49.489        .56112E-04   -1.4277    
  11  Prefactor     56.265        107.69        .53477E-04   -1.4206    
  12  Prefactor     116.77        67.234        .37234E-04   -1.3542    
  13  norm          .10000E-03    .43009        .10072E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10002E-03    86.003        .21391E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     69.541        69.786        .24059E-03   -1.4038    
  16  Prefactor     .10000E-03    4.5437        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.8676        .15989E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    96.487        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .92137        .25424        .41662E-03   -.95713    
  20  Prefactor     .95875        .89512E-01    .14721E-03   -.94117    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.80498e-09
Minuit parameter uncertainties:
  1  1.21344e-05
  2  0.000132497
  3  3.82245e-05
  4  74.9213
  5  12.3003
  6  2.36591e-07
  7  0.000134806
  8  3.25592e-05
  9  2.70462
  10  49.5292
  11  108.063
  12  67.2776
  13  4.93109e-06
  14  0.0024189
  15  69.8685
  16  1.63139e-05
  17  4.42588e-06
  18  0.000897506
  19  0.254575
  20  0.0895261
Done.

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

Extracting fit parameters...

4FGL J1736.0+2033
   Spectrum: LogParabola
284         norm:  5.108e+01  4.953e+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:  9.587e-01  8.953e-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.214e-01  2.546e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.32
Ra Dec: 264.019 20.556
Photon Index (Fixed Index): 1.74 +/- 0.00
Photon Flux (Fixed Index): 1.00e-08 +/- 9.70e-09
Energy Flux (Fixed Index): 1.58e-05 +/- 1.53e-05

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

Saving results to:
/scratch/kocevski/927784/likelihoodResults_578361601_578620801_4FGL_J1736.0+2033_daily_bin1308.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) = 9355.60366309
delta logL = 0.00235140110271

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9355.60337238
delta logL = 0.0026421093844

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    49.904       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8132       1.0000          .0000       5.0000    
     3 'Normalizat'    .92055       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95872       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=   9355.603     FROM MIGRAD    STATUS=CONVERGED     64 CALLS      235 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          49.779        1517.6        .14192E-02   -.14419E-05
   2  alpha         1.8074        2.6871        .43310        .29152E-04
   3  Normalizat    .92083        .12145        .94077E-01    .36565E-04
   4  Prefactor     .95874        .33271E-01    .33316E-01   -.61905E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 49.7787
  alpha      = 1.80739
  Normalizat = 0.92083
  Prefactor  = 0.958743
 **********
 **   18 **HESSE 
 **********

 FCN=   9355.603     FROM HESSE     STATUS=OK            31 CALLS      266 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          49.779        52.995        .56768E-04   -1.4296    
   2  alpha         1.8074        .87284        .21745E-01   -.28072    
   3  Normalizat    .92083        .24434        .41672E-03   -.95732    
   4  Prefactor     .95874        .88671E-01    .14721E-03   -.94118    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.95473e-09
Minuit parameter uncertainties:
  1  53.0451
  2  0.893283
  3  0.24464
  4  0.0886845
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/927784': 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) = 9355.60333365
delta logL = 0.00268083908486

Extracting fit parameters...

4FGL J1736.0+2033
   Spectrum: LogParabola
284         norm:  4.978e+01  5.305e+01  1.000e-04  1.000e+04 ( 1.000e-14)
285        alpha:  1.807e+00  8.933e-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:  9.587e-01  8.868e-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.208e-01  2.446e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.32
Ra Dec: 264.019 20.556
Photon Index (Free Index): 1.81 +/- 0.89
Photon Flux (Free Index): 1.07e-08 +/- 1.45e-08
Energy Flux (Free Index): 1.48e-05 +/- 1.99e-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/927784/cmap_HighResolution_578361601_578620801_4FGL_J1736.0+2033_daily_bin1308.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.26e-05', comment='SUCCESS', photon_flux='1.00e-08', energy_flux2='1.48e-05', photon_flux_error='9.70e-09', dlogl='2.68e-03', energy_flux='1.58e-05', photon_flux2='1.07e-08', job_status='DONE', time_completed='2021-09-18 00:22:21.667862', photon_index_error2='0.89', photon_index2='1.81', ts='3.32', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='3.96e-08', energy_flux_error2='1.99e-05', EG='0.92', time_epoch_completed='1631949741.67', return_code='0', job_id='927784', GAL2='0.96', EG2='0.92', return_code2='0', energy_flux_error='1.53e-05', photon_flux_error2='1.45e-08', ts2='3.32', photon_index='1.74' WHERE bin_id='1308' AND source_name='4FGL J1736.0+2033' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 00:22:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0222>
Subject: Job 927784: <4FGL_J1736.0+2033_daily_bin1308> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1736.0+2033_daily_bin1308 264.019 20.5559 578361601 578620801 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 :                                   798.11 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             311.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   997 sec.
    Turnaround time :                            999 sec.

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

