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


Performing analysis on: 4FGL_J1736.0+2033_daily_bin939
RA = 264.019, Dec = 20.5559
tmin = 482716801, tmax = 482976001
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='926074', job_status='RUN', time_executed='2021-09-18 00:00:47.104140', time_epoch_executed='1631948447.1' WHERE source_name='4FGL J1736.0+2033' and cadence='daily' and bin_id='939'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/926074

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/926074/ft1_4FGL_J1736.0+2033_daily_bin939.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/926074/ft2_4FGL_J1736.0+2033_daily_bin939.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/926074/ft1_4FGL_J1736.0+2033_daily_bin939.fits outfile=/scratch/kocevski/926074/ft1_filteredMKT_4FGL_J1736.0+2033_daily_bin939.fits ra=264.019 dec=20.5559 rad=12.0 tmin=482716801.0 tmax=482976001.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.60
user 3.39
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/926074/ft1_filtered_4FGL_J1736.0+2033_daily_bin939.fits evtable="EVENTS" scfile=/scratch/kocevski/926074/ft2_4FGL_J1736.0+2033_daily_bin939.fits sctable="SC_DATA" expcube=/scratch/kocevski/926074/ltcube_482716801_482976001_4FGL_J1736.0+2033_daily_bin939.fits outfile=/scratch/kocevski/926074/expmap_482716801_482976001_4FGL_J1736.0+2033_daily_bin939.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/926074/ltcube_482716801_482976001_4FGL_J1736.0+2033_daily_bin939.fits
.....................!
real 190.38
user 184.53
sys 5.53

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/926074/ft1_filtered_4FGL_J1736.0+2033_daily_bin939.fits scfile=/scratch/kocevski/926074/ft2_4FGL_J1736.0+2033_daily_bin939.fits outfile=/scratch/kocevski/926074/cmap_482716801_482976001_4FGL_J1736.0+2033_daily_bin939.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/926074/ft1_filtered_4FGL_J1736.0+2033_daily_bin939.fits scfile=/scratch/kocevski/926074/ft2_4FGL_J1736.0+2033_daily_bin939.fits outfile=/scratch/kocevski/926074/cmap_HighResolution_482716801_482976001_4FGL_J1736.0+2033_daily_bin939.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.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.5272       1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.642       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    130.72       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.7043       1.0000         .10000E-03   10000.    
     6 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.1111       1.0000         .10000E-03   10000.    
     8 'norm      '    1.8548       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    54.068       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    74.222       1.0000         .10000E-03   10000.    
    13 'norm      '    .64566       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .18400E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    67.669       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.3052       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.492       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .69793       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0163       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=   9913.858     FROM MIGRAD    STATUS=CONVERGED    409 CALLS     2057 TOTAL
                     EDM=   .56E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.5281        8.3503        .25469E-06    .18344E-04
   2  Prefactor     13.634        33.226        .32208E-06   -.47899E-05
   3  Prefactor     .10000E-03    16.775       -.78738E-07** at limit **
   4  Prefactor     130.70        79.080       -.81069E-07   -.15519E-04
   5  Prefactor     4.7046        10.971        .27757E-06    .74784E-05
   6  norm          .10000E-03    1.1219       -.11219E-06** at limit **
   7  Prefactor     7.1000        11.760       -.11641E-06   -.24790E-04
   8  norm          1.8446        14.946        .71229E-06   -.27072E-04
   9  Prefactor     .10002E-03    1.1053        .12939E-06** at limit **
  10  norm          54.088        52.332        .42457E-07    .19977E-04
  11  Prefactor     .10000E-03    64.961        .29407E-06** at limit **
  12  Prefactor     74.228        55.977       -.12333E-06   -.17340E-04
  13  norm          .64555        .54859       -.29795E-07    .85450E-04
  14  Prefactor     .10000E-03    67.974        .11302E-04** at limit **
  15  Prefactor     67.728        62.061       -.69267E-06   -.28563E-04
  16  Prefactor     2.3092        8.4209        .15018E-05    .15233E-04
  17  norm          .10000E-03    3.0896        .73213E-07** at limit **
  18  Prefactor     10.438        27.012       -.58123E-06   -.31117E-04
  19  Normalizat    .69753        .24179       -.27638E-05   -.42208E-04
  20  Prefactor     1.0164        .83562E-01    .72057E-06   -.27359E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.52809
  Prefactor  = 13.6336
  Prefactor  = 0.0001
  Prefactor  = 130.696
  Prefactor  = 4.70459
  norm       = 0.0001
  Prefactor  = 7.1
  norm       = 1.84456
  Prefactor  = 0.000100021
  norm       = 54.0877
  Prefactor  = 0.0001
  Prefactor  = 74.2278
  norm       = 0.645547
  Prefactor  = 0.0001
  Prefactor  = 67.728
  Prefactor  = 2.30918
  norm       = 0.0001
  Prefactor  = 10.438
  Normalizat = 0.697532
  Prefactor  = 1.0164
 **********
 **   18 **HESSE 
 **********

 FCN=   9913.858     FROM HESSE     STATUS=OK           301 CALLS     2358 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.5281        8.2726        .17090E-03   -1.5238    
   2  Prefactor     13.634        32.944        .10844E-03   -1.4969    
   3  Prefactor     .10000E-03    16.793        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     130.70        79.006        .17609E-03   -1.3417    
   5  Prefactor     4.7046        10.938        .18553E-03   -1.5274    
   6  norm          .10000E-03    1.9614        .20407E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.1000        11.619        .15043E-03   -1.5175    
   8  norm          1.8446        13.056        .30606E-03   -1.5436    
   9  Prefactor     .10002E-03    16.577        .18209E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          54.088        52.335        .27274E-03   -1.4236    
  11  Prefactor     .10000E-03    64.988        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     74.228        55.771        .46604E-04   -1.3983    
  13  norm          .64555        .57825        .65898E-03   -1.5547    
  14  Prefactor     .10000E-03    69.225        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     67.728        62.368        .24396E-03   -1.4060    
  16  Prefactor     2.3092        8.3725        .27026E-03   -1.5404    
  17  norm          .10000E-03    3.0940        .17092E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     10.438        27.077        .12370E-03   -1.5062    
  19  Normalizat    .69753        .25545        .47053E-03   -1.0399    
  20  Prefactor     1.0164        .90066E-01    .14329E-03   -.92185    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.25344e-09
Minuit parameter uncertainties:
  1  8.2743
  2  32.9883
  3  2.20972e-06
  4  79.0703
  5  10.9423
  6  1.60998e-05
  7  11.6229
  8  9.81742
  9  0.0011694
  10  52.38
  11  0.00010983
  12  55.8105
  13  0.578258
  14  5.20675e-05
  15  62.4279
  16  8.37672
  17  3.46356e-08
  18  27.1087
  19  0.25589
  20  0.0900797
Done.

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

Extracting fit parameters...

4FGL J1736.0+2033
   Spectrum: LogParabola
284         norm:  5.409e+01  5.238e+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.016e+00  9.008e-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:  6.975e-01  2.559e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.52
Ra Dec: 264.019 20.556
Photon Index (Fixed Index): 1.74 +/- 0.00
Photon Flux (Fixed Index): 1.06e-08 +/- 1.03e-08
Energy Flux (Fixed Index): 1.68e-05 +/- 1.62e-05

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

Saving results to:
/scratch/kocevski/926074/likelihoodResults_482716801_482976001_4FGL_J1736.0+2033_daily_bin939.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) = 9913.45532705
delta logL = 0.402923872653

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9913.45010087
delta logL = 0.408150058836

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    59.856       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.1106       1.0000          .0000       5.0000    
     3 'Normalizat'    .70122       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0161       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=   9913.450     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      226 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          59.856        68.951        .12965E-02   -.63508E-03
   2  alpha         1.1106        .70281        .50000       -.21062E-04
   3  Normalizat    .70132        .21974        .10588        .54526E-04
   4  Prefactor     1.0160        .79928E-01    .32428E-01   -.89745E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 59.8562
  alpha      = 1.1106
  Normalizat = 0.701317
  Prefactor  = 1.01603
 **********
 **   18 **HESSE 
 **********

 FCN=   9913.450     FROM HESSE     STATUS=OK            31 CALLS      257 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          59.856        57.808        .51859E-04   -1.4159    
   2  alpha         1.1106        .63063        .27023E-01   -.58928    
   3  Normalizat    .70132        .23817        .46934E-03   -1.0384    
   4  Prefactor     1.0160        .87087E-01    .14330E-03   -.92197    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.60368e-09
Minuit parameter uncertainties:
  1  57.8622
  2  0.640729
  3  0.238522
  4  0.0870994
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/926074': 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) = 9913.45010077
delta logL = 0.408150150817

Extracting fit parameters...

4FGL J1736.0+2033
   Spectrum: LogParabola
284         norm:  5.986e+01  5.786e+01  1.000e-04  1.000e+04 ( 1.000e-14)
285        alpha:  1.111e+00  6.407e-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.016e+00  8.710e-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:  7.013e-01  2.385e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.34
Ra Dec: 264.019 20.556
Photon Index (Free Index): 1.11 +/- 0.64
Photon Flux (Free Index): 6.66e-09 +/- 6.73e-09
Energy Flux (Free Index): 4.39e-05 +/- 5.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/926074/cmap_HighResolution_482716801_482976001_4FGL_J1736.0+2033_daily_bin939.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.57e-05', comment='SUCCESS', photon_flux='1.06e-08', energy_flux2='4.39e-05', photon_flux_error='1.03e-08', dlogl='4.08e-01', energy_flux='1.68e-05', photon_flux2='6.66e-09', job_status='DONE', time_completed='2021-09-18 00:14:34.259681', photon_index_error2='0.64', photon_index2='1.11', ts='3.52', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='4.15e-08', energy_flux_error2='5.95e-05', EG='0.70', time_epoch_completed='1631949274.26', return_code='0', job_id='926074', GAL2='1.02', EG2='0.70', return_code2='0', energy_flux_error='1.62e-05', photon_flux_error2='6.73e-09', ts2='4.34', photon_index='1.74' WHERE bin_id='939' AND source_name='4FGL J1736.0+2033' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 00:14:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0275>
Subject: Job 926074: <4FGL_J1736.0+2033_daily_bin939> in cluster <slac> Done

Job <4FGL_J1736.0+2033_daily_bin939> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep 18 00:00:32 2021
Job was executed on host(s) <bullet0275>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 18 00:00:33 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:33 2021
Terminated at Sat Sep 18 00:14:35 2021
Results reported at Sat Sep 18 00:14:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1736.0+2033_daily_bin939 264.019 20.5559 482716801 482976001 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 :                                   823.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             349.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   841 sec.
    Turnaround time :                            843 sec.

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

