/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 6 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 = 17447
number of fields = 31
RA_SUN column already exists. File will not be modified.
DoDone.


Performing analysis on: 4FGL_J0931.2-8533_weekly_bin698
RA = 142.818, Dec = -85.5626
tmin = 661132801, tmax = 661737601
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='36907', job_status='RUN', time_executed='2021-12-21 01:00:45.977871', time_epoch_executed='1640077245.98' WHERE source_name='4FGL J0931.2-8533' and cadence='weekly' and bin_id='698'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/36907

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/36907/ft1_4FGL_J0931.2-8533_weekly_bin698.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/36907/ft2_4FGL_J0931.2-8533_weekly_bin698.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/36907/ft1_4FGL_J0931.2-8533_weekly_bin698.fits outfile=/scratch/kocevski/36907/ft1_filteredMKT_4FGL_J0931.2-8533_weekly_bin698.fits ra=142.818 dec=-85.5626 rad=12.0 tmin=661132801.0 tmax=661737601.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 7.71
user 7.34
sys 0.27

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/36907/ft2_4FGL_J0931.2-8533_weekly_bin698.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/36907/ft2_4FGL_J0931.2-8533_weekly_bin698.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/36907/ft1_filteredMKT_4FGL_J0931.2-8533_weekly_bin698.fits evtable="EVENTS" outfile="/scratch/kocevski/36907/ft1_filtered_4FGL_J0931.2-8533_weekly_bin698.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.59
user 0.38
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/36907/ft1_filtered_4FGL_J0931.2-8533_weekly_bin698.fits" evtable="EVENTS" scfile=/scratch/kocevski/36907/ft2_4FGL_J0931.2-8533_weekly_bin698.fits sctable="SC_DATA" outfile=/scratch/kocevski/36907/ltcube_661132801_661737601_4FGL_J0931.2-8533_weekly_bin698.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/36907/ft2_4FGL_J0931.2-8533_weekly_bin698.fits
.....................!
real 28.42
user 27.99
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/36907/ft1_filtered_4FGL_J0931.2-8533_weekly_bin698.fits evtable="EVENTS" scfile=/scratch/kocevski/36907/ft2_4FGL_J0931.2-8533_weekly_bin698.fits sctable="SC_DATA" expcube=/scratch/kocevski/36907/ltcube_661132801_661737601_4FGL_J0931.2-8533_weekly_bin698.fits outfile=/scratch/kocevski/36907/expmap_661132801_661737601_4FGL_J0931.2-8533_weekly_bin698.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/36907/ltcube_661132801_661737601_4FGL_J0931.2-8533_weekly_bin698.fits
.....................!
real 193.49
user 187.21
sys 4.21

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
Extended source SMC-Galaxy in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/SMC-Galaxy.fits is the correct path to the extended template.
Extended source LMC-FarWest in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/LMC-FarWest.fits is the correct path to the extended template.
Extended source LMC-Galaxy in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/LMC-Galaxy.fits is the correct path to the extended template.
Extended source LMC-30DorWest in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/LMC-30DorWest.fits is the correct path to the extended template.
Extended source LMC-North in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/LMC-North.fits is the correct path to the extended template.
Added 181 point sources and 5 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0931.2-8533 @ 142.818 -85.5626

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/36907/ft1_filtered_4FGL_J0931.2-8533_weekly_bin698.fits scfile=/scratch/kocevski/36907/ft2_4FGL_J0931.2-8533_weekly_bin698.fits outfile=/scratch/kocevski/36907/cmap_661132801_661737601_4FGL_J0931.2-8533_weekly_bin698.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.818 yref=-85.5626 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.42
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/36907/ft1_filtered_4FGL_J0931.2-8533_weekly_bin698.fits scfile=/scratch/kocevski/36907/ft2_4FGL_J0931.2-8533_weekly_bin698.fits outfile=/scratch/kocevski/36907/cmap_HighResolution_661132801_661737601_4FGL_J0931.2-8533_weekly_bin698.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.818 yref=-85.5626 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.60
user 0.43
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/36907/ft1_filtered_4FGL_J0931.2-8533_weekly_bin698.fits evtable="EVENTS" scfile=/scratch/kocevski/36907/ft2_4FGL_J0931.2-8533_weekly_bin698.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/36907/Model_4FGL_J0931.2-8533_weekly_bin698.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
adding source LMC-30DorWest
adding source LMC-FarWest
adding source LMC-Galaxy
adding source LMC-North
adding source SMC-Galaxy
Working on...
/scratch/kocevski/36907/ft1_filtered_4FGL_J0931.2-8533_weekly_bin698.fits.....................!
real 22094.40
user 22012.61
sys 1.42

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/36907/ft1_filtered_4FGL_J0931.2-8533_weekly_bin698.fits', '/scratch/kocevski/36907/ft2_4FGL_J0931.2-8533_weekly_bin698.fits', expMap='/scratch/kocevski/36907/expmap_661132801_661737601_4FGL_J0931.2-8533_weekly_bin698.fits', expCube='/scratch/kocevski/36907/ltcube_661132801_661737601_4FGL_J0931.2-8533_weekly_bin698.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/36907/Model_4FGL_J0931.2-8533_weekly_bin698.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0931.2-8533'

4FGL J0931.2-8533
   Spectrum: PowerLaw
220    Prefactor:  7.409e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
221        Index:  2.533e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
222        Scale:  9.301e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/36907/ft1_filtered_4FGL_J0931.2-8533_weekly_bin698.fits
Spacecraft file(s): /scratch/kocevski/36907/ft2_4FGL_J0931.2-8533_weekly_bin698.fits
Exposure map: /scratch/kocevski/36907/expmap_661132801_661737601_4FGL_J0931.2-8533_weekly_bin698.fits
Exposure cube: /scratch/kocevski/36907/ltcube_661132801_661737601_4FGL_J0931.2-8533_weekly_bin698.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/36907/Model_4FGL_J0931.2-8533_weekly_bin698.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) = 26766.6165351

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10761E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .88601E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .27917       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .33780E-01   1.0000         .10000E-03   10000.    
     7 'norm      '    3.2587       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    14.999       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.1411       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.8865       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10341E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10094E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.3917       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.2800       1.0000         .10000E-03   10000.    
    18 'norm      '    2.5102       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0912       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0543       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6150E+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=   26766.51     FROM MIGRAD    STATUS=CONVERGED    880 CALLS     2399 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.3526        .18142E-02** at limit **
   2  Prefactor     .10001E-03    93.119        .36285E-03** at limit **
   3  Prefactor     .10000E-03    9.7648        .38933E-02** at limit **
   4  Prefactor     .10000E-03    7.8815        .18142E-02** at limit **
   5  Prefactor     .14219        12.252        .17526        .14787E-03
   6  Prefactor     .10277E-03    3.5965        .90242E-01** at limit **
   7  norm          3.2602        2.7673        .22434E-03   -.97499E-04
   8  Prefactor     .10002E-03    81.227        .18142E-02** at limit **
   9  norm          14.999        7.7543        .10342E-03    .12356E-03
  10  Prefactor     6.1401        8.2642        .16200E-03    .16084E-03
  11  Prefactor     .10000E-03    6.0930        .18142E-02** at limit **
  12  norm          1.8862        1.8137        .21002E-03    .14507E-04
  13  Prefactor     .10000E-03    2.2706        .36285E-03** at limit **
  14  Prefactor     .10000E-03    32.770        .18142E-02** at limit **
  15  norm          .10000E-03    5.3340        .18142E-02** at limit **
  16  Prefactor     6.3892        2.8940        .15876E-03    .16413E-03
  17  Prefactor     2.2804        5.2173        .27192E-03    .19015E-03
  18  norm         .5092        3.0815        .12895E-02    .20597E-02
  19  Prefactor     .10000E-03    9.7044        .17999    ** at limit **
  20  Normalizat    1.0913        .17647        .46141E-03    .14093E-04
  21  Prefactor     1.0543        .53817E-01    .14462E-03    .12347E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100011
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.142193
  Prefactor  = 0.000102769
  norm       = 3.26017
  Prefactor  = 0.000100024
  norm       = 14.999
  Prefactor  = 6.14011
  Prefactor  = 0.0001
  norm       = 1.88619
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.38924
  Prefactor  = 2.28043
  norm       = 2.50924
  Prefactor  = 0.000100002
  Normalizat = 1.09135
  Prefactor  = 1.05433
 **********
 **   18 **HESSE 
 **********

 FCN=   26766.51     FROM HESSE     STATUS=OK           327 CALLS     2726 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.3529        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10001E-03    93.127        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    10.002        .15573E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.8852        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .14219        12.316        .17450       -1.5633    
   6  Prefactor     .10277E-03    3.3367        .96231E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.2602        2.7673        .89738E-05   -1.5347    
   8  Prefactor     .10002E-03    81.278        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          14.999        7.7541        .41367E-05   -1.4933    
  10  Prefactor     6.1401        8.2638        .64802E-05   -1.5212    
  11  Prefactor     .10000E-03    6.0936        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.8862        1.8136        .84007E-05   -1.5433    
  13  Prefactor     .10000E-03    2.2707        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    32.785        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    5.3341        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     6.3892        2.8938        .63503E-05   -1.5202    
  17  Prefactor     2.2804        5.2170        .10877E-04   -1.5406    
  18  norm          2.5092        3.0802        .25790E-03   -1.5391    
  19  Prefactor     .10000E-03    9.7164        .17969       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.0913        .17646        .18456E-04   -.90030    
  21  Prefactor     1.0543        .53839E-01    .28925E-04   -.90940    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.32143e-09
Minuit parameter uncertainties:
  1  5.17224e-06
  2  0.0019871
  3  0.000172273
  4  1.13667e-05
  5  2.64635
  6  0.00607996
  7  2.76737
  8  0.00277569
  9  7.75459
  10  8.2653
  11  1.19924e-05
  12  1.81366
  13  9.56848e-06
  14  8.00442e-06
  15  5.17911e-06
  16  2.89386
  17  5.21803
  18  3.08038
  19  0.000270012
  20  0.176557
  21  0.0538422
DoDone.

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

Extracting fit parameters...

4FGL J0931.2-8533
   Spectrum: PowerLaw
220    Prefactor:  1.000e-04  1.199e-05  1.000e-04  1.000e+04 ( 1.000e-13)
221        Index:  2.533e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
222        Scale:  9.301e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
594    Prefactor:  1.054e+00  5.384e-02  0.000e+00  1.000e+01 ( 1.000e+00)
595        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
596        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
593   Normalization:  1.091e+00  1.766e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 142.818 -85.563
Photon Flux Upper Limit: 4.50e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.51e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/36907/likelihoodResults_661132801_661737601_4FGL_J0931.2-8533_weekly_bin698.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) = 26766.5131547
delta logL = -0.000782411516411

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 26766.5123723
delta logL = -1.17215677164e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5288       1.0000          .0000       10.000    
     3 'Normalizat'    1.0913       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0543       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6150E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   26766.51     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      211 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1410.1        .90712E-02** at limit **
   2  Index         2.5244        7.2845        .50000        .63215E-05
   3  Normalizat    1.0913        .13650        .10411        .11206E-03
   4  Prefactor     1.0543        .41916E-01    .39662E-01    .31909E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.52436
  Normalizat = 1.09135
  Prefactor  = 1.05433
 **********
 **   18 **HESSE 
 **********

 FCN=   26766.51     FROM HESSE     STATUS=OK            33 CALLS      244 TOTAL
                     EDM=   .53E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.0912        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5244        6.2497        .50000       -.51798    
   3  Normalizat    1.0913        .17135        .46141E-03   -.90030    
   4  Prefactor     1.0543        .53351E-01    .14462E-03   -.90940    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.25601e-11
Minuit parameter uncertainties:
  1  1.5938e-06
  2  5.00826
  3  0.171433
  4  0.0533533
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/36907': 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) = 26766.5123723
delta logL = 1.34241417982e-08

Extracting fit parameters...

4FGL J0931.2-8533
   Spectrum: PowerLaw
220    Prefactor:  1.000e-04  1.594e-06  1.000e-04  1.000e+04 ( 1.000e-13)
221        Index:  2.524e+00  5.008e+00  0.000e+00  1.000e+01 (-1.000e+00)
222        Scale:  9.301e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
594    Prefactor:  1.054e+00  5.335e-02  0.000e+00  1.000e+01 ( 1.000e+00)
595        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
596        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
593   Normalization:  1.091e+00  1.714e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 142.818 -85.563

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/36907/cmap_HighResolution_661132801_661737601_4FGL_J0931.2-8533_weekly_bin698.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.51e-03', job_status='DONE', photon_flux_upper_limit='4.50e-08', time_completed='2021-12-21 07:38:55.744965', job_id='36907', GAL2='1.05', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1640101135.75', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='1.34e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='698' AND source_name='4FGL J0931.2-8533' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 21 07:38:55 PST 2021

-----------------------------------------------------------
Sender: LSF System <lsf@bullet0279>
Subject: Job 36993: <4FGL_J0931.2-8533_weekly_bin698> in cluster <slac> Done

Job <4FGL_J0931.2-8533_weekly_bin698> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Dec 21 00:06:21 2021
Job was executed on host(s) <bullet0279>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec 21 01:02:07 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec 21 01:02:07 2021
Terminated at Tue Dec 21 07:38:14 2021
Results reported at Tue Dec 21 07:38:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0931.2-8533_weekly_bin698 142.818 -85.5626 661132801 661737601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0931.2-8533 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   23562.00 sec.
    Max Memory :                                 1261 MB
    Average Memory :                             605.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   23766 sec.
    Turnaround time :                            27113 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0113>
Subject: Job 36907: <4FGL_J0931.2-8533_weekly_bin698> in cluster <slac> Done

Job <4FGL_J0931.2-8533_weekly_bin698> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Tue Dec 21 00:06:17 2021
Job was executed on host(s) <bullet0113>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec 21 00:58:46 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec 21 00:58:46 2021
Terminated at Tue Dec 21 07:38:56 2021
Results reported at Tue Dec 21 07:38:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0931.2-8533_weekly_bin698 142.818 -85.5626 661132801 661737601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0931.2-8533 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   23813.79 sec.
    Max Memory :                                 1114 MB
    Average Memory :                             620.49 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   3418 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   24010 sec.
    Turnaround time :                            27159 sec.

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

