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


Performing analysis on: 4FGL_J0537.5+0959_daily_bin1193
RA = 84.3775, Dec = 9.986
tmin = 548553601, tmax = 548812801
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='657003', job_status='RUN', time_executed='2021-08-23 11:58:17.216313', time_epoch_executed='1629745097.22' WHERE source_name='4FGL J0537.5+0959' and cadence='daily' and bin_id='1193'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/657003

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/657003/ft1_4FGL_J0537.5+0959_daily_bin1193.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/657003/ft2_4FGL_J0537.5+0959_daily_bin1193.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/657003/ft1_4FGL_J0537.5+0959_daily_bin1193.fits outfile=/scratch/kocevski/657003/ft1_filteredMKT_4FGL_J0537.5+0959_daily_bin1193.fits ra=84.3775 dec=9.986 rad=12.0 tmin=548553601.0 tmax=548812801.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 7.38
user 3.23
sys 4.10

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/657003/ft1_filtered_4FGL_J0537.5+0959_daily_bin1193.fits" evtable="EVENTS" scfile=/scratch/kocevski/657003/ft2_4FGL_J0537.5+0959_daily_bin1193.fits sctable="SC_DATA" outfile=/scratch/kocevski/657003/ltcube_548553601_548812801_4FGL_J0537.5+0959_daily_bin1193.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/657003/ft2_4FGL_J0537.5+0959_daily_bin1193.fits
.....................!
real 16.54
user 11.97
sys 4.52

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/657003/ft1_filtered_4FGL_J0537.5+0959_daily_bin1193.fits evtable="EVENTS" scfile=/scratch/kocevski/657003/ft2_4FGL_J0537.5+0959_daily_bin1193.fits sctable="SC_DATA" expcube=/scratch/kocevski/657003/ltcube_548553601_548812801_4FGL_J0537.5+0959_daily_bin1193.fits outfile=/scratch/kocevski/657003/expmap_548553601_548812801_4FGL_J0537.5+0959_daily_bin1193.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/657003/ltcube_548553601_548812801_4FGL_J0537.5+0959_daily_bin1193.fits
.....................!
real 198.51
user 187.63
sys 10.44

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/657003/ft1_filtered_4FGL_J0537.5+0959_daily_bin1193.fits scfile=/scratch/kocevski/657003/ft2_4FGL_J0537.5+0959_daily_bin1193.fits outfile=/scratch/kocevski/657003/cmap_548553601_548812801_4FGL_J0537.5+0959_daily_bin1193.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 4.37
user 0.37
sys 3.76

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/657003/ft1_filtered_4FGL_J0537.5+0959_daily_bin1193.fits scfile=/scratch/kocevski/657003/ft2_4FGL_J0537.5+0959_daily_bin1193.fits outfile=/scratch/kocevski/657003/cmap_HighResolution_548553601_548812801_4FGL_J0537.5+0959_daily_bin1193.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 4.19
user 0.37
sys 3.71

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    55.444       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10706E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .19442E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    89.306       1.0000         .10000E-03   10000.    
     5 'norm      '    .10052E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10121E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    187.87       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10164E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .40187E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10129E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .16155E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10185E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    44.875       1.0000         .10000E-03   10000.    
    15 'norm      '    4.2372       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10184E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10059E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .44103       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .99121       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=   3239.510     FROM MIGRAD    STATUS=CONVERGED    503 CALLS     2509 TOTAL
                     EDM=   .70E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          55.425        64.506       -.12723E-04    .39182E-04
   2  Prefactor     .10000E-03    124.31        .36565E-04** at limit **
   3  Prefactor     .10000E-03    496.20       -.13549E-03** at limit **
   4  Prefactor     89.385        222.60        .82059E-04    .36989E-05
   5  norm          .10000E-03    1.7154        .24666E-07** at limit **
   6  norm          .10000E-03    19.615       -.57328E-07** at limit **
   7  Prefactor     .10000E-03    17.809       -.74254E-07** at limit **
   8  norm          187.50        295.94       -.26207E-03   -.17898E-04
   9  Prefactor     .10000E-03    75.669       -.52283E-05** at limit **
  10  Prefactor     .10007E-03    922.73       -.72682E-04** at limit **
  11  Prefactor     .10000E-03    39.524       -.14479E-05** at limit **
  12  norm          .10021E-03    380.14        .10158E-03** at limit **
  13  Prefactor     .10000E-03    12.863       -.87895E-07** at limit **
  14  norm          44.871        37.298        .49491E-05   -.40811E-05
  15  norm          4.2347        4.7687       -.19206E-06   -.12147E-03
  16  Prefactor     .10000E-03    72.934        .13998E-04** at limit **
  17  Prefactor     .10000E-03    107.44       -.33738E-04** at limit **
  18  Prefactor     .10000E-03    72.638        .16591E-04** at limit **
  19  Prefactor     .10000E-03    10.246        .14454E-06** at limit **
  20  norm          .10000E-03    77.824       -.22178E-04** at limit **
  21  norm          .10000E-03    29.281        .18460E-06** at limit **
  22  Normalizat    .44238        1.0141        .11720E-04    .45406E-04
  23  Prefactor     .99099        .14786        .11600E-06   -.47593E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 55.4253
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 89.3852
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 187.497
  Prefactor  = 0.000100003
  Prefactor  = 0.000100074
  Prefactor  = 0.0001
  norm       = 0.000100205
  Prefactor  = 0.0001
  norm       = 44.8712
  norm       = 4.23468
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 0.442378
  Prefactor  = 0.990991
 **********
 **   18 **HESSE 
 **********

 FCN=   3239.510     FROM HESSE     STATUS=OK           356 CALLS     2865 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          55.425        64.398        .26936E-03   -1.4218    
   2  Prefactor     .10000E-03    124.33        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    498.01        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     89.385        222.32        .21259E-03   -1.3814    
   5  norm          .10000E-03    1.7549        .14497E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    19.801        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    17.829        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          187.50        296.22        .14731E-03   -1.2961    
   9  Prefactor     .10000E-03    75.779        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10007E-03    922.59        .21261E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    39.526        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10021E-03    383.90        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    12.907        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          44.871        37.259        .59849E-04   -1.4367    
  15  norm          4.2347        4.6440        .12205E-03   -1.5296    
  16  Prefactor     .10000E-03    72.971        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    107.52        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    72.660        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    10.255        .17795E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    78.283        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    29.775        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .44238        .76921        .12912E-02   -1.1517    
  23  Prefactor     .99099        .11140        .12641E-03   -.93030    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07865e-09
Minuit parameter uncertainties:
  1  64.4788
  2  7.39736e-05
  3  0.00122826
  4  224.439
  5  4.75681e-06
  6  1.03707e-05
  7  4.6837e-05
  8  298.629
  9  0.00102024
  10  0.016845
  11  2.76888e-05
  12  0.0178739
  13  3.12713e-05
  14  37.2783
  15  4.64443
  16  4.53036e-05
  17  6.97209e-05
  18  0.000174054
  19  4.6558e-05
  20  6.22969e-05
  21  0.000135575
  22  0.788864
  23  0.111429
Done.

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

Extracting fit parameters...

4FGL J0537.5+0959
   Spectrum: PowerLaw
261    Prefactor:  1.000e-04  6.972e-05  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.910e-01  1.114e-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:  4.424e-01  7.889e-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: 7.17e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.63e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/657003/likelihoodResults_548553601_548812801_4FGL_J0537.5+0959_daily_bin1193.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) = 3239.51031297
delta logL = -4.41885290456e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3239.51026879
delta logL = -1.19352989714e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.0384       1.0000          .0000       10.000    
     3 'Normalizat'    .44238       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99099       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.

 FCN=   3239.510     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      242 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    116.77        .90712E-02** at limit **
   2  Index         3.0285        7.8564        .50000        .87153E-06
   3  Normalizat    .44236        .22284E-01    .29364       -.33586E-04
   4  Prefactor     .99099        .32069E-02    .28601E-01   -.80008E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  Index      = 3.02847
  Normalizat = 0.442362
  Prefactor  = 0.990992
 **********
 **   18 **HESSE 
 **********

 FCN=   3239.510     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      273 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    631.74        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.0285        5.7443        .50000       -.40531    
   3  Normalizat    .44236        .52736E-01    .12912E-02   -1.1517    
   4  Prefactor     .99099        .75516E-02    .12641E-03   -.93030    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.15419e-08
Minuit parameter uncertainties:
  1  0.00325292
  2  647.281
  3  0.0527418
  4  0.00755164
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/657003': 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) = 3239.51026879
delta logL = -9.72067937255e-09

Extracting fit parameters...

4FGL J0537.5+0959
   Spectrum: PowerLaw
261    Prefactor:  1.000e-04  3.253e-03  1.000e-04  1.000e+04 ( 1.000e-13)
262        Index:  3.028e+00  6.473e+02  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.910e-01  7.552e-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:  4.424e-01  5.274e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/657003/cmap_HighResolution_548553601_548812801_4FGL_J0537.5+0959_daily_bin1193.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.63e-02', job_status='DONE', photon_flux_upper_limit='7.17e-07', time_completed='2021-08-23 12:08:10.790771', job_id='657003', GAL2='0.99', fit_tolerance='1e-08', EG2='0.44', EG='0.44', time_epoch_completed='1629745690.79', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='-9.72e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.64' WHERE bin_id='1193' AND source_name='4FGL J0537.5+0959' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 23 12:08:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 657003: <4FGL_J0537.5+0959_daily_bin1193> in cluster <slac> Done

Job <4FGL_J0537.5+0959_daily_bin1193> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Aug 23 11:55:19 2021
Job was executed on host(s) <bullet0065>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 23 11:55:20 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:55:20 2021
Terminated at Mon Aug 23 12:08:12 2021
Results reported at Mon Aug 23 12:08:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0537.5+0959_daily_bin1193 84.3775 9.986 548553601 548812801 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 :                                   646.50 sec.
    Max Memory :                                 1176 MB
    Average Memory :                             242.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   771 sec.
    Turnaround time :                            773 sec.

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

