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


Performing analysis on: 4FGL_J0937.9-1434_daily_bin1328
RA = 144.475, Dec = -14.5706
tmin = 583545601, tmax = 583804801
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='377114', job_status='RUN', time_executed='2021-08-31 19:38:10.122183', time_epoch_executed='1630463890.12' WHERE source_name='4FGL J0937.9-1434' and cadence='daily' and bin_id='1328'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/377114

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/377114/ft1_4FGL_J0937.9-1434_daily_bin1328.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/377114/ft2_4FGL_J0937.9-1434_daily_bin1328.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/377114/ft1_4FGL_J0937.9-1434_daily_bin1328.fits outfile=/scratch/kocevski/377114/ft1_filteredMKT_4FGL_J0937.9-1434_daily_bin1328.fits ra=144.475 dec=-14.5706 rad=12.0 tmin=583545601.0 tmax=583804801.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.45
user 3.24
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/377114/ft1_filtered_4FGL_J0937.9-1434_daily_bin1328.fits" evtable="EVENTS" scfile=/scratch/kocevski/377114/ft2_4FGL_J0937.9-1434_daily_bin1328.fits sctable="SC_DATA" outfile=/scratch/kocevski/377114/ltcube_583545601_583804801_4FGL_J0937.9-1434_daily_bin1328.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/377114/ft2_4FGL_J0937.9-1434_daily_bin1328.fits
.....................!
real 11.86
user 11.53
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/377114/ft1_filtered_4FGL_J0937.9-1434_daily_bin1328.fits evtable="EVENTS" scfile=/scratch/kocevski/377114/ft2_4FGL_J0937.9-1434_daily_bin1328.fits sctable="SC_DATA" expcube=/scratch/kocevski/377114/ltcube_583545601_583804801_4FGL_J0937.9-1434_daily_bin1328.fits outfile=/scratch/kocevski/377114/expmap_583545601_583804801_4FGL_J0937.9-1434_daily_bin1328.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/377114/ltcube_583545601_583804801_4FGL_J0937.9-1434_daily_bin1328.fits
.....................!
real 193.54
user 188.68
sys 4.48

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/377114/ft1_filtered_4FGL_J0937.9-1434_daily_bin1328.fits scfile=/scratch/kocevski/377114/ft2_4FGL_J0937.9-1434_daily_bin1328.fits outfile=/scratch/kocevski/377114/cmap_583545601_583804801_4FGL_J0937.9-1434_daily_bin1328.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.52
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/377114/ft1_filtered_4FGL_J0937.9-1434_daily_bin1328.fits scfile=/scratch/kocevski/377114/ft2_4FGL_J0937.9-1434_daily_bin1328.fits outfile=/scratch/kocevski/377114/cmap_HighResolution_583545601_583804801_4FGL_J0937.9-1434_daily_bin1328.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.53
user 0.39
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    16.690       1.0000         .10000E-03   10000.    
     2 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .13203E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.2518       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    56.792       1.0000         .10000E-03   10000.    
    10 'Prefactor '    26.928       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    10.911       1.0000         .10000E-03   10000.    
    15 'norm      '    .79235       1.0000         .10000E-03   10000.    
    16 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    6.1267       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .83034       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0495       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=   6872.267     FROM MIGRAD    STATUS=CONVERGED    389 CALLS     1919 TOTAL
                     EDM=   .77E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          16.691        11.362       -.46899E-06   -.76512E-04
   2  norm          .10000E-03    .77089       -.29378E-07** at limit **
   3  Prefactor     .10000E-03    2.2214       -.20495E-06** at limit **
   4  Prefactor     .10000E-03    4.7052        .54426E-05** at limit **
   5  Prefactor     .10000E-03    2.6548       -.48155E-07** at limit **
   6  Prefactor     .10000E-03    28.606       -.21247E-05** at limit **
   7  Prefactor     2.1904        62.488       -.78149E-04   -.20081E-04
   8  Prefactor     .10000E-03    66.474        .15571E-04** at limit **
   9  Prefactor     56.788        42.107       -.53019E-05    .10318E-03
  10  Prefactor     26.933        27.181        .22753E-05    .32122E-04
  11  Prefactor     .10000E-03    3.3403        .17298E-07** at limit **
  12  norm          .10000E-03    3.9368       -.32866E-06** at limit **
  13  norm          .10000E-03    4.6218       -.52352E-05** at limit **
  14  norm          10.912        9.5328       -.31584E-06    .10899E-04
  15  norm          .79305        2.0959       -.10909E-05   -.13546E-02
  16  norm          .10000E-03    6.0349        .25822E-06** at limit **
  17  norm          6.1268        1.8426       -.12488E-06    .80236E-04
  18  Normalizat    .83029        .19084        .45130E-05    .26307E-03
  19  Prefactor     1.0495        .11381        .60123E-06    .64136E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 16.6905
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.19038
  Prefactor  = 0.0001
  Prefactor  = 56.7879
  Prefactor  = 26.933
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 10.9115
  norm       = 0.793048
  norm       = 0.0001
  norm       = 6.12681
  Normalizat = 0.830294
  Prefactor  = 1.04954
 **********
 **   18 **HESSE 
 **********

 FCN=   6872.267     FROM HESSE     STATUS=OK           264 CALLS     2183 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          16.691        11.366        .98038E-04   -1.4891    
   2  norm          .10000E-03    .77247        .71061E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    18.169        .23822E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.7049        .17538E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.6626        .13190E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    28.996        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.1904        63.692        .27381E-03   -1.5412    
   8  Prefactor     .10000E-03    66.761        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     56.788        42.327        .53232E-04   -1.4199    
  10  Prefactor     26.933        27.162        .77200E-04   -1.4670    
  11  Prefactor     .10000E-03    3.3430        .14797E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    3.9622        .16051E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    4.7569        .34687E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          10.912        9.5350        .12129E-03   -1.5047    
  15  norm          .79305        2.0831        .18748E-03   -1.5530    
  16  norm          .10000E-03    6.0741        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          6.1268        1.8421        .59276E-04   -1.5213    
  18  Normalizat    .83029        .21791        .32374E-03   -.98955    
  19  Prefactor     1.0495        .13004        .17879E-03   -.91096    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.46985e-09
Minuit parameter uncertainties:
  1  11.3675
  2  1.82641e-06
  3  1.31351e-06
  4  1.33985e-05
  5  7.6461e-06
  6  0.000146007
  7  23.65
  8  0.000289362
  9  42.3499
  10  27.1745
  11  7.46794e-06
  12  1.54078e-05
  13  3.56071e-05
  14  9.53629
  15  2.08327
  16  2.24598e-05
  17  1.8421
  18  0.218144
  19  0.13008
Done.

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

Extracting fit parameters...

4FGL J0937.9-1434
   Spectrum: PowerLaw
257    Prefactor:  2.693e+01  2.717e+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.050e+00  1.301e-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.303e-01  2.181e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.74
Ra Dec: 144.475 -14.571
Photon Index (Fixed Index): 1.98 +/- 0.00
Photon Flux (Fixed Index): 2.40e-08 +/- 2.42e-08
Energy Flux (Fixed Index): 1.75e-05 +/- 1.76e-05

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

Saving results to:
/scratch/kocevski/377114/likelihoodResults_583545601_583804801_4FGL_J0937.9-1434_daily_bin1328.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) = 6872.25762427
delta logL = 0.00920108941318

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6872.24999071
delta logL = 0.0168346506343

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.828       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1009       1.0000          .0000       10.000    
     3 'Normalizat'    .82684       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0505       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=   6872.250     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      247 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.812        35.731        .83835E-04   -.52814E-03
   2  Index         2.1011        .73309        .60574E-02   -.37340E-03
   3  Normalizat    .82688        .20945        .32434E-03   -.14704E-02
   4  Prefactor     1.0505        .12899        .17872E-03   -.29257E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.8118
  Index      = 2.10111
  Normalizat = 0.826875
  Prefactor  = 1.05046
 **********
 **   18 **HESSE 
 **********

 FCN=   6872.250     FROM HESSE     STATUS=OK            23 CALLS      270 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.812        32.693        .16767E-04   -1.4752    
   2  Index         2.1011        .67102        .24230E-03   -.61846    
   3  Normalizat    .82688        .20935        .64869E-04   -.99079    
   4  Prefactor     1.0505        .12900        .35744E-04   -.91066    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.57908e-09
Minuit parameter uncertainties:
  1  32.7186
  2  0.674089
  3  0.209554
  4  0.129042
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/377114': 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) = 6872.24999052
delta logL = 0.0168348318994

Extracting fit parameters...

4FGL J0937.9-1434
   Spectrum: PowerLaw
257    Prefactor:  2.281e+01  3.272e+01  1.000e-04  1.000e+04 ( 1.000e-14)
258        Index:  2.101e+00  6.741e-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.050e+00  1.290e-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.269e-01  2.096e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.77
Ra Dec: 144.475 -14.571
Photon Index (Free Index): 2.10 +/- 0.67
Photon Flux (Free Index): 2.75e-08 +/- 3.25e-08
Energy Flux (Free Index): 1.50e-05 +/- 1.90e-05

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/377114/cmap_HighResolution_583545601_583804801_4FGL_J0937.9-1434_daily_bin1328.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.34e-03', comment='SUCCESS', photon_flux='2.40e-08', energy_flux2='1.50e-05', photon_flux_error='2.42e-08', dlogl='1.68e-02', energy_flux='1.75e-05', photon_flux2='2.75e-08', job_status='DONE', time_completed='2021-08-31 19:49:26.762621', photon_index_error2='0.67', photon_index2='2.10', ts='1.74', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='8.46e-08', energy_flux_error2='1.90e-05', EG='0.83', time_epoch_completed='1630464566.76', return_code='0', job_id='377114', GAL2='1.05', EG2='0.83', return_code2='0', energy_flux_error='1.76e-05', photon_flux_error2='3.25e-08', ts2='1.77', photon_index='1.98' WHERE bin_id='1328' AND source_name='4FGL J0937.9-1434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 19:49:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0116>
Subject: Job 377114: <4FGL_J0937.9-1434_daily_bin1328> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0937.9-1434_daily_bin1328 144.475 -14.5706 583545601 583804801 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 :                                   584.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             336.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   782 sec.
    Turnaround time :                            783 sec.

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

