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


Performing analysis on: 4FGL_J0937.9-1434_daily_bin1306
RA = 144.475, Dec = -14.5706
tmin = 577843201, tmax = 578102401
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='377078', job_status='RUN', time_executed='2021-08-31 19:38:06.638231', time_epoch_executed='1630463886.64' WHERE source_name='4FGL J0937.9-1434' and cadence='daily' and bin_id='1306'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/377078

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/377078/ft1_4FGL_J0937.9-1434_daily_bin1306.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/377078/ft2_4FGL_J0937.9-1434_daily_bin1306.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/377078/ft1_4FGL_J0937.9-1434_daily_bin1306.fits outfile=/scratch/kocevski/377078/ft1_filteredMKT_4FGL_J0937.9-1434_daily_bin1306.fits ra=144.475 dec=-14.5706 rad=12.0 tmin=577843201.0 tmax=578102401.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.32
user 3.08
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/377078/ft1_filtered_4FGL_J0937.9-1434_daily_bin1306.fits" evtable="EVENTS" scfile=/scratch/kocevski/377078/ft2_4FGL_J0937.9-1434_daily_bin1306.fits sctable="SC_DATA" outfile=/scratch/kocevski/377078/ltcube_577843201_578102401_4FGL_J0937.9-1434_daily_bin1306.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/377078/ft2_4FGL_J0937.9-1434_daily_bin1306.fits
.....................!
real 12.44
user 11.99
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/377078/ft1_filtered_4FGL_J0937.9-1434_daily_bin1306.fits evtable="EVENTS" scfile=/scratch/kocevski/377078/ft2_4FGL_J0937.9-1434_daily_bin1306.fits sctable="SC_DATA" expcube=/scratch/kocevski/377078/ltcube_577843201_578102401_4FGL_J0937.9-1434_daily_bin1306.fits outfile=/scratch/kocevski/377078/expmap_577843201_578102401_4FGL_J0937.9-1434_daily_bin1306.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/377078/ltcube_577843201_578102401_4FGL_J0937.9-1434_daily_bin1306.fits
.....................!
real 192.75
user 186.00
sys 4.75

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/377078/ft1_filtered_4FGL_J0937.9-1434_daily_bin1306.fits scfile=/scratch/kocevski/377078/ft2_4FGL_J0937.9-1434_daily_bin1306.fits outfile=/scratch/kocevski/377078/cmap_577843201_578102401_4FGL_J0937.9-1434_daily_bin1306.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.60
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/377078/ft1_filtered_4FGL_J0937.9-1434_daily_bin1306.fits scfile=/scratch/kocevski/377078/ft2_4FGL_J0937.9-1434_daily_bin1306.fits outfile=/scratch/kocevski/377078/cmap_HighResolution_577843201_578102401_4FGL_J0937.9-1434_daily_bin1306.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.60
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/377078/ft1_filtered_4FGL_J0937.9-1434_daily_bin1306.fits evtable="EVENTS" scfile=/scratch/kocevski/377078/ft2_4FGL_J0937.9-1434_daily_bin1306.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/377078/Model_4FGL_J0937.9-1434_daily_bin1306.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/377078/ft1_filtered_4FGL_J0937.9-1434_daily_bin1306.fits.....................!
real 82.88
user 80.56
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.2788       1.0000         .10000E-03   10000.    
     2 'norm      '    .67331       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.750       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.6714       1.0000         .10000E-03   10000.    
     6 'Prefactor '    16.961       1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.686       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .41577       1.0000         .10000E-03   10000.    
    12 'norm      '    9.4673       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .11896E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .18786E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.0159       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.1856       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .84887       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=   7987.924     FROM MIGRAD    STATUS=CONVERGED    395 CALLS     1918 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.2845        10.028       -.52040E-05   -.12861E-03
   2  norm          .67154        1.7085        .10638E-06   -.85153E-03
   3  Prefactor     .10000E-03    1.4656        .27697E-08** at limit **
   4  Prefactor     15.760        11.362        .12118E-06   -.19360E-04
   5  Prefactor     7.6752        5.3244        .23323E-06   -.51223E-04
   6  Prefactor     16.960        17.819        .25304E-06   -.17201E-04
   7  Prefactor     11.705        35.044        .26083E-04    .49538E-04
   8  Prefactor     .10000E-03    19.598       -.66807E-06** at limit **
   9  Prefactor     .10000E-03    43.424       -.52496E-05** at limit **
  10  Prefactor     .10000E-03    67.349        .36580E-04** at limit **
  11  Prefactor     .40103        8.1961       -.28130E-05    .29181E-04
  12  norm          9.4709        6.7857        .20151E-05   -.10967E-03
  13  norm          .10000E-03    1.4518       -.58114E-07** at limit **
  14  norm          .10000E-03    3.4796        .27078E-08** at limit **
  15  norm          .10000E-03    .74961        .55458E-07** at limit **
  16  norm          .10282E-03    6.9104       -.26912E-05** at limit **
  17  norm          4.0159        1.4447        .41172E-07    .66600E-04
  18  Normalizat    1.1854        .17919       -.19264E-05    .57876E-03
  19  Prefactor     .84897        .10083       -.81238E-07    .46401E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.28455
  norm       = 0.67154
  Prefactor  = 0.0001
  Prefactor  = 15.7601
  Prefactor  = 7.67522
  Prefactor  = 16.9605
  Prefactor  = 11.7048
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.401029
  norm       = 9.47095
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.000102822
  norm       = 4.01595
  Normalizat = 1.18541
  Prefactor  = 0.848966
 **********
 **   18 **HESSE 
 **********

 FCN=   7987.924     FROM HESSE     STATUS=OK           276 CALLS     2194 TOTAL
                     EDM=   .34E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.2845        9.9473        .16020E-03   -1.5207    
   2  norm          .67154        1.5222        .17320E-02   -1.5544    
   3  Prefactor     .10000E-03    1.4789        .10564E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     15.760        11.208        .10092E-03   -1.4914    
   5  Prefactor     7.6752        5.3238        .14478E-03   -1.5154    
   6  Prefactor     16.960        17.884        .97251E-04   -1.4884    
   7  Prefactor     11.705        35.134        .11719E-03   -1.5024    
   8  Prefactor     .10000E-03    19.633        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    44.365        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    67.036        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .40103        106.28        .47740E-02   -1.5581    
  12  norm          9.4709        6.7352        .13025E-03   -1.5092    
  13  norm          .10000E-03    1.4695        .10514E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    3.4920        .16282E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.3598        .15054E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10282E-03    79.158        .43889E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.0159        1.4453        .62198E-04   -1.5307    
  18  Normalizat    1.1854        .20835        .27415E-03   -.87055    
  19  Prefactor     .84897        .11792        .19070E-03   -.97948    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.35052e-08
Minuit parameter uncertainties:
  1  9.94994
  2  1.52232
  3  7.63861e-07
  4  11.2096
  5  5.32412
  6  17.8901
  7  35.1962
  8  1.93553e-05
  9  0.000147598
  10  0.000769554
  11  13.0788
  12  6.73571
  13  3.1251e-06
  14  6.70198e-07
  15  1.1218e-05
  16  0.029929
  17  1.44527
  18  0.208496
  19  0.11796
Done.

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

Extracting fit parameters...

4FGL J0937.9-1434
   Spectrum: PowerLaw
257    Prefactor:  1.000e-04  7.696e-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:  8.490e-01  1.180e-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.185e+00  2.085e-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.16e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.61e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/377078/likelihoodResults_577843201_578102401_4FGL_J0937.9-1434_daily_bin1306.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) = 7987.92421836
delta logL = -7.09840032869e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7987.37289011
delta logL = 0.55125726499

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6835       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2410       1.0000          .0000       10.000    
     3 'Normalizat'    1.1335       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86205       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=   7987.373     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      263 TOTAL
                     EDM=   .87E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6835        36.603        .81149E-02    .52034E-03
   2  Index         3.2411        2.4051        .81523E-01    .28900E-03
   3  Normalizat    1.1334        .49555E-01    .63160E-01    .15128E-04
   4  Prefactor     .86206        .29092E-01    .44520E-01    .86761E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.68353
  Index      = 3.24107
  Normalizat = 1.13344
  Prefactor  = 0.862062
 **********
 **   18 **HESSE 
 **********

 FCN=   7987.373     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      296 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6835        82.961        .11194E-03   -1.5448    
   2  Index         3.2411        6.5779        .49839E-02   -.35948    
   3  Normalizat    1.1334        .18551        .27938E-03   -.88685    
   4  Prefactor     .86206        .10901        .18927E-03   -.97480    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.10542e-08
Minuit parameter uncertainties:
  1  23.6703
  2  4.80416
  3  0.185617
  4  0.109033
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/377078': 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) = 7987.37289009
delta logL = 0.551257285078

Extracting fit parameters...

4FGL J0937.9-1434
   Spectrum: PowerLaw
257    Prefactor:  1.684e+00  2.367e+01  1.000e-04  1.000e+04 ( 1.000e-14)
258        Index:  3.241e+00  4.804e+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.621e-01  1.090e-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.133e+00  1.856e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.15
Ra Dec: 144.475 -14.571
Photon Index (Free Index): 3.24 +/- 4.80
Photon Flux (Free Index): 4.93e-08 +/- 5.14e-08
Energy Flux (Free Index): 8.89e-06 +/- 1.57e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/377078/cmap_HighResolution_577843201_578102401_4FGL_J0937.9-1434_daily_bin1306.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.61e-03', comment='SUCCESS', energy_flux2='8.89e-06', dlogl='5.51e-01', photon_flux2='4.93e-08', job_status='DONE', time_completed='2021-08-31 19:50:24.614946', photon_index_error2='4.80', photon_index2='3.24', ts='-0.00', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', photon_flux_upper_limit='6.16e-08', energy_flux_error2='1.57e-05', EG='1.19', time_epoch_completed='1630464624.62', return_code='0', job_id='377078', GAL2='0.86', EG2='1.13', return_code2='102', photon_flux_error2='5.14e-08', ts2='1.15', photon_index='1.98' WHERE bin_id='1306' AND source_name='4FGL J0937.9-1434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 19:50:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0012>
Subject: Job 377078: <4FGL_J0937.9-1434_daily_bin1306> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0937.9-1434_daily_bin1306 144.475 -14.5706 577843201 578102401 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 :                                   645.25 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             292.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   842 sec.
    Turnaround time :                            844 sec.

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

