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


Performing analysis on: 4FGL_J0937.1+5008_daily_bin1202
RA = 144.297, Dec = 50.1437
tmin = 550886401, tmax = 551145601
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='365892', job_status='RUN', time_executed='2021-08-31 19:04:50.453788', time_epoch_executed='1630461890.45' WHERE source_name='4FGL J0937.1+5008' and cadence='daily' and bin_id='1202'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/365892

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/365892/ft1_4FGL_J0937.1+5008_daily_bin1202.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/365892/ft2_4FGL_J0937.1+5008_daily_bin1202.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/365892/ft1_4FGL_J0937.1+5008_daily_bin1202.fits outfile=/scratch/kocevski/365892/ft1_filteredMKT_4FGL_J0937.1+5008_daily_bin1202.fits ra=144.297 dec=50.1437 rad=12.0 tmin=550886401.0 tmax=551145601.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.79
user 3.56
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/365892/ft2_4FGL_J0937.1+5008_daily_bin1202.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/365892/ft1_filteredMKT_4FGL_J0937.1+5008_daily_bin1202.fits evtable="EVENTS" outfile="/scratch/kocevski/365892/ft1_filtered_4FGL_J0937.1+5008_daily_bin1202.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/365892/ft1_filtered_4FGL_J0937.1+5008_daily_bin1202.fits" evtable="EVENTS" scfile=/scratch/kocevski/365892/ft2_4FGL_J0937.1+5008_daily_bin1202.fits sctable="SC_DATA" outfile=/scratch/kocevski/365892/ltcube_550886401_551145601_4FGL_J0937.1+5008_daily_bin1202.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/365892/ft2_4FGL_J0937.1+5008_daily_bin1202.fits
.....................!
real 11.91
user 11.51
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/365892/ft1_filtered_4FGL_J0937.1+5008_daily_bin1202.fits evtable="EVENTS" scfile=/scratch/kocevski/365892/ft2_4FGL_J0937.1+5008_daily_bin1202.fits sctable="SC_DATA" expcube=/scratch/kocevski/365892/ltcube_550886401_551145601_4FGL_J0937.1+5008_daily_bin1202.fits outfile=/scratch/kocevski/365892/expmap_550886401_551145601_4FGL_J0937.1+5008_daily_bin1202.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/365892/ltcube_550886401_551145601_4FGL_J0937.1+5008_daily_bin1202.fits
.....................!
real 189.84
user 185.42
sys 4.01

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/365892/ft1_filtered_4FGL_J0937.1+5008_daily_bin1202.fits scfile=/scratch/kocevski/365892/ft2_4FGL_J0937.1+5008_daily_bin1202.fits outfile=/scratch/kocevski/365892/cmap_550886401_551145601_4FGL_J0937.1+5008_daily_bin1202.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=144.297 yref=50.1437 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14079E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.6200       1.0000         .10000E-03   10000.    
     3 'norm      '    10.357       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.1736       1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .98377       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.082       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.0592       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10147E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .11600E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .23493E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    3.2960       1.0000         .10000E-03   10000.    
    28 'Prefactor '    16.685       1.0000         .10000E-03   10000.    
    29 'norm      '    5.4825       1.0000         .10000E-03   10000.    
    30 'Prefactor '    113.54       1.0000         .10000E-03   10000.    
    31 'norm      '    7.6691       1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    33 'Normalizat'    .68116       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .89507       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=   1749.953     FROM MIGRAD    STATUS=CONVERGED    925 CALLS     4788 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    83.503       -.13925E-05** at limit **
   2  norm          3.6260        15.033        .54832E-06   -.28768E-04
   3  norm          10.356        17.668       -.69433E-06    .16887E-03
   4  Prefactor     .10000E-03    19.090        .43216E-08** at limit **
   5  Prefactor     .10000E-03    2.8001        .15742E-06** at limit **
   6  Prefactor     .10000E-03    46.352       -.52334E-06** at limit **
   7  Prefactor     .10000E-03    46.383       -.48397E-06** at limit **
   8  Prefactor     .10000E-03    1.7903        .43337E-07** at limit **
   9  Prefactor     .10000E-03    12.191        .58287E-07** at limit **
  10  norm          .10000E-03    1.3152        .18734E-05** at limit **
  11  Prefactor     8.1713        5.7729       -.20141E-05   -.86987E-03
  12  norm          .10000E-03    8.0763       -.62976E-07** at limit **
  13  Prefactor     .98449        2.9241        .41422E-06   -.38342E-03
  14  Prefactor     .10000E-03    8.8392        .89714E-07** at limit **
  15  Prefactor     10.083        8.4104        .33416E-07   -.39296E-04
  16  Prefactor     .10000E-03    15.902        .14174E-06** at limit **
  17  Prefactor     .10000E-03    16.762       -.14046E-06** at limit **
  18  norm          .10000E-03    10.071       -.14093E-06** at limit **
  19  Prefactor     .10000E-03    15.974        .13287E-06** at limit **
  20  Prefactor     2.0440        27.325        .47074E-07    .11545E-05
  21  Prefactor     .10000E-03    9.3746        .87067E-07** at limit **
  22  norm          .10000E-03    42.161        .92394E-06** at limit **
  23  Prefactor     .10000E-03    16.464       -.38085E-07** at limit **
  24  Prefactor     .10001E-03    223.71       -.38485E-05** at limit **
  25  norm          .10000E-03    .33927       -.76729E-07** at limit **
  26  norm          .10000E-03    125.47        .40216E-05** at limit **
  27  Prefactor     3.2921        8.2608        .41752E-06   -.20130E-03
  28  Prefactor     16.690        62.525        .35044E-06   -.36174E-05
  29  norm          5.4822        4.6108        .25951E-07   -.86401E-04
  30  Prefactor     113.51        97.898       -.89601E-06   -.58786E-04
  31  norm          7.6704        5.6594        .70684E-07    .90462E-04
  32  Prefactor     .10000E-03    101.10        .72045E-06** at limit **
  33  Normalizat    .68079        .30847        .87207E-06   -.14801E-03
  34  Prefactor     .89502        .30794       -.10010E-05   -.91947E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 3.62603
  norm       = 10.3558
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100002
  Prefactor  = 8.17131
  norm       = 0.0001
  Prefactor  = 0.984492
  Prefactor  = 0.0001
  Prefactor  = 10.0832
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.04397
  Prefactor  = 0.0001
  norm       = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.000100012
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 3.29214
  Prefactor  = 16.6904
  norm       = 5.48216
  Prefactor  = 113.51
  norm       = 7.67044
  Prefactor  = 0.000100001
  Normalizat = 0.680792
  Prefactor  = 0.895016
 **********
 **   18 **HESSE 
 **********

 FCN=   1749.953     FROM HESSE     STATUS=OK           724 CALLS     5512 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    85.743        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.6260        14.687        .21235E-03   -1.5327    
   3  norm          10.356        17.347        .12450E-03   -1.5064    
   4  Prefactor     .10000E-03    19.123        .17855E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.8181        .68328E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    46.415        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    46.387        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.7940        .54647E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    12.197        .14268E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    2.4175        .84659E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.1713        6.2613        .82115E-04   -1.5136    
  12  norm          .10000E-03    8.1302        .11609E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .98449        2.7014        .11579E-02   -1.5510    
  14  Prefactor     .10000E-03    8.8481        .12148E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     10.083        8.4361        .10433E-03   -1.5073    
  16  Prefactor     .10000E-03    15.910        .16296E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    16.761        .16726E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    10.074        .12969E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    15.979        .16333E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.0440        27.347        .28799E-03   -1.5422    
  21  Prefactor     .10000E-03    9.4443        .12498E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    42.619        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    16.468        .16583E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10001E-03    223.86        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    .34107        .23747E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    128.62        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     3.2921        8.2575        .18031E-03   -1.5345    
  28  Prefactor     16.690        62.941        .98051E-04   -1.4891    
  29  norm          5.4822        4.6092        .79938E-04   -1.5240    
  30  Prefactor     113.51        98.399        .18877E-03   -1.3573    
  31  norm          7.6704        5.6567        .80301E-04   -1.5154    
  32  Prefactor     .10000E-03    101.12        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    .68079        .35706        .24771E-03   -1.0466    
  34  Prefactor     .89502        .35638        .24345E-03   -.96315    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.38096e-09
Minuit parameter uncertainties:
  1  0.000248594
  2  14.6015
  3  17.3556
  4  3.14221e-05
  5  2.97274e-06
  6  0.000277251
  7  0.000336043
  8  1.6546e-06
  9  1.92519e-05
  10  0.000126051
  11  6.26178
  12  1.46091e-05
  13  2.70177
  14  1.17135e-05
  15  8.43712
  16  3.27569e-05
  17  5.04966e-05
  18  5.15964e-05
  19  1.99076e-05
  20  14.9608
  21  5.48466e-05
  22  0.000590588
  23  3.22013e-05
  24  0.00324543
  25  3.97392e-06
  26  0.000455652
  27  8.26036
  28  63.1929
  29  4.60954
  30  98.541
  31  5.65714
  32  0.00074238
  33  0.358286
  34  0.357316
Done.

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

Extracting fit parameters...

4FGL J0937.1+5008
   Spectrum: PowerLaw
357    Prefactor:  1.000e-04  3.276e-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:  8.950e-01  3.573e-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:  6.808e-01  3.583e-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.33e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.03e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/365892/likelihoodResults_550886401_551145601_4FGL_J0937.1+5008_daily_bin1202.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) = 1749.95309665
delta logL = -0.000296876917673

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1749.9528035
delta logL = -3.72429030904e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.3127       1.0000          .0000       10.000    
     3 'Normalizat'    .68075       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89505       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=   1749.953     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      257 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    7.4841        .11156E-02** at limit **
   2  Index         3.2874        6.5828        .50000        .32620E-04
   3  Normalizat    .68079        .29977        .24771E-03   -.49331E-03
   4  Prefactor     .89501        .33647        .24345E-03   -.53945E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100011
  Index      = 3.28736
  Normalizat = 0.680793
  Prefactor  = 0.895011
 **********
 **   18 **HESSE 
 **********

 FCN=   1749.953     FROM HESSE     STATUS=OK            29 CALLS      286 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    7.4860        .22312E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.2874        6.5828        .50000       -.34961    
   3  Normalizat    .68079        .29997        .49543E-04   -1.0466    
   4  Prefactor     .89501        .33670        .48690E-04   -.96316    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.5638e-09
Minuit parameter uncertainties:
  1  0.000565029
  2  4.69803
  3  0.300697
  4  0.33749
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/365892': 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) = 1749.95280329
delta logL = -3.51898779627e-06

Extracting fit parameters...

4FGL J0937.1+5008
   Spectrum: PowerLaw
357    Prefactor:  1.000e-04  5.650e-04  1.000e-04  1.000e+04 ( 1.000e-13)
358        Index:  3.287e+00  4.698e+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:  8.950e-01  3.375e-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:  6.808e-01  3.007e-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/365892/cmap_HighResolution_550886401_551145601_4FGL_J0937.1+5008_daily_bin1202.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.03e-02', job_status='DONE', photon_flux_upper_limit='1.33e-07', time_completed='2021-08-31 19:15:26.424593', job_id='365892', GAL2='0.90', fit_tolerance='1e-08', EG2='0.68', EG='0.68', time_epoch_completed='1630462526.42', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='-3.52e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='1202' AND source_name='4FGL J0937.1+5008' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 19:15:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0024>
Subject: Job 365892: <4FGL_J0937.1+5008_daily_bin1202> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0937.1+5008_daily_bin1202 144.297 50.1437 550886401 551145601 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 :                                   549.30 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             233.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   872 sec.
    Turnaround time :                            873 sec.

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

