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


Performing analysis on: 4FGL_J0937.1+5008_daily_bin1280
RA = 144.297, Dec = 50.1437
tmin = 571104001, tmax = 571363201
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='367211', job_status='RUN', time_executed='2021-08-31 19:09:31.770293', time_epoch_executed='1630462171.77' WHERE source_name='4FGL J0937.1+5008' and cadence='daily' and bin_id='1280'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/367211

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/367211/ft1_4FGL_J0937.1+5008_daily_bin1280.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/367211/ft2_4FGL_J0937.1+5008_daily_bin1280.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/367211/ft1_4FGL_J0937.1+5008_daily_bin1280.fits outfile=/scratch/kocevski/367211/ft1_filteredMKT_4FGL_J0937.1+5008_daily_bin1280.fits ra=144.297 dec=50.1437 rad=12.0 tmin=571104001.0 tmax=571363201.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.03
user 2.79
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/367211/ft1_filtered_4FGL_J0937.1+5008_daily_bin1280.fits evtable="EVENTS" scfile=/scratch/kocevski/367211/ft2_4FGL_J0937.1+5008_daily_bin1280.fits sctable="SC_DATA" expcube=/scratch/kocevski/367211/ltcube_571104001_571363201_4FGL_J0937.1+5008_daily_bin1280.fits outfile=/scratch/kocevski/367211/expmap_571104001_571363201_4FGL_J0937.1+5008_daily_bin1280.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/367211/ltcube_571104001_571363201_4FGL_J0937.1+5008_daily_bin1280.fits
.....................!
real 190.11
user 185.27
sys 4.40

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/367211/ft1_filtered_4FGL_J0937.1+5008_daily_bin1280.fits scfile=/scratch/kocevski/367211/ft2_4FGL_J0937.1+5008_daily_bin1280.fits outfile=/scratch/kocevski/367211/cmap_571104001_571363201_4FGL_J0937.1+5008_daily_bin1280.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/367211/ft1_filtered_4FGL_J0937.1+5008_daily_bin1280.fits scfile=/scratch/kocevski/367211/ft2_4FGL_J0937.1+5008_daily_bin1280.fits outfile=/scratch/kocevski/367211/cmap_HighResolution_571104001_571363201_4FGL_J0937.1+5008_daily_bin1280.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.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .18116E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    14.235       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .15206E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .14564E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .22061E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    10 'norm      '    8.9505       1.0000         .10000E-03   10000.    
    11 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    12 'norm      '    9999.8       1.0000         .10000E-03   10000.    
    13 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .63874E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7848.5       1.0000         .10000E-03   10000.    
    16 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    18 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    19 'Prefactor '    9999.9       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    22 'norm      '    .10062E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    9999.5       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .13654E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .14918E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    63.215       1.0000         .10000E-03   10000.    
    33 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    34 'Prefactor '    .32962       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=   329.4079     FROM MIGRAD    STATUS=CONVERGED   1651 CALLS     6388 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.134        .69029E-03** at limit **
   2  norm          .10000E-03    152.02        .18142E-02** at limit **
   3  norm          13.551        52.311        .10616E-03   -.20301E-04
   4  Prefactor     .10000E-03    23.351        .85742E-03** at limit **
   5  Prefactor     .10000E-03    59.567        .13711E-02** at limit **
   6  Prefactor     .10000E-03    188.71        .18142E-02** at limit **
   7  Prefactor     .10000E-03    839.36        .18142E-02** at limit **
   8  Prefactor     .10002E-03    1506.5        .18142E-02** at limit **
   9  Prefactor    10000.0        8500.1        .18250E-02** at limit **
  10  norm          72.874        9563.1        .66986E-02    .37635E-06
  11  Prefactor    10000.0        9826.9        .18260E-01** at limit **
  12  norm         10000.0        6128.1        .19721E-02** at limit **
  13  Prefactor    10000.0        9257.0        .18292E-02** at limit **
  14  Prefactor     .10111E-03    6418.1        .21030E-02** at limit **
  15  Prefactor     7800.3        8043.7        .48670E-04    .54279E-05
  16  Prefactor    10000.0        7077.8        .18142E-02** at limit **
  17  Prefactor     .10000E-03    28.356        .94497E-03** at limit **
  18  norm         10000.0        5937.3        .20197E-02** at limit **
  19  Prefactor    10000.0        7302.5        .19013E-02** at limit **
  20  Prefactor     .10000E-03    13.458        .65085E-03** at limit **
  21  Prefactor    10000.0        1436.9        .18142E-02** at limit **
  22  norm          .10000E-03    208.78        .18142E-02** at limit **
  23  Prefactor    10000.0        6237.1        .22272E-02** at limit **
  24  Prefactor     .10000E-03    243.50        .18142E-02** at limit **
  25  norm          .10000E-03    2.7841        .29595E-03** at limit **
  26  norm          .10001E-03    669.69        .18142E-02** at limit **
  27  Prefactor     .10000E-03    122.97        .18142E-02** at limit **
  28  Prefactor     .10000E-03    456.21        .18142E-02** at limit **
  29  norm          .10000E-03    15.903        .70743E-03** at limit **
  30  Prefactor     .10000E-03    64.086        .14213E-02** at limit **
  31  norm          .10000E-03    2.0429        .25307E-03** at limit **
  32  Prefactor     63.213        359.13        .50471E-04    .37279E-05
  33  Normalizat    .10000E-01    .16708        .43476E-02** at limit **
  34  Prefactor     .32981        .25804        .21943E-03    .14669E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 13.5511
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100022
  Prefactor  = 10000
  norm       = 72.8741
  Prefactor  = 10000
  norm       = 10000
  Prefactor  = 10000
  Prefactor  = 0.000101107
  Prefactor  = 7800.26
  Prefactor  = 10000
  Prefactor  = 0.0001
  norm       = 10000
  Prefactor  = 10000
  Prefactor  = 0.0001
  Prefactor  = 10000
  norm       = 0.0001
  Prefactor  = 10000
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 63.2129
  Normalizat = 0.01
  Prefactor  = 0.329807
 **********
 **   18 **HESSE 
 **********

 FCN=   329.4079     FROM HESSE     STATUS=OK           704 CALLS     7092 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.134        .13806E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    152.02        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          13.551        51.348        .42463E-05   -1.4972    
   4  Prefactor     .10000E-03    23.351        .17148E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    59.567        .27421E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    188.71        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    839.36        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10002E-03    1506.5        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor    10000.0        8499.8        .36501E-03    1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          72.874        9677.6        .26794E-03   -1.3999    
  11  Prefactor    10000.0        9826.9        .36520E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm         10000.0        6095.4        .39442E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor    10000.0        9255.0        .36584E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10111E-03    6418.1        .42061E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7800.3        8021.2        .97341E-05    .59445    
  16  Prefactor    10000.0        7077.8        .36285E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    28.356        .18899E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm         10000.0        5964.0        .40395E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor    10000.0        7371.1        .38025E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    13.458        .13017E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor    10000.0        1436.5        .36285E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    208.78        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor    10000.0        6258.8        .44543E-01    1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    243.50        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    2.7841        .59190E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10001E-03    669.69        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    122.97        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    456.21        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    15.903        .14149E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    64.086        .28425E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .10000E-03    2.0429        .50613E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     63.213        359.21        .10094E-04   -1.4116    
  33  Normalizat    .10000E-01    .16710        .86951E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Prefactor     .32981        .25805        .87771E-05   -1.2056    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.31154e-09
Minuit parameter uncertainties:
  1  9.66274e-06
  2  0.000257652
  3  51.5166
  4  1.14875e-06
  5  8.13157e-05
  6  9.04229e-05
  7  0.00124238
  8  0.0119271
  9  44.8285
  10  3228.25
  11  0.320424
  12  0.963866
  13  0.136169
  14  0.118169
  15  5384.76
  16  0.00398545
  17  3.95346e-07
  18  0.788957
  19  0.994833
  20  8.35652e-08
  21  0.0253068
  22  7.74267e-05
  23  4.14791
  24  0.000290624
  25  3.55334e-08
  26  0.00427352
  27  0.000206651
  28  0.000813285
  29  1.89852e-06
  30  0.000123412
  31  5.70683e-08
  32  304.203
  33  9.90404e-08
  34  0.258954
Done.

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

Extracting fit parameters...

4FGL J0937.1+5008
   Spectrum: PowerLaw
357    Prefactor:  1.000e+04  3.985e-03  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:  3.298e-01  2.590e-01  0.000e+00  1.000e+01 ( 1.000e+00)
708        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
709        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
706   Normalization:  1.000e-02  9.904e-08  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.10
Ra Dec: 144.297 50.144
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 1.78e-05 +/- 7.09e-12
Energy Flux (Fixed Index): 5.86e-03 +/- 2.34e-09
calc_int error: parameter max 10000.0 is not large enough
delta logLike = 0.0

TS (Fixed Index): 2.10
Ra Dec: 144.297 50.144
Photon Flux Upper Limit: -1.00e+00 ph cm-2 s-1
Energy Flux Upper Limit: -7.73e+04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/367211/likelihoodResults_571104001_571363201_4FGL_J0937.1+5008_daily_bin1280.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) = 304.34173291
delta logL = 25.0661646402

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 304.340803567
delta logL = 25.0670939831

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Index     '    5.5427       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=   304.3408     FROM MIGRAD    STATUS=CONVERGED     14 CALLS       61 TOTAL
                     EDM=   .27E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1    Index       5.5427        .15304        .11867E-01    .53313E-05
                               ERR DEF=  .500    
Final values: 
  Index      = 5.54274
 **********
 **   18 **HESSE 
 **********

 FCN=   304.3408     FROM HESSE     STATUS=OK             7 CALLS       68 TOTAL
                     EDM=   .16E-17    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1    Index       5.5427        .15313        .52506E-04    .10876    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.56479e-18
Minuit parameter uncertainties:
  1  0.153151
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/367211': 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) = 304.340803558
delta logL = 25.0670939927

Extracting fit parameters...

4FGL J0937.1+5008
   Spectrum: PowerLaw
357    Prefactor:  1.000e+04  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13) fixed
358        Index:  5.543e+00  1.532e-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:  3.298e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
708        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
709        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
706   Normalization:  1.000e-02  0.000e+00  1.000e-02  1.000e+01 ( 1.000e+00) fixed


TS (Free Index): 52.24
Ra Dec: 144.297 50.144
Photon Index (Free Index): 5.54 +/- 0.15
Photon Flux (Free Index): 7.69e-03 +/- 2.43e-03
Energy Flux (Free Index): 9.83e-01 +/- 3.03e-01

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/367211/cmap_HighResolution_571104001_571363201_4FGL_J0937.1+5008_daily_bin1280.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='-7.73e+04', comment='SUCCESS', photon_flux='1.78e-05', energy_flux2='9.83e-01', photon_flux_error='7.09e-12', dlogl='2.51e+01', energy_flux='5.86e-03', photon_flux2='7.69e-03', job_status='DONE', time_completed='2021-08-31 19:16:48.693517', photon_index_error2='0.15', photon_index2='5.54', ts='2.10', fit_tolerance='1e-08', GAL='0.33', photon_index_error='0.00', photon_flux_upper_limit='-1.00e+00', energy_flux_error2='3.03e-01', EG='0.01', time_epoch_completed='1630462608.69', return_code='0', job_id='367211', GAL2='0.33', EG2='0.01', return_code2='0', energy_flux_error='2.34e-09', photon_flux_error2='2.43e-03', ts2='52.24', photon_index='2.40' WHERE bin_id='1280' AND source_name='4FGL J0937.1+5008' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 19:16:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0139>
Subject: Job 367211: <4FGL_J0937.1+5008_daily_bin1280> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0937.1+5008_daily_bin1280 144.297 50.1437 571104001 571363201 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 :                                   385.27 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             239.73 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.

