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


Performing analysis on: 4FGL_J0937.9-1434_daily_bin1154
RA = 144.475, Dec = -14.5706
tmin = 538444801, tmax = 538704001
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='376843', job_status='RUN', time_executed='2021-08-31 19:37:39.818139', time_epoch_executed='1630463859.82' WHERE source_name='4FGL J0937.9-1434' and cadence='daily' and bin_id='1154'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/376843

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/376843/ft1_4FGL_J0937.9-1434_daily_bin1154.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/376843/ft2_4FGL_J0937.9-1434_daily_bin1154.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/376843/ft1_4FGL_J0937.9-1434_daily_bin1154.fits outfile=/scratch/kocevski/376843/ft1_filteredMKT_4FGL_J0937.9-1434_daily_bin1154.fits ra=144.475 dec=-14.5706 rad=12.0 tmin=538444801.0 tmax=538704001.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.54
user 3.25
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/376843/ft1_filtered_4FGL_J0937.9-1434_daily_bin1154.fits" evtable="EVENTS" scfile=/scratch/kocevski/376843/ft2_4FGL_J0937.9-1434_daily_bin1154.fits sctable="SC_DATA" outfile=/scratch/kocevski/376843/ltcube_538444801_538704001_4FGL_J0937.9-1434_daily_bin1154.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/376843/ft2_4FGL_J0937.9-1434_daily_bin1154.fits
.....................!
real 12.49
user 12.13
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/376843/ft1_filtered_4FGL_J0937.9-1434_daily_bin1154.fits evtable="EVENTS" scfile=/scratch/kocevski/376843/ft2_4FGL_J0937.9-1434_daily_bin1154.fits sctable="SC_DATA" expcube=/scratch/kocevski/376843/ltcube_538444801_538704001_4FGL_J0937.9-1434_daily_bin1154.fits outfile=/scratch/kocevski/376843/expmap_538444801_538704001_4FGL_J0937.9-1434_daily_bin1154.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/376843/ltcube_538444801_538704001_4FGL_J0937.9-1434_daily_bin1154.fits
.....................!
real 190.29
user 185.39
sys 4.54

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/376843/ft1_filtered_4FGL_J0937.9-1434_daily_bin1154.fits scfile=/scratch/kocevski/376843/ft2_4FGL_J0937.9-1434_daily_bin1154.fits outfile=/scratch/kocevski/376843/cmap_538444801_538704001_4FGL_J0937.9-1434_daily_bin1154.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.55
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/376843/ft1_filtered_4FGL_J0937.9-1434_daily_bin1154.fits scfile=/scratch/kocevski/376843/ft2_4FGL_J0937.9-1434_daily_bin1154.fits outfile=/scratch/kocevski/376843/cmap_HighResolution_538444801_538704001_4FGL_J0937.9-1434_daily_bin1154.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/376843/ft1_filtered_4FGL_J0937.9-1434_daily_bin1154.fits evtable="EVENTS" scfile=/scratch/kocevski/376843/ft2_4FGL_J0937.9-1434_daily_bin1154.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/376843/Model_4FGL_J0937.9-1434_daily_bin1154.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/376843/ft1_filtered_4FGL_J0937.9-1434_daily_bin1154.fits.....................!
real 62.50
user 61.02
sys 1.29

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10471E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10122E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.7654       1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.286       1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.8275       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.8136       1.0000         .10000E-03   10000.    
     7 'Prefactor '    75.078       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10264E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    54.071       1.0000         .10000E-03   10000.    
    10 'Prefactor '    18.966       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12183E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .12131E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    5.3893       1.0000         .10000E-03   10000.    
    15 'norm      '    2.3819       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    5.8840       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .82409       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0477       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=   5839.883     FROM MIGRAD    STATUS=CONVERGED    379 CALLS     1870 TOTAL
                     EDM=   .32E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    15.265       -.54669E-08** at limit **
   2  norm          .10000E-03    2.1475       -.34845E-08** at limit **
   3  Prefactor     2.7647        6.8101        .32528E-05   -.13708E-04
   4  Prefactor     11.284        13.724        .17164E-06   -.23439E-05
   5  Prefactor     9.8262        11.066        .24602E-06   -.35710E-05
   6  Prefactor     2.8121        10.874        .34680E-06    .28641E-05
   7  Prefactor     75.068        51.290        .86291E-06   -.69237E-05
   8  Prefactor     .10000E-03    35.520       -.10503E-05** at limit **
   9  Prefactor     54.076        37.487       -.33856E-06   -.50713E-06
  10  Prefactor     18.907        33.561        .75493E-05   -.55822E-05
  11  Prefactor     .10000E-03    22.773       -.15517E-06** at limit **
  12  norm          .10000E-03    4.4413       -.87344E-06** at limit **
  13  norm          .10000E-03    1.1583        .23217E-08** at limit **
  14  norm          5.3895        14.001        .37985E-06   -.24151E-05
  15  norm          2.3820        1.9258        .33709E-07   -.59947E-05
  16  norm          .10000E-03    2.8424       -.39764E-07** at limit **
  17  norm          5.8841        2.1889        .50228E-07   -.29912E-04
  18  Normalizat    .82419        .22486       -.39437E-06   -.17166E-04
  19  Prefactor     1.0477        .13444       -.77490E-06    .57456E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 2.76466
  Prefactor  = 11.2841
  Prefactor  = 9.82624
  Prefactor  = 2.81212
  Prefactor  = 75.0676
  Prefactor  = 0.0001
  Prefactor  = 54.0764
  Prefactor  = 18.9069
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 5.38945
  norm       = 2.38196
  norm       = 0.0001
  norm       = 5.88414
  Normalizat = 0.824193
  Prefactor  = 1.04766
 **********
 **   18 **HESSE 
 **********

 FCN=   5839.883     FROM HESSE     STATUS=OK           268 CALLS     2138 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    15.487        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    2.1775        .10917E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.7647        6.8250        .12238E-02   -1.5375    
   4  Prefactor     11.284        13.697        .11925E-03   -1.5036    
   5  Prefactor     9.8262        11.066        .12783E-03   -1.5081    
   6  Prefactor     2.8121        10.852        .24250E-03   -1.5373    
   7  Prefactor     75.068        51.338        .46339E-04   -1.3973    
   8  Prefactor     .10000E-03    35.646        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     54.076        37.560        .54547E-04   -1.4236    
  10  Prefactor     18.907        33.569        .91967E-04   -1.4838    
  11  Prefactor     .10000E-03    23.165        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    4.4914        .15772E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.1596        .80314E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.3895        14.015        .17310E-03   -1.5244    
  15  norm          2.3820        1.9301        .92359E-04   -1.5399    
  16  norm          .10000E-03    2.8439        .12582E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          5.8841        2.1885        .65789E-04   -1.5223    
  18  Normalizat    .82419        .25862        .34295E-03   -.99177    
  19  Prefactor     1.0477        .15527        .18469E-03   -.91157    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.39157e-10
Minuit parameter uncertainties:
  1  9.75063e-06
  2  5.66659e-07
  3  6.82692
  4  13.7011
  5  11.0682
  6  10.8595
  7  51.3683
  8  2.32302e-05
  9  37.5765
  10  33.6021
  11  0.000103074
  12  5.68934e-05
  13  3.91386e-07
  14  14.0233
  15  1.93013
  16  9.32609e-07
  17  2.18851
  18  0.259004
  19  0.155334
Done.

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

Extracting fit parameters...

4FGL J0937.9-1434
   Spectrum: PowerLaw
257    Prefactor:  1.891e+01  3.360e+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:  1.048e+00  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:  8.242e-01  2.590e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/376843/likelihoodResults_538444801_538704001_4FGL_J0937.9-1434_daily_bin1154.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) = 5839.88114776
delta logL = 0.00230851974447

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5839.88018569
delta logL = 0.00327058859239

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.643       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9116       1.0000          .0000       10.000    
     3 'Normalizat'    .82530       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0474       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=   5839.880     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      276 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.644        43.460        .88155E-04   -.47845E-04
   2  Index         1.9115        .87390        .10353E-01   -.14692E-04
   3  Normalizat    .82559        .25001        .34268E-03    .99197E-05
   4  Prefactor     1.0472        .15154        .18473E-03    .69643E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.644
  Index      = 1.91147
  Normalizat = 0.825593
  Prefactor  = 1.0472
 **********
 **   18 **HESSE 
 **********

 FCN=   5839.880     FROM HESSE     STATUS=OK            25 CALLS      301 TOTAL
                     EDM=   .38E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.644        41.187        .35262E-05   -1.4799    
   2  Index         1.9115        .82916        .41413E-03   -.66582    
   3  Normalizat    .82559        .25003        .13707E-04   -.99126    
   4  Prefactor     1.0472        .15159        .36945E-04   -.91172    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.76994e-11
Minuit parameter uncertainties:
  1  41.2432
  2  0.835433
  3  0.250377
  4  0.15165
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/376843': 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) = 5839.88018494
delta logL = 0.00327134022245

Extracting fit parameters...

4FGL J0937.9-1434
   Spectrum: PowerLaw
257    Prefactor:  2.064e+01  4.124e+01  1.000e-04  1.000e+04 ( 1.000e-14)
258        Index:  1.911e+00  8.354e-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.047e+00  1.517e-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.256e-01  2.504e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.40
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/376843/cmap_HighResolution_538444801_538704001_4FGL_J0937.9-1434_daily_bin1154.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.00e-03', job_status='DONE', photon_flux_upper_limit='9.35e-08', time_completed='2021-08-31 19:46:50.094276', job_id='376843', GAL2='1.05', fit_tolerance='1e-08', EG2='0.83', EG='0.82', time_epoch_completed='1630464410.09', return_code2='0', ts='0.40', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='3.27e-03', ts2='0.41', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='1154' AND source_name='4FGL J0937.9-1434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 19:46:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0130>
Subject: Job 376843: <4FGL_J0937.9-1434_daily_bin1154> in cluster <slac> Done

Job <4FGL_J0937.9-1434_daily_bin1154> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Aug 31 19:35:59 2021
Job was executed on host(s) <bullet0130>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 19:36:01 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:36:01 2021
Terminated at Tue Aug 31 19:46:50 2021
Results reported at Tue Aug 31 19:46:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0937.9-1434_daily_bin1154 144.475 -14.5706 538444801 538704001 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 :                                   546.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             312.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   649 sec.
    Turnaround time :                            651 sec.

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

