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


Performing analysis on: 4FGL_J0537.5+0959_daily_bin1440
RA = 84.3775, Dec = 9.986
tmin = 612576001, tmax = 612835201
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='661807', job_status='RUN', time_executed='2021-08-23 12:14:59.728656', time_epoch_executed='1629746099.73' WHERE source_name='4FGL J0537.5+0959' and cadence='daily' and bin_id='1440'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/661807

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/661807/ft1_4FGL_J0537.5+0959_daily_bin1440.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/661807/ft2_4FGL_J0537.5+0959_daily_bin1440.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/661807/ft1_4FGL_J0537.5+0959_daily_bin1440.fits outfile=/scratch/kocevski/661807/ft1_filteredMKT_4FGL_J0537.5+0959_daily_bin1440.fits ra=84.3775 dec=9.986 rad=12.0 tmin=612576001.0 tmax=612835201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.26
user 2.58
sys 0.51

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/661807/ft1_filtered_4FGL_J0537.5+0959_daily_bin1440.fits evtable="EVENTS" scfile=/scratch/kocevski/661807/ft2_4FGL_J0537.5+0959_daily_bin1440.fits sctable="SC_DATA" expcube=/scratch/kocevski/661807/ltcube_612576001_612835201_4FGL_J0537.5+0959_daily_bin1440.fits outfile=/scratch/kocevski/661807/expmap_612576001_612835201_4FGL_J0537.5+0959_daily_bin1440.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/661807/ltcube_612576001_612835201_4FGL_J0537.5+0959_daily_bin1440.fits
.....................!
real 191.48
user 186.29
sys 4.81

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/661807/ft1_filtered_4FGL_J0537.5+0959_daily_bin1440.fits scfile=/scratch/kocevski/661807/ft2_4FGL_J0537.5+0959_daily_bin1440.fits outfile=/scratch/kocevski/661807/cmap_612576001_612835201_4FGL_J0537.5+0959_daily_bin1440.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.86
user 0.36
sys 0.47

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/661807/ft1_filtered_4FGL_J0537.5+0959_daily_bin1440.fits scfile=/scratch/kocevski/661807/ft2_4FGL_J0537.5+0959_daily_bin1440.fits outfile=/scratch/kocevski/661807/cmap_HighResolution_612576001_612835201_4FGL_J0537.5+0959_daily_bin1440.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.89
user 0.39
sys 0.44

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    15.364       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .53989       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10306E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    2.1955       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .97124       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=   4299.731     FROM MIGRAD    STATUS=CONVERGED    517 CALLS     2491 TOTAL
                     EDM=   .85E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          15.403        20.028       -.15670E-05   -.27589E-04
   2  Prefactor     .10000E-03    89.571       -.23979E-04** at limit **
   3  Prefactor     .10000E-03    51.010        .12394E-04** at limit **
   4  Prefactor     .10000E-03    98.424       -.93071E-05** at limit **
   5  norm          .10000E-03    .60043        .64079E-08** at limit **
   6  norm          .10000E-03    4.9393        .19407E-07** at limit **
   7  Prefactor     .20257        24.552        .10446E-05   -.13330E-03
   8  norm          .10000E-03    62.397        .99532E-05** at limit **
   9  Prefactor     .10000E-03    20.306       -.31580E-06** at limit **
  10  Prefactor     .10000E-03    287.11        .71150E-04** at limit **
  11  Prefactor     .10000E-03    51.817        .15221E-04** at limit **
  12  norm          .10000E-03    408.61       -.17888E-03** at limit **
  13  Prefactor     .10000E-03    11.259        .55982E-07** at limit **
  14  norm          .10000E-03    18.560        .26709E-06** at limit **
  15  norm          .10000E-03    1.4552       -.91322E-08** at limit **
  16  Prefactor     .10000E-03    47.495       -.56014E-05** at limit **
  17  Prefactor     .10000E-03    71.294       -.12977E-04** at limit **
  18  Prefactor     .10000E-03    111.59        .26899E-04** at limit **
  19  Prefactor     .10000E-03    13.857       -.47130E-07** at limit **
  20  norm          .10000E-03    45.988       -.15961E-04** at limit **
  21  norm          .10000E-03    28.304        .11161E-05** at limit **
  22  Normalizat    2.1966        .67635        .30386E-06   -.85288E-05
  23  Prefactor     .97119        .96391E-01    .67274E-07    .30984E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 15.4035
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.202574
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 2.19658
  Prefactor  = 0.971194
 **********
 **   18 **HESSE 
 **********

 FCN=   4299.731     FROM HESSE     STATUS=OK           362 CALLS     2853 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          15.403        20.081        .10218E-03   -1.4923    
   2  Prefactor     .10000E-03    89.613        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    51.029        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    98.513        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .60844        .49586E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    4.9477        .14231E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .20257        36.049        .89739E-01   -1.5618    
   8  norm          .10000E-03    62.397        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    20.307        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    287.11        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    51.851        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    408.63        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    11.309        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    18.580        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.4665        .77228E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    47.516        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    71.335        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    111.65        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    13.879        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    46.111        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    29.069        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    2.1966        .73106        .72268E-03   -.59710    
  23  Prefactor     .97119        .10463        .14488E-03   -.93696    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.32451e-11
Minuit parameter uncertainties:
  1  20.0895
  2  1.61304e-05
  3  2.71699e-06
  4  2.60096e-05
  5  3.77865e-08
  6  7.11111e-07
  7  5.40665
  8  5.6032e-08
  9  6.84539e-07
  10  5.01917e-06
  11  1.29008e-05
  12  3.0589e-05
  13  4.34004e-06
  14  1.175e-07
  15  9.66993e-08
  16  1.61278e-06
  17  3.38623e-06
  18  1.6601e-05
  19  1.71519e-06
  20  1.72133e-05
  21  1.48109e-05
  22  0.734932
  23  0.104653
Done.

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

Extracting fit parameters...

4FGL J0537.5+0959
   Spectrum: PowerLaw
261    Prefactor:  1.000e-04  3.386e-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.712e-01  1.047e-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:  2.197e+00  7.349e-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: 6.26e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.91e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/661807/likelihoodResults_612576001_612835201_4FGL_J0537.5+0959_daily_bin1440.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) = 4299.73141783
delta logL = -6.66831101626e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4299.73135183
delta logL = -6.78745891491e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13406E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.9534       1.0000          .0000       10.000    
     3 'Normalizat'    2.1966       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97119       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=   4299.731     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      285 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10392E-03    37.795        .18142E-01** at limit **
   2  Index         2.8608        5.4392        .50000        .56783E-05
   3  Normalizat    2.1966        .17176E-01    .72268E-03   -.13718E-04
   4  Prefactor     .97119        .24820E-02    .14488E-03   -.28171E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103918
  Index      = 2.86077
  Normalizat = 2.19658
  Prefactor  = 0.971194
 **********
 **   18 **HESSE 
 **********

 FCN=   4299.731     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      314 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10392E-03    199.23        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8608        7.6747        .50000       -.44211    
   3  Normalizat    2.1966        .39594E-01    .28907E-04   -.59710    
   4  Prefactor     .97119        .57214E-02    .57952E-05   -.93696    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.7256e-10
Minuit parameter uncertainties:
  1  0.0560634
  2  412.885
  3  0.0395945
  4  0.00572144
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/661807': 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) = 4299.73135139
delta logL = -2.40148438024e-07

Extracting fit parameters...

4FGL J0537.5+0959
   Spectrum: PowerLaw
261    Prefactor:  1.039e-04  5.606e-02  1.000e-04  1.000e+04 ( 1.000e-13)
262        Index:  2.861e+00  4.129e+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.712e-01  5.721e-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:  2.197e+00  3.959e-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/661807/cmap_HighResolution_612576001_612835201_4FGL_J0537.5+0959_daily_bin1440.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.91e-02', job_status='DONE', photon_flux_upper_limit='6.26e-07', time_completed='2021-08-23 12:25:10.350994', job_id='661807', GAL2='0.97', fit_tolerance='1e-08', EG2='2.20', EG='2.20', time_epoch_completed='1629746710.35', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='-2.40e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.64' WHERE bin_id='1440' AND source_name='4FGL J0537.5+0959' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 23 12:25:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0260>
Subject: Job 661807: <4FGL_J0537.5+0959_daily_bin1440> in cluster <slac> Done

Job <4FGL_J0537.5+0959_daily_bin1440> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Mon Aug 23 12:10:44 2021
Job was executed on host(s) <bullet0260>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 23 12:10:45 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:45 2021
Terminated at Mon Aug 23 12:25:11 2021
Results reported at Mon Aug 23 12:25:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0537.5+0959_daily_bin1440 84.3775 9.986 612576001 612835201 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 :                                   611.42 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             241.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   865 sec.
    Turnaround time :                            867 sec.

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

