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


Performing analysis on: 4FGL_J0937.9-1434_daily_bin1049
RA = 144.475, Dec = -14.5706
tmin = 511228801, tmax = 511488001
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='375412', job_status='RUN', time_executed='2021-08-31 19:34:43.241772', time_epoch_executed='1630463683.24' WHERE source_name='4FGL J0937.9-1434' and cadence='daily' and bin_id='1049'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/375412

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/375412/ft1_4FGL_J0937.9-1434_daily_bin1049.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/375412/ft2_4FGL_J0937.9-1434_daily_bin1049.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/375412/ft1_4FGL_J0937.9-1434_daily_bin1049.fits outfile=/scratch/kocevski/375412/ft1_filteredMKT_4FGL_J0937.9-1434_daily_bin1049.fits ra=144.475 dec=-14.5706 rad=12.0 tmin=511228801.0 tmax=511488001.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.92
user 3.28
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/375412/ft2_4FGL_J0937.9-1434_daily_bin1049.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/375412/ft1_filteredMKT_4FGL_J0937.9-1434_daily_bin1049.fits evtable="EVENTS" outfile="/scratch/kocevski/375412/ft1_filtered_4FGL_J0937.9-1434_daily_bin1049.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.67
user 0.33
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/375412/ft1_filtered_4FGL_J0937.9-1434_daily_bin1049.fits" evtable="EVENTS" scfile=/scratch/kocevski/375412/ft2_4FGL_J0937.9-1434_daily_bin1049.fits sctable="SC_DATA" outfile=/scratch/kocevski/375412/ltcube_511228801_511488001_4FGL_J0937.9-1434_daily_bin1049.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/375412/ft2_4FGL_J0937.9-1434_daily_bin1049.fits
.....................!
real 11.98
user 11.60
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/375412/ft1_filtered_4FGL_J0937.9-1434_daily_bin1049.fits evtable="EVENTS" scfile=/scratch/kocevski/375412/ft2_4FGL_J0937.9-1434_daily_bin1049.fits sctable="SC_DATA" expcube=/scratch/kocevski/375412/ltcube_511228801_511488001_4FGL_J0937.9-1434_daily_bin1049.fits outfile=/scratch/kocevski/375412/expmap_511228801_511488001_4FGL_J0937.9-1434_daily_bin1049.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/375412/ltcube_511228801_511488001_4FGL_J0937.9-1434_daily_bin1049.fits
.....................!
real 191.49
user 186.35
sys 4.72

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/375412/ft1_filtered_4FGL_J0937.9-1434_daily_bin1049.fits scfile=/scratch/kocevski/375412/ft2_4FGL_J0937.9-1434_daily_bin1049.fits outfile=/scratch/kocevski/375412/cmap_511228801_511488001_4FGL_J0937.9-1434_daily_bin1049.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/375412/ft1_filtered_4FGL_J0937.9-1434_daily_bin1049.fits scfile=/scratch/kocevski/375412/ft2_4FGL_J0937.9-1434_daily_bin1049.fits outfile=/scratch/kocevski/375412/cmap_HighResolution_511228801_511488001_4FGL_J0937.9-1434_daily_bin1049.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.57
user 0.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10312E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .13760E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .45251       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.3251       1.0000         .10000E-03   10000.    
    10 'Prefactor '    44.592       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    13.743       1.0000         .10000E-03   10000.    
    13 'norm      '    5.1043       1.0000         .10000E-03   10000.    
    14 'norm      '    .12031E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.7843       1.0000         .10000E-03   10000.    
    16 'norm      '    .10044E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.4078       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .63796       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1664       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=   5398.305     FROM MIGRAD    STATUS=CONVERGED    434 CALLS     1974 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    8.1826        .75114E-06** at limit **
   2  norm          .10000E-03    1.3713        .34250E-07** at limit **
   3  Prefactor     .10000E-03    2.9938        .13427E-06** at limit **
   4  Prefactor     .10006E-03    10.450       -.76316E-07** at limit **
   5  Prefactor     .10000E-03    1.9854        .14872E-07** at limit **
   6  Prefactor     .10000E-03    7.6897        .57183E-07** at limit **
   7  Prefactor     .34881        53.550       -.13914E-05    .16205E-03
   8  Prefactor     .10000E-03    13.425        .39339E-07** at limit **
   9  Prefactor     1.3339        190.53       -.13656E-05   -.48283E-04
  10  Prefactor     44.585        41.855        .34919E-06    .49261E-04
  11  Prefactor     .10000E-03    15.222        .25126E-06** at limit **
  12  norm          13.741        11.532       -.26246E-06   -.13855E-03
  13  norm          5.1043        4.3396       -.13247E-06   -.30033E-04
  14  norm          .10000E-03    9.0954        .50215E-06** at limit **
  15  norm          2.7847        2.4674        .10594E-05   -.50805E-04
  16  norm          .10000E-03    7.8750        .10838E-06** at limit **
  17  norm          1.4083        1.9142        .42213E-06    .57552E-04
  18  Normalizat    .63800        .23214       -.15893E-05   -.61894E-04
  19  Prefactor     1.1663        .13733       -.84365E-06   -.84587E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00010006
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.348808
  Prefactor  = 0.0001
  Prefactor  = 1.33395
  Prefactor  = 44.5852
  Prefactor  = 0.0001
  norm       = 13.7413
  norm       = 5.10429
  norm       = 0.0001
  norm       = 2.78466
  norm       = 0.0001
  norm       = 1.40833
  Normalizat = 0.638002
  Prefactor  = 1.1663
 **********
 **   18 **HESSE 
 **********

 FCN=   5398.305     FROM HESSE     STATUS=OK           278 CALLS     2252 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    39.462        .39336E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.3788        .83917E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.0176        .12420E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10006E-03    71.486        .44250E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.9873        .10111E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.7100        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .34881        58.435        .13585       -1.5590    
   8  Prefactor     .10000E-03    13.434        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.3339        196.62        .38190E-02   -1.5477    
  10  Prefactor     44.585        41.880        .60038E-04   -1.4372    
  11  Prefactor     .10000E-03    15.295        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          13.741        11.495        .10804E-03   -1.4966    
  13  norm          5.1043        4.3260        .13527E-03   -1.5256    
  14  norm          .10000E-03    35.157        .43032E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.7847        2.4406        .51751E-03   -1.5374    
  16  norm          .10000E-03    7.9287        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.4083        1.9038        .11208E-03   -1.5471    
  18  Normalizat    .63800        .26038        .36661E-03   -1.0639    
  19  Prefactor     1.1663        .15576        .17088E-03   -.87375    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.41491e-09
Minuit parameter uncertainties:
  1  0.000445521
  2  1.98081e-06
  3  7.50025e-06
  4  0.0041427
  5  1.98257e-06
  6  9.72582e-06
  7  9.0371
  8  1.12626e-05
  9  32.4983
  10  41.9072
  11  4.52453e-05
  12  11.4966
  13  4.3263
  14  0.00011414
  15  2.44068
  16  1.49586e-05
  17  1.90392
  18  0.260883
  19  0.155824
Done.

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

Extracting fit parameters...

4FGL J0937.9-1434
   Spectrum: PowerLaw
257    Prefactor:  4.459e+01  4.191e+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.166e+00  1.558e-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:  6.380e-01  2.609e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.00
Ra Dec: 144.475 -14.571
Photon Index (Fixed Index): 1.98 +/- 0.00
Photon Flux (Fixed Index): 3.98e-08 +/- 3.74e-08
Energy Flux (Fixed Index): 2.89e-05 +/- 2.72e-05

TS (Fixed Index): 3.00
Ra Dec: 144.475 -14.571
Photon Flux Upper Limit: 1.25e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.32e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/375412/likelihoodResults_511228801_511488001_4FGL_J0937.9-1434_daily_bin1049.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) = 5398.04463159
delta logL = 0.260235863336

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5398.03971445
delta logL = 0.265153010897

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.858       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4588       1.0000          .0000       10.000    
     3 'Normalizat'    .59931       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1781       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=   5398.040     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      296 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.864        41.885        .80344E-04    .31529E-03
   2  Index         2.4583        .81010        .46354E-02    .22096E-03
   3  Normalizat    .59960        .26321        .37733E-03    .42807E-03
   4  Prefactor     1.1778        .15737        .17005E-03    .12567E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.8644
  Index      = 2.45832
  Normalizat = 0.5996
  Prefactor  = 1.17784
 **********
 **   18 **HESSE 
 **********

 FCN=   5398.040     FROM HESSE     STATUS=OK            25 CALLS      321 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.864        34.423        .16069E-04   -1.4710    
   2  Index         2.4583        .66513        .18542E-03   -.53325    
   3  Normalizat    .59960        .26019        .15093E-04   -1.0800    
   4  Prefactor     1.1778        .15664        .34009E-04   -.87016    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07939e-09
Minuit parameter uncertainties:
  1  34.4504
  2  0.667808
  3  0.260725
  4  0.156704
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/375412': 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) = 5398.03971267
delta logL = 0.265154790599

Extracting fit parameters...

4FGL J0937.9-1434
   Spectrum: PowerLaw
257    Prefactor:  2.486e+01  3.445e+01  1.000e-04  1.000e+04 ( 1.000e-14)
258        Index:  2.458e+00  6.678e-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.178e+00  1.567e-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:  5.996e-01  2.607e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.57
Ra Dec: 144.475 -14.571
Photon Index (Free Index): 2.46 +/- 0.67
Photon Flux (Free Index): 7.68e-08 +/- 7.60e-08
Energy Flux (Free Index): 2.34e-05 +/- 1.76e-05

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/375412/cmap_HighResolution_511228801_511488001_4FGL_J0937.9-1434_daily_bin1049.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.32e-03', comment='SUCCESS', photon_flux='3.98e-08', energy_flux2='2.34e-05', photon_flux_error='3.74e-08', dlogl='2.65e-01', energy_flux='2.89e-05', photon_flux2='7.68e-08', job_status='DONE', time_completed='2021-08-31 19:43:38.461884', photon_index_error2='0.67', photon_index2='2.46', ts='3.00', fit_tolerance='1e-08', GAL='1.17', photon_index_error='0.00', photon_flux_upper_limit='1.25e-07', energy_flux_error2='1.76e-05', EG='0.64', time_epoch_completed='1630464218.46', return_code='0', job_id='375412', GAL2='1.18', EG2='0.60', return_code2='0', energy_flux_error='2.72e-05', photon_flux_error2='7.60e-08', ts2='3.57', photon_index='1.98' WHERE bin_id='1049' AND source_name='4FGL J0937.9-1434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 19:43:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0044>
Subject: Job 375412: <4FGL_J0937.9-1434_daily_bin1049> in cluster <slac> Done

Job <4FGL_J0937.9-1434_daily_bin1049> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Aug 31 19:31:15 2021
Job was executed on host(s) <bullet0044>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 19:31:16 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 31 19:31:16 2021
Terminated at Tue Aug 31 19:43:39 2021
Results reported at Tue Aug 31 19:43:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0937.9-1434_daily_bin1049 144.475 -14.5706 511228801 511488001 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 :                                   531.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             221.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   742 sec.
    Turnaround time :                            744 sec.

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

