aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 52 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 = 74112
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0937.1+5008_monthly_bin169
RA = 144.297, Dec = 50.1437
tmin = 675043201, tmax = 677635201
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='164286', job_status='RUN', time_executed='2022-06-23 02:04:01.534944', time_epoch_executed='1655975041.53' WHERE source_name='4FGL J0937.1+5008' and cadence='monthly' and bin_id='169'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/164286

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

Retrieving the FT1 file...

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

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

Retrieving 456 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/164286/ft1_4FGL_J0937.1+5008_monthly_bin169.fits


Retrieving the FT1 file...

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

Retrieving 456 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/164286/ft2_4FGL_J0937.1+5008_monthly_bin169.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/164286/ft1_4FGL_J0937.1+5008_monthly_bin169.fits outfile=/scratch/kocevski/164286/ft1_filteredMKT_4FGL_J0937.1+5008_monthly_bin169.fits ra=144.297 dec=50.1437 rad=12.0 tmin=675043201.0 tmax=677635201.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 27.76
user 27.00
sys 0.68

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/164286/ft2_4FGL_J0937.1+5008_monthly_bin169.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/164286/ft1_filteredMKT_4FGL_J0937.1+5008_monthly_bin169.fits evtable="EVENTS" outfile="/scratch/kocevski/164286/ft1_filtered_4FGL_J0937.1+5008_monthly_bin169.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.84
user 0.65
sys 0.18

Number of photons that the gtmktime cut: 6539

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/164286/ft1_filtered_4FGL_J0937.1+5008_monthly_bin169.fits" evtable="EVENTS" scfile=/scratch/kocevski/164286/ft2_4FGL_J0937.1+5008_monthly_bin169.fits sctable="SC_DATA" outfile=/scratch/kocevski/164286/ltcube_675043201_677635201_4FGL_J0937.1+5008_monthly_bin169.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/164286/ft2_4FGL_J0937.1+5008_monthly_bin169.fits
.....................!
real 135.13
user 134.34
sys 0.41

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/164286/ft1_filtered_4FGL_J0937.1+5008_monthly_bin169.fits evtable="EVENTS" scfile=/scratch/kocevski/164286/ft2_4FGL_J0937.1+5008_monthly_bin169.fits sctable="SC_DATA" expcube=/scratch/kocevski/164286/ltcube_675043201_677635201_4FGL_J0937.1+5008_monthly_bin169.fits outfile=/scratch/kocevski/164286/expmap_675043201_677635201_4FGL_J0937.1+5008_monthly_bin169.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/164286/ltcube_675043201_677635201_4FGL_J0937.1+5008_monthly_bin169.fits
.....................!
real 194.64
user 187.49
sys 4.80

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/164286/ft1_filtered_4FGL_J0937.1+5008_monthly_bin169.fits scfile=/scratch/kocevski/164286/ft2_4FGL_J0937.1+5008_monthly_bin169.fits outfile=/scratch/kocevski/164286/cmap_675043201_677635201_4FGL_J0937.1+5008_monthly_bin169.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.78
user 0.61
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/164286/ft1_filtered_4FGL_J0937.1+5008_monthly_bin169.fits scfile=/scratch/kocevski/164286/ft2_4FGL_J0937.1+5008_monthly_bin169.fits outfile=/scratch/kocevski/164286/cmap_HighResolution_675043201_677635201_4FGL_J0937.1+5008_monthly_bin169.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.79
user 0.62
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.5620       1.0000         .10000E-03   10000.    
     2 'norm      '    2.2364       1.0000         .10000E-03   10000.    
     3 'norm      '    .47415       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.2566       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.6973       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.3989       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12413E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.8602       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .74834E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.7591       1.0000         .10000E-03   10000.    
    12 'norm      '    3.1193       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .53182       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.8146       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.4655       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.6645       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10167E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.7734       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10158E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.0395       1.0000         .10000E-03   10000.    
    22 'norm      '    .12244E-01   1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.9285       1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.3806       1.0000         .10000E-03   10000.    
    25 'norm      '    1.2973       1.0000         .10000E-03   10000.    
    26 'norm      '    6.9502       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    4.4304       1.0000         .10000E-03   10000.    
    29 'norm      '    3.1901       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .62312E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    5.1323       1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10394E-03   1.0000         .10000E-03   10000.    
    33 'Normalizat'    .89677       1.0000         .10000E-01   10.000    
    34 'Prefactor '    1.1457       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   70865.20     FROM MIGRAD    STATUS=CONVERGED    956 CALLS     4977 TOTAL
                     EDM=   .58E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.5649        2.0538         .0000        .41472E-02
   2  norm          2.2361        1.7224         .0000        .17041    
   3  norm          .47376        .80534         .0000        .96547E-02
   4  Prefactor     4.2617        2.7121         .0000        .20735E-01
   5  Prefactor     1.6975        .77840         .0000        .75015E-02
   6  Prefactor     1.3898        3.9863         .0000        .54716E-01
   7  Prefactor     .10013E-03    11.929         .0000    ** at limit **
   8  Prefactor     1.8603        .79232         .0000        .34250E-02
   9  Prefactor     .10000E-03    2.6346         .0000    ** at limit **
  10  norm          .72389E-02    .55604E-01     .0000        .20023E-01
  11  Prefactor     2.7611        1.0738         .0000        .59462E-02
  12  norm          3.1204        1.8856         .0000        .49932E-02
  13  Prefactor     .53191        .47123         .0000        .64072E-02
  14  Prefactor     4.8163        2.3887         .0000        .20358E-01
  15  Prefactor     2.4659        .93407         .0000        .33579E-02
  16  Prefactor     1.6650        4.7924         .0000        .44505E-01
  17  Prefactor     .10000E-03    .84467         .0000    ** at limit **
  18  norm          1.7682        2.4539         .0000        .69036E-01
  19  Prefactor     .10000E-03    1.2202         .0000    ** at limit **
  20  Prefactor     .10000E-03    .43479         .0000    ** at limit **
  21  Prefactor     1.0397        1.8271         .0000        .13658E-01
  22  norm          .11544E-01    .41502         .0000        .28375E-02
  23  Prefactor     3.9449        4.8975         .0000        .36242E-02
  24  Prefactor     4.3790        6.3002         .0000        .10327E-01
  25  norm          1.2972        .15695         .0000        .74994E-02
  26  norm          6.9514        2.9477         .0000        .11887E-02
  27  Prefactor     .10000E-03    .25104         .0000    ** at limit **
  28  Prefactor     4.4451        4.0480         .0000        .31355E-02
  29  norm          3.1902        .65558         .0000        .10056E-02
  30  Prefactor     .10004E-03    1.9070         .0000    ** at limit **
  31  norm          5.1323        .58101         .0000       -.91939E-03
  32  Prefactor     .10001E-03    7.7522         .0000    ** at limit **
  33  Normalizat    .89665        .50941E-01     .0000        .75798E-03
  34  Prefactor     1.1457        .56089E-01     .0000        .89717E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.56491
  norm       = 2.23614
  norm       = 0.473758
  Prefactor  = 4.26173
  Prefactor  = 1.69748
  Prefactor  = 1.38978
  Prefactor  = 0.000100134
  Prefactor  = 1.8603
  Prefactor  = 0.000100001
  norm       = 0.0072389
  Prefactor  = 2.7611
  norm       = 3.12038
  Prefactor  = 0.531906
  Prefactor  = 4.81628
  Prefactor  = 2.46595
  Prefactor  = 1.66498
  Prefactor  = 0.0001
  norm       = 1.76822
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 1.03968
  norm       = 0.0115436
  Prefactor  = 3.94495
  Prefactor  = 4.37904
  norm       = 1.29723
  norm       = 6.95137
  Prefactor  = 0.0001
  Prefactor  = 4.44513
  norm       = 3.1902
  Prefactor  = 0.000100041
  norm       = 5.13235
  Prefactor  = 0.00010001
  Normalizat = 0.896651
  Prefactor  = 1.14573
 **********
 **   18 **HESSE 
 **********

 FCN=   70865.20     FROM HESSE     STATUS=OK           780 CALLS     5757 TOTAL
                     EDM=   .33E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.5649        2.0416        .17035E-03   -1.5236    
   2  norm          2.2361        1.6930        .13743E-02   -1.5409    
   3  norm          .47376        .94241        .28990E-02   -1.5570    
   4  Prefactor     4.2617        2.7092        .97647E-03   -1.5295    
   5  Prefactor     1.6975        .76733        .14873E-03   -1.5447    
   6  Prefactor     1.3898        3.9536        .18347E-02   -1.5472    
   7  Prefactor     .10013E-03    12.092        .20614E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.8603        .78265        .14532E-03   -1.5435    
   9  Prefactor     .10000E-03    2.6579        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .72389E-02    .57604E-01    .13941E-01   -1.5691    
  11  Prefactor     2.7611        1.0767        .11826E-03   -1.5376    
  12  norm          3.1204        1.8716        .22957E-03   -1.5355    
  13  Prefactor     .53191        .45666        .16042E-03   -1.5562    
  14  Prefactor     4.8163        2.3484        .91672E-03   -1.5269    
  15  Prefactor     2.4659        .91463        .14459E-03   -1.5394    
  16  Prefactor     1.6650        4.6288        .16345E-02   -1.5450    
  17  Prefactor     .10000E-03    .85703        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.7682        2.4335        .15720E-02   -1.5442    
  19  Prefactor     .10000E-03    1.2247        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.1735        .33746E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.0397        1.7148        .39828E-03   -1.5504    
  22  norm          .11544E-01    .42302        .62828E-01   -1.5687    
  23  Prefactor     3.9449        4.8876        .20354E-03   -1.5311    
  24  Prefactor     4.3790        6.2602        .96216E-03   -1.5289    
  25  norm          1.2972        .15624        .34724E-04   -1.5480    
  26  norm          6.9514        2.9372        .15218E-03   -1.5181    
  27  Prefactor     .10000E-03    1.8770        .24339E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     4.4451        4.0483        .19132E-03   -1.5286    
  29  norm          3.1902        .65422        .94427E-04   -1.5351    
  30  Prefactor     .10004E-03    2.4306        .10597       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          5.1323        .58107        .66224E-04   -1.5255    
  32  Prefactor     .10001E-03    7.7809        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    .89665        .58761E-01    .24291E-03   -.96578    
  34  Prefactor     1.1457        .65669E-01    .26056E-03   -.88018    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.28021e-07
Minuit parameter uncertainties:
  1  2.04166
  2  1.69299
  3  0.942444
  4  2.70925
  5  0.767333
  6  3.95437
  7  0.00254508
  8  0.782652
  9  8.95434e-05
  10  0.0405577
  11  1.07675
  12  1.87161
  13  0.45666
  14  2.34848
  15  0.914637
  16  4.62981
  17  3.75083e-05
  18  2.43361
  19  5.34029e-05
  20  1.88511e-06
  21  1.71485
  22  0.139154
  23  4.88811
  24  6.26109
  25  0.156244
  26  2.93722
  27  3.85879e-05
  28  4.04852
  29  0.654225
  30  0.000628238
  31  0.581075
  32  0.000565417
  33  0.0587652
  34  0.0656735
Done.

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

Extracting fit parameters...

4FGL J0937.1+5008
   Spectrum: PowerLaw
357    Prefactor:  1.665e+00  4.630e+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

GAL_V02
   Spectrum: PowerLaw
707    Prefactor:  1.146e+00  6.567e-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:  8.967e-01  5.877e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.16
Ra Dec: 144.297 50.144
Photon Flux Upper Limit: 1.88e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.45e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/164286/likelihoodResults_675043201_677635201_4FGL_J0937.1+5008_monthly_bin169.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) = 70864.6463627
delta logL = 0.55722661005

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 70864.6085512
delta logL = 0.595038074156

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .95917       1.0000         .10000E-03   10000.    
     2 'Index     '    3.5729       1.0000          .0000       10.000    
     3 'Normalizat'    .88235       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1557       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   70864.61     FROM MIGRAD    STATUS=FAILED        97 CALLS      269 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .96000        34.950        .21491E-03    .53204E-03
   2  Index         3.5728        6.7808        .12196E-01    .28436E-02
   3  Normalizat    .88234        .42899E-01    .24467E-03   -.15166E-03
   4  Prefactor     1.1557        .50016E-01    .25959E-03   -.18849E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   70864.61     FROM SIMPLEX   STATUS=UNCHANGED     82 CALLS      351 TOTAL
                     EDM=   .19E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .96000        34.950        .17718E-03    .53204E-03
   2  Index         3.5728        6.7808        .15612E-02    .28436E-02
   3  Normalizat    .88234        .42899E-01    .54335E-04   -.15166E-03
   4  Prefactor     1.1557        .50016E-01    .44845E-04   -.18849E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   70864.61     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      384 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .96000        3.9827        .42982E-04   -.33856E-04
   2  Index         3.5728        2.1140        .24392E-02    .11289E-03
   3  Normalizat    .88234        .56060E-01    .97867E-05   -.15241E-03
   4  Prefactor     1.1557        .65720E-01    .10383E-04   -.18569E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.959997
  Index      = 3.57278
  Normalizat = 0.882336
  Prefactor  = 1.15573
 **********
 **   18 **HESSE 
 **********

 FCN=   70864.61     FROM HESSE     STATUS=OK            25 CALLS      409 TOTAL
                     EDM=   .40E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .96000        2.5970        .17193E-05   -1.5512    
   2  Index         3.5728        1.4303        .48784E-03   -.28947    
   3  Normalizat    .88234        .55628E-01    .19573E-05   -.97084    
   4  Prefactor     1.1557        .65149E-01    .20767E-05   -.87705    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.02118e-12
Minuit parameter uncertainties:
  1  2.59729
  2  1.4524
  3  0.0556313
  4  0.0651535
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/164286': 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) = 70864.608551
delta logL = 0.595038285232

Extracting fit parameters...

4FGL J0937.1+5008
   Spectrum: PowerLaw
357    Prefactor:  9.600e-01  2.597e+00  1.000e-04  1.000e+04 ( 1.000e-13)
358        Index:  3.573e+00  1.452e+00  0.000e+00  1.000e+01 (-1.000e+00)
359        Scale:  9.988e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
707    Prefactor:  1.156e+00  6.515e-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:  8.823e-01  5.563e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.42
Ra Dec: 144.297 50.144
Photon Index (Free Index): 3.57 +/- 1.45
Photon Flux (Free Index): 1.39e-08 +/- 1.29e-08
Energy Flux (Free Index): 2.27e-06 +/- 2.06e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/164286/cmap_HighResolution_675043201_677635201_4FGL_J0937.1+5008_monthly_bin169.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.45e-03', comment='SUCCESS', energy_flux2='2.27e-06', dlogl='5.95e-01', photon_flux2='1.39e-08', job_status='DONE', time_completed='2022-06-23 04:59:16.824855', photon_index_error2='1.45', photon_index2='3.57', ts='0.16', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', photon_flux_upper_limit='1.88e-08', energy_flux_error2='2.06e-06', EG='0.90', time_epoch_completed='1655985556.82', return_code='0', job_id='164286', GAL2='1.16', EG2='0.88', return_code2='0', photon_flux_error2='1.29e-08', ts2='1.42', photon_index='2.40' WHERE bin_id='169' AND source_name='4FGL J0937.1+5008' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Thu Jun 23 04:59:16 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0272>
Subject: Job 164286: <4FGL_J0937.1+5008_monthly_bin169> in cluster <slac> Done

Job <4FGL_J0937.1+5008_monthly_bin169> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Jun 23 01:30:31 2022
Job was executed on host(s) <bullet0272>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jun 23 02:03:01 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Jun 23 02:03:01 2022
Terminated at Thu Jun 23 04:59:17 2022
Results reported at Thu Jun 23 04:59:17 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0937.1+5008_monthly_bin169 144.297 50.1437 675043201 677635201 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 :                                   10448.00 sec.
    Max Memory :                                 629 MB
    Average Memory :                             415.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   10576 sec.
    Turnaround time :                            12526 sec.

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

