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


Performing analysis on: 4FGL_J0937.9-1434_daily_bin1059
RA = 144.475, Dec = -14.5706
tmin = 513820801, tmax = 514080001
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='375427', job_status='RUN', time_executed='2021-08-31 19:32:35.477390', time_epoch_executed='1630463555.48' WHERE source_name='4FGL J0937.9-1434' and cadence='daily' and bin_id='1059'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/375427

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/375427/ft1_4FGL_J0937.9-1434_daily_bin1059.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/375427/ft2_4FGL_J0937.9-1434_daily_bin1059.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/375427/ft1_4FGL_J0937.9-1434_daily_bin1059.fits outfile=/scratch/kocevski/375427/ft1_filteredMKT_4FGL_J0937.9-1434_daily_bin1059.fits ra=144.475 dec=-14.5706 rad=12.0 tmin=513820801.0 tmax=514080001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.96
user 3.55
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/375427/ft2_4FGL_J0937.9-1434_daily_bin1059.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/375427/ft2_4FGL_J0937.9-1434_daily_bin1059.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/375427/ft1_filteredMKT_4FGL_J0937.9-1434_daily_bin1059.fits evtable="EVENTS" outfile="/scratch/kocevski/375427/ft1_filtered_4FGL_J0937.9-1434_daily_bin1059.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 1.12
user 0.35
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/375427/ft1_filtered_4FGL_J0937.9-1434_daily_bin1059.fits" evtable="EVENTS" scfile=/scratch/kocevski/375427/ft2_4FGL_J0937.9-1434_daily_bin1059.fits sctable="SC_DATA" outfile=/scratch/kocevski/375427/ltcube_513820801_514080001_4FGL_J0937.9-1434_daily_bin1059.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/375427/ft2_4FGL_J0937.9-1434_daily_bin1059.fits
.....................!
real 16.27
user 14.48
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/375427/ft1_filtered_4FGL_J0937.9-1434_daily_bin1059.fits evtable="EVENTS" scfile=/scratch/kocevski/375427/ft2_4FGL_J0937.9-1434_daily_bin1059.fits sctable="SC_DATA" expcube=/scratch/kocevski/375427/ltcube_513820801_514080001_4FGL_J0937.9-1434_daily_bin1059.fits outfile=/scratch/kocevski/375427/expmap_513820801_514080001_4FGL_J0937.9-1434_daily_bin1059.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/375427/ltcube_513820801_514080001_4FGL_J0937.9-1434_daily_bin1059.fits
.....................!
real 197.11
user 186.72
sys 4.23

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

Setting source of interest to:
4FGL J0937.9-1434 @ 144.475 -14.5706

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/375427/ft1_filtered_4FGL_J0937.9-1434_daily_bin1059.fits scfile=/scratch/kocevski/375427/ft2_4FGL_J0937.9-1434_daily_bin1059.fits outfile=/scratch/kocevski/375427/cmap_513820801_514080001_4FGL_J0937.9-1434_daily_bin1059.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.475 yref=-14.5706 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.64
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/375427/ft1_filtered_4FGL_J0937.9-1434_daily_bin1059.fits scfile=/scratch/kocevski/375427/ft2_4FGL_J0937.9-1434_daily_bin1059.fits outfile=/scratch/kocevski/375427/cmap_HighResolution_513820801_514080001_4FGL_J0937.9-1434_daily_bin1059.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.475 yref=-14.5706 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.59
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/375427/ft1_filtered_4FGL_J0937.9-1434_daily_bin1059.fits evtable="EVENTS" scfile=/scratch/kocevski/375427/ft2_4FGL_J0937.9-1434_daily_bin1059.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/375427/Model_4FGL_J0937.9-1434_daily_bin1059.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/375427/ft1_filtered_4FGL_J0937.9-1434_daily_bin1059.fits.....................!
real 92.49
user 91.08
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/375427/ft1_filtered_4FGL_J0937.9-1434_daily_bin1059.fits', '/scratch/kocevski/375427/ft2_4FGL_J0937.9-1434_daily_bin1059.fits', expMap='/scratch/kocevski/375427/expmap_513820801_514080001_4FGL_J0937.9-1434_daily_bin1059.fits', expCube='/scratch/kocevski/375427/ltcube_513820801_514080001_4FGL_J0937.9-1434_daily_bin1059.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/375427/Model_4FGL_J0937.9-1434_daily_bin1059.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0937.9-1434'

4FGL J0937.9-1434
   Spectrum: PowerLaw
257    Prefactor:  3.095e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
258        Index:  1.980e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
259        Scale:  3.063e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/375427/ft1_filtered_4FGL_J0937.9-1434_daily_bin1059.fits
Spacecraft file(s): /scratch/kocevski/375427/ft2_4FGL_J0937.9-1434_daily_bin1059.fits
Exposure map: /scratch/kocevski/375427/expmap_513820801_514080001_4FGL_J0937.9-1434_daily_bin1059.fits
Exposure cube: /scratch/kocevski/375427/ltcube_513820801_514080001_4FGL_J0937.9-1434_daily_bin1059.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/375427/Model_4FGL_J0937.9-1434_daily_bin1059.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) = 9165.14045778

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    19.536       1.0000         .10000E-03   10000.    
     2 'norm      '    .17134E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.1868       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.231       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.7777       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    23.561       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    17.236       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.1810       1.0000         .10000E-03   10000.    
    12 'norm      '    4.2048       1.0000         .10000E-03   10000.    
    13 'norm      '    3.8616       1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.3030       1.0000         .10000E-03   10000.    
    16 'norm      '    2.4780       1.0000         .10000E-03   10000.    
    17 'norm      '    1.7866       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.3333       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .78244       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5370E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9165.017     FROM MIGRAD    STATUS=CONVERGED    375 CALLS     1639 TOTAL
                     EDM=   .57E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          19.534        10.479        .14837E-06    .22873E-03
   2  norm          .10006E-03    1.4279       -.61069E-06** at limit **
   3  Prefactor     9.1872        4.9377       -.31280E-06   -.21384E-03
   4  Prefactor     10.226        11.182        .36965E-06    .22716E-03
   5  Prefactor     .10000E-03    3.8969       -.10589E-06** at limit **
   6  Prefactor     3.7754        6.0027        .10168E-05   -.84360E-03
   7  Prefactor     .10000E-03    13.033        .49622E-05** at limit **
   8  Prefactor     23.560        24.433       -.22203E-05   -.11107E-03
   9  Prefactor     .10000E-03    20.505       -.51064E-06** at limit **
  10  Prefactor     17.237        16.193        .76023E-06    .82629E-04
  11  Prefactor     1.1801        9.1181       -.37632E-06   -.25322E-03
  12  norm          4.2042        3.8408        .78658E-06    .27890E-03
  13  norm          3.8616        2.6410       -.12135E-08   -.15689E-04
  14  norm          .10000E-03    4.6871       -.92134E-07** at limit **
  15  norm          3.3030        1.6885       -.51377E-08   -.19946E-04
  16  norm          2.4778        5.7290       -.97907E-07   -.15300E-03
  17  norm          1.7866        .99350        .99716E-08   -.12442E-03
  18  Normalizat    1.3335        .16295       -.88064E-07    .83810E-04
  19  Prefactor     .78231        .97925E-01    .13228E-08    .84467E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 19.5345
  norm       = 0.000100056
  Prefactor  = 9.18716
  Prefactor  = 10.2265
  Prefactor  = 0.0001
  Prefactor  = 3.77542
  Prefactor  = 0.000100001
  Prefactor  = 23.5595
  Prefactor  = 0.0001
  Prefactor  = 17.2372
  Prefactor  = 1.18005
  norm       = 4.20417
  norm       = 3.86158
  norm       = 0.0001
  norm       = 3.30302
  norm       = 2.47783
  norm       = 1.7866
  Normalizat = 1.33354
  Prefactor  = 0.782315
 **********
 **   18 **HESSE 
 **********

 FCN=   9165.017     FROM HESSE     STATUS=OK           272 CALLS     1911 TOTAL
                     EDM=   .66E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          19.534        10.416        .90617E-04   -1.4824    
   2  norm          .10006E-03    12.736        .20734E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.1872        4.9548        .13223E-03   -1.5102    
   4  Prefactor     10.226        10.950        .12527E-03   -1.5068    
   5  Prefactor     .10000E-03    3.9491        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.7754        10.098        .10385E-02   -1.5319    
   7  Prefactor     .10000E-03    13.197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     23.560        24.482        .82522E-04   -1.4737    
   9  Prefactor     .10000E-03    20.623        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     17.237        16.196        .96472E-04   -1.4877    
  11  Prefactor     1.1801        9.9854        .42060E-03   -1.5491    
  12  norm          4.2042        3.8453        .17292E-03   -1.5298    
  13  norm          3.8616        2.6396        .12505E-03   -1.5315    
  14  norm          .10000E-03    4.7233        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.3030        1.6883        .86307E-04   -1.5344    
  16  norm          2.4778        5.7477        .25972E-03   -1.5393    
  17  norm          1.7866        .98736        .68566E-04   -1.5441    
  18  Normalizat    1.3335        .19060        .26370E-03   -.82571    
  19  Prefactor     .78231        .11435        .20181E-03   -1.0038    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.59073e-09
Minuit parameter uncertainties:
  1  10.4174
  2  0.00168576
  3  4.95503
  4  10.9526
  5  5.39302e-07
  6  10.1024
  7  0.000230272
  8  24.4925
  9  3.42429e-05
  10  16.2006
  11  6.86663
  12  3.8455
  13  2.63969
  14  2.54775e-06
  15  1.68832
  16  5.74897
  17  0.987369
  18  0.190699
  19  0.114388
Done.

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

Extracting fit parameters...

4FGL J0937.9-1434
   Spectrum: PowerLaw
257    Prefactor:  1.724e+01  1.620e+01  1.000e-04  1.000e+04 ( 1.000e-14)
258        Index:  1.980e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
259        Scale:  3.063e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
534    Prefactor:  7.823e-01  1.144e-01  0.000e+00  1.000e+01 ( 1.000e+00)
535        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
536        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
533   Normalization:  1.334e+00  1.907e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.25
Ra Dec: 144.475 -14.571
Photon Index (Fixed Index): 1.98 +/- 0.00
Photon Flux (Fixed Index): 1.54e-08 +/- 1.45e-08
Energy Flux (Fixed Index): 1.12e-05 +/- 1.05e-05

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): 0
logL (Free Index) = 9164.93862059
delta logL = 0.0787784035638

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9164.91686216
delta logL = 0.100536836666

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.330       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5510       1.0000          .0000       10.000    
     3 'Normalizat'    1.3428       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77978       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5370E+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=   9164.917     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      275 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.330        21.529        .86726E-04   -.69424E-04
   2  Index         1.5511        .82913        .11895E-01   -.24235E-04
   3  Normalizat    1.3428        .18675        .26294E-03   -.10204E-03
   4  Prefactor     .77980        .11316        .20212E-03    .23624E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.3303
  Index      = 1.55106
  Normalizat = 1.34281
  Prefactor  = 0.779797
 **********
 **   18 **HESSE 
 **********

 FCN=   9164.917     FROM HESSE     STATUS=OK            23 CALLS      298 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.330        21.424        .17345E-04   -1.4784    
   2  Index         1.5511        .82502        .47581E-03   -.76120    
   3  Normalizat    1.3428        .18689        .10518E-04   -.82297    
   4  Prefactor     .77980        .11326        .80848E-05   -1.0048    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.57771e-10
Minuit parameter uncertainties:
  1  21.4316
  2  0.832337
  3  0.186982
  4  0.113297
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/375427': 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) = 9164.91686214
delta logL = 0.100536851442

Extracting fit parameters...

4FGL J0937.9-1434
   Spectrum: PowerLaw
257    Prefactor:  2.133e+01  2.143e+01  1.000e-04  1.000e+04 ( 1.000e-14)
258        Index:  1.551e+00  8.323e-01  0.000e+00  1.000e+01 (-1.000e+00)
259        Scale:  3.063e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
534    Prefactor:  7.798e-01  1.133e-01  0.000e+00  1.000e+01 ( 1.000e+00)
535        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
536        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
533   Normalization:  1.343e+00  1.870e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.45
Ra Dec: 144.475 -14.571
Photon Index (Free Index): 1.55 +/- 0.83
Photon Flux (Free Index): 7.64e-09 +/- 1.28e-08
Energy Flux (Free Index): 2.04e-05 +/- 3.55e-05

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/375427/cmap_HighResolution_513820801_514080001_4FGL_J0937.9-1434_daily_bin1059.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.54e-08', energy_flux2='2.04e-05', photon_flux_error='1.45e-08', dlogl='1.01e-01', energy_flux='1.12e-05', photon_flux2='7.64e-09', job_status='DONE', time_completed='2021-08-31 19:43:30.231268', photon_index_error2='0.83', photon_index2='1.55', ts='4.25', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', energy_flux_error2='3.55e-05', EG='1.33', time_epoch_completed='1630464210.23', return_code='0', job_id='375427', GAL2='0.78', EG2='1.34', return_code2='0', energy_flux_error='1.05e-05', photon_flux_error2='1.28e-08', ts2='4.45', photon_index='1.98' WHERE bin_id='1059' AND source_name='4FGL J0937.9-1434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 19:43:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0124>
Subject: Job 375427: <4FGL_J0937.9-1434_daily_bin1059> in cluster <slac> Done

Job <4FGL_J0937.9-1434_daily_bin1059> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Aug 31 19:31:16 2021
Job was executed on host(s) <bullet0124>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 19:31:18 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 31 19:31:18 2021
Terminated at Tue Aug 31 19:43:31 2021
Results reported at Tue Aug 31 19:43:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0937.9-1434_daily_bin1059 144.475 -14.5706 513820801 514080001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0937.9-1434 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   616.34 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             305.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   732 sec.
    Turnaround time :                            735 sec.

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

