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


Performing analysis on: 4FGL_J0937.1+5008_daily_bin1158
RA = 144.297, Dec = 50.1437
tmin = 539481601, tmax = 539740801
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='365830', job_status='RUN', time_executed='2021-08-31 19:03:09.662459', time_epoch_executed='1630461789.66' WHERE source_name='4FGL J0937.1+5008' and cadence='daily' and bin_id='1158'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/365830

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/365830/ft1_4FGL_J0937.1+5008_daily_bin1158.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/365830/ft2_4FGL_J0937.1+5008_daily_bin1158.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/365830/ft1_4FGL_J0937.1+5008_daily_bin1158.fits outfile=/scratch/kocevski/365830/ft1_filteredMKT_4FGL_J0937.1+5008_daily_bin1158.fits ra=144.297 dec=50.1437 rad=12.0 tmin=539481601.0 tmax=539740801.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 5.29
user 5.03
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/365830/ft1_filtered_4FGL_J0937.1+5008_daily_bin1158.fits" evtable="EVENTS" scfile=/scratch/kocevski/365830/ft2_4FGL_J0937.1+5008_daily_bin1158.fits sctable="SC_DATA" outfile=/scratch/kocevski/365830/ltcube_539481601_539740801_4FGL_J0937.1+5008_daily_bin1158.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/365830/ft2_4FGL_J0937.1+5008_daily_bin1158.fits
.....................!
real 11.72
user 11.41
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/365830/ft1_filtered_4FGL_J0937.1+5008_daily_bin1158.fits evtable="EVENTS" scfile=/scratch/kocevski/365830/ft2_4FGL_J0937.1+5008_daily_bin1158.fits sctable="SC_DATA" expcube=/scratch/kocevski/365830/ltcube_539481601_539740801_4FGL_J0937.1+5008_daily_bin1158.fits outfile=/scratch/kocevski/365830/expmap_539481601_539740801_4FGL_J0937.1+5008_daily_bin1158.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/365830/ltcube_539481601_539740801_4FGL_J0937.1+5008_daily_bin1158.fits
.....................!
real 189.37
user 184.71
sys 4.28

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/365830/ft1_filtered_4FGL_J0937.1+5008_daily_bin1158.fits scfile=/scratch/kocevski/365830/ft2_4FGL_J0937.1+5008_daily_bin1158.fits outfile=/scratch/kocevski/365830/cmap_539481601_539740801_4FGL_J0937.1+5008_daily_bin1158.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.34
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/365830/ft1_filtered_4FGL_J0937.1+5008_daily_bin1158.fits scfile=/scratch/kocevski/365830/ft2_4FGL_J0937.1+5008_daily_bin1158.fits outfile=/scratch/kocevski/365830/cmap_HighResolution_539481601_539740801_4FGL_J0937.1+5008_daily_bin1158.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.55
user 0.35
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .22072E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.9788       1.0000         .10000E-03   10000.    
     6 'Prefactor '    16.275       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.1861       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .20736E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    6.7751       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12524E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    24.236       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.9665       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    82.599       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    22.142       1.0000         .10000E-03   10000.    
    22 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    135.41       1.0000         .10000E-03   10000.    
    25 'norm      '    1.5486       1.0000         .10000E-03   10000.    
    26 'norm      '    7.3968       1.0000         .10000E-03   10000.    
    27 'Prefactor '    5.0137       1.0000         .10000E-03   10000.    
    28 'Prefactor '    31.142       1.0000         .10000E-03   10000.    
    29 'norm      '    8.7126       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    2.5408       1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    33 'Normalizat'    .45752       1.0000         .10000E-01   10.000    
    34 'Prefactor '    1.2911       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=   2601.542     FROM MIGRAD    STATUS=CONVERGED    932 CALLS     4903 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.144       -.82415E-07** at limit **
   2  norm          .10000E-03    11.816       -.10495E-06** at limit **
   3  norm          .10000E-03    6.7153       -.15659E-05** at limit **
   4  Prefactor     .10000E-03    8.8950        .15913E-06** at limit **
   5  Prefactor     5.9770        6.0554        .23435E-05    .12615E-04
   6  Prefactor     16.278        35.770        .18120E-05    .95283E-04
   7  Prefactor     .10000E-03    205.78       -.10152E-03** at limit **
   8  Prefactor     .10000E-03    3.8201       -.81983E-07** at limit **
   9  Prefactor     .10000E-03    61.444       -.21811E-04** at limit **
  10  norm          3.1839        1.3184       -.13752E-06   -.17288E-02
  11  Prefactor     .10001E-03    5.4324        .72251E-06** at limit **
  12  norm          6.7651        14.360        .98379E-06    .50145E-04
  13  Prefactor     .10000E-03    3.4288        .92165E-06** at limit **
  14  Prefactor     24.235        21.132        .31620E-07    .51624E-04
  15  Prefactor     1.9665        7.2122       -.44908E-05   -.34981E-03
  16  Prefactor     .10000E-03    23.460        .44838E-05** at limit **
  17  Prefactor     .10000E-03    14.402       -.38367E-05** at limit **
  18  norm          .10000E-03    21.684       -.52569E-05** at limit **
  19  Prefactor     82.585        54.234       -.74269E-05   -.69042E-04
  20  Prefactor     .10000E-03    17.681       -.17474E-05** at limit **
  21  Prefactor     22.144        20.851        .15323E-06    .33932E-04
  22  norm          .10000E-03    15.711        .36364E-05** at limit **
  23  Prefactor     .10000E-03    69.855        .39901E-05** at limit **
  24  Prefactor     135.41        90.308       -.47303E-06    .79946E-05
  25  norm          1.5487        .99168        .48469E-07    .60863E-04
  26  norm          7.3957        18.593        .52236E-07   -.37080E-04
  27  Prefactor     5.0140        12.937       -.75987E-06   -.11885E-03
  28  Prefactor     31.147        54.260        .38452E-05   -.79306E-05
  29  norm          8.7128        4.8661        .10848E-06    .29855E-04
  30  Prefactor     .10000E-03    39.806        .60880E-05** at limit **
  31  norm          2.5409        2.7487        .58282E-08   -.17963E-04
  32  Prefactor     .10000E-03    138.52        .80817E-04** at limit **
  33  Normalizat    .45728        .31633        .17310E-05   -.34705E-04
  34  Prefactor     1.2913        .31104       -.73523E-06    .19263E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.97701
  Prefactor  = 16.2784
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.18385
  Prefactor  = 0.00010001
  norm       = 6.76508
  Prefactor  = 0.000100001
  Prefactor  = 24.2354
  Prefactor  = 1.96649
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 82.585
  Prefactor  = 0.0001
  Prefactor  = 22.1437
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 135.41
  norm       = 1.5487
  norm       = 7.39572
  Prefactor  = 5.014
  Prefactor  = 31.1468
  norm       = 8.71278
  Prefactor  = 0.0001
  norm       = 2.5409
  Prefactor  = 0.0001
  Normalizat = 0.457276
  Prefactor  = 1.29135
 **********
 **   18 **HESSE 
 **********

 FCN=   2601.542     FROM HESSE     STATUS=OK           730 CALLS     5633 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    68.766        .32068E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    12.054        .17103E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    6.7521        .12901E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.9050        .14857E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.9770        5.9884        .11179E-03   -1.5219    
   6  Prefactor     16.278        35.514        .99281E-04   -1.4901    
   7  Prefactor     .10000E-03    206.02        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.9250        .19427E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    61.485        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.1839        1.1342        .30316E-04   -1.5351    
  11  Prefactor     .10001E-03    15.400        .18818E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          6.7651        13.892        .15415E-03   -1.5188    
  13  Prefactor     .10000E-03    6.8168        .17613E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     24.235        21.077        .81367E-04   -1.4723    
  15  Prefactor     1.9665        7.0959        .22193E-03   -1.5427    
  16  Prefactor     .10000E-03    23.484        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    14.411        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    21.680        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     82.585        54.104        .44196E-04   -1.3888    
  20  Prefactor     .10000E-03    17.780        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     22.144        20.473        .85122E-04   -1.4766    
  22  norm          .10000E-03    15.745        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    70.006        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     135.41        90.032        .34610E-04   -1.3375    
  25  norm          1.5487        .99146        .38701E-04   -1.5459    
  26  norm          7.3957        18.541        .14747E-03   -1.5164    
  27  Prefactor     5.0140        12.800        .17959E-03   -1.5260    
  28  Prefactor     31.147        54.267        .71799E-04   -1.4591    
  29  norm          8.7128        4.8661        .81665E-04   -1.5118    
  30  Prefactor     .10000E-03    39.839        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          2.5409        2.7466        .85271E-04   -1.5389    
  32  Prefactor     .10000E-03    137.92        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    .45728        .34119        .34736E-03   -1.1444    
  34  Prefactor     1.2913        .34347        .24855E-03   -.83565    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.52537e-09
Minuit parameter uncertainties:
  1  0.00110913
  2  9.52444e-05
  3  1.53078e-05
  4  2.10967e-06
  5  5.989
  6  35.5598
  7  0.000758381
  8  1.4076e-05
  9  7.96316e-05
  10  1.13419
  11  0.000797261
  12  13.8987
  13  0.000128684
  14  21.0835
  15  7.09891
  16  4.48521e-05
  17  3.26237e-06
  18  0.000127637
  19  54.1359
  20  1.6005e-05
  21  20.4795
  22  3.75362e-06
  23  0.000386175
  24  90.1238
  25  0.991467
  26  18.5551
  27  12.8074
  28  54.3535
  29  4.86633
  30  6.98353e-07
  31  2.74678
  32  4.629e-05
  33  0.342761
  34  0.344077
Done.

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

Extracting fit parameters...

4FGL J0937.1+5008
   Spectrum: PowerLaw
357    Prefactor:  1.000e-04  4.485e-05  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.291e+00  3.441e-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:  4.573e-01  3.428e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/365830/likelihoodResults_539481601_539740801_4FGL_J0937.1+5008_daily_bin1158.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) = 2601.54194437
delta logL = -0.000202248647383

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2601.5417422
delta logL = -8.15102794149e-08

Fit tolerance = 1e-08

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

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

 FCN=   2601.542     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      238 TOTAL
                     EDM=   .41E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    52.346        .90712E-02** at limit **
   2  Index         2.4734        5.9476        .50000        .39873E-05
   3  Normalizat    .45728        .25549        .78438E-01    .21151E-04
   4  Prefactor     1.2913        .29742        .56216E-01    .36620E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.47341
  Normalizat = 0.457277
  Prefactor  = 1.29134
 **********
 **   18 **HESSE 
 **********

 FCN=   2601.542     FROM HESSE     STATUS=OK            33 CALLS      271 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4734        6.2364        .50000       -.52975    
   3  Normalizat    .45728        .28025        .34736E-03   -1.1444    
   4  Prefactor     1.2913        .32704        .24855E-03   -.83565    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.69445e-11
Minuit parameter uncertainties:
  1  5.59035e-06
  2  4.41891
  3  0.281116
  4  0.327564
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/365830': 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) = 2601.54174219
delta logL = -7.05899765308e-08

Extracting fit parameters...

4FGL J0937.1+5008
   Spectrum: PowerLaw
357    Prefactor:  1.000e-04  5.590e-06  1.000e-04  1.000e+04 ( 1.000e-13)
358        Index:  2.473e+00  4.419e+00  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.291e+00  3.276e-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:  4.573e-01  2.811e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 144.297 50.144

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/365830/cmap_HighResolution_539481601_539740801_4FGL_J0937.1+5008_daily_bin1158.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.09e-02', job_status='DONE', photon_flux_upper_limit='1.41e-07', time_completed='2021-08-31 19:15:59.765873', job_id='365830', GAL2='1.29', fit_tolerance='1e-08', EG2='0.46', EG='0.46', time_epoch_completed='1630462559.77', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.29', dlogl='-7.06e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='1158' AND source_name='4FGL J0937.1+5008' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 19:15:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0181>
Subject: Job 365830: <4FGL_J0937.1+5008_daily_bin1158> in cluster <slac> Done

Job <4FGL_J0937.1+5008_daily_bin1158> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Aug 31 19:00:49 2021
Job was executed on host(s) <bullet0181>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 19:00:50 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:00:50 2021
Terminated at Tue Aug 31 19:16:00 2021
Results reported at Tue Aug 31 19:16:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0937.1+5008_daily_bin1158 144.297 50.1437 539481601 539740801 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 :                                   679.12 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             264.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   910 sec.
    Turnaround time :                            911 sec.

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

