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


Performing analysis on: 4FGL_J0937.9-1434_daily_bin1310
RA = 144.475, Dec = -14.5706
tmin = 578880001, tmax = 579139201
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='377085', job_status='RUN', time_executed='2021-08-31 19:37:19.417941', time_epoch_executed='1630463839.42' WHERE source_name='4FGL J0937.9-1434' and cadence='daily' and bin_id='1310'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/377085

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/377085/ft1_4FGL_J0937.9-1434_daily_bin1310.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/377085/ft2_4FGL_J0937.9-1434_daily_bin1310.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/377085/ft1_4FGL_J0937.9-1434_daily_bin1310.fits outfile=/scratch/kocevski/377085/ft1_filteredMKT_4FGL_J0937.9-1434_daily_bin1310.fits ra=144.475 dec=-14.5706 rad=12.0 tmin=578880001.0 tmax=579139201.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.61
user 3.33
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/377085/ft1_filtered_4FGL_J0937.9-1434_daily_bin1310.fits" evtable="EVENTS" scfile=/scratch/kocevski/377085/ft2_4FGL_J0937.9-1434_daily_bin1310.fits sctable="SC_DATA" outfile=/scratch/kocevski/377085/ltcube_578880001_579139201_4FGL_J0937.9-1434_daily_bin1310.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/377085/ft2_4FGL_J0937.9-1434_daily_bin1310.fits
.....................!
real 12.73
user 12.26
sys 0.40

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/377085/ft1_filtered_4FGL_J0937.9-1434_daily_bin1310.fits evtable="EVENTS" scfile=/scratch/kocevski/377085/ft2_4FGL_J0937.9-1434_daily_bin1310.fits sctable="SC_DATA" expcube=/scratch/kocevski/377085/ltcube_578880001_579139201_4FGL_J0937.9-1434_daily_bin1310.fits outfile=/scratch/kocevski/377085/expmap_578880001_579139201_4FGL_J0937.9-1434_daily_bin1310.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/377085/ltcube_578880001_579139201_4FGL_J0937.9-1434_daily_bin1310.fits
.....................!
real 189.66
user 184.86
sys 4.32

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/377085/ft1_filtered_4FGL_J0937.9-1434_daily_bin1310.fits scfile=/scratch/kocevski/377085/ft2_4FGL_J0937.9-1434_daily_bin1310.fits outfile=/scratch/kocevski/377085/cmap_578880001_579139201_4FGL_J0937.9-1434_daily_bin1310.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.53
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/377085/ft1_filtered_4FGL_J0937.9-1434_daily_bin1310.fits scfile=/scratch/kocevski/377085/ft2_4FGL_J0937.9-1434_daily_bin1310.fits outfile=/scratch/kocevski/377085/cmap_HighResolution_578880001_579139201_4FGL_J0937.9-1434_daily_bin1310.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.54
user 0.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/377085/ft1_filtered_4FGL_J0937.9-1434_daily_bin1310.fits evtable="EVENTS" scfile=/scratch/kocevski/377085/ft2_4FGL_J0937.9-1434_daily_bin1310.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/377085/Model_4FGL_J0937.9-1434_daily_bin1310.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/377085/ft1_filtered_4FGL_J0937.9-1434_daily_bin1310.fits.....................!
real 75.56
user 73.55
sys 1.34

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10512E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10839E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    26.569       1.0000         .10000E-03   10000.    
     8 'Prefactor '    44.248       1.0000         .10000E-03   10000.    
     9 'Prefactor '    30.414       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.8506       1.0000         .10000E-03   10000.    
    12 'norm      '    2.3196       1.0000         .10000E-03   10000.    
    13 'norm      '    .13046       1.0000         .10000E-03   10000.    
    14 'norm      '    .10091E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .85632       1.0000         .10000E-03   10000.    
    16 'norm      '    6.7672       1.0000         .10000E-03   10000.    
    17 'norm      '    6.3857       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .83440       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0003       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=   6873.961     FROM MIGRAD    STATUS=CONVERGED    388 CALLS     1890 TOTAL
                     EDM=   .94E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10004E-03    6.2099        .10077E-05** at limit **
   2  norm          .10000E-03    .95832       -.11430E-06** at limit **
   3  Prefactor     .10000E-03    2.3619        .28526E-06** at limit **
   4  Prefactor     .10000E-03    5.7016       -.17991E-06** at limit **
   5  Prefactor     .10000E-03    2.1035        .21629E-06** at limit **
   6  Prefactor     .10000E-03    9.2289        .16001E-06** at limit **
   7  Prefactor     26.574        27.730        .50549E-05    .50141E-04
   8  Prefactor     44.241        37.702       -.61022E-05   -.66930E-04
   9  Prefactor     30.426        26.931        .91409E-05    .12265E-03
  10  Prefactor     .10000E-03    11.155        .63684E-06** at limit **
  11  Prefactor     8.8521        8.9441       -.30492E-06   -.21505E-04
  12  norm          2.3164        2.5738        .82314E-06   -.23718E-02
  13  norm          .12991        2.1544       -.86337E-07   -.12048E-03
  14  norm          .10000E-03    5.2902        .18918E-06** at limit **
  15  norm          .85670        1.6405       -.26636E-06   -.57414E-03
  16  norm          6.7690        7.5864        .73641E-07   -.16667E-03
  17  norm          6.3862        1.8496        .45077E-07   -.38170E-04
  18  Normalizat    .83437        .18712       -.18862E-05   -.37932E-04
  19  Prefactor     1.0002        .11155        .64978E-07   -.18599E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100044
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.5744
  Prefactor  = 44.2413
  Prefactor  = 30.4256
  Prefactor  = 0.0001
  Prefactor  = 8.85208
  norm       = 2.31644
  norm       = 0.129914
  norm       = 0.0001
  norm       = 0.856703
  norm       = 6.76904
  norm       = 6.38619
  Normalizat = 0.834368
  Prefactor  = 1.00018
 **********
 **   18 **HESSE 
 **********

 FCN=   6873.961     FROM HESSE     STATUS=OK           270 CALLS     2160 TOTAL
                     EDM=   .70E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10004E-03    40.324        .39738E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .96943        .79207E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.3873        .12440E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.7190        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.1070        .11743E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9.2705        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     26.574        27.713        .77720E-04   -1.4677    
   8  Prefactor     44.241        37.781        .60270E-04   -1.4377    
   9  Prefactor     30.426        27.111        .72651E-04   -1.4604    
  10  Prefactor     .10000E-03    11.164        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.8521        8.9479        .13473E-03   -1.5113    
  12  norm          2.3164        5.9229        .13467E-02   -1.5404    
  13  norm          .12991        7.7408        .23490E-02   -1.5636    
  14  norm          .10000E-03    5.3278        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .85670        1.3689        .14170E-02   -1.5523    
  16  norm          6.7690        7.5840        .77120E-03   -1.5188    
  17  norm          6.3862        1.8492        .58226E-04   -1.5202    
  18  Normalizat    .83437        .21830        .31346E-03   -.98806    
  19  Prefactor     1.0002        .13138        .17748E-03   -.92723    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.01114e-08
Minuit parameter uncertainties:
  1  0.00265348
  2  4.96788e-07
  3  3.16079e-06
  4  1.49558e-06
  5  1.52642e-06
  6  3.58919e-05
  7  27.7259
  8  37.8016
  9  27.1218
  10  2.40064e-07
  11  8.94926
  12  5.9244
  13  2.00513
  14  3.60677e-06
  15  1.36895
  16  7.58504
  17  1.84925
  18  0.218527
  19  0.131426
Done.

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

Extracting fit parameters...

4FGL J0937.9-1434
   Spectrum: PowerLaw
257    Prefactor:  1.000e-04  2.401e-07  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.000e+00  1.314e-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.344e-01  2.185e-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: 4.69e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.51e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/377085/likelihoodResults_578880001_579139201_4FGL_J0937.9-1434_daily_bin1310.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) = 6873.9612477
delta logL = -0.000426635388067

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6873.96082097
delta logL = 9.63418642641e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9561       1.0000          .0000       10.000    
     3 'Normalizat'    .83437       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0002       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=   6873.961     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      210 TOTAL
                     EDM=   .84E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    299.93        .90712E-02** at limit **
   2  Index         1.9332        7.7550        .50000        .15009E-04
   3  Normalizat    .83437        .24977E-01    .70838E-01    .24944E-04
   4  Prefactor     1.0002        .15444E-01    .45937E-01   -.10736E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.9332
  Normalizat = 0.834367
  Prefactor  = 1.00018
 **********
 **   18 **HESSE 
 **********

 FCN=   6873.961     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      241 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1950.6        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9332        5.9639        .50000       -.66031    
   3  Normalizat    .83437        .91090E-01    .31346E-03   -.98806    
   4  Prefactor     1.0002        .56411E-01    .17748E-03   -.92723    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.64177e-08
Minuit parameter uncertainties:
  1  0.000911852
  2  53.0366
  3  0.0911062
  4  0.0564146
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/377085': 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) = 6873.96082088
delta logL = 1.87089426618e-07

Extracting fit parameters...

4FGL J0937.9-1434
   Spectrum: PowerLaw
257    Prefactor:  1.000e-04  9.119e-04  1.000e-04  1.000e+04 ( 1.000e-14)
258        Index:  1.933e+00  5.304e+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.000e+00  5.641e-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.344e-01  9.111e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/377085/cmap_HighResolution_578880001_579139201_4FGL_J0937.9-1434_daily_bin1310.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.51e-03', job_status='DONE', photon_flux_upper_limit='4.69e-08', time_completed='2021-08-31 19:48:09.573493', job_id='377085', GAL2='1.00', fit_tolerance='1e-08', EG2='0.83', EG='0.83', time_epoch_completed='1630464489.57', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='1.87e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='1310' AND source_name='4FGL J0937.9-1434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 19:48:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 377085: <4FGL_J0937.9-1434_daily_bin1310> in cluster <slac> Done

Job <4FGL_J0937.9-1434_daily_bin1310> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Aug 31 19:36:22 2021
Job was executed on host(s) <bullet0221>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 19:36:23 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:23 2021
Terminated at Tue Aug 31 19:48:10 2021
Results reported at Tue Aug 31 19:48:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0937.9-1434_daily_bin1310 144.475 -14.5706 578880001 579139201 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 :                                   591.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             325.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   706 sec.
    Turnaround time :                            708 sec.

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

