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


Performing analysis on: 4FGL_J0937.1+5008_daily_bin2
RA = 144.297, Dec = 50.1437
tmin = 239846401, tmax = 240105601
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='354730', job_status='RUN', time_executed='2021-08-31 18:25:58.749425', time_epoch_executed='1630459558.75' WHERE source_name='4FGL J0937.1+5008' and cadence='daily' and bin_id='2'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/354730

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/354730/ft1_4FGL_J0937.1+5008_daily_bin2.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/354730/ft2_4FGL_J0937.1+5008_daily_bin2.fits


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

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

Done.
real 1.18
user 1.01
sys 0.15

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/354730/ft2_4FGL_J0937.1+5008_daily_bin2.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/354730/ft1_filteredMKT_4FGL_J0937.1+5008_daily_bin2.fits evtable="EVENTS" outfile="/scratch/kocevski/354730/ft1_filtered_4FGL_J0937.1+5008_daily_bin2.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.42
user 0.28
sys 0.13

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/354730/ft1_filtered_4FGL_J0937.1+5008_daily_bin2.fits evtable="EVENTS" scfile=/scratch/kocevski/354730/ft2_4FGL_J0937.1+5008_daily_bin2.fits sctable="SC_DATA" expcube=/scratch/kocevski/354730/ltcube_239846401_240105601_4FGL_J0937.1+5008_daily_bin2.fits outfile=/scratch/kocevski/354730/expmap_239846401_240105601_4FGL_J0937.1+5008_daily_bin2.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/354730/ltcube_239846401_240105601_4FGL_J0937.1+5008_daily_bin2.fits
.....................!
real 149.26
user 145.70
sys 3.24

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/354730/ft1_filtered_4FGL_J0937.1+5008_daily_bin2.fits scfile=/scratch/kocevski/354730/ft2_4FGL_J0937.1+5008_daily_bin2.fits outfile=/scratch/kocevski/354730/cmap_239846401_240105601_4FGL_J0937.1+5008_daily_bin2.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.46
user 0.31
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/354730/ft1_filtered_4FGL_J0937.1+5008_daily_bin2.fits scfile=/scratch/kocevski/354730/ft2_4FGL_J0937.1+5008_daily_bin2.fits outfile=/scratch/kocevski/354730/cmap_HighResolution_239846401_240105601_4FGL_J0937.1+5008_daily_bin2.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.45
user 0.30
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    12.218       1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10682E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .53642E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .15605E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .21578       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12417E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    8.8039       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.9263       1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.2735       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10532E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.7544       1.0000         .10000E-03   10000.    
    18 'norm      '    .10328E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    23.635       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.0905       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    2.6073       1.0000         .10000E-03   10000.    
    23 'Prefactor '    17.490       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .80771E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    1.5038       1.0000         .10000E-03   10000.    
    26 'norm      '    1.0630       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    87.978       1.0000         .10000E-03   10000.    
    29 'norm      '    14.002       1.0000         .10000E-03   10000.    
    30 'Prefactor '    64.895       1.0000         .10000E-03   10000.    
    31 'norm      '    .33635       1.0000         .10000E-03   10000.    
    32 'Prefactor '    158.47       1.0000         .10000E-03   10000.    
    33 'Normalizat'    .90786       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .95041       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=   6049.200     FROM MIGRAD    STATUS=CONVERGED    999 CALLS     4996 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.091       -.59686E-06** at limit **
   2  norm          12.221        6.2917        .97589E-06    .41751E-03
   3  norm          .10000E-03    2.4866       -.42721E-07** at limit **
   4  Prefactor     .10001E-03    7.9114        .37570E-06** at limit **
   5  Prefactor     .10000E-03    .69716       -.57102E-08** at limit **
   6  Prefactor     .10018E-03    16.754       -.86028E-06** at limit **
   7  Prefactor     .10000E-03    22.615        .29140E-06** at limit **
   8  Prefactor     .10000E-03    1.9971        .20253E-06** at limit **
   9  Prefactor     .10000E-03    9.7474        .10973E-05** at limit **
  10  norm          .21571        .40968        .57642E-07    .59072E-03
  11  Prefactor     .10000E-03    1.3040       -.24401E-06** at limit **
  12  norm          8.8042        10.020       -.56696E-06   -.74672E-04
  13  Prefactor     2.9251        2.5714       -.65468E-07   -.90821E-04
  14  Prefactor     9.2754        7.8369       -.35233E-07    .87531E-04
  15  Prefactor     .10000E-03    1.7444        .56879E-07** at limit **
  16  Prefactor     .10000E-03    7.0199       -.19661E-06** at limit **
  17  Prefactor     5.7630        11.204        .43216E-05    .12850E-03
  18  norm          .10000E-03    8.1129        .20365E-06** at limit **
  19  Prefactor     23.638        23.573       -.87036E-06    .60580E-04
  20  Prefactor     4.0661        11.430       -.52265E-05   -.21240E-03
  21  Prefactor     .10000E-03    2.5476        .45701E-08** at limit **
  22  norm          2.5907        4.1542        .20903E-05   -.20947E-02
  23  Prefactor     17.472        40.635        .85941E-05    .11407E-03
  24  Prefactor     .10000E-03    27.618       -.20681E-06** at limit **
  25  norm          1.5035        .53306       -.49224E-07    .41021E-04
  26  norm          1.0599        10.132       -.27167E-05    .41544E-03
  27  Prefactor     .10000E-03    1.3458       -.43353E-07** at limit **
  28  Prefactor     87.978        47.777       -.36565E-05   -.83238E-04
  29  norm          14.002        4.4335        .58479E-07    .35357E-03
  30  Prefactor     64.879        34.808        .44057E-05    .24925E-03
  31  norm          .33721        1.0475       -.46971E-07   -.52368E-03
  32  Prefactor     158.47        120.71       -.21459E-05   -.14639E-04
  33  Normalizat    .90774        .18530        .62088E-06    .33385E-03
  34  Prefactor     .95053        .18630       -.25622E-06    .25459E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 12.2207
  norm       = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 0.00010018
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.215705
  Prefactor  = 0.000100002
  norm       = 8.80417
  Prefactor  = 2.9251
  Prefactor  = 9.27535
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 5.76299
  norm       = 0.0001
  Prefactor  = 23.6376
  Prefactor  = 4.0661
  Prefactor  = 0.0001
  norm       = 2.59069
  Prefactor  = 17.4717
  Prefactor  = 0.000100003
  norm       = 1.50352
  norm       = 1.05988
  Prefactor  = 0.0001
  Prefactor  = 87.9782
  norm       = 14.0021
  Prefactor  = 64.8788
  norm       = 0.337212
  Prefactor  = 158.465
  Normalizat = 0.907742
  Prefactor  = 0.950528
 **********
 **   18 **HESSE 
 **********

 FCN=   6049.200     FROM HESSE     STATUS=OK           750 CALLS     5746 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.313        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          12.221        6.2964        .11460E-03   -1.5009    
   3  norm          .10000E-03    2.5024        .11971E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10001E-03    37.122        .41683E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    .70318        .63380E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10018E-03    23.041        .87101E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    22.620        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.3909        .20622E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.7534        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .21571        .31890        .54349E-03   -1.5615    
  11  Prefactor     .10000E-03    9.6151        .14119E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          8.8042        9.9827        .13509E-03   -1.5114    
  13  Prefactor     2.9251        2.5000        .10390E-03   -1.5366    
  14  Prefactor     9.2754        7.8023        .13161E-03   -1.5099    
  15  Prefactor     .10000E-03    13.673        .19418E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.0377        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.7630        11.232        .16743E-03   -1.5228    
  18  norm          .10000E-03    8.1176        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     23.638        23.520        .82395E-04   -1.4735    
  20  Prefactor     4.0661        11.342        .19934E-03   -1.5305    
  21  Prefactor     .10000E-03    2.5662        .12113E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.5907        7.0788        .12632E-02   -1.5386    
  23  Prefactor     17.472        40.695        .95770E-04   -1.4872    
  24  Prefactor     .10000E-03    199.67        .75407E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          1.5035        .53403        .32495E-04   -1.5463    
  26  norm          1.0599        32.359        .45237E-02   -1.5502    
  27  Prefactor     .10000E-03    1.3478        .88095E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     87.978        48.058        .42835E-04   -1.3829    
  29  norm          14.002        4.4286        .88306E-04   -1.4959    
  30  Prefactor     64.879        34.943        .49818E-04   -1.4095    
  31  norm          .33721        1.1383        .13646E-02   -1.5592    
  32  Prefactor     158.47        120.76        .32030E-04   -1.3184    
  33  Normalizat    .90774        .20989        .24291E-03   -.96189    
  34  Prefactor     .95053        .21506        .26966E-03   -.94397    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.22784e-08
Minuit parameter uncertainties:
  1  3.58117e-05
  2  6.29674
  3  7.1346e-06
  4  0.00109293
  5  2.14765e-06
  6  0.00407526
  7  4.44309e-07
  8  5.76202e-05
  9  3.80834e-05
  10  0.318899
  11  0.000250199
  12  9.98455
  13  2.50007
  14  7.80317
  15  0.00029896
  16  3.22834e-06
  17  11.2359
  18  6.23913e-06
  19  23.5291
  20  11.3482
  21  1.31809e-06
  22  7.08108
  23  40.7596
  24  0.0014868
  25  0.534028
  26  11.7191
  27  3.40663e-08
  28  48.0791
  29  4.42867
  30  34.9544
  31  1.13841
  32  120.951
  33  0.210081
  34  0.215248
Done.

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

Extracting fit parameters...

4FGL J0937.1+5008
   Spectrum: PowerLaw
357    Prefactor:  1.000e-04  3.228e-06  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:  9.505e-01  2.152e-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:  9.077e-01  2.101e-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: 5.05e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.90e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/354730/likelihoodResults_239846401_240105601_4FGL_J0937.1+5008_daily_bin2.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) = 6049.20109825
delta logL = -0.000676737713547

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6049.20042159
delta logL = -7.89932528278e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10235E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3764       1.0000          .0000       10.000    
     3 'Normalizat'    .90771       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95058       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=   6049.200     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      236 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10244E-03    6.5947        .18142E-01** at limit **
   2  Index         2.2875        7.6453        .50000        .18472E-04
   3  Normalizat    .90774        .38179E-02    .24291E-03    .36412E-04
   4  Prefactor     .95053        .43513E-02    .26966E-03    .26898E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102436
  Index      = 2.28745
  Normalizat = 0.907741
  Prefactor  = 0.950528
 **********
 **   18 **HESSE 
 **********

 FCN=   6049.200     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      265 TOTAL
                     EDM=   .82E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10244E-03    89.971        .20864E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2875        8.0934        .50000       -.57342    
   3  Normalizat    .90774        .14200E-01    .97165E-05   -.96189    
   4  Prefactor     .95053        .16184E-01    .10786E-04   -.94397    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.18632e-09
Minuit parameter uncertainties:
  1  0.0296504
  2  436.269
  3  0.0142004
  4  0.0161843
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/354730': 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) = 6049.20042112
delta logL = 3.92104993807e-07

Extracting fit parameters...

4FGL J0937.1+5008
   Spectrum: PowerLaw
357    Prefactor:  1.024e-04  2.965e-02  1.000e-04  1.000e+04 ( 1.000e-13)
358        Index:  2.287e+00  4.363e+02  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:  9.505e-01  1.618e-02  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:  9.077e-01  1.420e-02  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/354730/cmap_HighResolution_239846401_240105601_4FGL_J0937.1+5008_daily_bin2.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.90e-03', job_status='DONE', photon_flux_upper_limit='5.05e-08', time_completed='2021-08-31 18:40:06.917986', job_id='354730', GAL2='0.95', fit_tolerance='1e-08', EG2='0.91', EG='0.91', time_epoch_completed='1630460406.92', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='3.92e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='2' AND source_name='4FGL J0937.1+5008' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 18:40:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 354730: <4FGL_J0937.1+5008_daily_bin2> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0937.1+5008_daily_bin2 144.297 50.1437 239846401 240105601 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 :                                   846.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             339.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   873 sec.
    Turnaround time :                            874 sec.

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

