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


Performing analysis on: 4FGL_J0937.9-1434_daily_bin1140
RA = 144.475, Dec = -14.5706
tmin = 534816001, tmax = 535075201
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='376829', job_status='RUN', time_executed='2021-08-31 19:38:34.165533', time_epoch_executed='1630463914.17' WHERE source_name='4FGL J0937.9-1434' and cadence='daily' and bin_id='1140'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/376829

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/376829/ft1_4FGL_J0937.9-1434_daily_bin1140.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/376829/ft2_4FGL_J0937.9-1434_daily_bin1140.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/376829/ft1_4FGL_J0937.9-1434_daily_bin1140.fits outfile=/scratch/kocevski/376829/ft1_filteredMKT_4FGL_J0937.9-1434_daily_bin1140.fits ra=144.475 dec=-14.5706 rad=12.0 tmin=534816001.0 tmax=535075201.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.63
user 3.40
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/376829/ft1_filtered_4FGL_J0937.9-1434_daily_bin1140.fits" evtable="EVENTS" scfile=/scratch/kocevski/376829/ft2_4FGL_J0937.9-1434_daily_bin1140.fits sctable="SC_DATA" outfile=/scratch/kocevski/376829/ltcube_534816001_535075201_4FGL_J0937.9-1434_daily_bin1140.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/376829/ft2_4FGL_J0937.9-1434_daily_bin1140.fits
.....................!
real 12.29
user 11.87
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/376829/ft1_filtered_4FGL_J0937.9-1434_daily_bin1140.fits evtable="EVENTS" scfile=/scratch/kocevski/376829/ft2_4FGL_J0937.9-1434_daily_bin1140.fits sctable="SC_DATA" expcube=/scratch/kocevski/376829/ltcube_534816001_535075201_4FGL_J0937.9-1434_daily_bin1140.fits outfile=/scratch/kocevski/376829/expmap_534816001_535075201_4FGL_J0937.9-1434_daily_bin1140.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/376829/ltcube_534816001_535075201_4FGL_J0937.9-1434_daily_bin1140.fits
.....................!
real 190.06
user 185.42
sys 3.87

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/376829/ft1_filtered_4FGL_J0937.9-1434_daily_bin1140.fits scfile=/scratch/kocevski/376829/ft2_4FGL_J0937.9-1434_daily_bin1140.fits outfile=/scratch/kocevski/376829/cmap_534816001_535075201_4FGL_J0937.9-1434_daily_bin1140.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=144.475 yref=-14.5706 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/376829/ft1_filtered_4FGL_J0937.9-1434_daily_bin1140.fits scfile=/scratch/kocevski/376829/ft2_4FGL_J0937.9-1434_daily_bin1140.fits outfile=/scratch/kocevski/376829/cmap_HighResolution_534816001_535075201_4FGL_J0937.9-1434_daily_bin1140.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.2941       1.0000         .10000E-03   10000.    
     4 'Prefactor '    22.107       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .80280       1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.464       1.0000         .10000E-03   10000.    
     7 'Prefactor '    73.382       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    17.571       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    9.9395       1.0000         .10000E-03   10000.    
    13 'norm      '    3.3066       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.6128       1.0000         .10000E-03   10000.    
    17 'norm      '    6.7697       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .97693       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .91722       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=   5009.228     FROM MIGRAD    STATUS=CONVERGED    383 CALLS     1940 TOTAL
                     EDM=   .72E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.1857        .47930E-08** at limit **
   2  norm          .10000E-03    .85017       -.67401E-08** at limit **
   3  Prefactor     6.2950        7.7533       -.10515E-05   -.13394E-03
   4  Prefactor     22.106        13.673        .28551E-06    .14580E-03
   5  Prefactor     .82649        6.4480       -.27888E-05    .42961E-03
   6  Prefactor     10.464        16.046       -.46441E-06    .24038E-04
   7  Prefactor     73.384        52.981        .20723E-05    .20554E-04
   8  Prefactor     .10000E-03    14.723       -.92263E-06** at limit **
   9  Prefactor     .10000E-03    57.402        .77429E-06** at limit **
  10  Prefactor     17.525        60.454       -.95595E-04   -.16480E-05
  11  Prefactor     .10000E-03    13.179        .13047E-05** at limit **
  12  norm          9.9444        12.400        .14674E-04    .18427E-03
  13  norm          3.3069        3.1165       -.11309E-06    .12630E-03
  14  norm          .10000E-03    6.1994       -.14355E-07** at limit **
  15  norm          .10000E-03    1.4776       -.28206E-06** at limit **
  16  norm          1.6142        25.926       -.87681E-05   -.21395E-03
  17  norm          6.7698        2.2757       -.14181E-06    .64435E-04
  18  Normalizat    .97698        .23179        .16938E-05    .32875E-03
  19  Prefactor     .91715        .13730        .24691E-05    .29714E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 6.29499
  Prefactor  = 22.1059
  Prefactor  = 0.826491
  Prefactor  = 10.4639
  Prefactor  = 73.3844
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.5252
  Prefactor  = 0.000100001
  norm       = 9.94444
  norm       = 3.30688
  norm       = 0.0001
  norm       = 0.0001
  norm       = 1.61422
  norm       = 6.76983
  Normalizat = 0.976976
  Prefactor  = 0.91715
 **********
 **   18 **HESSE 
 **********

 FCN=   5009.228     FROM HESSE     STATUS=OK           268 CALLS     2208 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.1865        .12337E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .85090        .63725E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.2950        7.7608        .16000E-03   -1.5206    
   4  Prefactor     22.106        13.663        .85191E-04   -1.4767    
   5  Prefactor     .82649        32.280        .33800E-02   -1.5526    
   6  Prefactor     10.464        16.061        .12386E-03   -1.5061    
   7  Prefactor     73.384        53.016        .46868E-04   -1.3993    
   8  Prefactor     .10000E-03    14.729        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    58.352        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     17.525        60.383        .95547E-04   -1.4870    
  11  Prefactor     .10000E-03    13.241        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          9.9444        12.394        .12710E-03   -1.5077    
  13  norm          3.3069        3.1119        .11759E-03   -1.5344    
  14  norm          .10000E-03    6.2060        .17211E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.7464        .16631E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.6142        26.254        .33348E-03   -1.5454    
  17  norm          6.7698        2.2761        .59408E-04   -1.5188    
  18  Normalizat    .97698        .27012        .30610E-03   -.93806    
  19  Prefactor     .91715        .16162        .19132E-03   -.95544    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.54503e-09
Minuit parameter uncertainties:
  1  1.11384e-06
  2  5.50694e-08
  3  7.76205
  4  13.6652
  5  10.3357
  6  16.0678
  7  53.0503
  8  1.16871e-05
  9  8.06762e-05
  10  60.5952
  11  0.000232765
  12  12.3968
  13  3.11202
  14  1.04556e-05
  15  4.85554e-05
  16  13.0263
  17  2.27614
  18  0.270494
  19  0.161708
Done.

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

Extracting fit parameters...

4FGL J0937.9-1434
   Spectrum: PowerLaw
257    Prefactor:  1.753e+01  6.060e+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.171e-01  1.617e-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:  9.770e-01  2.705e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/376829/likelihoodResults_534816001_535075201_4FGL_J0937.9-1434_daily_bin1140.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) = 5008.30036935
delta logL = 0.927679671592

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5007.81930054
delta logL = 1.40874847916

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    6.5813       1.0000          .0000       10.000    
     3 'Normalizat'    .84330       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97638       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=   5007.819     FROM MIGRAD    STATUS=CONVERGED    284 CALLS      623 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .89149E-03    .80618E-05** at limit **
   2  Index         6.5812        .21902        .26985E-02   -.51292E-04
   3  Normalizat    .84335        .27146        .32619E-03   -.18172E-03
   4  Prefactor     .97629        .16349        .18601E-03   -.31552E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 6.58119
  Normalizat = 0.84335
  Prefactor  = 0.976294
 **********
 **   18 **HESSE 
 **********

 FCN=   5007.819     FROM HESSE     STATUS=OK            25 CALLS      648 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .88775E-03    .32247E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         6.5812        .21540        .10794E-03    .32176    
   3  Normalizat    .84335        .27150        .13048E-04   -.98480    
   4  Prefactor     .97629        .16357        .37202E-04   -.93524    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42163e-10
Minuit parameter uncertainties:
  1  1.39026e-08
  2  0.215475
  3  0.27194
  4  0.163655
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/376829': 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) = 5007.81930006
delta logL = 1.40874896592

Extracting fit parameters...

4FGL J0937.9-1434
   Spectrum: PowerLaw
257    Prefactor:  1.000e-04  1.390e-08  1.000e-04  1.000e+04 ( 1.000e-14)
258        Index:  6.581e+00  2.155e-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.763e-01  1.637e-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.433e-01  2.719e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.21
Ra Dec: 144.475 -14.571
Photon Index (Free Index): 6.58 +/- 0.22
Photon Flux (Free Index): 1.09e-07 +/- 7.55e-08
Energy Flux (Free Index): 1.33e-05 +/- 9.09e-06

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/376829/cmap_HighResolution_534816001_535075201_4FGL_J0937.9-1434_daily_bin1140.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.13e-03', comment='SUCCESS', energy_flux2='1.33e-05', dlogl='1.41e+00', photon_flux2='1.09e-07', job_status='DONE', time_completed='2021-08-31 19:47:37.343418', photon_index_error2='0.22', photon_index2='6.58', ts='0.15', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='1.22e-07', energy_flux_error2='9.09e-06', EG='0.98', time_epoch_completed='1630464457.34', return_code='0', job_id='376829', GAL2='0.98', EG2='0.84', return_code2='0', photon_flux_error2='7.55e-08', ts2='3.21', photon_index='1.98' WHERE bin_id='1140' AND source_name='4FGL J0937.9-1434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 19:47:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0131>
Subject: Job 376829: <4FGL_J0937.9-1434_daily_bin1140> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0937.9-1434_daily_bin1140 144.475 -14.5706 534816001 535075201 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 :                                   533.38 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             321.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   698 sec.
    Turnaround time :                            701 sec.

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

