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


Performing analysis on: 4FGL_J0937.9-1434_daily_bin1488
RA = 144.475, Dec = -14.5706
tmin = 625017601, tmax = 625276801
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='377374', job_status='RUN', time_executed='2021-08-31 19:37:00.873788', time_epoch_executed='1630463820.87' WHERE source_name='4FGL J0937.9-1434' and cadence='daily' and bin_id='1488'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/377374

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/377374/ft1_4FGL_J0937.9-1434_daily_bin1488.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/377374/ft2_4FGL_J0937.9-1434_daily_bin1488.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/377374/ft1_4FGL_J0937.9-1434_daily_bin1488.fits outfile=/scratch/kocevski/377374/ft1_filteredMKT_4FGL_J0937.9-1434_daily_bin1488.fits ra=144.475 dec=-14.5706 rad=12.0 tmin=625017601.0 tmax=625276801.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.70
user 3.44
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/377374/ft1_filtered_4FGL_J0937.9-1434_daily_bin1488.fits" evtable="EVENTS" scfile=/scratch/kocevski/377374/ft2_4FGL_J0937.9-1434_daily_bin1488.fits sctable="SC_DATA" outfile=/scratch/kocevski/377374/ltcube_625017601_625276801_4FGL_J0937.9-1434_daily_bin1488.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/377374/ft2_4FGL_J0937.9-1434_daily_bin1488.fits
.....................!
real 12.37
user 12.05
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/377374/ft1_filtered_4FGL_J0937.9-1434_daily_bin1488.fits evtable="EVENTS" scfile=/scratch/kocevski/377374/ft2_4FGL_J0937.9-1434_daily_bin1488.fits sctable="SC_DATA" expcube=/scratch/kocevski/377374/ltcube_625017601_625276801_4FGL_J0937.9-1434_daily_bin1488.fits outfile=/scratch/kocevski/377374/expmap_625017601_625276801_4FGL_J0937.9-1434_daily_bin1488.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/377374/ltcube_625017601_625276801_4FGL_J0937.9-1434_daily_bin1488.fits
.....................!
real 190.21
user 185.94
sys 3.78

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/377374/ft1_filtered_4FGL_J0937.9-1434_daily_bin1488.fits scfile=/scratch/kocevski/377374/ft2_4FGL_J0937.9-1434_daily_bin1488.fits outfile=/scratch/kocevski/377374/cmap_625017601_625276801_4FGL_J0937.9-1434_daily_bin1488.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/377374/ft1_filtered_4FGL_J0937.9-1434_daily_bin1488.fits scfile=/scratch/kocevski/377374/ft2_4FGL_J0937.9-1434_daily_bin1488.fits outfile=/scratch/kocevski/377374/cmap_HighResolution_625017601_625276801_4FGL_J0937.9-1434_daily_bin1488.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=144.475 yref=-14.5706 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/377374/ft1_filtered_4FGL_J0937.9-1434_daily_bin1488.fits evtable="EVENTS" scfile=/scratch/kocevski/377374/ft2_4FGL_J0937.9-1434_daily_bin1488.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/377374/Model_4FGL_J0937.9-1434_daily_bin1488.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/377374/ft1_filtered_4FGL_J0937.9-1434_daily_bin1488.fits.....................!
real 72.09
user 70.75
sys 1.11

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.6981       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    21.122       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10152E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    75.390       1.0000         .10000E-03   10000.    
     8 'Prefactor '    106.61       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.7793       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.4278       1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    5.3833       1.0000         .10000E-03   10000.    
    15 'norm      '    .66229       1.0000         .10000E-03   10000.    
    16 'norm      '    4.4655       1.0000         .10000E-03   10000.    
    17 'norm      '    5.3926       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0402       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .89201       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=   6828.718     FROM MIGRAD    STATUS=CONVERGED    363 CALLS     1931 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.2925        .25296E-06** at limit **
   2  norm          2.6982        3.3978        .63530E-06   -.28807E-03
   3  Prefactor     .10000E-03    2.1745       -.16998E-06** at limit **
   4  Prefactor     21.123        14.706        .98232E-06    .10306E-03
   5  Prefactor     .10000E-03    14.364       -.14381E-04** at limit **
   6  Prefactor     .10000E-03    12.985        .16483E-04** at limit **
   7  Prefactor     75.390        40.934       -.28615E-06   -.91582E-06
   8  Prefactor     106.63        51.335        .13218E-04   -.10755E-03
   9  Prefactor     .10000E-03    8.7734       -.32406E-05** at limit **
  10  Prefactor     2.7735        32.566       -.20694E-04   -.55459E-04
  11  Prefactor     5.4295        15.258        .31601E-05   -.36924E-04
  12  norm          .10000E-03    2.7664        .16070E-07** at limit **
  13  norm          .10000E-03    1.0914       -.19367E-06** at limit **
  14  norm          5.3830        6.9955       -.48362E-06   -.55059E-03
  15  norm          .66212        2.0973       -.84388E-06   -.15744E-02
  16  norm          4.4651        8.2067       -.23245E-07   -.14842E-03
  17  norm          5.3926        1.8525        .36206E-07   -.12244E-03
  18  Normalizat    1.0401        .19667       -.25046E-05    .30521E-03
  19  Prefactor     .89210        .11389        .98511E-06    .12271E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 2.69824
  Prefactor  = 0.0001
  Prefactor  = 21.1226
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 75.39
  Prefactor  = 106.627
  Prefactor  = 0.0001
  Prefactor  = 2.77346
  Prefactor  = 5.42949
  norm       = 0.0001
  norm       = 0.0001
  norm       = 5.38295
  norm       = 0.662121
  norm       = 4.46511
  norm       = 5.39263
  Normalizat = 1.04012
  Prefactor  = 0.892101
 **********
 **   18 **HESSE 
 **********

 FCN=   6828.718     FROM HESSE     STATUS=OK           264 CALLS     2195 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.2984        .16716E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.6982        3.3711        .15869E-03   -1.5379    
   3  Prefactor     .10000E-03    2.1914        .11898E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     21.123        14.673        .87151E-04   -1.4788    
   5  Prefactor     .10000E-03    14.712        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    12.814        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     75.390        40.944        .46244E-04   -1.3969    
   8  Prefactor     106.63        50.840        .38948E-04   -1.3639    
   9  Prefactor     .10000E-03    8.7789        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.7735        33.067        .24409E-03   -1.5375    
  11  Prefactor     5.4295        15.219        .17248E-03   -1.5242    
  12  norm          .10000E-03    2.7860        .13417E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.0935        .84287E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.3830        7.0090        .86601E-03   -1.5244    
  15  norm          .66212        2.1197        .20386E-03   -1.5545    
  16  norm          4.4651        8.1999        .19055E-03   -1.5285    
  17  norm          5.3926        1.8521        .63263E-04   -1.5243    
  18  Normalizat    1.0401        .22844        .29800E-03   -.91698    
  19  Prefactor     .89210        .13299        .19138E-03   -.96418    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.90784e-09
Minuit parameter uncertainties:
  1  7.3054e-06
  2  3.37136
  3  1.08107e-06
  4  14.6758
  5  0.000126004
  6  0.000222383
  7  40.9589
  8  50.8609
  9  3.72589e-06
  10  19.1658
  11  15.2302
  12  2.62556e-05
  13  1.20033e-06
  14  7.01004
  15  2.11995
  16  8.20196
  17  1.85208
  18  0.228661
  19  0.133034
Done.

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

Extracting fit parameters...

4FGL J0937.9-1434
   Spectrum: PowerLaw
257    Prefactor:  2.773e+00  1.917e+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:  8.921e-01  1.330e-01  0.000e+00  1.000e+01 ( 1.000e+00)
535        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
536        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
533   Normalization:  1.040e+00  2.287e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/377374/likelihoodResults_625017601_625276801_4FGL_J0937.9-1434_daily_bin1488.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) = 6828.7168253
delta logL = 0.000932946260036

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6828.7167225
delta logL = 0.00103574807144

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.5173       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0648       1.0000          .0000       10.000    
     3 'Normalizat'    1.0400       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89201       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=   6828.717     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      268 TOTAL
                     EDM=   .92E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.5132        35.989        .25750E-03   -.12790E-03
   2  Index         2.0639        1.8531        .33382E-02   -.20721E-03
   3  Normalizat    1.0399        .21851        .29803E-03   -.68360E-03
   4  Prefactor     .89213        .13214        .19138E-03   -.12386E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.51318
  Index      = 2.06388
  Normalizat = 1.03991
  Prefactor  = 0.892127
 **********
 **   18 **HESSE 
 **********

 FCN=   6828.717     FROM HESSE     STATUS=OK            23 CALLS      291 TOTAL
                     EDM=   .89E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.5132        34.145        .10300E-04   -1.5391    
   2  Index         2.0639        1.8086        .13353E-03   -.62763    
   3  Normalizat    1.0399        .21866        .59605E-04   -.91705    
   4  Prefactor     .89213        .13223        .38276E-04   -.96417    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.92519e-09
Minuit parameter uncertainties:
  1  18.5396
  2  1.87498
  3  0.218846
  4  0.132274
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/377374': 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) = 6828.71672176
delta logL = 0.00103647938795

Extracting fit parameters...

4FGL J0937.9-1434
   Spectrum: PowerLaw
257    Prefactor:  2.513e+00  1.854e+01  1.000e-04  1.000e+04 ( 1.000e-14)
258        Index:  2.064e+00  1.875e+00  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.921e-01  1.323e-01  0.000e+00  1.000e+01 ( 1.000e+00)
535        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
536        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
533   Normalization:  1.040e+00  2.188e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.02
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/377374/cmap_HighResolution_625017601_625276801_4FGL_J0937.9-1434_daily_bin1488.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.28e-03', job_status='DONE', photon_flux_upper_limit='5.71e-08', time_completed='2021-08-31 19:47:28.098971', job_id='377374', GAL2='0.89', fit_tolerance='1e-08', EG2='1.04', EG='1.04', time_epoch_completed='1630464448.1', return_code2='0', ts='0.02', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='1.04e-03', ts2='0.03', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='1488' AND source_name='4FGL J0937.9-1434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 19:47:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0123>
Subject: Job 377374: <4FGL_J0937.9-1434_daily_bin1488> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0937.9-1434_daily_bin1488 144.475 -14.5706 625017601 625276801 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 :                                   589.37 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             303.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   640 sec.
    Turnaround time :                            641 sec.

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

