/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 112 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 = 7665
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0937.9-1434_daily_bin300
RA = 144.475, Dec = -14.5706
tmin = 317088001, tmax = 317347201
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='372014', job_status='RUN', time_executed='2021-08-31 19:22:28.931936', time_epoch_executed='1630462948.93' WHERE source_name='4FGL J0937.9-1434' and cadence='daily' and bin_id='300'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/372014

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/372014/ft1_4FGL_J0937.9-1434_daily_bin300.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/372014/ft2_4FGL_J0937.9-1434_daily_bin300.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/372014/ft1_4FGL_J0937.9-1434_daily_bin300.fits outfile=/scratch/kocevski/372014/ft1_filteredMKT_4FGL_J0937.9-1434_daily_bin300.fits ra=144.475 dec=-14.5706 rad=12.0 tmin=317088001.0 tmax=317347201.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 5.12
user 3.69
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/372014/ft1_filtered_4FGL_J0937.9-1434_daily_bin300.fits" evtable="EVENTS" scfile=/scratch/kocevski/372014/ft2_4FGL_J0937.9-1434_daily_bin300.fits sctable="SC_DATA" outfile=/scratch/kocevski/372014/ltcube_317088001_317347201_4FGL_J0937.9-1434_daily_bin300.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/372014/ft2_4FGL_J0937.9-1434_daily_bin300.fits
.....................!
real 12.75
user 11.88
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/372014/ft1_filtered_4FGL_J0937.9-1434_daily_bin300.fits evtable="EVENTS" scfile=/scratch/kocevski/372014/ft2_4FGL_J0937.9-1434_daily_bin300.fits sctable="SC_DATA" expcube=/scratch/kocevski/372014/ltcube_317088001_317347201_4FGL_J0937.9-1434_daily_bin300.fits outfile=/scratch/kocevski/372014/expmap_317088001_317347201_4FGL_J0937.9-1434_daily_bin300.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/372014/ltcube_317088001_317347201_4FGL_J0937.9-1434_daily_bin300.fits
.....................!
real 194.01
user 185.87
sys 5.06

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/372014/ft1_filtered_4FGL_J0937.9-1434_daily_bin300.fits scfile=/scratch/kocevski/372014/ft2_4FGL_J0937.9-1434_daily_bin300.fits outfile=/scratch/kocevski/372014/cmap_317088001_317347201_4FGL_J0937.9-1434_daily_bin300.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.56
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/372014/ft1_filtered_4FGL_J0937.9-1434_daily_bin300.fits scfile=/scratch/kocevski/372014/ft2_4FGL_J0937.9-1434_daily_bin300.fits outfile=/scratch/kocevski/372014/cmap_HighResolution_317088001_317347201_4FGL_J0937.9-1434_daily_bin300.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.57
user 0.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/372014/ft1_filtered_4FGL_J0937.9-1434_daily_bin300.fits evtable="EVENTS" scfile=/scratch/kocevski/372014/ft2_4FGL_J0937.9-1434_daily_bin300.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/372014/Model_4FGL_J0937.9-1434_daily_bin300.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/372014/ft1_filtered_4FGL_J0937.9-1434_daily_bin300.fits.....................!
real 81.28
user 79.62
sys 1.32

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    21.316       1.0000         .10000E-03   10000.    
     2 'norm      '    2.9350       1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.503       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.3232       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    51.551       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.0054       1.0000         .10000E-03   10000.    
    12 'norm      '    28.942       1.0000         .10000E-03   10000.    
    13 'norm      '    4.6704       1.0000         .10000E-03   10000.    
    14 'norm      '    1.6268       1.0000         .10000E-03   10000.    
    15 'norm      '    2.7977       1.0000         .10000E-03   10000.    
    16 'norm      '    7.8865       1.0000         .10000E-03   10000.    
    17 'norm      '    .98168       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .84337       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .88335       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.

 FCN=   7948.285     FROM MIGRAD    STATUS=CONVERGED    371 CALLS     1856 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          21.316        10.122        .21689E-02    .19180E-04
   2  norm          2.9350        2.4278        .59274E-02    .21656E-03
   3  Prefactor     14.503        5.3687        .26293E-02   -.42526E-03
   4  Prefactor     .10000E-03    3.5297        .90712E-02** at limit **
   5  Prefactor     9.3233        6.6169        .32813E-02    .12807E-02
   6  Prefactor     .10000E-03    7.1707        .90712E-02** at limit **
   7  Prefactor     51.552        29.760        .13964E-02    .10483E-03
   8  Prefactor     .10000E-03    8.1231        .90712E-02** at limit **
   9  Prefactor     .10000E-03    13.290        .90712E-02** at limit **
  10  Prefactor     .10000E-03    28.211        .90712E-02** at limit **
  11  Prefactor     7.0051        7.0801        .37892E-02    .94115E-04
  12  norm          28.938        8.7523        .18618E-02   -.12429E-03
  13  norm          4.6704        3.4651        .46554E-02    .74199E-03
  14  norm          1.6268        3.3533        .82912E-02    .67467E-03
  15  norm          2.7978        1.8467        .60808E-02    .56504E-04
  16  norm          7.8864        10.406        .35695E-02    .14654E-03
  17  norm          .98182        1.1298        .13101E-01    .10452E-02
  18  Normalizat    .84340        .16765        .68383E-01    .14503E-03
  19  Prefactor     .88332        .10119        .44792E-01    .10255E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 21.3159
  norm       = 2.93501
  Prefactor  = 14.5034
  Prefactor  = 0.0001
  Prefactor  = 9.32331
  Prefactor  = 0.0001
  Prefactor  = 51.5515
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.00512
  norm       = 28.938
  norm       = 4.67043
  norm       = 1.62685
  norm       = 2.79779
  norm       = 7.88638
  norm       = 0.981819
  Normalizat = 0.8434
  Prefactor  = 0.883324
 **********
 **   18 **HESSE 
 **********

 FCN=   7948.285     FROM HESSE     STATUS=OK           272 CALLS     2128 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          21.316        10.116        .86754E-04   -1.4784    
   2  norm          2.9350        2.4241        .12063E-03   -1.5365    
   3  Prefactor     14.503        5.3757        .10517E-03   -1.4946    
   4  Prefactor     .10000E-03    3.5491        .16355E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.3233        6.6173        .65626E-03   -1.5097    
   6  Prefactor     .10000E-03    7.1930        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     51.552        29.778        .55858E-04   -1.4271    
   8  Prefactor     .10000E-03    8.1268        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    13.327        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    28.344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.0051        7.0806        .15157E-03   -1.5179    
  12  norm          28.938        8.7534        .74472E-04   -1.4632    
  13  norm          4.6704        3.4606        .13792E-03   -1.5276    
  14  norm          1.6268        3.3106        .22874E-03   -1.5453    
  15  norm          2.7978        1.8463        .95032E-04   -1.5373    
  16  norm          7.8864        10.403        .14278E-03   -1.5146    
  17  norm          .98182        1.0975        .96190E-04   -1.5510    
  18  Normalizat    .84340        .19315        .30255E-03   -.98478    
  19  Prefactor     .88332        .11745        .18312E-03   -.96726    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.36753e-10
Minuit parameter uncertainties:
  1  10.1169
  2  2.42415
  3  5.37586
  4  1.05701e-05
  5  6.61781
  6  3.87866e-05
  7  29.7862
  8  4.49615e-05
  9  0.000105705
  10  9.13271e-05
  11  7.0814
  12  8.75376
  13  3.46073
  14  3.31092
  15  1.84632
  16  10.405
  17  1.09755
  18  0.193309
  19  0.117479
Done.

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

Extracting fit parameters...

4FGL J0937.9-1434
   Spectrum: PowerLaw
257    Prefactor:  1.000e-04  9.133e-05  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:  8.833e-01  1.175e-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:  8.434e-01  1.933e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/372014/likelihoodResults_317088001_317347201_4FGL_J0937.9-1434_daily_bin300.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) = 7948.28565163
delta logL = -0.00016807962038

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7948.28548374
delta logL = -1.88623744179e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12494E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1068       1.0000          .0000       10.000    
     3 'Normalizat'    .84340       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88332       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.

 FCN=   7948.285     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      238 TOTAL
                     EDM=   .95E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.8271        .90712E-02** at limit **
   2  Index         2.1303        7.7154        .50000       -.58314E-05
   3  Normalizat    .84340        .18222E-02    .68383E-01    .39545E-04
   4  Prefactor     .88332        .11330E-02    .44792E-01    .25548E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.13034
  Normalizat = 0.843399
  Prefactor  = 0.883325
 **********
 **   18 **HESSE 
 **********

 FCN=   7948.285     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      271 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    69.081        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1303        7.9583        .50000       -.61130    
   3  Normalizat    .84340        .62406E-02    .30255E-03   -.98479    
   4  Prefactor     .88332        .38853E-02    .18312E-03   -.96726    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.11835e-08
Minuit parameter uncertainties:
  1  0.00021098
  2  71.9938
  3  0.00624062
  4  0.00388534
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/372014': 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) = 7948.28548332
delta logL = 2.35232619161e-07

Extracting fit parameters...

4FGL J0937.9-1434
   Spectrum: PowerLaw
257    Prefactor:  1.000e-04  2.110e-04  1.000e-04  1.000e+04 ( 1.000e-14)
258        Index:  2.130e+00  7.199e+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:  8.833e-01  3.885e-03  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:  8.434e-01  6.241e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 144.475 -14.571

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/372014/cmap_HighResolution_317088001_317347201_4FGL_J0937.9-1434_daily_bin300.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.21e-03', job_status='DONE', photon_flux_upper_limit='5.63e-08', time_completed='2021-08-31 19:33:15.603800', job_id='372014', GAL2='0.88', fit_tolerance='1e-08', EG2='0.84', EG='0.84', time_epoch_completed='1630463595.6', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='2.35e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='300' AND source_name='4FGL J0937.9-1434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 19:33:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0139>
Subject: Job 372014: <4FGL_J0937.9-1434_daily_bin300> in cluster <slac> Done

Job <4FGL_J0937.9-1434_daily_bin300> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Aug 31 19:20:24 2021
Job was executed on host(s) <bullet0139>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 19:20:25 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:20:25 2021
Terminated at Tue Aug 31 19:33:16 2021
Results reported at Tue Aug 31 19:33:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0937.9-1434_daily_bin300 144.475 -14.5706 317088001 317347201 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 :                                   638.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             347.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   770 sec.
    Turnaround time :                            772 sec.

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

