/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 5 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7556
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0937.9-1434_daily_bin1037
RA = 144.475, Dec = -14.5706
tmin = 508118401, tmax = 508377601
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='375392', job_status='RUN', time_executed='2021-08-31 19:31:31.088840', time_epoch_executed='1630463491.09' WHERE source_name='4FGL J0937.9-1434' and cadence='daily' and bin_id='1037'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/375392

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/375392/ft1_4FGL_J0937.9-1434_daily_bin1037.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/375392/ft2_4FGL_J0937.9-1434_daily_bin1037.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/375392/ft1_4FGL_J0937.9-1434_daily_bin1037.fits outfile=/scratch/kocevski/375392/ft1_filteredMKT_4FGL_J0937.9-1434_daily_bin1037.fits ra=144.475 dec=-14.5706 rad=12.0 tmin=508118401.0 tmax=508377601.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.72
user 3.44
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/375392/ft2_4FGL_J0937.9-1434_daily_bin1037.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/375392/ft1_filteredMKT_4FGL_J0937.9-1434_daily_bin1037.fits evtable="EVENTS" outfile="/scratch/kocevski/375392/ft1_filtered_4FGL_J0937.9-1434_daily_bin1037.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.54
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/375392/ft1_filtered_4FGL_J0937.9-1434_daily_bin1037.fits" evtable="EVENTS" scfile=/scratch/kocevski/375392/ft2_4FGL_J0937.9-1434_daily_bin1037.fits sctable="SC_DATA" outfile=/scratch/kocevski/375392/ltcube_508118401_508377601_4FGL_J0937.9-1434_daily_bin1037.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/375392/ft2_4FGL_J0937.9-1434_daily_bin1037.fits
.....................!
real 11.98
user 11.52
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/375392/ft1_filtered_4FGL_J0937.9-1434_daily_bin1037.fits evtable="EVENTS" scfile=/scratch/kocevski/375392/ft2_4FGL_J0937.9-1434_daily_bin1037.fits sctable="SC_DATA" expcube=/scratch/kocevski/375392/ltcube_508118401_508377601_4FGL_J0937.9-1434_daily_bin1037.fits outfile=/scratch/kocevski/375392/expmap_508118401_508377601_4FGL_J0937.9-1434_daily_bin1037.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/375392/ltcube_508118401_508377601_4FGL_J0937.9-1434_daily_bin1037.fits
.....................!
real 192.24
user 186.01
sys 5.10

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/375392/ft1_filtered_4FGL_J0937.9-1434_daily_bin1037.fits scfile=/scratch/kocevski/375392/ft2_4FGL_J0937.9-1434_daily_bin1037.fits outfile=/scratch/kocevski/375392/cmap_508118401_508377601_4FGL_J0937.9-1434_daily_bin1037.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.57
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/375392/ft1_filtered_4FGL_J0937.9-1434_daily_bin1037.fits scfile=/scratch/kocevski/375392/ft2_4FGL_J0937.9-1434_daily_bin1037.fits outfile=/scratch/kocevski/375392/cmap_HighResolution_508118401_508377601_4FGL_J0937.9-1434_daily_bin1037.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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/375392/ft1_filtered_4FGL_J0937.9-1434_daily_bin1037.fits evtable="EVENTS" scfile=/scratch/kocevski/375392/ft2_4FGL_J0937.9-1434_daily_bin1037.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/375392/Model_4FGL_J0937.9-1434_daily_bin1037.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/375392/ft1_filtered_4FGL_J0937.9-1434_daily_bin1037.fits.....................!
real 63.07
user 61.71
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    4.0427       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.6637       1.0000         .10000E-03   10000.    
     4 'Prefactor '    18.630       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    91.994       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    22.748       1.0000         .10000E-03   10000.    
    12 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    5.7948       1.0000         .10000E-03   10000.    
    15 'norm      '    2.7557       1.0000         .10000E-03   10000.    
    16 'norm      '    10.144       1.0000         .10000E-03   10000.    
    17 'norm      '    5.1774       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .83498       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0451       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=   5940.051     FROM MIGRAD    STATUS=CONVERGED    375 CALLS     1896 TOTAL
                     EDM=   .88E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    7.3191        .30290E-06** at limit **
   2  norm          4.0431        4.0660        .11991E-07   -.20357E-03
   3  Prefactor     5.6638        6.7715        .35116E-05   -.88207E-03
   4  Prefactor     18.629        18.582       -.41593E-07   -.47404E-04
   5  Prefactor     .10000E-03    2.7343       -.90857E-09** at limit **
   6  Prefactor     .10000E-03    17.748       -.18388E-05** at limit **
   7  Prefactor     .10002E-03    21.405        .68773E-05** at limit **
   8  Prefactor     .10001E-03    31.884       -.49053E-05** at limit **
   9  Prefactor     91.996        53.744        .60496E-06    .64058E-04
  10  Prefactor     .10000E-03    18.230       -.10057E-05** at limit **
  11  Prefactor     22.748        18.848        .23220E-06   -.95250E-05
  12  norm          .10000E-03    6.6364       -.17320E-06** at limit **
  13  norm          .10000E-03    1.9249        .24285E-07** at limit **
  14  norm          5.7948        7.3384        .68488E-06   -.15280E-03
  15  norm          2.7556        2.2801        .47797E-07    .63807E-05
  16  norm          10.145        9.7346        .93702E-07    .29882E-05
  17  norm          5.1775        1.8112        .32176E-07   -.34488E-04
  18  Normalizat    .83493        .22302       -.47434E-06   -.15404E-04
  19  Prefactor     1.0451        .13177       -.53497E-06    .11034E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 4.04306
  Prefactor  = 5.66378
  Prefactor  = 18.6293
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100021
  Prefactor  = 0.000100011
  Prefactor  = 91.9963
  Prefactor  = 0.0001
  Prefactor  = 22.7483
  norm       = 0.0001
  norm       = 0.0001
  norm       = 5.7948
  norm       = 2.75565
  norm       = 10.1446
  norm       = 5.1775
  Normalizat = 0.834934
  Prefactor  = 1.04513
 **********
 **   18 **HESSE 
 **********

 FCN=   5940.051     FROM HESSE     STATUS=OK           266 CALLS     2162 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.3493        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.0431        4.0552        .14401E-03   -1.5306    
   3  Prefactor     5.6638        7.0673        .84395E-03   -1.5232    
   4  Prefactor     18.629        18.549        .92794E-04   -1.4844    
   5  Prefactor     .10000E-03    2.7374        .12445E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    18.009        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10002E-03    23.878        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    33.162        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     91.996        54.020        .41898E-04   -1.3787    
  10  Prefactor     .10000E-03    18.302        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     22.748        18.855        .83982E-04   -1.4754    
  12  norm          .10000E-03    6.7170        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.9350        .10439E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.7948        7.3469        .83421E-03   -1.5226    
  15  norm          2.7556        2.2841        .10206E-03   -1.5376    
  16  norm          10.145        9.7425        .12581E-03   -1.5071    
  17  norm          5.1775        1.8116        .59063E-04   -1.5253    
  18  Normalizat    .83493        .25554        .34217E-03   -.98786    
  19  Prefactor     1.0451        .15177        .18678E-03   -.91240    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.05238e-09
Minuit parameter uncertainties:
  1  4.21062e-05
  2  4.05551
  3  7.06829
  4  18.5547
  5  1.05698e-06
  6  0.000314218
  7  0.00141381
  8  0.00119316
  9  54.0491
  10  0.00018501
  11  18.8597
  12  2.11747e-05
  13  7.65721e-07
  14  7.34805
  15  2.2842
  16  9.74399
  17  1.8116
  18  0.255914
  19  0.151836
Done.

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

Extracting fit parameters...

4FGL J0937.9-1434
   Spectrum: PowerLaw
257    Prefactor:  1.000e-04  1.850e-04  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:  1.045e+00  1.518e-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.349e-01  2.559e-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: 6.69e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.01e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/375392/likelihoodResults_508118401_508377601_4FGL_J0937.9-1434_daily_bin1037.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) = 5940.05148356
delta logL = -0.000260269170212

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5940.05122348
delta logL = -1.79874405148e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10946E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0688       1.0000          .0000       10.000    
     3 'Normalizat'    .83493       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0451       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=   5940.051     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      228 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    372.60        .90712E-02** at limit **
   2  Index         2.0784        8.7615        .50000       -.44603E-05
   3  Normalizat    .83493        .25592E-01    .77301E-01    .24054E-04
   4  Prefactor     1.0451        .15554E-01    .40204E-01    .57653E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.07836
  Normalizat = 0.834934
  Prefactor  = 1.04513
 **********
 **   18 **HESSE 
 **********

 FCN=   5940.051     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      259 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1501.4        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0784        7.4082        .50000       -.62405    
   3  Normalizat    .83493        .56974E-01    .34217E-03   -.98786    
   4  Prefactor     1.0451        .34695E-01    .18678E-03   -.91240    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.66253e-09
Minuit parameter uncertainties:
  1  8.11271e-06
  2  37.2867
  3  0.0569778
  4  0.0346961
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/375392': 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) = 5940.05122321
delta logL = 8.35725586512e-08

Extracting fit parameters...

4FGL J0937.9-1434
   Spectrum: PowerLaw
257    Prefactor:  1.000e-04  8.113e-06  1.000e-04  1.000e+04 ( 1.000e-14)
258        Index:  2.078e+00  3.729e+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:  1.045e+00  3.470e-02  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.349e-01  5.698e-02  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/375392/cmap_HighResolution_508118401_508377601_4FGL_J0937.9-1434_daily_bin1037.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.01e-03', job_status='DONE', photon_flux_upper_limit='6.69e-08', time_completed='2021-08-31 19:40:54.910386', job_id='375392', GAL2='1.05', fit_tolerance='1e-08', EG2='0.83', EG='0.83', time_epoch_completed='1630464054.91', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='8.36e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='1037' AND source_name='4FGL J0937.9-1434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 19:40:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0169>
Subject: Job 375392: <4FGL_J0937.9-1434_daily_bin1037> in cluster <slac> Done

Job <4FGL_J0937.9-1434_daily_bin1037> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Aug 31 19:31:14 2021
Job was executed on host(s) <bullet0169>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 19:31:15 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:15 2021
Terminated at Tue Aug 31 19:40:55 2021
Results reported at Tue Aug 31 19:40:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0937.9-1434_daily_bin1037 144.475 -14.5706 508118401 508377601 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 :                                   544.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             355.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   580 sec.
    Turnaround time :                            581 sec.

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

