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


Performing analysis on: 4FGL_J0537.5+0959_daily_bin473
RA = 84.3775, Dec = 9.986
tmin = 361929601, tmax = 362188801
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='650701', job_status='RUN', time_executed='2021-08-23 11:36:00.262401', time_epoch_executed='1629743760.26' WHERE source_name='4FGL J0537.5+0959' and cadence='daily' and bin_id='473'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/650701

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

Retrieving the FT1 file...

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

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

Retrieving 51 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/650701/ft1_4FGL_J0537.5+0959_daily_bin473.fits


Retrieving the FT1 file...

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

Retrieving 51 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/650701/ft2_4FGL_J0537.5+0959_daily_bin473.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/650701/ft1_4FGL_J0537.5+0959_daily_bin473.fits outfile=/scratch/kocevski/650701/ft1_filteredMKT_4FGL_J0537.5+0959_daily_bin473.fits ra=84.3775 dec=9.986 rad=12.0 tmin=361929601.0 tmax=362188801.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 5.89
user 5.23
sys 0.50

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/650701/ft2_4FGL_J0537.5+0959_daily_bin473.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/650701/ft1_filteredMKT_4FGL_J0537.5+0959_daily_bin473.fits evtable="EVENTS" outfile="/scratch/kocevski/650701/ft1_filtered_4FGL_J0537.5+0959_daily_bin473.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.76
user 0.33
sys 0.40

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/650701/ft1_filtered_4FGL_J0537.5+0959_daily_bin473.fits" evtable="EVENTS" scfile=/scratch/kocevski/650701/ft2_4FGL_J0537.5+0959_daily_bin473.fits sctable="SC_DATA" outfile=/scratch/kocevski/650701/ltcube_361929601_362188801_4FGL_J0537.5+0959_daily_bin473.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/650701/ft2_4FGL_J0537.5+0959_daily_bin473.fits
.....................!
real 11.70
user 11.05
sys 0.59

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/650701/ft1_filtered_4FGL_J0537.5+0959_daily_bin473.fits evtable="EVENTS" scfile=/scratch/kocevski/650701/ft2_4FGL_J0537.5+0959_daily_bin473.fits sctable="SC_DATA" expcube=/scratch/kocevski/650701/ltcube_361929601_362188801_4FGL_J0537.5+0959_daily_bin473.fits outfile=/scratch/kocevski/650701/expmap_361929601_362188801_4FGL_J0537.5+0959_daily_bin473.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/650701/ltcube_361929601_362188801_4FGL_J0537.5+0959_daily_bin473.fits
.....................!
real 189.88
user 185.07
sys 4.42

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/650701/ft1_filtered_4FGL_J0537.5+0959_daily_bin473.fits scfile=/scratch/kocevski/650701/ft2_4FGL_J0537.5+0959_daily_bin473.fits outfile=/scratch/kocevski/650701/cmap_361929601_362188801_4FGL_J0537.5+0959_daily_bin473.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.80
user 0.37
sys 0.39

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/650701/ft1_filtered_4FGL_J0537.5+0959_daily_bin473.fits scfile=/scratch/kocevski/650701/ft2_4FGL_J0537.5+0959_daily_bin473.fits outfile=/scratch/kocevski/650701/cmap_HighResolution_361929601_362188801_4FGL_J0537.5+0959_daily_bin473.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.79
user 0.39
sys 0.39

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/650701/ft1_filtered_4FGL_J0537.5+0959_daily_bin473.fits evtable="EVENTS" scfile=/scratch/kocevski/650701/ft2_4FGL_J0537.5+0959_daily_bin473.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/650701/Model_4FGL_J0537.5+0959_daily_bin473.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/650701/ft1_filtered_4FGL_J0537.5+0959_daily_bin473.fits.....................!
real 461.20
user 458.33
sys 1.57

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/650701/ft1_filtered_4FGL_J0537.5+0959_daily_bin473.fits', '/scratch/kocevski/650701/ft2_4FGL_J0537.5+0959_daily_bin473.fits', expMap='/scratch/kocevski/650701/expmap_361929601_362188801_4FGL_J0537.5+0959_daily_bin473.fits', expCube='/scratch/kocevski/650701/ltcube_361929601_362188801_4FGL_J0537.5+0959_daily_bin473.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/650701/Model_4FGL_J0537.5+0959_daily_bin473.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/650701/ft1_filtered_4FGL_J0537.5+0959_daily_bin473.fits
Spacecraft file(s): /scratch/kocevski/650701/ft2_4FGL_J0537.5+0959_daily_bin473.fits
Exposure map: /scratch/kocevski/650701/expmap_361929601_362188801_4FGL_J0537.5+0959_daily_bin473.fits
Exposure cube: /scratch/kocevski/650701/ltcube_361929601_362188801_4FGL_J0537.5+0959_daily_bin473.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/650701/Model_4FGL_J0537.5+0959_daily_bin473.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) = 18687.2468895

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .50955       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10159E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .63646       1.0000         .10000E-03   10000.    
     5 'norm      '    .62688       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    6.3680       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.7203       1.0000         .10000E-03   10000.    
    12 'norm      '    3.1764       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10234E-01   1.0000         .10000E-03   10000.    
    14 'norm      '    3.4403       1.0000         .10000E-03   10000.    
    15 'norm      '    4.9365       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .18957E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .38956       1.0000         .10000E-03   10000.    
    20 'norm      '    .10369E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10484E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2247       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .99567       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=   18687.11     FROM MIGRAD    STATUS=CONVERGED    560 CALLS     2329 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .50473        1.4903       -.82101E-08   -.22455E-03
   2  Prefactor     .10000E-03    51.622        .35207E-05** at limit **
   3  Prefactor     .10000E-03    17.860        .30852E-07** at limit **
   4  Prefactor     .62915        2.6285        .25234E-06   -.26648E-03
   5  norm          .62673        .60885       -.51887E-07   -.10499E-02
   6  norm          .10000E-03    1.7656        .32646E-06** at limit **
   7  Prefactor     .10000E-03    4.0828        .83713E-07** at limit **
   8  norm          6.3675        4.8256       -.96087E-06   -.13974E-03
   9  Prefactor     .10000E-03    2.3744       -.11736E-06** at limit **
  10  Prefactor     .10000E-03    50.199       -.18168E-05** at limit **
  11  Prefactor     6.7186        15.030       -.19931E-06   -.15779E-04
  12  norm          3.1762        1.2647        .87903E-07   -.19390E-02
  13  Prefactor     .10022E-03    3.7709        .35368E-06** at limit **
  14  norm          3.4400        4.5800        .58310E-06   -.12358E-04
  15  norm          4.9363        1.4539       -.14271E-07   -.24758E-04
  16  Prefactor     .10000E-03    13.564       -.80090E-06** at limit **
  17  Prefactor     .10000E-03    6.7837       -.39966E-06** at limit **
  18  Prefactor     .10004E-03    8.8537       -.26086E-06** at limit **
  19  Prefactor     .38965        2.6065       -.86494E-07   -.10261E-03
  20  norm          .10000E-03    32.374       -.19780E-06** at limit **
  21  norm          .10000E-03    5.5566        .54611E-09** at limit **
  22  Normalizat    1.2250        .31882       -.34010E-06   -.37100E-04
  23  Prefactor     .99566        .47147E-01   -.24264E-07   -.56218E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.504728
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.629147
  norm       = 0.626725
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 6.3675
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.71863
  norm       = 3.17624
  Prefactor  = 0.00010022
  norm       = 3.43997
  norm       = 4.93628
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100037
  Prefactor  = 0.389647
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 1.22505
  Prefactor  = 0.995663
 **********
 **   18 **HESSE 
 **********

 FCN=   18687.11     FROM HESSE     STATUS=OK           396 CALLS     2725 TOTAL
                     EDM=   .26E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .50473        4.0184        .27458E-02   -1.5566    
   2  Prefactor     .10000E-03    52.059        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    17.889        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .62915        14.691        .42483E-02   -1.5549    
   5  norm          .62673        .52743        .10006E-02   -1.5550    
   6  norm          .10000E-03    1.7912        .17733E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.2451        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          6.3675        4.8157        .15906E-03   -1.5203    
   9  Prefactor     .10000E-03    2.3967        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    50.261        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.7186        15.023        .15478E-03   -1.5190    
  12  norm          3.1762        2.4931        .93368E-03   -1.5352    
  13  Prefactor     .10022E-03    3.8925        .86863E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.4400        4.5747        .21806E-03   -1.5337    
  15  norm          4.9363        1.4531        .85525E-04   -1.5264    
  16  Prefactor     .10000E-03    13.606        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.7867        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10004E-03    9.0373        .14806       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .38965        16.253        .40641E-02   -1.5583    
  20  norm          .10000E-03    32.913        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    5.7982        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.2250        .32129        .78127E-03   -.85832    
  23  Prefactor     .99566        .48764E-01    .13680E-03   -.92874    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.57533e-07
Minuit parameter uncertainties:
  1  2.84827
  2  9.09001e-05
  3  7.50973e-06
  4  6.08151
  5  0.52743
  6  2.77823e-06
  7  3.02102e-06
  8  4.81595
  9  2.67226e-06
  10  4.87875e-06
  11  15.0312
  12  2.49316
  13  0.00185044
  14  4.57515
  15  1.45307
  16  5.00579e-06
  17  2.29202e-06
  18  0.00116349
  19  5.03394
  20  6.92882e-06
  21  3.01755e-06
  22  0.321809
  23  0.0487658
Done.

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

Extracting fit parameters...

4FGL J0537.5+0959
   Spectrum: PowerLaw
261    Prefactor:  1.000e-04  2.292e-06  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:  9.957e-01  4.877e-02  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.225e+00  3.218e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 84.377 9.986
Photon Flux Upper Limit: 9.02e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.08e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/650701/likelihoodResults_361929601_362188801_4FGL_J0537.5+0959_daily_bin473.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) = 18687.1067383
delta logL = -0.000702344244928

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 18687.1060369
delta logL = -9.47176886257e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10872E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6210       1.0000          .0000       10.000    
     3 'Normalizat'    1.2248       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99570       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=   18687.11     FROM MIGRAD    STATUS=CONVERGED    109 CALLS      268 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    63.184        .18142E-01** at limit **
   2  Index         1.7650        5.6787        .50000       -.96026E-06
   3  Normalizat    1.2250        .20781E-01    .78127E-03    .24039E-04
   4  Prefactor     .99566        .33612E-02    .13680E-03    .14726E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.76497
  Normalizat = 1.22505
  Prefactor  = 0.995663
 **********
 **   18 **HESSE 
 **********

 FCN=   18687.11     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      295 TOTAL
                     EDM=   .85E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    367.01        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7650        9.0126        .50000       -.70365    
   3  Normalizat    1.2250        .51919E-01    .31251E-04   -.85832    
   4  Prefactor     .99566        .83983E-02    .54720E-05   -.92874    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.48913e-08
Minuit parameter uncertainties:
  1  3.88752e-05
  2  1163.98
  3  0.0519212
  4  0.00839828
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/650701': 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) = 18687.1060333
delta logL = 2.6834095479e-06

Extracting fit parameters...

4FGL J0537.5+0959
   Spectrum: PowerLaw
261    Prefactor:  1.000e-04  3.888e-05  1.000e-04  1.000e+04 ( 1.000e-13)
262        Index:  1.765e+00  1.164e+03  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:  9.957e-01  8.398e-03  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.225e+00  5.192e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 84.377 9.986

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/650701/cmap_HighResolution_361929601_362188801_4FGL_J0537.5+0959_daily_bin473.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.08e-03', job_status='DONE', photon_flux_upper_limit='9.02e-08', time_completed='2021-08-23 12:04:29.791833', job_id='650701', GAL2='1.00', fit_tolerance='1e-08', EG2='1.23', EG='1.23', time_epoch_completed='1629745469.79', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='2.68e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.64' WHERE bin_id='473' AND source_name='4FGL J0537.5+0959' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 23 12:04:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0198>
Subject: Job 650701: <4FGL_J0537.5+0959_daily_bin473> in cluster <slac> Done

Job <4FGL_J0537.5+0959_daily_bin473> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Aug 23 11:35:33 2021
Job was executed on host(s) <bullet0198>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 23 11:35:34 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug 23 11:35:34 2021
Terminated at Mon Aug 23 12:04:30 2021
Results reported at Mon Aug 23 12:04:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0537.5+0959_daily_bin473 84.3775 9.986 361929601 362188801 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 :                                   1709.40 sec.
    Max Memory :                                 641 MB
    Average Memory :                             409.02 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2933 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   1736 sec.
    Turnaround time :                            1737 sec.

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

