/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


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


Performing analysis on: 4FGL_J0937.1+5008_daily_bin1514
RA = 144.297, Dec = 50.1437
tmin = 631756801, tmax = 632016001
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='368844', job_status='RUN', time_executed='2021-08-31 19:12:27.246596', time_epoch_executed='1630462347.25' WHERE source_name='4FGL J0937.1+5008' and cadence='daily' and bin_id='1514'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/368844

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/368844/ft1_4FGL_J0937.1+5008_daily_bin1514.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/368844/ft2_4FGL_J0937.1+5008_daily_bin1514.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/368844/ft1_4FGL_J0937.1+5008_daily_bin1514.fits outfile=/scratch/kocevski/368844/ft1_filteredMKT_4FGL_J0937.1+5008_daily_bin1514.fits ra=144.297 dec=50.1437 rad=12.0 tmin=631756801.0 tmax=632016001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 2.38
user 2.22
sys 0.15

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/368844/ft2_4FGL_J0937.1+5008_daily_bin1514.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/368844/ft2_4FGL_J0937.1+5008_daily_bin1514.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/368844/ft1_filteredMKT_4FGL_J0937.1+5008_daily_bin1514.fits evtable="EVENTS" outfile="/scratch/kocevski/368844/ft1_filtered_4FGL_J0937.1+5008_daily_bin1514.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.48
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/368844/ft1_filtered_4FGL_J0937.1+5008_daily_bin1514.fits" evtable="EVENTS" scfile=/scratch/kocevski/368844/ft2_4FGL_J0937.1+5008_daily_bin1514.fits sctable="SC_DATA" outfile=/scratch/kocevski/368844/ltcube_631756801_632016001_4FGL_J0937.1+5008_daily_bin1514.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/368844/ft2_4FGL_J0937.1+5008_daily_bin1514.fits
.....................!
real 12.21
user 11.87
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/368844/ft1_filtered_4FGL_J0937.1+5008_daily_bin1514.fits evtable="EVENTS" scfile=/scratch/kocevski/368844/ft2_4FGL_J0937.1+5008_daily_bin1514.fits sctable="SC_DATA" expcube=/scratch/kocevski/368844/ltcube_631756801_632016001_4FGL_J0937.1+5008_daily_bin1514.fits outfile=/scratch/kocevski/368844/expmap_631756801_632016001_4FGL_J0937.1+5008_daily_bin1514.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/368844/ltcube_631756801_632016001_4FGL_J0937.1+5008_daily_bin1514.fits
.....................!
real 190.24
user 186.00
sys 3.91

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
Added 223 point sources and 0 extended sources

Setting source of interest to:
4FGL J0937.1+5008 @ 144.297 50.1437

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/368844/ft1_filtered_4FGL_J0937.1+5008_daily_bin1514.fits scfile=/scratch/kocevski/368844/ft2_4FGL_J0937.1+5008_daily_bin1514.fits outfile=/scratch/kocevski/368844/cmap_631756801_632016001_4FGL_J0937.1+5008_daily_bin1514.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=144.297 yref=50.1437 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/368844/ft1_filtered_4FGL_J0937.1+5008_daily_bin1514.fits scfile=/scratch/kocevski/368844/ft2_4FGL_J0937.1+5008_daily_bin1514.fits outfile=/scratch/kocevski/368844/cmap_HighResolution_631756801_632016001_4FGL_J0937.1+5008_daily_bin1514.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=144.297 yref=50.1437 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.53
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/368844/ft1_filtered_4FGL_J0937.1+5008_daily_bin1514.fits evtable="EVENTS" scfile=/scratch/kocevski/368844/ft2_4FGL_J0937.1+5008_daily_bin1514.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/368844/Model_4FGL_J0937.1+5008_daily_bin1514.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
Working on...
/scratch/kocevski/368844/ft1_filtered_4FGL_J0937.1+5008_daily_bin1514.fits.....................!
real 31.48
user 30.27
sys 1.12

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/368844/ft1_filtered_4FGL_J0937.1+5008_daily_bin1514.fits', '/scratch/kocevski/368844/ft2_4FGL_J0937.1+5008_daily_bin1514.fits', expMap='/scratch/kocevski/368844/expmap_631756801_632016001_4FGL_J0937.1+5008_daily_bin1514.fits', expCube='/scratch/kocevski/368844/ltcube_631756801_632016001_4FGL_J0937.1+5008_daily_bin1514.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/368844/Model_4FGL_J0937.1+5008_daily_bin1514.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0937.1+5008'

4FGL J0937.1+5008
   Spectrum: PowerLaw
357    Prefactor:  4.244e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
358        Index:  2.397e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
359        Scale:  9.988e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/368844/ft1_filtered_4FGL_J0937.1+5008_daily_bin1514.fits
Spacecraft file(s): /scratch/kocevski/368844/ft2_4FGL_J0937.1+5008_daily_bin1514.fits
Exposure map: /scratch/kocevski/368844/expmap_631756801_632016001_4FGL_J0937.1+5008_daily_bin1514.fits
Exposure cube: /scratch/kocevski/368844/ltcube_631756801_632016001_4FGL_J0937.1+5008_daily_bin1514.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/368844/Model_4FGL_J0937.1+5008_daily_bin1514.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) = 2559.63283586

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    45.428       1.0000         .10000E-03   10000.    
     2 'norm      '    9.2942       1.0000         .10000E-03   10000.    
     3 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    47.562       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10203E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .22839E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    123.77       1.0000         .10000E-03   10000.    
     8 'Prefactor '    18.120       1.0000         .10000E-03   10000.    
     9 'Prefactor '    53.730       1.0000         .10000E-03   10000.    
    10 'norm      '    2.5012       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .21222E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.0755       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10233E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.4613       1.0000         .10000E-03   10000.    
    16 'Prefactor '    40.011       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10135E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    19.902       1.0000         .10000E-03   10000.    
    25 'norm      '    1.9860       1.0000         .10000E-03   10000.    
    26 'norm      '    7.8956       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    4.9780       1.0000         .10000E-03   10000.    
    30 'Prefactor '    69.863       1.0000         .10000E-03   10000.    
    31 'norm      '    2.0723       1.0000         .10000E-03   10000.    
    32 'Prefactor '    8.5151       1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.1777       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .72401       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7100E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2559.627     FROM MIGRAD    STATUS=CONVERGED    915 CALLS     4746 TOTAL
                     EDM=   .86E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     45.429        27.845        .41831E-07   -.72110E-05
   2  norm          9.2796        23.096        .21669E-06   -.16202E-04
   3  norm          .10000E-03    9.2340        .28389E-06** at limit **
   4  Prefactor     47.559        36.337        .60221E-07   -.33074E-05
   5  Prefactor     .10000E-03    7.1882        .82761E-06** at limit **
   6  Prefactor     .10000E-03    57.105        .31525E-05** at limit **
   7  Prefactor     123.29        228.52       -.13516E-05   -.25379E-06
   8  Prefactor     18.119        16.113       -.16160E-06   -.59723E-05
   9  Prefactor     53.674        108.96       -.50589E-06    .91094E-06
  10  norm          2.5011        1.3423        .46564E-08   -.62403E-04
  11  Prefactor     .10000E-03    3.6638        .99204E-07** at limit **
  12  norm          .10000E-03    58.818        .80348E-06** at limit **
  13  Prefactor     5.0745        8.3301       -.10256E-06   -.30316E-05
  14  Prefactor     .10000E-03    10.030        .38602E-06** at limit **
  15  Prefactor     7.4620        10.184       -.14771E-05    .29097E-04
  16  Prefactor     40.002        42.304        .32595E-06   -.43861E-05
  17  Prefactor     .10000E-03    9.6842       -.13952E-06** at limit **
  18  norm          .10000E-03    21.645       -.22198E-06** at limit **
  19  Prefactor     .10000E-03    29.463       -.21520E-06** at limit **
  20  Prefactor     .10000E-03    5.9077       -.63369E-07** at limit **
  21  Prefactor     .10000E-03    12.706        .49929E-06** at limit **
  22  norm          .10000E-03    8.0505       -.92782E-09** at limit **
  23  Prefactor     .10000E-03    45.299       -.28785E-06** at limit **
  24  Prefactor     19.828        62.134       -.77432E-06    .44881E-05
  25  norm          1.9858        1.0322        .63141E-07    .16324E-05
  26  norm          7.8796        27.200       -.58451E-06   -.58574E-07
  27  Prefactor     .10000E-03    6.4894       -.10198E-06** at limit **
  28  Prefactor     .10000E-03    150.46       -.20623E-05** at limit **
  29  norm          4.9773        3.9835        .75296E-08   -.14357E-04
  30  Prefactor     69.824        71.005       -.77910E-06    .82407E-06
  31  norm          2.0719        1.9357       -.16058E-07   -.82330E-05
  32  Prefactor     7.9135        842.22        .11287E-04   -.46676E-05
  33  Normalizat    1.1783        .38871        .32411E-05   -.24012E-04
  34  Prefactor     .72350        .38471       -.28596E-05   -.72251E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 45.4295
  norm       = 9.27957
  norm       = 0.0001
  Prefactor  = 47.5592
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 123.294
  Prefactor  = 18.1191
  Prefactor  = 53.6742
  norm       = 2.50109
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.0745
  Prefactor  = 0.0001
  Prefactor  = 7.46196
  Prefactor  = 40.0023
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.8279
  norm       = 1.98581
  norm       = 7.87958
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.97732
  Prefactor  = 69.8237
  norm       = 2.07192
  Prefactor  = 7.91347
  Normalizat = 1.17832
  Prefactor  = 0.723499
 **********
 **   18 **HESSE 
 **********

 FCN=   2559.627     FROM HESSE     STATUS=OK           732 CALLS     5478 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     45.429        27.843        .59486E-04   -1.4359    
   2  norm          9.2796        23.020        .13146E-03   -1.5099    
   3  norm          .10000E-03    9.2384        .15013E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     47.559        36.340        .58142E-04   -1.4328    
   5  Prefactor     .10000E-03    7.2877        .13226E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    57.535        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     123.29        228.94        .18090E-03   -1.3483    
   8  Prefactor     18.119        16.116        .94091E-04   -1.4856    
   9  Prefactor     53.674        108.81        .54719E-04   -1.4241    
  10  norm          2.5011        1.3424        .40948E-04   -1.5392    
  11  Prefactor     .10000E-03    3.6714        .94501E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    58.991        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.0745        8.3002        .16470E-03   -1.5257    
  14  Prefactor     .10000E-03    10.049        .15660E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.4620        10.243        .73412E-03   -1.5162    
  16  Prefactor     40.002        42.235        .63369E-04   -1.4442    
  17  Prefactor     .10000E-03    9.6977        .15379E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    21.651        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    29.468        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.9201        .12008E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    12.838        .17639E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    8.0554        .14018E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    45.309        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     19.828        62.120        .89780E-04   -1.4817    
  25  norm          1.9858        1.0295        .34214E-04   -1.5426    
  26  norm          7.8796        27.197        .14270E-03   -1.5146    
  27  Prefactor     .10000E-03    6.5287        .12581E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    151.13        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          4.9773        3.9835        .87111E-04   -1.5262    
  30  Prefactor     69.824        70.868        .48025E-04   -1.4035    
  31  norm          2.0719        1.9411        .65815E-04   -1.5420    
  32  Prefactor     7.9135        884.55        .13737E-02   -1.5145    
  33  Normalizat    1.1783        .38878        .25948E-03   -.87275    
  34  Prefactor     .72350        .38399        .36174E-03   -1.0261    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.73539e-11
Minuit parameter uncertainties:
  1  27.8508
  2  23.0418
  3  2.51188e-06
  4  36.3572
  5  1.47823e-05
  6  8.96997e-05
  7  230.616
  8  16.1202
  9  109.215
  10  1.34239
  11  1.04256e-06
  12  2.02863e-05
  13  8.3021
  14  1.72635e-06
  15  10.2454
  16  42.2666
  17  1.42642e-06
  18  5.9404e-06
  19  3.91308e-06
  20  1.37169e-07
  21  4.83615e-05
  22  1.42648e-06
  23  2.66769e-05
  24  62.3237
  25  1.02953
  26  27.2395
  27  8.60347e-07
  28  3.79768e-05
  29  3.98366
  30  70.9534
  31  1.94114
  32  169.971
  33  0.389738
  34  0.38541
Done.

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

Extracting fit parameters...

4FGL J0937.1+5008
   Spectrum: PowerLaw
357    Prefactor:  4.000e+01  4.227e+01  1.000e-04  1.000e+04 ( 1.000e-13)
358        Index:  2.397e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
359        Scale:  9.988e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
707    Prefactor:  7.235e-01  3.854e-01  0.000e+00  1.000e+01 ( 1.000e+00)
708        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
709        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
706   Normalization:  1.178e+00  3.897e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.81
Ra Dec: 144.297 50.144
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 7.12e-08 +/- 7.52e-08
Energy Flux (Fixed Index): 2.34e-05 +/- 2.48e-05

TS (Fixed Index): 1.81
Ra Dec: 144.297 50.144
Photon Flux Upper Limit: 2.54e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.96e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/368844/likelihoodResults_631756801_632016001_4FGL_J0937.1+5008_daily_bin1514.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2559.33978968
delta logL = 0.286909314287

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2559.32177311
delta logL = 0.304925883746

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    47.149       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8263       1.0000          .0000       10.000    
     3 'Normalizat'    1.2052       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70790       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7100E+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=   2559.322     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      258 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     47.157        50.733        .29198E-03   -.20229E-03
   2  Index         1.8265        .71536        .75429E-02   -.96397E-04
   3  Normalizat    1.2054        .33053        .25703E-03   -.61996E-03
   4  Prefactor     .70765        .36887        .36531E-03   -.38374E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 47.1571
  Index      = 1.82648
  Normalizat = 1.20543
  Prefactor  = 0.707655
 **********
 **   18 **HESSE 
 **********

 FCN=   2559.322     FROM HESSE     STATUS=OK            23 CALLS      281 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     47.157        51.120        .58395E-04   -1.4333    
   2  Index         1.8265        .72075        .30172E-03   -.68763    
   3  Normalizat    1.2054        .33071        .51406E-04   -.86435    
   4  Prefactor     .70765        .36908        .73062E-04   -1.0323    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.46234e-09
Minuit parameter uncertainties:
  1  51.1675
  2  0.724993
  3  0.331291
  4  0.370369
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/368844': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2559.32177286
delta logL = 0.304926140841

Extracting fit parameters...

4FGL J0937.1+5008
   Spectrum: PowerLaw
357    Prefactor:  4.716e+01  5.117e+01  1.000e-04  1.000e+04 ( 1.000e-13)
358        Index:  1.826e+00  7.250e-01  0.000e+00  1.000e+01 (-1.000e+00)
359        Scale:  9.988e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
707    Prefactor:  7.077e-01  3.704e-01  0.000e+00  1.000e+01 ( 1.000e+00)
708        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
709        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
706   Normalization:  1.205e+00  3.313e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.42
Ra Dec: 144.297 50.144
Photon Index (Free Index): 1.83 +/- 0.72
Photon Flux (Free Index): 3.81e-08 +/- 5.83e-08
Energy Flux (Free Index): 4.21e-05 +/- 6.07e-05

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/368844/cmap_HighResolution_631756801_632016001_4FGL_J0937.1+5008_daily_bin1514.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.96e-02', comment='SUCCESS', photon_flux='7.12e-08', energy_flux2='4.21e-05', photon_flux_error='7.52e-08', dlogl='3.05e-01', energy_flux='2.34e-05', photon_flux2='3.81e-08', job_status='DONE', time_completed='2021-08-31 19:23:36.918630', photon_index_error2='0.72', photon_index2='1.83', ts='1.81', fit_tolerance='1e-08', GAL='0.72', photon_index_error='0.00', photon_flux_upper_limit='2.54e-07', energy_flux_error2='6.07e-05', EG='1.18', time_epoch_completed='1630463016.92', return_code='0', job_id='368844', GAL2='0.71', EG2='1.21', return_code2='0', energy_flux_error='2.48e-05', photon_flux_error2='5.83e-08', ts2='2.42', photon_index='2.40' WHERE bin_id='1514' AND source_name='4FGL J0937.1+5008' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 19:23:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 368844: <4FGL_J0937.1+5008_daily_bin1514> in cluster <slac> Done

Job <4FGL_J0937.1+5008_daily_bin1514> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Aug 31 19:10:35 2021
Job was executed on host(s) <bullet0031>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 19:10:36 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 31 19:10:36 2021
Terminated at Tue Aug 31 19:23:37 2021
Results reported at Tue Aug 31 19:23:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0937.1+5008_daily_bin1514 144.297 50.1437 631756801 632016001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0937.1+5008 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   635.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             277.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   781 sec.
    Turnaround time :                            782 sec.

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

