/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 86 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 = 7458
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0537.5+0959_daily_bin1633
RA = 84.3775, Dec = 9.986
tmin = 662601601, tmax = 662860801
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='684667', job_status='RUN', time_executed='2022-01-03 00:13:24.795035', time_epoch_executed='1641197604.8' WHERE source_name='4FGL J0537.5+0959' and cadence='daily' and bin_id='1633'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/684667

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/684667/ft1_4FGL_J0537.5+0959_daily_bin1633.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/684667/ft2_4FGL_J0537.5+0959_daily_bin1633.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/684667/ft1_4FGL_J0537.5+0959_daily_bin1633.fits outfile=/scratch/kocevski/684667/ft1_filteredMKT_4FGL_J0537.5+0959_daily_bin1633.fits ra=84.3775 dec=9.986 rad=12.0 tmin=662601601.0 tmax=662860801.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 2.93
user 2.70
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/684667/ft2_4FGL_J0537.5+0959_daily_bin1633.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/684667/ft2_4FGL_J0537.5+0959_daily_bin1633.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/684667/ft1_filteredMKT_4FGL_J0537.5+0959_daily_bin1633.fits evtable="EVENTS" outfile="/scratch/kocevski/684667/ft1_filtered_4FGL_J0537.5+0959_daily_bin1633.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.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/684667/ft1_filtered_4FGL_J0537.5+0959_daily_bin1633.fits" evtable="EVENTS" scfile=/scratch/kocevski/684667/ft2_4FGL_J0537.5+0959_daily_bin1633.fits sctable="SC_DATA" outfile=/scratch/kocevski/684667/ltcube_662601601_662860801_4FGL_J0537.5+0959_daily_bin1633.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/684667/ft2_4FGL_J0537.5+0959_daily_bin1633.fits
.....................!
real 21.82
user 21.41
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/684667/ft1_filtered_4FGL_J0537.5+0959_daily_bin1633.fits evtable="EVENTS" scfile=/scratch/kocevski/684667/ft2_4FGL_J0537.5+0959_daily_bin1633.fits sctable="SC_DATA" expcube=/scratch/kocevski/684667/ltcube_662601601_662860801_4FGL_J0537.5+0959_daily_bin1633.fits outfile=/scratch/kocevski/684667/expmap_662601601_662860801_4FGL_J0537.5+0959_daily_bin1633.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/684667/ltcube_662601601_662860801_4FGL_J0537.5+0959_daily_bin1633.fits
.....................!
real 189.37
user 184.80
sys 4.21

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
Extended source IC 443 in ROI with RadialGaussian spatial model.
Extended source Rosette in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/Rosette.fits is the correct path to the extended template.
Extended source Monoceros in ROI with RadialGaussian spatial model.
Extended source S 147 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/S147.fits is the correct path to the extended template.
Added 164 point sources and 4 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0537.5+0959 @ 84.3775 9.986

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/684667/ft1_filtered_4FGL_J0537.5+0959_daily_bin1633.fits scfile=/scratch/kocevski/684667/ft2_4FGL_J0537.5+0959_daily_bin1633.fits outfile=/scratch/kocevski/684667/cmap_662601601_662860801_4FGL_J0537.5+0959_daily_bin1633.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=84.3775 yref=9.986 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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/684667/ft1_filtered_4FGL_J0537.5+0959_daily_bin1633.fits scfile=/scratch/kocevski/684667/ft2_4FGL_J0537.5+0959_daily_bin1633.fits outfile=/scratch/kocevski/684667/cmap_HighResolution_662601601_662860801_4FGL_J0537.5+0959_daily_bin1633.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=84.3775 yref=9.986 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/684667/ft1_filtered_4FGL_J0537.5+0959_daily_bin1633.fits evtable="EVENTS" scfile=/scratch/kocevski/684667/ft2_4FGL_J0537.5+0959_daily_bin1633.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/684667/Model_4FGL_J0537.5+0959_daily_bin1633.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
adding source IC 443
adding source Monoceros
adding source Rosette
adding source S 147
Working on...
/scratch/kocevski/684667/ft1_filtered_4FGL_J0537.5+0959_daily_bin1633.fits.....................!
real 42.88
user 40.60
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/684667/ft1_filtered_4FGL_J0537.5+0959_daily_bin1633.fits', '/scratch/kocevski/684667/ft2_4FGL_J0537.5+0959_daily_bin1633.fits', expMap='/scratch/kocevski/684667/expmap_662601601_662860801_4FGL_J0537.5+0959_daily_bin1633.fits', expCube='/scratch/kocevski/684667/ltcube_662601601_662860801_4FGL_J0537.5+0959_daily_bin1633.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/684667/Model_4FGL_J0537.5+0959_daily_bin1633.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0537.5+0959'

4FGL J0537.5+0959
   Spectrum: PowerLaw
261    Prefactor:  4.070e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
262        Index:  2.641e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
263        Scale:  1.004e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/684667/ft1_filtered_4FGL_J0537.5+0959_daily_bin1633.fits
Spacecraft file(s): /scratch/kocevski/684667/ft2_4FGL_J0537.5+0959_daily_bin1633.fits
Exposure map: /scratch/kocevski/684667/expmap_662601601_662860801_4FGL_J0537.5+0959_daily_bin1633.fits
Exposure cube: /scratch/kocevski/684667/ltcube_662601601_662860801_4FGL_J0537.5+0959_daily_bin1633.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/684667/Model_4FGL_J0537.5+0959_daily_bin1633.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) = 1240.17267185

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.3050       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .17021E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    34.505       1.0000         .10000E-03   10000.    
     5 'norm      '    .99958       1.0000         .10000E-03   10000.    
     6 'norm      '    .10127E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    42.745       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .50047E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .26790E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10077E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10084E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    8.7084       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10618E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    121.76       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .21411E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    118.55       1.0000         .10000E-03   10000.    
    20 'norm      '    .17157E-02   1.0000         .10000E-03   10000.    
    21 'norm      '    21.804       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .15309       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .75841       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5800E+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=   1240.092     FROM MIGRAD    STATUS=CONVERGED    883 CALLS     3314 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.3030        11.274        .14501E-03   -.30968E-04
   2  Prefactor     .10000E-03    57.280        .18142E-02** at limit **
   3  Prefactor     .10000E-03    82.453        .18142E-02** at limit **
   4  Prefactor     34.530        67.670        .68221E-04   -.14248E-04
   5  norm          .99912        1.4048        .22643E-03    .19832E-04
   6  norm          .10000E-03    4.2114        .70466E-03** at limit **
   7  Prefactor     .10000E-03    6.9922        .90885E-03** at limit **
   8  norm          .10000E-03    13.872        .12812E-02** at limit **
   9  Prefactor     42.774        41.128        .61317E-04    .34301E-05
  10  Prefactor     .10000E-03    1519.7        .21157E-02** at limit **
  11  Prefactor     .10000E-03    735.67        .67260E-02** at limit **
  12  norm          .10000E-03    11.985        .11909E-02** at limit **
  13  Prefactor     .10000E-03    9.2297        .10438E-02** at limit **
  14  norm          .10000E-03    55.740        .18142E-02** at limit **
  15  norm          8.7044        6.7428        .74728E-04   -.44879E-04
  16  Prefactor     .10000E-03    322.47        .18142E-02** at limit **
  17  Prefactor     121.84        315.17        .18237E-03   -.54080E-05
  18  Prefactor     .10000E-03    1270.0        .20167E-02** at limit **
  19  Prefactor     118.59        140.44        .18479E-03   -.25686E-05
  20  norm          .10000E-03    1075.9        .20362E-02** at limit **
  21  norm          21.831        35.493        .85779E-04   -.25712E-04
  22  Normalizat    .15299        1.2787        .12307E-01    .71247E-04
  23  Prefactor     .75848        .20871        .13394E-03   -.97396E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 5.30304
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 34.5299
  norm       = 0.999121
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 42.7739
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 8.70442
  Prefactor  = 0.0001
  Prefactor  = 121.844
  Prefactor  = 0.000100001
  Prefactor  = 118.591
  norm       = 0.0001
  norm       = 21.8311
  Normalizat = 0.15299
  Prefactor  = 0.758477
 **********
 **   18 **HESSE 
 **********

 FCN=   1240.092     FROM HESSE     STATUS=OK           350 CALLS     3664 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.3030        11.224        .58004E-05   -1.5247    
   2  Prefactor     .10000E-03    57.281        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    82.456        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     34.530        67.667        .27288E-05   -1.4532    
   5  norm          .99912        1.4004        .90573E-05   -1.5508    
   6  norm          .10000E-03    4.2114        .14093E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.9923        .18177E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    13.872        .25623E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     42.774        41.134        .24527E-05   -1.4399    
  10  Prefactor     .10000E-03    1519.7        .42314E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    760.58        .26904E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    11.985        .23818E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    9.2299        .20877E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    55.740        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          8.7044        6.7404        .29891E-05   -1.5118    
  16  Prefactor     .10000E-03    322.47        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     121.84        315.26        .72946E-05   -1.3496    
  18  Prefactor     .10000E-03    1270.0        .40333E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     118.59        140.44        .36957E-04   -1.3526    
  20  norm          .10000E-03    1076.0        .40724E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          21.831        35.401        .34312E-05   -1.4773    
  22  Normalizat    .15299        1.1854        .24614E-02   -1.3309    
  23  Prefactor     .75848        .20264        .53578E-05   -1.0128    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.53871e-11
Minuit parameter uncertainties:
  1  11.2286
  2  2.99062e-06
  3  2.12137e-06
  4  67.8176
  5  1.40045
  6  1.96624e-06
  7  6.6813e-06
  8  3.13836e-06
  9  41.1617
  10  0.000866364
  11  0.000460042
  12  1.27025e-07
  13  2.78545e-06
  14  6.46678e-05
  15  6.74104
  16  0.000595941
  17  319.768
  18  0.00167768
  19  140.837
  20  0.000665441
  21  35.4348
  22  0.847336
  23  0.202838
Done.

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

Extracting fit parameters...

4FGL J0537.5+0959
   Spectrum: PowerLaw
261    Prefactor:  1.218e+02  3.198e+02  1.000e-04  1.000e+04 ( 1.000e-13)
262        Index:  2.641e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
263        Scale:  1.004e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
561    Prefactor:  7.585e-01  2.028e-01  0.000e+00  1.000e+01 ( 1.000e+00)
562        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
563        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
560   Normalization:  1.530e-01  8.473e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.19
Ra Dec: 84.377 9.986
Photon Flux Upper Limit: 2.53e-06 ph cm-2 s-1
Energy Flux Upper Limit: 1.99e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/684667/likelihoodResults_662601601_662860801_4FGL_J0537.5+0959_daily_bin1633.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) = 1239.97292751
delta logL = 0.118991688371

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1239.95633614
delta logL = 0.13558305697

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    265.85       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9693       1.0000          .0000       10.000    
     3 'Normalizat'    .18703       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74930       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5800E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1239.956     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      270 TOTAL
                     EDM=   .94E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     265.68        449.24       -.10846E-03   -.26029E-04
   2  Index         1.9693        1.0316        .20752E-04    .15103E-03
   3  Normalizat    .18717        .76984       -.15012E-04   -.14099E-04
   4  Prefactor     .74925        .16795        .37901E-05   -.73977E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 265.678
  Index      = 1.96926
  Normalizat = 0.187167
  Prefactor  = 0.749248
 **********
 **   18 **HESSE 
 **********

 FCN=   1239.956     FROM HESSE     STATUS=OK            25 CALLS      295 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     265.68        449.58        .12433E-03   -1.2433    
   2  Index         1.9693        1.0444        .90393E-03   -.65121    
   3  Normalizat    .18717        .79068        .12164E-02   -1.3037    
   4  Prefactor     .74925        .17044        .13455E-03   -1.0163    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.77878e-09
Minuit parameter uncertainties:
  1  455.648
  2  1.05684
  3  0.766137
  4  0.170556
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/684667': 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) = 1239.956336
delta logL = 0.135583204806

Extracting fit parameters...

4FGL J0537.5+0959
   Spectrum: PowerLaw
261    Prefactor:  2.657e+02  4.556e+02  1.000e-04  1.000e+04 ( 1.000e-13)
262        Index:  1.969e+00  1.057e+00  0.000e+00  1.000e+01 (-1.000e+00)
263        Scale:  1.004e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
561    Prefactor:  7.492e-01  1.706e-01  0.000e+00  1.000e+01 ( 1.000e+00)
562        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
563        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
560   Normalization:  1.872e-01  7.661e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.19
Ra Dec: 84.377 9.986

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/684667/cmap_HighResolution_662601601_662860801_4FGL_J0537.5+0959_daily_bin1633.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.99e-01', job_status='DONE', photon_flux_upper_limit='2.53e-06', time_completed='2022-01-03 00:20:35.399370', job_id='684667', GAL2='0.75', fit_tolerance='1e-08', EG2='0.19', EG='0.15', time_epoch_completed='1641198035.4', return_code2='0', ts='0.19', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='1.36e-01', ts2='0.47', photon_index_error='0.00', photon_index='2.64' WHERE bin_id='1633' AND source_name='4FGL J0537.5+0959' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jan  3 00:20:35 PST 2022

2


------------------------------------------------------------
Sender: LSF System <lsf@bullet0021>
Subject: Job 684666: <4FGL_J0537.5+0959_daily_bin1633> in cluster <slac> Done

Job <4FGL_J0537.5+0959_daily_bin1633> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Jan  3 00:05:48 2022
Job was executed on host(s) <bullet0021>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jan  3 00:05:49 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Jan  3 00:05:49 2022
Terminated at Mon Jan  3 00:19:22 2022
Results reported at Mon Jan  3 00:19:22 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0537.5+0959_daily_bin1633 84.3775 9.986 662601601 662860801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0537.5+0959 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   411.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             245.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   813 sec.
    Turnaround time :                            814 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0022>
Subject: Job 684667: <4FGL_J0537.5+0959_daily_bin1633> in cluster <slac> Done

Job <4FGL_J0537.5+0959_daily_bin1633> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Jan  3 00:05:48 2022
Job was executed on host(s) <bullet0022>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jan  3 00:05:49 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Jan  3 00:05:49 2022
Terminated at Mon Jan  3 00:20:36 2022
Results reported at Mon Jan  3 00:20:36 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0537.5+0959_daily_bin1633 84.3775 9.986 662601601 662860801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0537.5+0959 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   413.44 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             205.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   886 sec.
    Turnaround time :                            888 sec.

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

