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


Performing analysis on: 4FGL_J0937.9-1434_daily_bin1398
RA = 144.475, Dec = -14.5706
tmin = 601689601, tmax = 601948801
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='377231', job_status='RUN', time_executed='2021-08-31 19:37:18.090451', time_epoch_executed='1630463838.09' WHERE source_name='4FGL J0937.9-1434' and cadence='daily' and bin_id='1398'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/377231

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/377231/ft1_4FGL_J0937.9-1434_daily_bin1398.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/377231/ft2_4FGL_J0937.9-1434_daily_bin1398.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/377231/ft1_4FGL_J0937.9-1434_daily_bin1398.fits outfile=/scratch/kocevski/377231/ft1_filteredMKT_4FGL_J0937.9-1434_daily_bin1398.fits ra=144.475 dec=-14.5706 rad=12.0 tmin=601689601.0 tmax=601948801.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.65
user 3.41
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/377231/ft1_filtered_4FGL_J0937.9-1434_daily_bin1398.fits" evtable="EVENTS" scfile=/scratch/kocevski/377231/ft2_4FGL_J0937.9-1434_daily_bin1398.fits sctable="SC_DATA" outfile=/scratch/kocevski/377231/ltcube_601689601_601948801_4FGL_J0937.9-1434_daily_bin1398.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/377231/ft2_4FGL_J0937.9-1434_daily_bin1398.fits
.....................!
real 11.84
user 11.48
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/377231/ft1_filtered_4FGL_J0937.9-1434_daily_bin1398.fits evtable="EVENTS" scfile=/scratch/kocevski/377231/ft2_4FGL_J0937.9-1434_daily_bin1398.fits sctable="SC_DATA" expcube=/scratch/kocevski/377231/ltcube_601689601_601948801_4FGL_J0937.9-1434_daily_bin1398.fits outfile=/scratch/kocevski/377231/expmap_601689601_601948801_4FGL_J0937.9-1434_daily_bin1398.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/377231/ltcube_601689601_601948801_4FGL_J0937.9-1434_daily_bin1398.fits
.....................!
real 189.69
user 185.15
sys 4.03

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/377231/ft1_filtered_4FGL_J0937.9-1434_daily_bin1398.fits scfile=/scratch/kocevski/377231/ft2_4FGL_J0937.9-1434_daily_bin1398.fits outfile=/scratch/kocevski/377231/cmap_601689601_601948801_4FGL_J0937.9-1434_daily_bin1398.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.58
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/377231/ft1_filtered_4FGL_J0937.9-1434_daily_bin1398.fits scfile=/scratch/kocevski/377231/ft2_4FGL_J0937.9-1434_daily_bin1398.fits outfile=/scratch/kocevski/377231/cmap_HighResolution_601689601_601948801_4FGL_J0937.9-1434_daily_bin1398.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.58
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.6488       1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.544       1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.386       1.0000         .10000E-03   10000.    
     5 'Prefactor '    20.479       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.8232       1.0000         .10000E-03   10000.    
     7 'Prefactor '    56.473       1.0000         .10000E-03   10000.    
     8 'Prefactor '    27.831       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.316       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.6236       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .23247E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.9630       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .34233       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0260       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .99070       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=   7380.685     FROM MIGRAD    STATUS=CONVERGED    378 CALLS     1909 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.8829        .21441E-07** at limit **
   2  norm          2.6487        2.3002       -.18453E-07   -.36084E-04
   3  Prefactor     10.544        5.4212        .60581E-07   -.43403E-04
   4  Prefactor     12.386        11.832        .91634E-06   -.89553E-04
   5  Prefactor     20.479        9.1735       -.13165E-07   -.41715E-04
   6  Prefactor     2.8655        40.119        .14673E-04    .21641E-03
   7  Prefactor     56.477        43.227       -.36530E-06    .36935E-05
   8  Prefactor     27.756        42.528       -.11935E-04   -.39791E-03
   9  Prefactor     .10000E-03    21.985        .60022E-06** at limit **
  10  Prefactor     12.317        12.394       -.14754E-06   -.38057E-05
  11  Prefactor     2.6230        7.3056        .12551E-04   -.57632E-03
  12  norm          .10000E-03    1.9254       -.28267E-07** at limit **
  13  norm          .10000E-03    2.9368       -.39399E-06** at limit **
  14  norm          .10000E-03    3.1773       -.41553E-07** at limit **
  15  norm          1.9633        1.5078        .34710E-07    .54825E-04
  16  norm          .10000E-03    4.5539        .47585E-07** at limit **
  17  norm          .34214        .82365        .35562E-06   -.51170E-04
  18  Normalizat    1.0258        .18990        .16280E-05   -.22548E-03
  19  Prefactor     .99084        .11216       -.14203E-05    .53173E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 2.64866
  Prefactor  = 10.5435
  Prefactor  = 12.3863
  Prefactor  = 20.479
  Prefactor  = 2.86551
  Prefactor  = 56.4771
  Prefactor  = 27.7556
  Prefactor  = 0.0001
  Prefactor  = 12.317
  Prefactor  = 2.62301
  norm       = 0.0001
  norm       = 0.000100004
  norm       = 0.0001
  norm       = 1.96326
  norm       = 0.0001
  norm       = 0.342136
  Normalizat = 1.02581
  Prefactor  = 0.990844
 **********
 **   18 **HESSE 
 **********

 FCN=   7380.685     FROM HESSE     STATUS=OK           276 CALLS     2185 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.8848        .14245E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.6487        2.2963        .11744E-03   -1.5382    
   3  Prefactor     10.544        5.4212        .12339E-03   -1.5058    
   4  Prefactor     12.386        11.826        .56910E-03   -1.5004    
   5  Prefactor     20.479        9.1750        .88508E-04   -1.4803    
   6  Prefactor     2.8655        42.705        .24205E-03   -1.5369    
   7  Prefactor     56.477        43.269        .53381E-04   -1.4204    
   8  Prefactor     27.756        44.714        .75940E-04   -1.4654    
   9  Prefactor     .10000E-03    22.191        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     12.317        12.395        .11414E-03   -1.5006    
  11  Prefactor     2.6230        7.4295        .12589E-02   -1.5384    
  12  norm          .10000E-03    1.9446        .11639E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    8.2735        .28332E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    3.1820        .14956E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.9633        1.5050        .89671E-04   -1.5428    
  16  norm          .10000E-03    4.5782        .17902E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .34214        .76257        .11591E-02   -1.5591    
  18  Normalizat    1.0258        .21825        .30511E-03   -.92171    
  19  Prefactor     .99084        .13013        .18900E-03   -.93035    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.36317e-08
Minuit parameter uncertainties:
  1  8.37704e-07
  2  2.29639
  3  5.42146
  4  11.8278
  5  9.17567
  6  22.1429
  7  43.2933
  8  44.7676
  9  4.80133e-05
  10  12.3974
  11  7.43211
  12  2.78999e-06
  13  0.000357747
  14  1.37553e-06
  15  1.50505
  16  1.16843e-06
  17  0.762589
  18  0.218437
  19  0.130171
Done.

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

Extracting fit parameters...

4FGL J0937.9-1434
   Spectrum: PowerLaw
257    Prefactor:  1.232e+01  1.240e+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:  9.908e-01  1.302e-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.026e+00  2.184e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.46
Ra Dec: 144.475 -14.571
Photon Index (Fixed Index): 1.98 +/- 0.00
Photon Flux (Fixed Index): 1.10e-08 +/- 1.11e-08
Energy Flux (Fixed Index): 7.99e-06 +/- 8.04e-06

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) = 7380.01938073
delta logL = 0.665680867149

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7380.01934981
delta logL = 0.665711783573

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.056       1.0000         .10000E-03   10000.    
     2 'Index     '    1.2483       1.0000          .0000       10.000    
     3 'Normalizat'    1.0299       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99025       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=   7380.019     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      258 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.137        167.80        .21322E-02   -.20315E-04
   2  Index         1.2508        2.4773        .24144        .15821E-04
   3  Normalizat    1.0299        .18441        .68834E-01    .55699E-04
   4  Prefactor     .99024        .11105        .46145E-01    .87750E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.1373
  Index      = 1.25083
  Normalizat = 1.0299
  Prefactor  = 0.990244
 **********
 **   18 **HESSE 
 **********

 FCN=   7380.019     FROM HESSE     STATUS=OK            31 CALLS      289 TOTAL
                     EDM=   .47E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.137        22.355        .85288E-04   -1.4767    
   2  Index         1.2508        .59734        .12931E-01   -.84781    
   3  Normalizat    1.0299        .21023        .30453E-03   -.92035    
   4  Prefactor     .99024        .12909        .18904E-03   -.93055    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.68883e-12
Minuit parameter uncertainties:
  1  22.3636
  2  0.600638
  3  0.2104
  4  0.129126
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/377231': 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) = 7380.0193359
delta logL = 0.665725697019

Extracting fit parameters...

4FGL J0937.9-1434
   Spectrum: PowerLaw
257    Prefactor:  2.214e+01  2.236e+01  1.000e-04  1.000e+04 ( 1.000e-14)
258        Index:  1.251e+00  6.006e-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:  9.902e-01  1.291e-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.030e+00  2.104e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.79
Ra Dec: 144.475 -14.571
Photon Index (Free Index): 1.25 +/- 0.60
Photon Flux (Free Index): 5.25e-09 +/- 6.18e-09
Energy Flux (Free Index): 3.75e-05 +/- 6.06e-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/377231/cmap_HighResolution_601689601_601948801_4FGL_J0937.9-1434_daily_bin1398.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.10e-08', energy_flux2='3.75e-05', photon_flux_error='1.11e-08', dlogl='6.66e-01', energy_flux='7.99e-06', photon_flux2='5.25e-09', job_status='DONE', time_completed='2021-08-31 19:47:26.296409', photon_index_error2='0.60', photon_index2='1.25', ts='5.46', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='6.06e-05', EG='1.03', time_epoch_completed='1630464446.3', return_code='0', job_id='377231', GAL2='0.99', EG2='1.03', return_code2='0', energy_flux_error='8.04e-06', photon_flux_error2='6.18e-09', ts2='6.79', photon_index='1.98' WHERE bin_id='1398' AND source_name='4FGL J0937.9-1434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 19:47:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0193>
Subject: Job 377231: <4FGL_J0937.9-1434_daily_bin1398> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0937.9-1434_daily_bin1398 144.475 -14.5706 601689601 601948801 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 :                                   563.07 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             283.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   651 sec.
    Turnaround time :                            653 sec.

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

