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


Performing analysis on: 4FGL_J0931.9+6737_daily_bin769
RA = 142.984, Dec = 67.6213
tmin = 438652801, tmax = 438912001
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='328262', job_status='RUN', time_executed='2021-08-31 17:01:07.803873', time_epoch_executed='1630454467.8' WHERE source_name='4FGL J0931.9+6737' and cadence='daily' and bin_id='769'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/328262

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/328262/ft1_4FGL_J0931.9+6737_daily_bin769.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/328262/ft2_4FGL_J0931.9+6737_daily_bin769.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/328262/ft1_4FGL_J0931.9+6737_daily_bin769.fits outfile=/scratch/kocevski/328262/ft1_filteredMKT_4FGL_J0931.9+6737_daily_bin769.fits ra=142.984 dec=67.6213 rad=12.0 tmin=438652801.0 tmax=438912001.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 6.48
user 6.14
sys 0.26

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/328262/ft2_4FGL_J0931.9+6737_daily_bin769.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/328262/ft2_4FGL_J0931.9+6737_daily_bin769.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/328262/ft1_filteredMKT_4FGL_J0931.9+6737_daily_bin769.fits evtable="EVENTS" outfile="/scratch/kocevski/328262/ft1_filtered_4FGL_J0931.9+6737_daily_bin769.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.70
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/328262/ft1_filtered_4FGL_J0931.9+6737_daily_bin769.fits" evtable="EVENTS" scfile=/scratch/kocevski/328262/ft2_4FGL_J0931.9+6737_daily_bin769.fits sctable="SC_DATA" outfile=/scratch/kocevski/328262/ltcube_438652801_438912001_4FGL_J0931.9+6737_daily_bin769.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/328262/ft2_4FGL_J0931.9+6737_daily_bin769.fits
.....................!
real 13.26
user 12.82
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/328262/ft1_filtered_4FGL_J0931.9+6737_daily_bin769.fits evtable="EVENTS" scfile=/scratch/kocevski/328262/ft2_4FGL_J0931.9+6737_daily_bin769.fits sctable="SC_DATA" expcube=/scratch/kocevski/328262/ltcube_438652801_438912001_4FGL_J0931.9+6737_daily_bin769.fits outfile=/scratch/kocevski/328262/expmap_438652801_438912001_4FGL_J0931.9+6737_daily_bin769.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/328262/ltcube_438652801_438912001_4FGL_J0931.9+6737_daily_bin769.fits
.....................!
real 191.24
user 186.05
sys 4.76

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 234 point sources and 0 extended sources

Setting source of interest to:
4FGL J0931.9+6737 @ 142.984 67.6213

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/328262/ft1_filtered_4FGL_J0931.9+6737_daily_bin769.fits scfile=/scratch/kocevski/328262/ft2_4FGL_J0931.9+6737_daily_bin769.fits outfile=/scratch/kocevski/328262/cmap_438652801_438912001_4FGL_J0931.9+6737_daily_bin769.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=142.984 yref=67.6213 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.58
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/328262/ft1_filtered_4FGL_J0931.9+6737_daily_bin769.fits scfile=/scratch/kocevski/328262/ft2_4FGL_J0931.9+6737_daily_bin769.fits outfile=/scratch/kocevski/328262/cmap_HighResolution_438652801_438912001_4FGL_J0931.9+6737_daily_bin769.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=142.984 yref=67.6213 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/328262/ft1_filtered_4FGL_J0931.9+6737_daily_bin769.fits evtable="EVENTS" scfile=/scratch/kocevski/328262/ft2_4FGL_J0931.9+6737_daily_bin769.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/328262/Model_4FGL_J0931.9+6737_daily_bin769.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/328262/ft1_filtered_4FGL_J0931.9+6737_daily_bin769.fits......................!
real 41.37
user 39.70
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/328262/ft1_filtered_4FGL_J0931.9+6737_daily_bin769.fits', '/scratch/kocevski/328262/ft2_4FGL_J0931.9+6737_daily_bin769.fits', expMap='/scratch/kocevski/328262/expmap_438652801_438912001_4FGL_J0931.9+6737_daily_bin769.fits', expCube='/scratch/kocevski/328262/ltcube_438652801_438912001_4FGL_J0931.9+6737_daily_bin769.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/328262/Model_4FGL_J0931.9+6737_daily_bin769.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0931.9+6737'

4FGL J0931.9+6737
   Spectrum: PowerLaw
333    Prefactor:  3.199e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
334        Index:  2.277e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
335        Scale:  1.290e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/328262/ft1_filtered_4FGL_J0931.9+6737_daily_bin769.fits
Spacecraft file(s): /scratch/kocevski/328262/ft2_4FGL_J0931.9+6737_daily_bin769.fits
Exposure map: /scratch/kocevski/328262/expmap_438652801_438912001_4FGL_J0931.9+6737_daily_bin769.fits
Exposure cube: /scratch/kocevski/328262/ltcube_438652801_438912001_4FGL_J0931.9+6737_daily_bin769.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/328262/Model_4FGL_J0931.9+6737_daily_bin769.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) = 3206.15470861

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.0672       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    31.472       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10275E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .14404E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.7836       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.4087       1.0000         .10000E-03   10000.    
     9 'norm      '    .10528E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    63.192       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.2599       1.0000         .10000E-03   10000.    
    13 'norm      '    .10781E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10375E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    34.737       1.0000         .10000E-03   10000.    
    17 'norm      '    .10231E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    117.14       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.490       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    58.977       1.0000         .10000E-03   10000.    
    24 'norm      '    8.5232       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .43245E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    33.490       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    33 'Normalizat'    .22408       1.0000         .10000E-01   10.000    
    34 'Prefactor '    1.3527       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7490E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3205.918     FROM MIGRAD    STATUS=CONVERGED    913 CALLS     4814 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.0675        1.5707       -.14257E-07    .19796E-03
   2  Prefactor     .10000E-03    61.253       -.14252E-06** at limit **
   3  Prefactor     31.473        48.785        .15194E-06    .36328E-04
   4  Prefactor     .10000E-03    17.537        .11421E-06** at limit **
   5  Prefactor     .10000E-03    30.325       -.29228E-06** at limit **
   6  norm          .10000E-03    1.5072        .23114E-06** at limit **
   7  Prefactor     4.7852        5.0523       -.78018E-07    .16051E-04
   8  Prefactor     3.4091        1.6820       -.26757E-07   -.12033E-03
   9  norm          .10000E-03    2.3646       -.11214E-05** at limit **
  10  Prefactor     .10000E-03    12.847       -.23726E-07** at limit **
  11  Prefactor     63.160        41.529        .25392E-05    .17867E-03
  12  Prefactor     7.2744        14.658       -.43597E-06   -.74284E-04
  13  norm          .10000E-03    .81494        .19657E-06** at limit **
  14  Prefactor     .10000E-03    9.5612       -.49341E-07** at limit **
  15  Prefactor     .10000E-03    37.750        .75256E-06** at limit **
  16  Prefactor     34.757        23.577       -.13059E-07   -.67395E-04
  17  norm          .10000E-03    6.3771       -.22664E-06** at limit **
  18  Prefactor     117.04        88.370       -.14471E-05   -.36964E-04
  19  norm          .10000E-03    .74225        .10025E-07** at limit **
  20  norm          .10000E-03    18.092        .34915E-07** at limit **
  21  Prefactor     11.497        15.784       -.10922E-06   -.23437E-05
  22  Prefactor     .10000E-03    38.380        .75604E-07** at limit **
  23  Prefactor     59.016        57.695        .79060E-06   -.35647E-06
  24  norm          8.5197        8.2150       -.32243E-06    .53888E-04
  25  Prefactor     .10000E-03    45.933        .23262E-06** at limit **
  26  Prefactor     .10000E-03    455.63       -.24362E-05** at limit **
  27  Prefactor     .10000E-03    4.6155        .48058E-07** at limit **
  28  norm          .10000E-03    .54645        .46770E-07** at limit **
  29  norm          .10000E-03    8.4762        .34310E-06** at limit **
  30  Prefactor     33.498        22.266       -.23911E-06   -.13316E-04
  31  Prefactor     .10000E-03    53.454        .19371E-06** at limit **
  32  Prefactor     .10000E-03    8.2109        .59596E-07** at limit **
  33  Normalizat    .22416        .31570        .33284E-05   -.58048E-05
  34  Prefactor     1.3528        .24557       -.61446E-06   -.16604E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.06746
  Prefactor  = 0.0001
  Prefactor  = 31.4728
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.78515
  Prefactor  = 3.40908
  norm       = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 63.1599
  Prefactor  = 7.27441
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 34.7574
  norm       = 0.0001
  Prefactor  = 117.039
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 11.4971
  Prefactor  = 0.0001
  Prefactor  = 59.0165
  norm       = 8.51968
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 33.4984
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.224157
  Prefactor  = 1.3528
 **********
 **   18 **HESSE 
 **********

 FCN=   3205.918     FROM HESSE     STATUS=OK           728 CALLS     5542 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.0675        1.5767        .36130E-04   -1.5258    
   2  Prefactor     .10000E-03    61.267        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     31.473        48.968        .71423E-04   -1.4585    
   4  Prefactor     .10000E-03    17.573        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    30.351        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    2.3274        .13240E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.7852        5.0526        .12666E-03   -1.5270    
   8  Prefactor     3.4091        1.6793        .49230E-04   -1.5339    
   9  norm          .10000E-03    8.8125        .14852E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    12.848        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     63.160        43.181        .50480E-04   -1.4117    
  12  Prefactor     7.2744        14.463        .14886E-03   -1.5168    
  13  norm          .10000E-03    1.1015        .94378E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.5664        .17102E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    37.731        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     34.757        23.318        .67993E-04   -1.4528    
  17  norm          .10000E-03    6.3694        .13955E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     117.04        88.481        .18589E-03   -1.3540    
  19  norm          .10000E-03    .74385        .47632E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    18.093        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     11.497        15.779        .11819E-03   -1.5030    
  22  Prefactor     .10000E-03    38.391        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     59.016        58.144        .52242E-04   -1.4170    
  24  norm          8.5197        8.2800        .11876E-03   -1.5124    
  25  Prefactor     .10000E-03    45.942        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    456.26        .21227E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    4.6421        .11876E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    .54944        .40788E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    8.4646        .15981E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     33.498        22.162        .69244E-04   -1.4550    
  31  Prefactor     .10000E-03    53.507        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .10000E-03    8.2259        .15840E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    .22416        .31682        .53601E-03   -1.2769    
  34  Prefactor     1.3528        .24572        .19859E-03   -.81750    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.20947e-10
Minuit parameter uncertainties:
  1  1.57673
  2  3.64537e-05
  3  49.0305
  4  1.075e-05
  5  3.5709e-05
  6  5.2227e-05
  7  5.05304
  8  1.6793
  9  0.000313612
  10  3.61505e-06
  11  43.2021
  12  14.4697
  13  1.9004e-05
  14  4.05627e-06
  15  0.000123285
  16  23.3237
  17  1.63481e-05
  18  88.5808
  19  8.39442e-07
  20  1.39253e-06
  21  15.7851
  22  6.52947e-06
  23  58.1995
  24  8.28113
  25  1.59523e-05
  26  0.00118905
  27  5.75664e-06
  28  1.18752e-06
  29  2.74283e-05
  30  22.1673
  31  1.16364e-06
  32  9.83783e-06
  33  0.319411
  34  0.245935
Done.

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

Extracting fit parameters...

4FGL J0931.9+6737
   Spectrum: PowerLaw
333    Prefactor:  1.000e-04  4.056e-06  1.000e-04  1.000e+04 ( 1.000e-13)
334        Index:  2.277e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
335        Scale:  1.290e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
746    Prefactor:  1.353e+00  2.459e-01  0.000e+00  1.000e+01 ( 1.000e+00)
747        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
748        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
745   Normalization:  2.242e-01  3.194e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 142.984 67.621
Photon Flux Upper Limit: 1.32e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.01e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/328262/likelihoodResults_438652801_438912001_4FGL_J0931.9+6737_daily_bin769.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) = 3205.91872798
delta logL = -0.000477068611417

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3205.91825088
delta logL = 3.481954991e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2536       1.0000          .0000       10.000    
     3 'Normalizat'    .22409       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3528       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7490E+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=   3205.918     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      241 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10361E-03    10.120        .17521E-01** at limit **
   2  Index         2.1516        5.3940        .50000        .17898E-04
   3  Normalizat    .22416        .60849E-02    .53591E-03    .15411E-03
   4  Prefactor     1.3528        .53211E-02    .19859E-03    .19972E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103613
  Index      = 2.15159
  Normalizat = 0.224162
  Prefactor  = 1.35279
 **********
 **   18 **HESSE 
 **********

 FCN=   3205.918     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      270 TOTAL
                     EDM=   .81E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10361E-03    120.13        .18165E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1516        5.7694        .50000       -.60612    
   3  Normalizat    .22416        .21210E-01    .21436E-04   -1.2769    
   4  Prefactor     1.3528        .18549E-01    .39718E-04   -.81750    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.13504e-09
Minuit parameter uncertainties:
  1  0.0417474
  2  448.264
  3  0.0212113
  4  0.0185487
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/328262': 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) = 3205.91825048
delta logL = 4.30140516983e-07

Extracting fit parameters...

4FGL J0931.9+6737
   Spectrum: PowerLaw
333    Prefactor:  1.036e-04  4.175e-02  1.000e-04  1.000e+04 ( 1.000e-13)
334        Index:  2.152e+00  4.483e+02  0.000e+00  1.000e+01 (-1.000e+00)
335        Scale:  1.290e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
746    Prefactor:  1.353e+00  1.855e-02  0.000e+00  1.000e+01 ( 1.000e+00)
747        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
748        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
745   Normalization:  2.242e-01  2.121e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 142.984 67.621

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/328262/cmap_HighResolution_438652801_438912001_4FGL_J0931.9+6737_daily_bin769.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.01e-02', job_status='DONE', photon_flux_upper_limit='1.32e-07', time_completed='2021-08-31 17:14:28.153139', job_id='328262', GAL2='1.35', fit_tolerance='1e-08', EG2='0.22', EG='0.22', time_epoch_completed='1630455268.15', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.35', dlogl='4.30e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='769' AND source_name='4FGL J0931.9+6737' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 17:14:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0144>
Subject: Job 328262: <4FGL_J0931.9+6737_daily_bin769> in cluster <slac> Done

Job <4FGL_J0931.9+6737_daily_bin769> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Aug 31 17:00:19 2021
Job was executed on host(s) <bullet0144>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 17:00:20 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 31 17:00:20 2021
Terminated at Tue Aug 31 17:14:28 2021
Results reported at Tue Aug 31 17:14:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0931.9+6737_daily_bin769 142.984 67.6213 438652801 438912001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0931.9+6737 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   796.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             321.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   848 sec.
    Turnaround time :                            849 sec.

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

