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


Performing analysis on: 4FGL_J1736.0+2033_daily_bin1329
RA = 264.019, Dec = 20.5559
tmin = 583804801, tmax = 584064001
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='927817', job_status='RUN', time_executed='2021-09-18 00:07:53.579062', time_epoch_executed='1631948873.58' WHERE source_name='4FGL J1736.0+2033' and cadence='daily' and bin_id='1329'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/927817

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/927817/ft1_4FGL_J1736.0+2033_daily_bin1329.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/927817/ft2_4FGL_J1736.0+2033_daily_bin1329.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/927817/ft1_4FGL_J1736.0+2033_daily_bin1329.fits outfile=/scratch/kocevski/927817/ft1_filteredMKT_4FGL_J1736.0+2033_daily_bin1329.fits ra=264.019 dec=20.5559 rad=12.0 tmin=583804801.0 tmax=584064001.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.47
user 3.24
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/927817/ft1_filtered_4FGL_J1736.0+2033_daily_bin1329.fits evtable="EVENTS" scfile=/scratch/kocevski/927817/ft2_4FGL_J1736.0+2033_daily_bin1329.fits sctable="SC_DATA" expcube=/scratch/kocevski/927817/ltcube_583804801_584064001_4FGL_J1736.0+2033_daily_bin1329.fits outfile=/scratch/kocevski/927817/expmap_583804801_584064001_4FGL_J1736.0+2033_daily_bin1329.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/927817/ltcube_583804801_584064001_4FGL_J1736.0+2033_daily_bin1329.fits
.....................!
real 192.15
user 187.32
sys 4.51

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/927817/ft1_filtered_4FGL_J1736.0+2033_daily_bin1329.fits scfile=/scratch/kocevski/927817/ft2_4FGL_J1736.0+2033_daily_bin1329.fits outfile=/scratch/kocevski/927817/cmap_583804801_584064001_4FGL_J1736.0+2033_daily_bin1329.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=264.019 yref=20.5559 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.52
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/927817/ft1_filtered_4FGL_J1736.0+2033_daily_bin1329.fits scfile=/scratch/kocevski/927817/ft2_4FGL_J1736.0+2033_daily_bin1329.fits outfile=/scratch/kocevski/927817/cmap_HighResolution_583804801_584064001_4FGL_J1736.0+2033_daily_bin1329.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.53
user 0.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    46.694       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.7983       1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.6691       1.0000         .10000E-03   10000.    
     8 'norm      '    2.7218       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .27621       1.0000         .10000E-03   10000.    
    10 'norm      '    86.332       1.0000         .10000E-03   10000.    
    11 'Prefactor '    38.671       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .78806       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .26286E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.7339       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.4041       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .82089       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=   9365.334     FROM MIGRAD    STATUS=CONVERGED    431 CALLS     2081 TOTAL
                     EDM=   .81E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.2315       -.15828E-06** at limit **
   2  Prefactor     .10000E-03    15.399       -.31443E-06** at limit **
   3  Prefactor     .10000E-03    23.149       -.20341E-06** at limit **
   4  Prefactor     46.699        50.041        .16478E-06    .11833E-04
   5  Prefactor     .10000E-03    2.8736       -.86654E-07** at limit **
   6  norm          1.7987        3.1664        .76644E-06    .53315E-04
   7  Prefactor     9.6629        9.1794        .61469E-07   -.96491E-05
   8  norm          2.6856        9.0313        .75210E-06   -.15358E-05
   9  Prefactor     .30495        1.4217        .18520E-06   -.32566E-03
  10  norm          86.351        74.370        .25049E-06    .42855E-04
  11  Prefactor     38.944        133.54        .87193E-05    .14035E-03
  12  Prefactor     .10000E-03    11.834        .67691E-07** at limit **
  13  norm          .78796        .66720       -.36356E-07    .71191E-04
  14  Prefactor     .10000E-03    44.630        .20152E-05** at limit **
  15  Prefactor     .10000E-03    69.127        .80237E-06** at limit **
  16  Prefactor     .10000E-03    4.0374       -.28295E-06** at limit **
  17  norm          3.7345        8.0100        .96423E-05    .12812E-03
  18  Prefactor     .10000E-03    69.739       -.59068E-06** at limit **
  19  Normalizat    1.4034        .22712       -.59909E-05    .19612E-03
  20  Prefactor     .82106        .79853E-01    .22633E-05   -.53664E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 46.6992
  Prefactor  = 0.0001
  norm       = 1.79874
  Prefactor  = 9.66294
  norm       = 2.68559
  Prefactor  = 0.30495
  norm       = 86.3507
  Prefactor  = 38.9438
  Prefactor  = 0.0001
  norm       = 0.787964
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 3.73454
  Prefactor  = 0.0001
  Normalizat = 1.40343
  Prefactor  = 0.82106
 **********
 **   18 **HESSE 
 **********

 FCN=   9365.334     FROM HESSE     STATUS=OK           293 CALLS     2374 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.2430        .14114E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    15.434        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    23.197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     46.699        50.048        .58677E-04   -1.4340    
   5  Prefactor     .10000E-03    2.8763        .16021E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.7987        3.1562        .21921E-03   -1.5440    
   7  Prefactor     9.6629        9.1928        .12887E-03   -1.5086    
   8  norm          2.6856        9.8436        .24685E-03   -1.5380    
   9  Prefactor     .30495        10.596        .19776E-02   -1.5598    
  10  norm          86.351        74.397        .21619E-03   -1.3847    
  11  Prefactor     38.944        133.80        .32227E-03   -1.4459    
  12  Prefactor     .10000E-03    11.837        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .78796        .64345        .70585E-03   -1.5530    
  14  Prefactor     .10000E-03    45.043        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    69.278        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    12.408        .37575E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.7345        8.1395        .10448E-02   -1.5321    
  18  Prefactor     .10000E-03    72.341        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.4034        .26067        .34959E-03   -.80529    
  20  Prefactor     .82106        .92439E-01    .15729E-03   -.98957    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.10271e-09
Minuit parameter uncertainties:
  1  5.90331e-06
  2  1.57074e-05
  3  2.48935e-05
  4  50.0927
  5  2.90985e-07
  6  3.15652
  7  9.19409
  8  9.84951
  9  3.59519
  10  74.4773
  11  134.852
  12  7.64632e-08
  13  0.643457
  14  7.7272e-06
  15  9.98025e-05
  16  0.00031453
  17  8.14186
  18  0.000136683
  19  0.260916
  20  0.0924569
Done.

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

Extracting fit parameters...

4FGL J1736.0+2033
   Spectrum: LogParabola
284         norm:  8.635e+01  7.448e+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:  8.211e-01  9.246e-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:  1.403e+00  2.609e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.82
Ra Dec: 264.019 20.556
Photon Index (Fixed Index): 1.74 +/- 0.00
Photon Flux (Fixed Index): 1.69e-08 +/- 1.46e-08
Energy Flux (Fixed Index): 2.67e-05 +/- 2.31e-05

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

Saving results to:
/scratch/kocevski/927817/likelihoodResults_583804801_584064001_4FGL_J1736.0+2033_daily_bin1329.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) = 9365.0685439
delta logL = 0.26583499869

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9365.06708222
delta logL = 0.26729668125

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    65.086       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2512       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3927       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82093       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=   9365.067     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      297 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          65.060        72.050        .49745E-04   -.56678E-04
   2  alpha         2.2516        .70922        .12365E-01   -.58166E-04
   3  Normalizat    1.3926        .25457        .35068E-03   -.97697E-03
   4  Prefactor     .82106        .90676E-01    .15726E-03   -.25862E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 65.0604
  alpha      = 2.25159
  Normalizat = 1.39262
  Prefactor  = 0.821064
 **********
 **   18 **HESSE 
 **********

 FCN=   9365.067     FROM HESSE     STATUS=OK            25 CALLS      322 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          65.060        67.805        .99490E-05   -1.4093    
   2  alpha         2.2516        .66818        .49461E-03   -.99528E-01
   3  Normalizat    1.3926        .25453        .70136E-04   -.80842    
   4  Prefactor     .82106        .90725E-01    .31451E-04   -.98956    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.98875e-09
Minuit parameter uncertainties:
  1  67.8859
  2  0.676491
  3  0.254764
  4  0.0907415
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/927817': 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) = 9365.06707837
delta logL = 0.26730053489

Extracting fit parameters...

4FGL J1736.0+2033
   Spectrum: LogParabola
284         norm:  6.506e+01  6.789e+01  1.000e-04  1.000e+04 ( 1.000e-14)
285        alpha:  2.252e+00  6.765e-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:  8.211e-01  9.074e-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:  1.393e+00  2.548e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.35
Ra Dec: 264.019 20.556
Photon Index (Free Index): 2.25 +/- 0.68
Photon Flux (Free Index): 3.19e-08 +/- 3.33e-08
Energy Flux (Free Index): 1.95e-05 +/- 1.64e-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/927817/cmap_HighResolution_583804801_584064001_4FGL_J1736.0+2033_daily_bin1329.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.73e-05', comment='SUCCESS', photon_flux='1.69e-08', energy_flux2='1.95e-05', photon_flux_error='1.46e-08', dlogl='2.67e-01', energy_flux='2.67e-05', photon_flux2='3.19e-08', job_status='DONE', time_completed='2021-09-18 00:21:44.092122', photon_index_error2='0.68', photon_index2='2.25', ts='2.82', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', photon_flux_upper_limit='5.52e-08', energy_flux_error2='1.64e-05', EG='1.40', time_epoch_completed='1631949704.09', return_code='0', job_id='927817', GAL2='0.82', EG2='1.39', return_code2='0', energy_flux_error='2.31e-05', photon_flux_error2='3.33e-08', ts2='3.35', photon_index='1.74' WHERE bin_id='1329' AND source_name='4FGL J1736.0+2033' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 00:21:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0240>
Subject: Job 927817: <4FGL_J1736.0+2033_daily_bin1329> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1736.0+2033_daily_bin1329 264.019 20.5559 583804801 584064001 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 :                                   806.24 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             304.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   956 sec.
    Turnaround time :                            959 sec.

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

