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


Performing analysis on: 4FGL_J1736.0+2033_daily_bin1245
RA = 264.019, Dec = 20.5559
tmin = 562032001, tmax = 562291201
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='927676', job_status='RUN', time_executed='2021-09-18 00:07:47.335061', time_epoch_executed='1631948867.34' WHERE source_name='4FGL J1736.0+2033' and cadence='daily' and bin_id='1245'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/927676

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/927676/ft1_4FGL_J1736.0+2033_daily_bin1245.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/927676/ft2_4FGL_J1736.0+2033_daily_bin1245.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/927676/ft1_4FGL_J1736.0+2033_daily_bin1245.fits outfile=/scratch/kocevski/927676/ft1_filteredMKT_4FGL_J1736.0+2033_daily_bin1245.fits ra=264.019 dec=20.5559 rad=12.0 tmin=562032001.0 tmax=562291201.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.55
user 3.33
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/927676/ft1_filtered_4FGL_J1736.0+2033_daily_bin1245.fits" evtable="EVENTS" scfile=/scratch/kocevski/927676/ft2_4FGL_J1736.0+2033_daily_bin1245.fits sctable="SC_DATA" outfile=/scratch/kocevski/927676/ltcube_562032001_562291201_4FGL_J1736.0+2033_daily_bin1245.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/927676/ft2_4FGL_J1736.0+2033_daily_bin1245.fits
.....................!
real 12.14
user 11.77
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/927676/ft1_filtered_4FGL_J1736.0+2033_daily_bin1245.fits evtable="EVENTS" scfile=/scratch/kocevski/927676/ft2_4FGL_J1736.0+2033_daily_bin1245.fits sctable="SC_DATA" expcube=/scratch/kocevski/927676/ltcube_562032001_562291201_4FGL_J1736.0+2033_daily_bin1245.fits outfile=/scratch/kocevski/927676/expmap_562032001_562291201_4FGL_J1736.0+2033_daily_bin1245.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/927676/ltcube_562032001_562291201_4FGL_J1736.0+2033_daily_bin1245.fits
.....................!
real 190.54
user 185.18
sys 5.01

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/927676/ft1_filtered_4FGL_J1736.0+2033_daily_bin1245.fits scfile=/scratch/kocevski/927676/ft2_4FGL_J1736.0+2033_daily_bin1245.fits outfile=/scratch/kocevski/927676/cmap_562032001_562291201_4FGL_J1736.0+2033_daily_bin1245.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.53
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/927676/ft1_filtered_4FGL_J1736.0+2033_daily_bin1245.fits scfile=/scratch/kocevski/927676/ft2_4FGL_J1736.0+2033_daily_bin1245.fits outfile=/scratch/kocevski/927676/cmap_HighResolution_562032001_562291201_4FGL_J1736.0+2033_daily_bin1245.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.37
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    15.095       1.0000         .10000E-03   10000.    
     3 'Prefactor '    21.755       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.9136       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.9066       1.0000         .10000E-03   10000.    
     6 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    28.709       1.0000         .10000E-03   10000.    
     8 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.0750       1.0000         .10000E-03   10000.    
    10 'norm      '    .10336E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    80.555       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .33313E-01   1.0000         .10000E-03   10000.    
    13 'norm      '    .97523       1.0000         .10000E-03   10000.    
    14 'Prefactor '    39.476       1.0000         .10000E-03   10000.    
    15 'Prefactor '    28.694       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .74800       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0725       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=   10190.57     FROM MIGRAD    STATUS=CONVERGED    423 CALLS     2122 TOTAL
                     EDM=   .68E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.7324       -.12047E-06** at limit **
   2  Prefactor     15.098        26.606        .60377E-06    .30715E-06
   3  Prefactor     21.760        41.302        .78777E-06    .20277E-05
   4  Prefactor     9.9082        53.738       -.92526E-06   -.13835E-05
   5  Prefactor     4.8976        16.244        .13946E-06   -.67938E-05
   6  norm          .10000E-03    1.3637       -.38463E-06** at limit **
   7  Prefactor     28.699        18.917       -.12997E-05   -.13890E-03
   8  norm          .10000E-03    29.375       -.67352E-06** at limit **
   9  Prefactor     1.0738        3.6017        .26530E-05    .34468E-03
  10  norm          .10000E-03    66.357       -.11984E-06** at limit **
  11  Prefactor     80.900        143.26        .28310E-05    .25442E-04
  12  Prefactor     .12051E-03    46.418        .39390E-05** at limit **
  13  norm          .97515        .67003       -.72799E-07   -.91275E-04
  14  Prefactor     39.519        51.285        .15559E-06   -.41758E-04
  15  Prefactor     28.547        110.74        .58157E-05   -.22769E-04
  16  Prefactor     .10000E-03    6.6828       -.57333E-06** at limit **
  17  norm          .10000E-03    1.9524       -.56285E-07** at limit **
  18  Prefactor     .10000E-03    27.339       -.16974E-06** at limit **
  19  Normalizat    .74769        .26935       -.66026E-05   -.93965E-04
  20  Prefactor     1.0726        .90816E-01    .17742E-05   -.41774E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 15.0977
  Prefactor  = 21.7597
  Prefactor  = 9.90825
  Prefactor  = 4.89757
  norm       = 0.0001
  Prefactor  = 28.6988
  norm       = 0.000100002
  Prefactor  = 1.07383
  norm       = 0.0001
  Prefactor  = 80.8996
  Prefactor  = 0.000120505
  norm       = 0.975152
  Prefactor  = 39.5194
  Prefactor  = 28.5469
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.747686
  Prefactor  = 1.07258
 **********
 **   18 **HESSE 
 **********

 FCN=   10190.57     FROM HESSE     STATUS=OK           303 CALLS     2425 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.7361        .12970E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     15.098        26.614        .10309E-03   -1.4931    
   3  Prefactor     21.760        41.306        .85875E-04   -1.4775    
   4  Prefactor     9.9082        53.683        .12727E-03   -1.5078    
   5  Prefactor     4.8976        16.200        .18158E-03   -1.5265    
   6  norm          .10000E-03    1.3809        .11504E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     28.699        18.841        .74772E-04   -1.4636    
   8  norm          .10000E-03    30.182        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.0738        3.6985        .32087E-03   -1.5501    
  10  norm          .10000E-03    66.447        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     80.900        143.21        .22374E-03   -1.3907    
  12  Prefactor     .12051E-03    35.410        .18190       -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .97515        .68644        .66573E-03   -1.5510    
  14  Prefactor     39.519        51.025        .63795E-04   -1.4450    
  15  Prefactor     28.547        110.71        .74791E-04   -1.4639    
  16  Prefactor     .10000E-03    6.7814        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.9528        .13776E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    27.386        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .74769        .28080        .49487E-03   -1.0204    
  20  Prefactor     1.0726        .95147E-01    .14947E-03   -.90348    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.22641e-09
Minuit parameter uncertainties:
  1  3.94671e-07
  2  26.6353
  3  41.3605
  4  46.1903
  5  16.2147
  6  5.4983e-06
  7  18.8453
  8  0.000464557
  9  3.69928
  10  2.37228e-05
  11  143.831
  12  0.0539238
  13  0.686446
  14  51.0812
  15  111.525
  16  2.2626e-05
  17  1.45641e-06
  18  2.35152e-05
  19  0.281345
  20  0.0951616
Done.

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

Extracting fit parameters...

4FGL J1736.0+2033
   Spectrum: LogParabola
284         norm:  1.000e-04  2.372e-05  1.000e-04  1.000e+04 ( 1.000e-14)
285        alpha:  1.744e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
286         beta:  1.473e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
287           Eb:  2.550e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
632    Prefactor:  1.073e+00  9.516e-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.477e-01  2.813e-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: 3.62e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.73e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/927676/likelihoodResults_562032001_562291201_4FGL_J1736.0+2033_daily_bin1245.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) = 10190.5742905
delta logL = -7.15995192877e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10190.5742556
delta logL = -3.66754884453e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10345E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4863       1.0000          .0000       5.0000    
     3 'Normalizat'    .74769       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0726       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=   10190.57     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      290 TOTAL
                     EDM=   .84E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10019E-03    9737.2        .18149E-02** at limit **
   2  alpha         2.5737        3.1733        .16461       -.11396E-06
   3  Normalizat    .74769        .79389E-01    .49490E-03    .56951E-03
   4  Prefactor     1.0726        .28513E-01    .14947E-03    .14974E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100188
  alpha      = 2.57369
  Normalizat = 0.74769
  Prefactor  = 1.07258
 **********
 **   18 **HESSE 
 **********

 FCN=   10190.57     FROM HESSE     STATUS=OK            27 CALLS      317 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10019E-03    144.32        .36299E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.5737        3.7266        .65844E-01    .29481E-01
   3  Normalizat    .74769        .25670        .19796E-04   -1.0204    
   4  Prefactor     1.0726        .92308E-01    .29893E-04   -.90348    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.23622e-09
Minuit parameter uncertainties:
  1  0.0104438
  2  836.938
  3  0.257115
  4  0.0923214
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/927676': 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) = 10190.5742185
delta logL = 3.97465555579e-07

Extracting fit parameters...

4FGL J1736.0+2033
   Spectrum: LogParabola
284         norm:  1.002e-04  1.044e-02  1.000e-04  1.000e+04 ( 1.000e-14)
285        alpha:  2.574e+00  8.369e+02  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.073e+00  9.232e-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.477e-01  2.571e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 264.019 20.556

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/927676/cmap_HighResolution_562032001_562291201_4FGL_J1736.0+2033_daily_bin1245.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.73e-05', job_status='DONE', photon_flux_upper_limit='3.62e-08', time_completed='2021-09-18 00:21:47.220813', job_id='927676', GAL2='1.07', fit_tolerance='1e-08', EG2='0.75', EG='0.75', time_epoch_completed='1631949707.22', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='3.97e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.74' WHERE bin_id='1245' AND source_name='4FGL J1736.0+2033' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 00:21:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0088>
Subject: Job 927676: <4FGL_J1736.0+2033_daily_bin1245> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1736.0+2033_daily_bin1245 264.019 20.5559 562032001 562291201 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 :                                   832.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             295.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   971 sec.
    Turnaround time :                            973 sec.

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

