/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 118 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 = 7468
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1736.0+2033_daily_bin423
RA = 264.019, Dec = 20.5559
tmin = 348969601, tmax = 349228801
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='921182', job_status='RUN', time_executed='2021-09-17 23:48:03.176666', time_epoch_executed='1631947683.18' WHERE source_name='4FGL J1736.0+2033' and cadence='daily' and bin_id='423'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/921182

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/921182/ft1_4FGL_J1736.0+2033_daily_bin423.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/921182/ft2_4FGL_J1736.0+2033_daily_bin423.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/921182/ft1_4FGL_J1736.0+2033_daily_bin423.fits outfile=/scratch/kocevski/921182/ft1_filteredMKT_4FGL_J1736.0+2033_daily_bin423.fits ra=264.019 dec=20.5559 rad=12.0 tmin=348969601.0 tmax=349228801.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.79
user 3.53
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/921182/ft1_filtered_4FGL_J1736.0+2033_daily_bin423.fits" evtable="EVENTS" scfile=/scratch/kocevski/921182/ft2_4FGL_J1736.0+2033_daily_bin423.fits sctable="SC_DATA" outfile=/scratch/kocevski/921182/ltcube_348969601_349228801_4FGL_J1736.0+2033_daily_bin423.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/921182/ft2_4FGL_J1736.0+2033_daily_bin423.fits
.....................!
real 12.52
user 11.97
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/921182/ft1_filtered_4FGL_J1736.0+2033_daily_bin423.fits evtable="EVENTS" scfile=/scratch/kocevski/921182/ft2_4FGL_J1736.0+2033_daily_bin423.fits sctable="SC_DATA" expcube=/scratch/kocevski/921182/ltcube_348969601_349228801_4FGL_J1736.0+2033_daily_bin423.fits outfile=/scratch/kocevski/921182/expmap_348969601_349228801_4FGL_J1736.0+2033_daily_bin423.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/921182/ltcube_348969601_349228801_4FGL_J1736.0+2033_daily_bin423.fits
.....................!
real 195.06
user 187.38
sys 5.63

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/921182/ft1_filtered_4FGL_J1736.0+2033_daily_bin423.fits scfile=/scratch/kocevski/921182/ft2_4FGL_J1736.0+2033_daily_bin423.fits outfile=/scratch/kocevski/921182/cmap_348969601_349228801_4FGL_J1736.0+2033_daily_bin423.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.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/921182/ft1_filtered_4FGL_J1736.0+2033_daily_bin423.fits scfile=/scratch/kocevski/921182/ft2_4FGL_J1736.0+2033_daily_bin423.fits outfile=/scratch/kocevski/921182/cmap_HighResolution_348969601_349228801_4FGL_J1736.0+2033_daily_bin423.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/921182/ft1_filtered_4FGL_J1736.0+2033_daily_bin423.fits evtable="EVENTS" scfile=/scratch/kocevski/921182/ft2_4FGL_J1736.0+2033_daily_bin423.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/921182/Model_4FGL_J1736.0+2033_daily_bin423.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/921182/ft1_filtered_4FGL_J1736.0+2033_daily_bin423.fits.....................!
real 80.30
user 78.05
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.2852       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.1773       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.6479       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    24.318       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10128E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    73.442       1.0000         .10000E-03   10000.    
    13 'norm      '    2.1155       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .96243       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .97760       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=   9599.018     FROM MIGRAD    STATUS=CONVERGED    397 CALLS     1688 TOTAL
                     EDM=   .69E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.2853        6.5021       -.41962E-06   -.34229E-03
   2  Prefactor     7.1742        24.079       -.24531E-05   -.15246E-04
   3  Prefactor     .10000E-03    7.9115       -.45235E-06** at limit **
   4  Prefactor     .10000E-03    83.619       -.93747E-04** at limit **
   5  Prefactor     9.6466        14.681        .65487E-06    .38578E-04
   6  norm          .10000E-03    .72416       -.28303E-06** at limit **
   7  Prefactor     .10000E-03    11.054       -.35569E-05** at limit **
   8  norm          24.320        11.859       -.15707E-06    .41231E-04
   9  Prefactor     .10000E-03    1.0662        .42299E-06** at limit **
  10  norm          .10000E-03    70.915        .26180E-04** at limit **
  11  Prefactor     .10000E-03    68.851        .48152E-04** at limit **
  12  Prefactor     73.442        46.395        .11956E-06    .70501E-05
  13  norm          2.1155        .95787        .46944E-07   -.89923E-04
  14  Prefactor     .10000E-03    12.764       -.26411E-05** at limit **
  15  Prefactor     .10000E-03    26.018       -.40311E-05** at limit **
  16  Prefactor     .10000E-03    2.8141       -.13763E-06** at limit **
  17  norm          .10000E-03    2.1552        .16387E-06** at limit **
  18  Prefactor     .10000E-03    12.024        .58964E-05** at limit **
  19  Normalizat    .96256        .23228       -.15831E-07    .53104E-04
  20  Prefactor     .97755        .82305E-01    .53953E-07    .24222E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.28534
  Prefactor  = 7.17419
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.64659
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 24.3198
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 73.442
  norm       = 2.11554
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.962561
  Prefactor  = 0.977546
 **********
 **   18 **HESSE 
 **********

 FCN=   9599.018     FROM HESSE     STATUS=OK           281 CALLS     1969 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.2853        6.4953        .19462E-03   -1.5294    
   2  Prefactor     7.1742        24.006        .14973E-03   -1.5172    
   3  Prefactor     .10000E-03    7.9124        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    83.644        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.6466        14.678        .12901E-03   -1.5087    
   6  norm          .10000E-03    .72890        .81408E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    11.154        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          24.320        11.857        .81230E-04   -1.4721    
   9  Prefactor     .10000E-03    1.0788        .98671E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    71.215        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    68.886        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     73.442        46.462        .46849E-04   -1.3992    
  13  norm          2.1155        .95906        .62511E-04   -1.5417    
  14  Prefactor     .10000E-03    12.783        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    26.031        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.8246        .16049E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.1556        .14047E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    12.029        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .96256        .26526        .41836E-03   -.94295    
  20  Prefactor     .97755        .94496E-01    .15010E-03   -.93482    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37547e-10
Minuit parameter uncertainties:
  1  6.49634
  2  24.0382
  3  4.96022e-07
  4  0.000243469
  5  14.6838
  6  3.63287e-08
  7  1.43454e-05
  8  11.858
  9  4.86995e-07
  10  0.000103115
  11  1.52357e-05
  12  46.4846
  13  0.959071
  14  3.13453e-07
  15  6.05889e-07
  16  2.04774e-07
  17  2.2032e-08
  18  1.56977e-06
  19  0.265619
  20  0.0945124
Done.

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

Extracting fit parameters...

4FGL J1736.0+2033
   Spectrum: LogParabola
284         norm:  1.000e-04  1.031e-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:  9.775e-01  9.451e-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.626e-01  2.656e-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: 2.95e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.67e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/921182/likelihoodResults_348969601_349228801_4FGL_J1736.0+2033_daily_bin423.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) = 9599.01815189
delta logL = -6.67998829158e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9599.0180856
delta logL = -5.09300662088e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11289E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3346       1.0000          .0000       5.0000    
     3 'Normalizat'    .96256       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97755       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=   9599.018     FROM MIGRAD    STATUS=CONVERGED    111 CALLS      293 TOTAL
                     EDM=   .87E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    258.56        .18142E-01** at limit **
   2  alpha         1.8378        3.1978        .50000        .58208E-08
   3  Normalizat    .96256        .11006E-01    .41836E-03   -.11484E-03
   4  Prefactor     .97755        .40079E-02    .15010E-03   -.27825E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.83775
  Normalizat = 0.962561
  Prefactor  = 0.977545
 **********
 **   18 **HESSE 
 **********

 FCN=   9599.018     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      322 TOTAL
                     EDM=   .43E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1293.0        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8378        3.4100        .50000       -.26810    
   3  Normalizat    .96256        .25190E-01    .16734E-04   -.94295    
   4  Prefactor     .97755        .91731E-02    .30019E-04   -.93482    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.30634e-12
Minuit parameter uncertainties:
  1  0.000540794
  2  2214.86
  3  0.0251905
  4  0.00917308
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/921182': 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): 102
logL (Free Index) = 9599.01808508
delta logL = 1.06974766823e-08

Extracting fit parameters...

4FGL J1736.0+2033
   Spectrum: LogParabola
284         norm:  1.000e-04  5.408e-04  1.000e-04  1.000e+04 ( 1.000e-14)
285        alpha:  1.838e+00  2.215e+03  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.775e-01  9.173e-03  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.626e-01  2.519e-02  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/921182/cmap_HighResolution_348969601_349228801_4FGL_J1736.0+2033_daily_bin423.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.67e-05', job_status='DONE', photon_flux_upper_limit='2.95e-08', time_completed='2021-09-18 00:00:55.254974', job_id='921182', GAL2='0.98', fit_tolerance='1e-08', EG2='0.96', EG='0.96', time_epoch_completed='1631948455.26', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='1.07e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.74' WHERE bin_id='423' AND source_name='4FGL J1736.0+2033' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 00:00:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0048>
Subject: Job 921182: <4FGL_J1736.0+2033_daily_bin423> in cluster <slac> Done

Job <4FGL_J1736.0+2033_daily_bin423> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep 17 23:45:55 2021
Job was executed on host(s) <bullet0048>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 17 23:45:58 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 17 23:45:58 2021
Terminated at Sat Sep 18 00:00:56 2021
Results reported at Sat Sep 18 00:00:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1736.0+2033_daily_bin423 264.019 20.5559 348969601 349228801 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 :                                   764.36 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             328.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   897 sec.
    Turnaround time :                            901 sec.

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

