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


Performing analysis on: 4FGL_J0937.9-1434_daily_bin1053
RA = 144.475, Dec = -14.5706
tmin = 512265601, tmax = 512524801
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='375418', job_status='RUN', time_executed='2021-08-31 19:33:36.424741', time_epoch_executed='1630463616.42' WHERE source_name='4FGL J0937.9-1434' and cadence='daily' and bin_id='1053'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/375418

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/375418/ft1_4FGL_J0937.9-1434_daily_bin1053.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/375418/ft2_4FGL_J0937.9-1434_daily_bin1053.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/375418/ft1_4FGL_J0937.9-1434_daily_bin1053.fits outfile=/scratch/kocevski/375418/ft1_filteredMKT_4FGL_J0937.9-1434_daily_bin1053.fits ra=144.475 dec=-14.5706 rad=12.0 tmin=512265601.0 tmax=512524801.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.71
user 3.31
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/375418/ft2_4FGL_J0937.9-1434_daily_bin1053.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/375418/ft1_filteredMKT_4FGL_J0937.9-1434_daily_bin1053.fits evtable="EVENTS" outfile="/scratch/kocevski/375418/ft1_filtered_4FGL_J0937.9-1434_daily_bin1053.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.60
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/375418/ft1_filtered_4FGL_J0937.9-1434_daily_bin1053.fits" evtable="EVENTS" scfile=/scratch/kocevski/375418/ft2_4FGL_J0937.9-1434_daily_bin1053.fits sctable="SC_DATA" outfile=/scratch/kocevski/375418/ltcube_512265601_512524801_4FGL_J0937.9-1434_daily_bin1053.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/375418/ft2_4FGL_J0937.9-1434_daily_bin1053.fits
.....................!
real 12.31
user 11.45
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/375418/ft1_filtered_4FGL_J0937.9-1434_daily_bin1053.fits evtable="EVENTS" scfile=/scratch/kocevski/375418/ft2_4FGL_J0937.9-1434_daily_bin1053.fits sctable="SC_DATA" expcube=/scratch/kocevski/375418/ltcube_512265601_512524801_4FGL_J0937.9-1434_daily_bin1053.fits outfile=/scratch/kocevski/375418/expmap_512265601_512524801_4FGL_J0937.9-1434_daily_bin1053.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/375418/ltcube_512265601_512524801_4FGL_J0937.9-1434_daily_bin1053.fits
.....................!
real 196.44
user 185.03
sys 4.05

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/375418/ft1_filtered_4FGL_J0937.9-1434_daily_bin1053.fits scfile=/scratch/kocevski/375418/ft2_4FGL_J0937.9-1434_daily_bin1053.fits outfile=/scratch/kocevski/375418/cmap_512265601_512524801_4FGL_J0937.9-1434_daily_bin1053.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.61
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/375418/ft1_filtered_4FGL_J0937.9-1434_daily_bin1053.fits scfile=/scratch/kocevski/375418/ft2_4FGL_J0937.9-1434_daily_bin1053.fits outfile=/scratch/kocevski/375418/cmap_HighResolution_512265601_512524801_4FGL_J0937.9-1434_daily_bin1053.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.56
user 0.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/375418/ft1_filtered_4FGL_J0937.9-1434_daily_bin1053.fits evtable="EVENTS" scfile=/scratch/kocevski/375418/ft2_4FGL_J0937.9-1434_daily_bin1053.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/375418/Model_4FGL_J0937.9-1434_daily_bin1053.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/375418/ft1_filtered_4FGL_J0937.9-1434_daily_bin1053.fits.....................!
real 58.22
user 56.42
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/375418/ft1_filtered_4FGL_J0937.9-1434_daily_bin1053.fits', '/scratch/kocevski/375418/ft2_4FGL_J0937.9-1434_daily_bin1053.fits', expMap='/scratch/kocevski/375418/expmap_512265601_512524801_4FGL_J0937.9-1434_daily_bin1053.fits', expCube='/scratch/kocevski/375418/ltcube_512265601_512524801_4FGL_J0937.9-1434_daily_bin1053.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/375418/Model_4FGL_J0937.9-1434_daily_bin1053.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/375418/ft1_filtered_4FGL_J0937.9-1434_daily_bin1053.fits
Spacecraft file(s): /scratch/kocevski/375418/ft2_4FGL_J0937.9-1434_daily_bin1053.fits
Exposure map: /scratch/kocevski/375418/expmap_512265601_512524801_4FGL_J0937.9-1434_daily_bin1053.fits
Exposure cube: /scratch/kocevski/375418/ltcube_512265601_512524801_4FGL_J0937.9-1434_daily_bin1053.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/375418/Model_4FGL_J0937.9-1434_daily_bin1053.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) = 4965.7948971

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    17.770       1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.9500       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11391E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10361E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    52.958       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.8396       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    25.745       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    6.1375       1.0000         .10000E-03   10000.    
    13 'norm      '    1.7894       1.0000         .10000E-03   10000.    
    14 'norm      '    4.1740       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    7.3545       1.0000         .10000E-03   10000.    
    17 'norm      '    2.2449       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.2934       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .77382       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=   4965.794     FROM MIGRAD    STATUS=CONVERGED    374 CALLS     1897 TOTAL
                     EDM=   .18E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          17.767        12.634       -.95270E-07   -.27159E-05
   2  norm          .10000E-03    .99507        .94334E-07** at limit **
   3  Prefactor     .10000E-03    4.3744        .51114E-07** at limit **
   4  Prefactor     1.9491        9.9364        .59403E-05    .13974E-04
   5  Prefactor     .10000E-03    17.880       -.34290E-06** at limit **
   6  Prefactor     .10000E-03    10.961       -.88225E-06** at limit **
   7  Prefactor     53.004        55.540       -.53364E-05    .35179E-05
   8  Prefactor     7.7756        100.34        .16066E-04   -.86970E-05
   9  Prefactor     .10000E-03    18.879        .94052E-08** at limit **
  10  Prefactor     25.755        27.632       -.13235E-05    .24215E-05
  11  Prefactor     .10000E-03    7.7564        .21401E-06** at limit **
  12  norm          6.1364        8.8823        .30212E-06    .33538E-05
  13  norm          1.7903        3.3618       -.12488E-06   -.51420E-04
  14  norm          4.1729        7.7516        .81335E-06    .63376E-05
  15  norm          .10000E-03    .64412       -.10815E-07** at limit **
  16  norm          7.3549        8.0226        .19302E-07    .44844E-06
  17  norm          2.2451        2.1069        .80203E-07    .23590E-04
  18  Normalizat    1.2928        .24190        .13400E-05   -.11061E-04
  19  Prefactor     .77415        .13242       -.13335E-05   -.67475E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 17.7666
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.94914
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 53.004
  Prefactor  = 7.77556
  Prefactor  = 0.0001
  Prefactor  = 25.7553
  Prefactor  = 0.0001
  norm       = 6.13644
  norm       = 1.79029
  norm       = 4.17293
  norm       = 0.0001
  norm       = 7.35488
  norm       = 2.2451
  Normalizat = 1.29279
  Prefactor  = 0.774151
 **********
 **   18 **HESSE 
 **********

 FCN=   4965.794     FROM HESSE     STATUS=OK           272 CALLS     2169 TOTAL
                     EDM=   .35E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          17.767        12.636        .95012E-04   -1.4865    
   2  norm          .10000E-03    .99651        .68649E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.4261        .14390E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.9491        10.060        .14859E-02   -1.5429    
   5  Prefactor     .10000E-03    18.541        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    11.004        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     53.004        55.835        .55115E-04   -1.4251    
   8  Prefactor     7.7756        103.97        .14321E-03   -1.5150    
   9  Prefactor     .10000E-03    18.897        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     25.755        27.634        .78950E-04   -1.4693    
  11  Prefactor     .10000E-03    7.7705        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          6.1364        8.8934        .16205E-03   -1.5212    
  13  norm          1.7903        3.3328        .17137E-03   -1.5440    
  14  norm          4.1729        7.7400        .98635E-03   -1.5299    
  15  norm          .10000E-03    .64695        .55223E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          7.3549        8.0254        .14790E-03   -1.5166    
  17  norm          2.2451        2.0996        .93529E-04   -1.5408    
  18  Normalizat    1.2928        .28702        .27554E-03   -.83782    
  19  Prefactor     .77415        .15525        .20022E-03   -1.0069    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.49721e-11
Minuit parameter uncertainties:
  1  12.6379
  2  4.00116e-07
  3  6.89042e-06
  4  8.85844
  5  3.28421e-05
  6  0.000107655
  7  55.8901
  8  56.9876
  9  2.04571e-05
  10  27.6478
  11  2.20587e-05
  12  8.89529
  13  3.33311
  14  7.74188
  15  3.0406e-07
  16  8.02659
  17  2.09965
  18  0.287372
  19  0.155333
Done.

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

Extracting fit parameters...

4FGL J0937.9-1434
   Spectrum: PowerLaw
257    Prefactor:  2.576e+01  2.765e+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.742e-01  1.553e-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.293e+00  2.874e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.19
Ra Dec: 144.475 -14.571
Photon Index (Fixed Index): 1.98 +/- 0.00
Photon Flux (Fixed Index): 2.30e-08 +/- 2.47e-08
Energy Flux (Fixed Index): 1.67e-05 +/- 1.79e-05

TS (Fixed Index): 3.19
Ra Dec: 144.475 -14.571
Photon Flux Upper Limit: 9.81e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.35e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/375418/likelihoodResults_512265601_512524801_4FGL_J0937.9-1434_daily_bin1053.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): 0
logL (Free Index) = 4965.56996366
delta logL = 0.224166379118

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4965.54974395
delta logL = 0.244386094484

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    31.732       1.0000         .10000E-03   10000.    
     2 'Index     '    1.3635       1.0000          .0000       10.000    
     3 'Normalizat'    1.3089       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76983       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=   4965.550     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      237 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.734        33.776        .71130E-04   -.86397E-03
   2  Index         1.3633        .74079        .12254E-01   -.26741E-03
   3  Normalizat    1.3089        .26173        .27409E-03    .25096E-03
   4  Prefactor     .76983        .15211        .20074E-03    .32726E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.7343
  Index      = 1.36333
  Normalizat = 1.30893
  Prefactor  = 0.769832
 **********
 **   18 **HESSE 
 **********

 FCN=   4965.550     FROM HESSE     STATUS=OK            23 CALLS      260 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.734        33.879        .14226E-04   -1.4581    
   2  Index         1.3633        .74301        .49015E-03   -.81443    
   3  Normalizat    1.3089        .26191        .54819E-04   -.83300    
   4  Prefactor     .76983        .15222        .40148E-04   -1.0085    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.97318e-09
Minuit parameter uncertainties:
  1  33.8999
  2  0.748944
  3  0.262179
  4  0.152304
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/375418': 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) = 4965.54974393
delta logL = 0.244386108918

Extracting fit parameters...

4FGL J0937.9-1434
   Spectrum: PowerLaw
257    Prefactor:  3.173e+01  3.390e+01  1.000e-04  1.000e+04 ( 1.000e-14)
258        Index:  1.363e+00  7.489e-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.698e-01  1.523e-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.309e+00  2.622e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.68
Ra Dec: 144.475 -14.571
Photon Index (Free Index): 1.36 +/- 0.75
Photon Flux (Free Index): 8.52e-09 +/- 1.29e-08
Energy Flux (Free Index): 4.25e-05 +/- 7.37e-05

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/375418/cmap_HighResolution_512265601_512524801_4FGL_J0937.9-1434_daily_bin1053.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.35e-03', comment='SUCCESS', photon_flux='2.30e-08', energy_flux2='4.25e-05', photon_flux_error='2.47e-08', dlogl='2.44e-01', energy_flux='1.67e-05', photon_flux2='8.52e-09', job_status='DONE', time_completed='2021-08-31 19:42:13.137859', photon_index_error2='0.75', photon_index2='1.36', ts='3.19', fit_tolerance='1e-08', GAL='0.77', photon_index_error='0.00', photon_flux_upper_limit='9.81e-08', energy_flux_error2='7.37e-05', EG='1.29', time_epoch_completed='1630464133.14', return_code='0', job_id='375418', GAL2='0.77', EG2='1.31', return_code2='0', energy_flux_error='1.79e-05', photon_flux_error2='1.29e-08', ts2='3.68', photon_index='1.98' WHERE bin_id='1053' AND source_name='4FGL J0937.9-1434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 19:42:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0104>
Subject: Job 375418: <4FGL_J0937.9-1434_daily_bin1053> in cluster <slac> Done

Job <4FGL_J0937.9-1434_daily_bin1053> 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) <bullet0104>, 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:42:13 2021
Results reported at Tue Aug 31 19:42:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0937.9-1434_daily_bin1053 144.475 -14.5706 512265601 512524801 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 :                                   505.27 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             323.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   655 sec.
    Turnaround time :                            657 sec.

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

