/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 140 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 = 7496
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0937.1+5008_daily_bin5
RA = 144.297, Dec = 50.1437
tmin = 240624001, tmax = 240883201
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='354734', job_status='RUN', time_executed='2021-08-31 18:28:04.789870', time_epoch_executed='1630459684.79' WHERE source_name='4FGL J0937.1+5008' and cadence='daily' and bin_id='5'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/354734

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

Retrieving the FT1 file...

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

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

Retrieving 44 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/354734/ft1_4FGL_J0937.1+5008_daily_bin5.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/354734/ft2_4FGL_J0937.1+5008_daily_bin5.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/354734/ft1_4FGL_J0937.1+5008_daily_bin5.fits outfile=/scratch/kocevski/354734/ft1_filteredMKT_4FGL_J0937.1+5008_daily_bin5.fits ra=144.297 dec=50.1437 rad=12.0 tmin=240624001.0 tmax=240883201.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 1.38
user 1.19
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/354734/ft2_4FGL_J0937.1+5008_daily_bin5.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/354734/ft1_filteredMKT_4FGL_J0937.1+5008_daily_bin5.fits evtable="EVENTS" outfile="/scratch/kocevski/354734/ft1_filtered_4FGL_J0937.1+5008_daily_bin5.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.51
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/354734/ft1_filtered_4FGL_J0937.1+5008_daily_bin5.fits" evtable="EVENTS" scfile=/scratch/kocevski/354734/ft2_4FGL_J0937.1+5008_daily_bin5.fits sctable="SC_DATA" outfile=/scratch/kocevski/354734/ltcube_240624001_240883201_4FGL_J0937.1+5008_daily_bin5.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/354734/ft2_4FGL_J0937.1+5008_daily_bin5.fits
.....................!
real 12.91
user 12.39
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/354734/ft1_filtered_4FGL_J0937.1+5008_daily_bin5.fits evtable="EVENTS" scfile=/scratch/kocevski/354734/ft2_4FGL_J0937.1+5008_daily_bin5.fits sctable="SC_DATA" expcube=/scratch/kocevski/354734/ltcube_240624001_240883201_4FGL_J0937.1+5008_daily_bin5.fits outfile=/scratch/kocevski/354734/expmap_240624001_240883201_4FGL_J0937.1+5008_daily_bin5.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/354734/ltcube_240624001_240883201_4FGL_J0937.1+5008_daily_bin5.fits
.....................!
real 193.60
user 186.64
sys 5.68

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/354734/ft1_filtered_4FGL_J0937.1+5008_daily_bin5.fits scfile=/scratch/kocevski/354734/ft2_4FGL_J0937.1+5008_daily_bin5.fits outfile=/scratch/kocevski/354734/cmap_240624001_240883201_4FGL_J0937.1+5008_daily_bin5.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/354734/ft1_filtered_4FGL_J0937.1+5008_daily_bin5.fits scfile=/scratch/kocevski/354734/ft2_4FGL_J0937.1+5008_daily_bin5.fits outfile=/scratch/kocevski/354734/cmap_HighResolution_240624001_240883201_4FGL_J0937.1+5008_daily_bin5.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.66
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/354734/ft1_filtered_4FGL_J0937.1+5008_daily_bin5.fits evtable="EVENTS" scfile=/scratch/kocevski/354734/ft2_4FGL_J0937.1+5008_daily_bin5.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/354734/Model_4FGL_J0937.1+5008_daily_bin5.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/354734/ft1_filtered_4FGL_J0937.1+5008_daily_bin5.fits.....................!
real 40.13
user 38.63
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/354734/ft1_filtered_4FGL_J0937.1+5008_daily_bin5.fits', '/scratch/kocevski/354734/ft2_4FGL_J0937.1+5008_daily_bin5.fits', expMap='/scratch/kocevski/354734/expmap_240624001_240883201_4FGL_J0937.1+5008_daily_bin5.fits', expCube='/scratch/kocevski/354734/ltcube_240624001_240883201_4FGL_J0937.1+5008_daily_bin5.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/354734/Model_4FGL_J0937.1+5008_daily_bin5.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/354734/ft1_filtered_4FGL_J0937.1+5008_daily_bin5.fits
Spacecraft file(s): /scratch/kocevski/354734/ft2_4FGL_J0937.1+5008_daily_bin5.fits
Exposure map: /scratch/kocevski/354734/expmap_240624001_240883201_4FGL_J0937.1+5008_daily_bin5.fits
Exposure cube: /scratch/kocevski/354734/ltcube_240624001_240883201_4FGL_J0937.1+5008_daily_bin5.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/354734/Model_4FGL_J0937.1+5008_daily_bin5.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) = 3980.31532705

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.2100       1.0000         .10000E-03   10000.    
     3 'norm      '    .32443       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.968       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.5005       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .31341       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    41.088       1.0000         .10000E-03   10000.    
    10 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.8582       1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.4328       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10482E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    51.747       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.5046       1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    3.6381       1.0000         .10000E-03   10000.    
    26 'norm      '    10.014       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10447E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    8.8568       1.0000         .10000E-03   10000.    
    30 'Prefactor '    17.018       1.0000         .10000E-03   10000.    
    31 'norm      '    1.1701       1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    33 'Normalizat'    .52412       1.0000         .10000E-01   10.000    
    34 'Prefactor '    1.2812       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=   3980.289     FROM MIGRAD    STATUS=CONVERGED    954 CALLS     4926 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.5025        .54714E-08** at limit **
   2  norm          1.2027        7.6456       -.40620E-06    .35015E-03
   3  norm          .31285        7.4966       -.59631E-06    .21723E-04
   4  Prefactor     10.966        13.206        .36935E-07    .62918E-04
   5  Prefactor     1.5025        3.7563        .20586E-07    .92390E-04
   6  Prefactor     .33301        240.92        .10275E-04   -.16449E-03
   7  Prefactor     .10000E-03    31.327       -.56517E-07** at limit **
   8  Prefactor     .10000E-03    1.4623       -.20212E-07** at limit **
   9  Prefactor     41.082        30.906       -.42468E-06   -.10091E-03
  10  norm          .10000E-03    .29644        .58631E-08** at limit **
  11  Prefactor     3.8579        3.6904        .32347E-06    .56631E-03
  12  norm          .10000E-03    5.8734       -.19014E-06** at limit **
  13  Prefactor     1.4325        2.9521       -.15774E-06   -.83431E-04
  14  Prefactor     .10000E-03    5.2673       -.71214E-06** at limit **
  15  Prefactor     .10000E-03    5.9391       -.10206E-05** at limit **
  16  Prefactor     51.784        31.970       -.10622E-06    .35351E-03
  17  Prefactor     .10000E-03    7.3535        .13212E-07** at limit **
  18  norm          .10000E-03    6.1423        .11585E-07** at limit **
  19  Prefactor     .10000E-03    11.715       -.17165E-06** at limit **
  20  Prefactor     .10000E-03    4.3973        .99413E-07** at limit **
  21  Prefactor     1.4591        28.793        .28210E-05    .47828E-03
  22  norm          .10000E-03    15.824        .10438E-05** at limit **
  23  Prefactor     .10000E-03    57.354       -.20146E-05** at limit **
  24  Prefactor     .10001E-03    38.316        .23573E-05** at limit **
  25  norm          3.6389        1.1582        .28407E-07    .29422E-02
  26  norm          10.005        18.953        .17342E-06    .21660E-03
  27  Prefactor     .10006E-03    18.987       -.40909E-05** at limit **
  28  Prefactor     .10000E-03    16.689       -.29461E-06** at limit **
  29  norm          8.8555        4.2936        .11680E-06    .83550E-03
  30  Prefactor     16.986        48.803        .33718E-05    .21222E-03
  31  norm          1.1711        1.6983       -.37053E-06   -.30521E-03
  32  Prefactor     .10000E-03    123.22        .33863E-06** at limit **
  33  Normalizat    .52411        .22544       -.21091E-05    .51132E-03
  34  Prefactor     1.2814        .23719        .20743E-05    .58364E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.20266
  norm       = 0.312847
  Prefactor  = 10.9659
  Prefactor  = 1.50248
  Prefactor  = 0.333011
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 41.0818
  norm       = 0.0001
  Prefactor  = 3.85792
  norm       = 0.0001
  Prefactor  = 1.43249
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 51.7844
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.4591
  norm       = 0.000100001
  Prefactor  = 0.000100005
  Prefactor  = 0.000100006
  norm       = 3.63894
  norm       = 10.0046
  Prefactor  = 0.000100059
  Prefactor  = 0.0001
  norm       = 8.85545
  Prefactor  = 16.9859
  norm       = 1.17105
  Prefactor  = 0.0001
  Normalizat = 0.524108
  Prefactor  = 1.28137
 **********
 **   18 **HESSE 
 **********

 FCN=   3980.289     FROM HESSE     STATUS=OK           734 CALLS     5660 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.5050        .11530E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.2027        13.805        .20570E-02   -1.5489    
   3  norm          .31285        24.546        .31556E-02   -1.5596    
   4  Prefactor     10.966        13.209        .12097E-03   -1.5046    
   5  Prefactor     1.5025        3.7151        .17232E-03   -1.5463    
   6  Prefactor     .33301        33.541        .94555E-01   -1.5593    
   7  Prefactor     .10000E-03    31.331        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.4732        .74382E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     41.082        30.836        .62536E-04   -1.4425    
  10  norm          .10000E-03    .34199        .62480E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.8579        3.4635        .10047E-03   -1.5315    
  12  norm          .10000E-03    5.8884        .14921E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.4325        2.9066        .14170E-03   -1.5469    
  14  Prefactor     .10000E-03    5.3203        .14203E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.2069        .30221E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     51.784        31.957        .55752E-04   -1.4267    
  17  Prefactor     .10000E-03    7.3557        .16710E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    6.1435        .15272E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    11.725        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.4007        .12920E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.4591        30.915        .17447E-02   -1.5466    
  22  norm          .10000E-03    16.159        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    58.032        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10001E-03    38.667        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          3.6389        1.1594        .34955E-04   -1.5326    
  26  norm          10.005        18.838        .12663E-03   -1.5075    
  27  Prefactor     .10006E-03    29.504        .34052E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    16.715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          8.8555        4.2918        .87479E-04   -1.5113    
  30  Prefactor     16.986        48.872        .97088E-04   -1.4883    
  31  norm          1.1711        1.5857        .10055E-02   -1.5492    
  32  Prefactor     .10000E-03    123.44        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    .52411        .24509        .30430E-03   -1.1131    
  34  Prefactor     1.2814        .26615        .23751E-03   -.83863    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.80095e-09
Minuit parameter uncertainties:
  1  1.80946e-06
  2  8.15121
  3  5.54377
  4  13.2127
  5  3.71569
  6  6.68702
  7  2.64485e-05
  8  5.72749e-07
  9  30.848
  10  2.03555e-06
  11  3.46368
  12  2.5863e-05
  13  2.90689
  14  9.37188e-05
  15  0.000115061
  16  31.9672
  17  1.31243e-07
  18  3.94919e-06
  19  3.05077e-05
  20  1.02703e-05
  21  13.4401
  22  0.000221056
  23  0.00102639
  24  0.000942732
  25  1.15937
  26  18.8493
  27  0.00264788
  28  8.12915e-05
  29  4.2919
  30  48.9873
  31  1.58575
  32  0.000234483
  33  0.245598
  34  0.266433
Done.

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

Extracting fit parameters...

4FGL J0937.1+5008
   Spectrum: PowerLaw
357    Prefactor:  5.178e+01  3.197e+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:  1.281e+00  2.664e-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:  5.241e-01  2.456e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.46
Ra Dec: 144.297 50.144
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 9.22e-08 +/- 5.69e-08
Energy Flux (Fixed Index): 3.04e-05 +/- 1.87e-05

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) = 3980.28823117
delta logL = 0.000702777578226

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3980.28742479
delta logL = 0.00150916233406

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    50.194       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4308       1.0000          .0000       10.000    
     3 'Normalizat'    .52117       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2838       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=   3980.287     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      268 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     50.214        43.420        .56604E-04    .93091E-04
   2  Index         2.4306        .65488        .50083E-02    .26867E-04
   3  Normalizat    .52095        .22756        .30516E-03   -.55229E-04
   4  Prefactor     1.2840        .26202        .23731E-03    .93682E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 50.2136
  Index      = 2.43063
  Normalizat = 0.520947
  Prefactor  = 1.28405
 **********
 **   18 **HESSE 
 **********

 FCN=   3980.287     FROM HESSE     STATUS=OK            25 CALLS      293 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     50.214        41.228        .11321E-04   -1.4290    
   2  Index         2.4306        .62096        .20033E-03   -.53969    
   3  Normalizat    .52095        .22691        .12207E-04   -1.1145    
   4  Prefactor     1.2840        .26154        .47462E-04   -.83783    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.7592e-10
Minuit parameter uncertainties:
  1  41.2513
  2  0.623146
  3  0.227315
  4  0.26181
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/354734': 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) = 3980.28742415
delta logL = 0.00150980181434

Extracting fit parameters...

4FGL J0937.1+5008
   Spectrum: PowerLaw
357    Prefactor:  5.021e+01  4.125e+01  1.000e-04  1.000e+04 ( 1.000e-13)
358        Index:  2.431e+00  6.231e-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:  1.284e+00  2.618e-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:  5.209e-01  2.273e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.45
Ra Dec: 144.297 50.144
Photon Index (Free Index): 2.43 +/- 0.62
Photon Flux (Free Index): 9.44e-08 +/- 6.70e-08
Energy Flux (Free Index): 2.97e-05 +/- 2.03e-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/354734/cmap_HighResolution_240624001_240883201_4FGL_J0937.1+5008_daily_bin5.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.22e-08', energy_flux2='2.97e-05', photon_flux_error='5.69e-08', dlogl='1.51e-03', energy_flux='3.04e-05', photon_flux2='9.44e-08', job_status='DONE', time_completed='2021-08-31 18:40:08.302315', photon_index_error2='0.62', photon_index2='2.43', ts='5.46', fit_tolerance='1e-08', GAL='1.28', photon_index_error='0.00', energy_flux_error2='2.03e-05', EG='0.52', time_epoch_completed='1630460408.3', return_code='0', job_id='354734', GAL2='1.28', EG2='0.52', return_code2='0', energy_flux_error='1.87e-05', photon_flux_error2='6.70e-08', ts2='5.45', photon_index='2.40' WHERE bin_id='5' AND source_name='4FGL J0937.1+5008' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 18:40:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0140>
Subject: Job 354734: <4FGL_J0937.1+5008_daily_bin5> in cluster <slac> Done

Job <4FGL_J0937.1+5008_daily_bin5> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Aug 31 18:25:33 2021
Job was executed on host(s) <bullet0140>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 18:25:35 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 31 18:25:35 2021
Terminated at Tue Aug 31 18:40:09 2021
Results reported at Tue Aug 31 18:40:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0937.1+5008_daily_bin5 144.297 50.1437 240624001 240883201 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 :                                   719.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             314.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   873 sec.
    Turnaround time :                            876 sec.

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

