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


Performing analysis on: 4FGL_J1736.0+2033_daily_bin796
RA = 264.019, Dec = 20.5559
tmin = 445651201, tmax = 445910401
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='925856', job_status='RUN', time_executed='2021-09-18 00:00:30.526906', time_epoch_executed='1631948430.53' WHERE source_name='4FGL J1736.0+2033' and cadence='daily' and bin_id='796'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/925856

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/925856/ft1_4FGL_J1736.0+2033_daily_bin796.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/925856/ft2_4FGL_J1736.0+2033_daily_bin796.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/925856/ft1_4FGL_J1736.0+2033_daily_bin796.fits outfile=/scratch/kocevski/925856/ft1_filteredMKT_4FGL_J1736.0+2033_daily_bin796.fits ra=264.019 dec=20.5559 rad=12.0 tmin=445651201.0 tmax=445910401.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.50
user 3.27
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/925856/ft1_filtered_4FGL_J1736.0+2033_daily_bin796.fits evtable="EVENTS" scfile=/scratch/kocevski/925856/ft2_4FGL_J1736.0+2033_daily_bin796.fits sctable="SC_DATA" expcube=/scratch/kocevski/925856/ltcube_445651201_445910401_4FGL_J1736.0+2033_daily_bin796.fits outfile=/scratch/kocevski/925856/expmap_445651201_445910401_4FGL_J1736.0+2033_daily_bin796.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/925856/ltcube_445651201_445910401_4FGL_J1736.0+2033_daily_bin796.fits
.....................!
real 190.03
user 185.46
sys 4.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/925856/ft1_filtered_4FGL_J1736.0+2033_daily_bin796.fits scfile=/scratch/kocevski/925856/ft2_4FGL_J1736.0+2033_daily_bin796.fits outfile=/scratch/kocevski/925856/cmap_445651201_445910401_4FGL_J1736.0+2033_daily_bin796.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.58
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/925856/ft1_filtered_4FGL_J1736.0+2033_daily_bin796.fits scfile=/scratch/kocevski/925856/ft2_4FGL_J1736.0+2033_daily_bin796.fits outfile=/scratch/kocevski/925856/cmap_HighResolution_445651201_445910401_4FGL_J1736.0+2033_daily_bin796.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8297       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.8240       1.0000         .10000E-03   10000.    
     3 'Prefactor '    34.462       1.0000         .10000E-03   10000.    
     4 'Prefactor '    43.055       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.0954       1.0000         .10000E-03   10000.    
     6 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.8485       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.4089       1.0000         .10000E-03   10000.    
    10 'norm      '    .10312E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10930E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .21993       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10948E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    82.443       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.7563       1.0000         .10000E-03   10000.    
    17 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .14185E-02   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .62556       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0640       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=   10578.81     FROM MIGRAD    STATUS=CONVERGED    739 CALLS     2713 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8270        5.2258        .30855E-03   -.37729E-04
   2  Prefactor     4.8360        19.280        .91581E-03   -.17181E-04
   3  Prefactor     34.454        35.335        .68264E-04   -.33308E-06
   4  Prefactor     43.093        49.862        .61096E-04    .29326E-04
   5  Prefactor     5.0983        10.859        .89058E-03   -.74882E-04
   6  norm          .10000E-03    .81773        .90343E-03** at limit **
   7  Prefactor     .10000E-03    6.3257        .18142E-02** at limit **
   8  norm          3.8487        5.3585        .20571E-03    .12158E-04
   9  Prefactor     5.4093        3.2876        .13541E-03    .19445E-03
  10  norm          .10000E-03    30.343        .18142E-02** at limit **
  11  Prefactor     .10000E-03    45.362        .18142E-02** at limit **
  12  Prefactor     .10000E-03    19.401        .18142E-02** at limit **
  13  norm          .21952        .76592        .12712E-02    .25957E-02
  14  Prefactor     .10000E-03    13.218        .18142E-02** at limit **
  15  Prefactor     82.370        59.854        .22119E-03   -.61164E-04
  16  Prefactor     2.7561        3.8284        .23134E-03    .51010E-04
  17  norm          .10000E-03    4.2454        .18142E-02** at limit **
  18  Prefactor     .10000E-03    24.327        .14463    ** at limit **
  19  Normalizat    .62555        .24901        .49739E-03    .73050E-04
  20  Prefactor     1.0640        .90860E-01    .14255E-03    .49605E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.82705
  Prefactor  = 4.83604
  Prefactor  = 34.4543
  Prefactor  = 43.0927
  Prefactor  = 5.09829
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.84866
  Prefactor  = 5.40932
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.219521
  Prefactor  = 0.000100001
  Prefactor  = 82.3702
  Prefactor  = 2.75614
  norm       = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 0.625547
  Prefactor  = 1.06398
 **********
 **   18 **HESSE 
 **********

 FCN=   10578.81     FROM HESSE     STATUS=OK           285 CALLS     2998 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8270        5.2238        .12342E-04   -1.5438    
   2  Prefactor     4.8360        19.271        .36632E-04   -1.5268    
   3  Prefactor     34.454        35.341        .27305E-05   -1.4533    
   4  Prefactor     43.093        49.859        .12219E-04   -1.4394    
   5  Prefactor     5.0983        10.856        .35623E-04   -1.5256    
   6  norm          .10000E-03    .81781        .18069E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.3264        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.8487        5.3584        .82286E-05   -1.5316    
   9  Prefactor     5.4093        3.2873        .54163E-05   -1.5243    
  10  norm          .10000E-03    30.343        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    45.363        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    19.401        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .21952        .76492        .50847E-04   -1.5614    
  14  Prefactor     .10000E-03    13.219        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     82.370        59.845        .88475E-05   -1.3890    
  16  Prefactor     2.7561        3.8282        .92536E-05   -1.5376    
  17  norm          .10000E-03    4.2464        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    24.121        .14553       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .62555        .24895        .19896E-04   -1.0691    
  20  Prefactor     1.0640        .90779E-01    .57021E-05   -.90626    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.46006e-09
Minuit parameter uncertainties:
  1  5.22505
  2  19.2954
  3  35.3622
  4  49.9076
  5  10.8598
  6  4.95125e-07
  7  1.92033e-06
  8  5.35903
  9  3.28738
  10  4.60302e-05
  11  0.000137908
  12  0.000136401
  13  0.76495
  14  0.000272446
  15  59.8889
  16  3.82858
  17  1.36329e-05
  18  0.000317323
  19  0.249399
  20  0.0907918
Done.

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

Extracting fit parameters...

4FGL J1736.0+2033
   Spectrum: LogParabola
284         norm:  1.000e-04  4.603e-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.064e+00  9.079e-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.255e-01  2.494e-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.93e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.64e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/925856/likelihoodResults_445651201_445910401_4FGL_J1736.0+2033_daily_bin796.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) = 10578.8057796
delta logL = -0.000156964220878

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10578.8056227
delta logL = -1.7218553694e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7370       1.0000          .0000       5.0000    
     3 'Normalizat'    .62551       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0640       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=   10578.81     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      243 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    7578.6        .18142E-02** at limit **
   2  alpha         1.5343        3.7878        .17553       -.98448E-08
   3  Normalizat    .62555        .12390        .49738E-03   -.54903E-04
   4  Prefactor     1.0640        .45768E-01    .14255E-03   -.14451E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.53431
  Normalizat = 0.625545
  Prefactor  = 1.06398
 **********
 **   18 **HESSE 
 **********

 FCN=   10578.81     FROM HESSE     STATUS=OK            23 CALLS      266 TOTAL
                     EDM=   .22E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    31.210        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.5343        4.1341        .70212E-02   -.39659    
   3  Normalizat    .62555        .23869        .19895E-04   -1.0691    
   4  Prefactor     1.0640        .88266E-01    .57021E-05   -.90626    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.18826e-11
Minuit parameter uncertainties:
  1  0.000168642
  2  662.869
  3  0.239085
  4  0.0882784
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/925856': 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) = 10578.8056226
delta logL = 4.56529960502e-08

Extracting fit parameters...

4FGL J1736.0+2033
   Spectrum: LogParabola
284         norm:  1.000e-04  1.686e-04  1.000e-04  1.000e+04 ( 1.000e-14)
285        alpha:  1.534e+00  6.629e+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.064e+00  8.828e-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.255e-01  2.391e-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/925856/cmap_HighResolution_445651201_445910401_4FGL_J1736.0+2033_daily_bin796.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.64e-05', job_status='DONE', photon_flux_upper_limit='2.93e-08', time_completed='2021-09-18 00:16:17.676634', job_id='925856', GAL2='1.06', fit_tolerance='1e-08', EG2='0.63', EG='0.63', time_epoch_completed='1631949377.68', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='4.57e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.74' WHERE bin_id='796' AND source_name='4FGL J1736.0+2033' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 00:16:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 925856: <4FGL_J1736.0+2033_daily_bin796> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1736.0+2033_daily_bin796 264.019 20.5559 445651201 445910401 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 :                                   945.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             316.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   962 sec.
    Turnaround time :                            964 sec.

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

