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


Performing analysis on: 4FGL_J0537.5+0959_daily_bin1390
RA = 84.3775, Dec = 9.986
tmin = 599616001, tmax = 599875201
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='661730', job_status='RUN', time_executed='2021-08-23 12:14:41.668823', time_epoch_executed='1629746081.67' WHERE source_name='4FGL J0537.5+0959' and cadence='daily' and bin_id='1390'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/661730

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/661730/ft1_4FGL_J0537.5+0959_daily_bin1390.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/661730/ft2_4FGL_J0537.5+0959_daily_bin1390.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/661730/ft1_4FGL_J0537.5+0959_daily_bin1390.fits outfile=/scratch/kocevski/661730/ft1_filteredMKT_4FGL_J0537.5+0959_daily_bin1390.fits ra=84.3775 dec=9.986 rad=12.0 tmin=599616001.0 tmax=599875201.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 6.05
user 2.32
sys 3.69

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/661730/ft2_4FGL_J0537.5+0959_daily_bin1390.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/661730/ft1_filteredMKT_4FGL_J0537.5+0959_daily_bin1390.fits evtable="EVENTS" outfile="/scratch/kocevski/661730/ft1_filtered_4FGL_J0537.5+0959_daily_bin1390.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.24
user 0.34
sys 3.87

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/661730/ft1_filtered_4FGL_J0537.5+0959_daily_bin1390.fits" evtable="EVENTS" scfile=/scratch/kocevski/661730/ft2_4FGL_J0537.5+0959_daily_bin1390.fits sctable="SC_DATA" outfile=/scratch/kocevski/661730/ltcube_599616001_599875201_4FGL_J0537.5+0959_daily_bin1390.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/661730/ft2_4FGL_J0537.5+0959_daily_bin1390.fits
.....................!
real 16.35
user 12.02
sys 4.26

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/661730/ft1_filtered_4FGL_J0537.5+0959_daily_bin1390.fits evtable="EVENTS" scfile=/scratch/kocevski/661730/ft2_4FGL_J0537.5+0959_daily_bin1390.fits sctable="SC_DATA" expcube=/scratch/kocevski/661730/ltcube_599616001_599875201_4FGL_J0537.5+0959_daily_bin1390.fits outfile=/scratch/kocevski/661730/expmap_599616001_599875201_4FGL_J0537.5+0959_daily_bin1390.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/661730/ltcube_599616001_599875201_4FGL_J0537.5+0959_daily_bin1390.fits
.....................!
real 194.88
user 185.06
sys 9.23

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/661730/ft1_filtered_4FGL_J0537.5+0959_daily_bin1390.fits scfile=/scratch/kocevski/661730/ft2_4FGL_J0537.5+0959_daily_bin1390.fits outfile=/scratch/kocevski/661730/cmap_599616001_599875201_4FGL_J0537.5+0959_daily_bin1390.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.14
user 0.38
sys 3.57

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/661730/ft1_filtered_4FGL_J0537.5+0959_daily_bin1390.fits scfile=/scratch/kocevski/661730/ft2_4FGL_J0537.5+0959_daily_bin1390.fits outfile=/scratch/kocevski/661730/cmap_HighResolution_599616001_599875201_4FGL_J0537.5+0959_daily_bin1390.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.03
user 0.38
sys 3.58

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.897       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    67.167       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    40.516       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10696E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .28947E-02   1.0000         .10000E-03   10000.    
    12 'norm      '    28.427       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    33.481       1.0000         .10000E-03   10000.    
    15 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    142.60       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .31559       1.0000         .10000E-03   10000.    
    18 'Prefactor '    95.548       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10506E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10278E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .93576       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .50334       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=   791.7949     FROM MIGRAD    STATUS=CONVERGED    906 CALLS     3944 TOTAL
                     EDM=   .96E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.897        11.153        .79925E-04    .15888E-03
   2  Prefactor     .10000E-03    42.970        .18030E-02** at limit **
   3  Prefactor     .10000E-03    43.553        .18142E-02** at limit **
   4  Prefactor     67.158        57.721        .48973E-04    .12623E-03
   5  norm          .10000E-03    .86065        .25382E-03** at limit **
   6  norm          .10000E-03    5.8038        .66178E-03** at limit **
   7  Prefactor     .10000E-03    12.723        .97573E-03** at limit **
   8  norm          .10000E-03    11.008        .91181E-03** at limit **
   9  Prefactor     40.513        42.865        .62974E-04    .12674E-03
  10  Prefactor     .10000E-03    270.78        .18142E-02** at limit **
  11  Prefactor     .10033E-03    481.06        .13894    ** at limit **
  12  norm          28.433        31.915        .75141E-04    .27892E-04
  13  Prefactor     .10000E-03    15.189        .10710E-02** at limit **
  14  norm          33.477        69.892        .69253E-04    .58060E-04
  15  norm          .10000E-03    6.6730        .70630E-03** at limit **
  16  Prefactor     142.84        359.44        .33738E-04    .26966E-04
  17  Prefactor     .17144E-03    6190.0        .19921    ** at limit **
  18  Prefactor     95.546        300.90        .41119E-04    .40505E-05
  19  Prefactor     .10000E-03    34.163        .16073E-02** at limit **
  20  norm          .10000E-03    67.660        .18142E-02** at limit **
  21  norm          .10000E-03    74.241        .18142E-02** at limit **
  22  Normalizat    .93583        .97411        .53559E-03    .82248E-04
  23  Prefactor     .50333        .19479        .14463E-03    .80505E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 12.8972
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 67.158
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 40.5127
  Prefactor  = 0.0001
  Prefactor  = 0.000100334
  norm       = 28.433
  Prefactor  = 0.0001
  norm       = 33.4773
  norm       = 0.0001
  Prefactor  = 142.84
  Prefactor  = 0.000171443
  Prefactor  = 95.5457
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100002
  Normalizat = 0.935828
  Prefactor  = 0.503334
 **********
 **   18 **HESSE 
 **********

 FCN=   791.7949     FROM HESSE     STATUS=OK           366 CALLS     4310 TOTAL
                     EDM=   .96E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.897        11.153        .31970E-05   -1.4990    
   2  Prefactor     .10000E-03    42.970        .36061E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    43.553        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     67.158        57.722        .97946E-05   -1.4067    
   5  norm          .10000E-03    .86065        .50764E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    5.8039        .13236E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    12.724        .19515E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    11.008        .18236E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     40.513        42.865        .12595E-04   -1.4434    
  10  Prefactor     .10000E-03    270.78        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10033E-03    498.84        .13590       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          28.433        31.915        .15028E-04   -1.4641    
  13  Prefactor     .10000E-03    15.190        .21420E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          33.477        69.894        .13851E-04   -1.4550    
  15  norm          .10000E-03    6.6730        .14126E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     142.84        373.03        .67476E-05   -1.3312    
  17  Prefactor     .17144E-03    6423.7        .18584       -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     95.546        300.89        .82238E-05   -1.3750    
  19  Prefactor     .10000E-03    34.163        .32146E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    67.661        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    74.265        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .93583        .97479        .10712E-03   -.95212    
  23  Prefactor     .50333        .19488        .28926E-04   -1.1182    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.60435e-10
Minuit parameter uncertainties:
  1  11.1552
  2  9.92755e-05
  3  0.000202733
  4  57.7702
  5  2.18705e-05
  6  3.36891e-05
  7  0.000124478
  8  6.66733e-05
  9  42.8981
  10  0.00073405
  11  0.0260237
  12  31.9337
  13  2.43452e-05
  14  70.0661
  15  1.77133e-05
  16  379.464
  17  0.951657
  18  305.911
  19  0.000221832
  20  0.000261393
  21  0.000802004
  22  0.994193
  23  0.19514
Done.

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

Extracting fit parameters...

4FGL J0537.5+0959
   Spectrum: PowerLaw
261    Prefactor:  1.714e-04  9.517e-01  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:  5.033e-01  1.951e-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:  9.358e-01  9.942e-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: 2.04e-06 ph cm-2 s-1
Energy Flux Upper Limit: 1.60e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/661730/likelihoodResults_599616001_599875201_4FGL_J0537.5+0959_daily_bin1390.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) = 791.794924808
delta logL = -5.68354607822e-08

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 791.794924808
delta logL = -5.67733877688e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96367E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6414       1.0000          .0000       10.000    
     3 'Normalizat'    .93582       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .50333       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=   791.5204     FROM MIGRAD    STATUS=CONVERGED    205 CALLS      386 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .44824E-01    3.8988        .22629E-02   -.48751E-03
   2  Index         6.9576        8.3841        .10777       -.46573E-05
   3  Normalizat    .83359        .30694        .12614        .89252E-04
   4  Prefactor     .51338        .62891E-01    .39719E-01    .11658E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0448238
  Index      = 6.95761
  Normalizat = 0.833588
  Prefactor  = 0.513375
 **********
 **   18 **HESSE 
 **********

 FCN=   791.5204     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      417 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .44824E-01    7.5431        .10293E-03   -1.5666    
   2  Index         6.9576        7.9454        .44220E-02    .40228    
   3  Normalizat    .83359        .76608        .56014E-03   -.98835    
   4  Prefactor     .51338        .15886        .14295E-03   -1.1137    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.00212e-10
Minuit parameter uncertainties:
  1  1.16179
  2  12.1393
  3  0.776371
  4  0.158994
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/661730': 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) = 791.520367545
delta logL = 0.274557206393

Extracting fit parameters...

4FGL J0537.5+0959
   Spectrum: PowerLaw
261    Prefactor:  4.482e-02  1.162e+00  1.000e-04  1.000e+04 ( 1.000e-13)
262        Index:  6.958e+00  1.214e+01  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:  5.134e-01  1.590e-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:  8.336e-01  7.764e-01  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/661730/cmap_HighResolution_599616001_599875201_4FGL_J0537.5+0959_daily_bin1390.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.60e-01', job_status='DONE', photon_flux_upper_limit='2.04e-06', time_completed='2021-08-23 12:21:57.143096', job_id='661730', GAL2='0.51', fit_tolerance='1e-08', EG2='0.83', EG='0.94', time_epoch_completed='1629746517.14', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.50', dlogl='2.75e-01', ts2='0.57', photon_index_error='0.00', photon_index='2.64' WHERE bin_id='1390' AND source_name='4FGL J0537.5+0959' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 23 12:21:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0142>
Subject: Job 661730: <4FGL_J0537.5+0959_daily_bin1390> in cluster <slac> Done

Job <4FGL_J0537.5+0959_daily_bin1390> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Mon Aug 23 12:10:38 2021
Job was executed on host(s) <bullet0142>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 23 12:10:39 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug 23 12:10:39 2021
Terminated at Mon Aug 23 12:21:58 2021
Results reported at Mon Aug 23 12:21:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0537.5+0959_daily_bin1390 84.3775 9.986 599616001 599875201 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 :                                   487.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             248.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   678 sec.
    Turnaround time :                            680 sec.

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

