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


Performing analysis on: 4FGL_J0937.1+5008_daily_bin1474
RA = 144.297, Dec = 50.1437
tmin = 621388801, tmax = 621648001
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='368786', job_status='RUN', time_executed='2021-08-31 19:10:53.615244', time_epoch_executed='1630462253.62' WHERE source_name='4FGL J0937.1+5008' and cadence='daily' and bin_id='1474'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/368786

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/368786/ft1_4FGL_J0937.1+5008_daily_bin1474.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/368786/ft2_4FGL_J0937.1+5008_daily_bin1474.fits


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

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

Done.
real 3.32
user 3.04
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/368786/ft1_filtered_4FGL_J0937.1+5008_daily_bin1474.fits" evtable="EVENTS" scfile=/scratch/kocevski/368786/ft2_4FGL_J0937.1+5008_daily_bin1474.fits sctable="SC_DATA" outfile=/scratch/kocevski/368786/ltcube_621388801_621648001_4FGL_J0937.1+5008_daily_bin1474.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/368786/ft2_4FGL_J0937.1+5008_daily_bin1474.fits
.....................!
real 13.73
user 13.36
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/368786/ft1_filtered_4FGL_J0937.1+5008_daily_bin1474.fits evtable="EVENTS" scfile=/scratch/kocevski/368786/ft2_4FGL_J0937.1+5008_daily_bin1474.fits sctable="SC_DATA" expcube=/scratch/kocevski/368786/ltcube_621388801_621648001_4FGL_J0937.1+5008_daily_bin1474.fits outfile=/scratch/kocevski/368786/expmap_621388801_621648001_4FGL_J0937.1+5008_daily_bin1474.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/368786/ltcube_621388801_621648001_4FGL_J0937.1+5008_daily_bin1474.fits
.....................!
real 190.70
user 185.13
sys 5.14

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/368786/ft1_filtered_4FGL_J0937.1+5008_daily_bin1474.fits scfile=/scratch/kocevski/368786/ft2_4FGL_J0937.1+5008_daily_bin1474.fits outfile=/scratch/kocevski/368786/cmap_621388801_621648001_4FGL_J0937.1+5008_daily_bin1474.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.36
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .17922E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    9.9993       1.0000         .10000E-03   10000.    
     4 'Prefactor '    52.226       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.3697       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .16582E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.1024       1.0000         .10000E-03   10000.    
     9 'Prefactor '    55.529       1.0000         .10000E-03   10000.    
    10 'norm      '    .10044E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .17283E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .61034       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .19675E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.5505       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .21893E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    15.436       1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.018       1.0000         .10000E-03   10000.    
    22 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    28.441       1.0000         .10000E-03   10000.    
    25 'norm      '    .10886E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    50.837       1.0000         .10000E-03   10000.    
    27 'Prefactor '    8.8570       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    12.052       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    3.5302       1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    33 'Normalizat'    .72728       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .80517       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=   2324.701     FROM MIGRAD    STATUS=CONVERGED    949 CALLS     4924 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.2558        .97421E-07** at limit **
   2  norm          .10000E-03    5.5189       -.71208E-06** at limit **
   3  norm          10.002        7.7853       -.76337E-07    .23121E-03
   4  Prefactor     52.223        23.567       -.19549E-06    .80595E-04
   5  Prefactor     1.3707        2.4461       -.10735E-06    .77383E-04
   6  Prefactor     .10000E-03    171.97       -.48564E-05** at limit **
   7  Prefactor     .10000E-03    46.945       -.82151E-06** at limit **
   8  Prefactor     9.1074        6.5670        .20732E-06    .83868E-04
   9  Prefactor     55.486        49.627       -.13565E-05   -.57934E-04
  10  norm          .10000E-03    .82812        .52187E-06** at limit **
  11  Prefactor     .10000E-03    14.271        .23723E-05** at limit **
  12  norm          .74433        38.684        .28759E-05   -.26761E-04
  13  Prefactor     .10000E-03    2.5486       -.27420E-07** at limit **
  14  Prefactor     .10000E-03    66.350       -.40903E-05** at limit **
  15  Prefactor     5.5485        7.9975       -.26453E-07   -.18192E-03
  16  Prefactor     .10000E-03    103.50       -.80412E-06** at limit **
  17  Prefactor     .10000E-03    17.656       -.69157E-06** at limit **
  18  norm          .10000E-03    12.451       -.17888E-06** at limit **
  19  Prefactor     .10000E-03    26.689       -.35281E-06** at limit **
  20  Prefactor     15.434        15.742        .32378E-06    .24434E-04
  21  Prefactor     11.017        12.222        .25583E-06    .10646E-04
  22  norm          .10000E-03    8.9302        .24930E-07** at limit **
  23  Prefactor     .10000E-03    32.132        .67034E-06** at limit **
  24  Prefactor     28.307        75.079       -.51890E-05   -.68358E-04
  25  norm          .10000E-03    1.8312        .69401E-06** at limit **
  26  norm          50.833        42.628       -.14454E-08    .24753E-04
  27  Prefactor     8.8523        14.877        .10898E-06    .17935E-05
  28  Prefactor     .10000E-03    29.157        .34928E-06** at limit **
  29  norm          12.051        12.654       -.42603E-07   -.10260E-05
  30  Prefactor     .10000E-03    53.348       -.88919E-06** at limit **
  31  norm          3.5301        3.4177       -.17026E-07    .11148E-05
  32  Prefactor     .10000E-03    135.26        .12833E-05** at limit **
  33  Normalizat    .72731        .27367        .29265E-06    .13608E-03
  34  Prefactor     .80532        .25414        .18759E-05    .15020E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 10.0022
  Prefactor  = 52.2229
  Prefactor  = 1.37067
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 9.10738
  Prefactor  = 55.4863
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.744335
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 5.54852
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.4344
  Prefactor  = 11.0167
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.3073
  norm       = 0.000100001
  norm       = 50.8329
  Prefactor  = 8.85227
  Prefactor  = 0.0001
  norm       = 12.0509
  Prefactor  = 0.0001
  norm       = 3.53013
  Prefactor  = 0.0001
  Normalizat = 0.727311
  Prefactor  = 0.805316
 **********
 **   18 **HESSE 
 **********

 FCN=   2324.701     FROM HESSE     STATUS=OK           732 CALLS     5656 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.2783        .97092E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    9.6717        .21337E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          10.002        7.7416        .11188E-03   -1.5075    
   4  Prefactor     52.223        23.523        .55497E-04   -1.4261    
   5  Prefactor     1.3707        2.3935        .95853E-04   -1.5474    
   6  Prefactor     .10000E-03    179.80        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    46.990        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.1074        6.5173        .93723E-04   -1.5104    
   9  Prefactor     55.486        50.095        .26915E-03   -1.4217    
  10  norm          .10000E-03    1.2647        .73047E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    15.839        .16369E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .74433        137.03        .45286E-02   -1.5535    
  13  Prefactor     .10000E-03    2.5701        .74946E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    70.004        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.5485        8.0970        .75843E-03   -1.5237    
  16  Prefactor     .10000E-03    104.13        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    17.688        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    12.452        .16620E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    26.712        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     15.434        15.723        .10194E-03   -1.4922    
  21  Prefactor     11.017        12.207        .12069E-03   -1.5044    
  22  norm          .10000E-03    8.9313        .14074E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    32.149        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     28.307        76.873        .75123E-04   -1.4643    
  25  norm          .10000E-03    2.6229        .10891E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          50.833        42.621        .56247E-04   -1.4281    
  27  Prefactor     8.8523        14.874        .13468E-03   -1.5113    
  28  Prefactor     .10000E-03    29.159        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          12.051        12.651        .11539E-03   -1.5014    
  30  Prefactor     .10000E-03    53.377        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          3.5301        3.4130        .85583E-04   -1.5332    
  32  Prefactor     .10000E-03    135.29        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    .72731        .29753        .25162E-03   -1.0282    
  34  Prefactor     .80532        .27912        .24700E-03   -.99533    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.47738e-08
Minuit parameter uncertainties:
  1  1.10001e-06
  2  8.21503e-05
  3  7.74238
  4  23.5272
  5  2.39368
  6  0.00127896
  7  0.000112523
  8  6.51785
  9  50.1326
  10  3.11028e-05
  11  0.00014344
  12  20.2446
  13  4.07923e-06
  14  0.000881684
  15  8.09863
  16  0.00042408
  17  6.48854e-05
  18  1.30383e-05
  19  4.49664e-05
  20  15.7276
  21  12.2098
  22  8.12134e-06
  23  6.22186e-05
  24  77.1439
  25  0.000115993
  26  42.6463
  27  14.8798
  28  3.38732e-05
  29  12.6536
  30  0.000121027
  31  3.41319
  32  0.000265082
  33  0.298196
  34  0.279612
Done.

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

Extracting fit parameters...

4FGL J0937.1+5008
   Spectrum: PowerLaw
357    Prefactor:  1.000e-04  4.241e-04  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:  8.053e-01  2.796e-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:  7.273e-01  2.982e-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.94e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.50e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/368786/likelihoodResults_621388801_621648001_4FGL_J0937.1+5008_daily_bin1474.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2324.70135813
delta logL = -4.56341695099e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2324.7013126
delta logL = -1.13042915473e-07

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 'Index     '    2.3550       1.0000          .0000       10.000    
     3 'Normalizat'    .72731       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80532       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=   2324.701     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      275 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10005E-03    8450.2        .18142E-02** at limit **
   2  Index         2.4636        6.1471        .50000       -.13853E-04
   3  Normalizat    .72731        .49836E-01    .25161E-03    .13555E-04
   4  Prefactor     .80531        .51619E-01    .24701E-03   -.89749E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100052
  Index      = 2.46364
  Normalizat = 0.727311
  Prefactor  = 0.805315
 **********
 **   18 **HESSE 
 **********

 FCN=   2324.701     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      304 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10005E-03    9748.2        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4636        6.1268        .50000       -.53202    
   3  Normalizat    .72731        .12884        .10064E-04   -1.0282    
   4  Prefactor     .80531        .13346        .98804E-05   -.99533    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.36725e-09
Minuit parameter uncertainties:
  1  0.0815726
  2  59.8768
  3  0.128893
  4  0.13351
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/368786': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2324.70131229
delta logL = 1.99329406314e-07

Extracting fit parameters...

4FGL J0937.1+5008
   Spectrum: PowerLaw
357    Prefactor:  1.001e-04  8.157e-02  1.000e-04  1.000e+04 ( 1.000e-13)
358        Index:  2.464e+00  5.988e+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:  8.053e-01  1.335e-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:  7.273e-01  1.289e-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/368786/cmap_HighResolution_621388801_621648001_4FGL_J0937.1+5008_daily_bin1474.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.50e-02', job_status='DONE', photon_flux_upper_limit='1.94e-07', time_completed='2021-08-31 19:21:51.979503', job_id='368786', GAL2='0.81', fit_tolerance='1e-08', EG2='0.73', EG='0.73', time_epoch_completed='1630462911.98', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='1.99e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='1474' AND source_name='4FGL J0937.1+5008' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 19:21:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0256>
Subject: Job 368786: <4FGL_J0937.1+5008_daily_bin1474> in cluster <slac> Done

Job <4FGL_J0937.1+5008_daily_bin1474> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Aug 31 19:10:31 2021
Job was executed on host(s) <bullet0256>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 19:10:33 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:33 2021
Terminated at Tue Aug 31 19:21:52 2021
Results reported at Tue Aug 31 19:21:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0937.1+5008_daily_bin1474 144.297 50.1437 621388801 621648001 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 :                                   644.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             365.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   679 sec.
    Turnaround time :                            681 sec.

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

