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


Performing analysis on: 4FGL_J0937.9-1434_daily_bin1609
RA = 144.475, Dec = -14.5706
tmin = 656380801, tmax = 656640001
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='286000', job_status='RUN', time_executed='2021-12-07 20:25:45.671307', time_epoch_executed='1638937545.67' WHERE source_name='4FGL J0937.9-1434' and cadence='daily' and bin_id='1609'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/286000

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/286000/ft1_4FGL_J0937.9-1434_daily_bin1609.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/286000/ft2_4FGL_J0937.9-1434_daily_bin1609.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/286000/ft1_4FGL_J0937.9-1434_daily_bin1609.fits outfile=/scratch/kocevski/286000/ft1_filteredMKT_4FGL_J0937.9-1434_daily_bin1609.fits ra=144.475 dec=-14.5706 rad=12.0 tmin=656380801.0 tmax=656640001.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.51
user 3.28
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/286000/ft1_filtered_4FGL_J0937.9-1434_daily_bin1609.fits" evtable="EVENTS" scfile=/scratch/kocevski/286000/ft2_4FGL_J0937.9-1434_daily_bin1609.fits sctable="SC_DATA" outfile=/scratch/kocevski/286000/ltcube_656380801_656640001_4FGL_J0937.9-1434_daily_bin1609.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/286000/ft2_4FGL_J0937.9-1434_daily_bin1609.fits
.....................!
real 12.89
user 12.55
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/286000/ft1_filtered_4FGL_J0937.9-1434_daily_bin1609.fits evtable="EVENTS" scfile=/scratch/kocevski/286000/ft2_4FGL_J0937.9-1434_daily_bin1609.fits sctable="SC_DATA" expcube=/scratch/kocevski/286000/ltcube_656380801_656640001_4FGL_J0937.9-1434_daily_bin1609.fits outfile=/scratch/kocevski/286000/expmap_656380801_656640001_4FGL_J0937.9-1434_daily_bin1609.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/286000/ltcube_656380801_656640001_4FGL_J0937.9-1434_daily_bin1609.fits
.....................!
real 190.75
user 185.74
sys 4.66

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/286000/ft1_filtered_4FGL_J0937.9-1434_daily_bin1609.fits scfile=/scratch/kocevski/286000/ft2_4FGL_J0937.9-1434_daily_bin1609.fits outfile=/scratch/kocevski/286000/cmap_656380801_656640001_4FGL_J0937.9-1434_daily_bin1609.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.54
user 0.38
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/286000/ft1_filtered_4FGL_J0937.9-1434_daily_bin1609.fits evtable="EVENTS" scfile=/scratch/kocevski/286000/ft2_4FGL_J0937.9-1434_daily_bin1609.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/286000/Model_4FGL_J0937.9-1434_daily_bin1609.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/286000/ft1_filtered_4FGL_J0937.9-1434_daily_bin1609.fits.....................!
real 85.32
user 84.02
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10238E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.0189       1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.363       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    29.405       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .56592       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11181E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10955E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.7485       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.2065       1.0000         .10000E-03   10000.    
    12 'norm      '    8.7855       1.0000         .10000E-03   10000.    
    13 'norm      '    1.2096       1.0000         .10000E-03   10000.    
    14 'norm      '    .48690E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    25.008       1.0000         .10000E-03   10000.    
    17 'norm      '    5.6037       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.2644       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .79612       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=   8470.338     FROM MIGRAD    STATUS=CONVERGED    429 CALLS     1948 TOTAL
                     EDM=   .58E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.3237       -.10482E-07** at limit **
   2  norm          3.0189        2.5008        .15538E-09   -.34995E-04
   3  Prefactor     10.368        5.7662       -.66435E-07   -.13211E-04
   4  Prefactor     .10000E-03    4.7267       -.84412E-08** at limit **
   5  Prefactor     .10000E-03    3.0396       -.52008E-09** at limit **
   6  Prefactor     29.433        18.744       -.26391E-06   -.32155E-05
   7  Prefactor     .38584        22.214       -.22108E-06    .27036E-04
   8  Prefactor     .10000E-03    14.728        .12500E-07** at limit **
   9  Prefactor     .10000E-03    25.382        .80620E-07** at limit **
  10  Prefactor     6.7582        26.048       -.12351E-04   -.10986E-04
  11  Prefactor     2.2122        1.5294        .12584E-06   -.92271E-03
  12  norm          8.7814        6.2809        .47818E-06    .44241E-04
  13  norm          1.2092        1.8632       -.10624E-07   -.58507E-04
  14  norm          .10000E-03    4.7998        .69382E-07** at limit **
  15  norm          .10000E-03    .43746       -.17843E-09** at limit **
  16  norm          25.009        13.288        .20823E-05    .17836E-04
  17  norm          5.6032        1.6373       -.79482E-08   -.18415E-04
  18  Normalizat    1.2646        .17504       -.24739E-06    .44613E-04
  19  Prefactor     .79616        .10205        .17984E-06   -.84543E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 3.01894
  Prefactor  = 10.3679
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.433
  Prefactor  = 0.38584
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.75819
  Prefactor  = 2.21217
  norm       = 8.78143
  norm       = 1.20919
  norm       = 0.0001
  norm       = 0.0001
  norm       = 25.0094
  norm       = 5.60317
  Normalizat = 1.26459
  Prefactor  = 0.796163
 **********
 **   18 **HESSE 
 **********

 FCN=   8470.338     FROM HESSE     STATUS=OK           282 CALLS     2230 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.3328        .16384E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.0189        2.4967        .12826E-03   -1.5360    
   3  Prefactor     10.368        5.7829        .12446E-03   -1.5064    
   4  Prefactor     .10000E-03    4.7619        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.0610        .15667E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     29.433        18.854        .73884E-04   -1.4622    
   7  Prefactor     .38584        27.741        .12177       -1.5584    
   8  Prefactor     .10000E-03    14.741        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    25.535        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.7582        26.057        .15446E-03   -1.5188    
  11  Prefactor     2.2122        8.3529        .13847E-02   -1.5410    
  12  norm          8.7814        6.2752        .13523E-03   -1.5115    
  13  norm          1.2092        1.8219        .15177E-03   -1.5488    
  14  norm          .10000E-03    15.931        .39236E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .44158        .59436E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          25.009        13.317        .80104E-04   -1.4707    
  17  norm          5.6032        1.6386        .61100E-04   -1.5235    
  18  Normalizat    1.2646        .20417        .27530E-03   -.84630    
  19  Prefactor     .79616        .11828        .20223E-03   -.99870    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.16032e-09
Minuit parameter uncertainties:
  1  2.72963e-07
  2  2.49683
  3  5.78321
  4  6.88758e-07
  5  6.71738e-07
  6  18.8578
  7  6.54555
  8  4.49093e-06
  9  1.12666e-05
  10  26.1009
  11  8.3573
  12  6.27569
  13  1.82197
  14  7.3924e-05
  15  3.06954e-07
  16  13.3191
  17  1.63859
  18  0.204304
  19  0.118313
Done.

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

Extracting fit parameters...

4FGL J0937.9-1434
   Spectrum: PowerLaw
257    Prefactor:  6.758e+00  2.610e+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:  7.962e-01  1.183e-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.265e+00  2.043e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/286000/likelihoodResults_656380801_656640001_4FGL_J0937.9-1434_daily_bin1609.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) = 8469.45702647
delta logL = 0.88083298536

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8469.44409958
delta logL = 0.89375987574

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .43646       1.0000         .10000E-03   10000.    
     2 'Index     '    3.8013       1.0000          .0000       10.000    
     3 'Normalizat'    1.1921       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81960       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=   8469.444     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      279 TOTAL
                     EDM=   .87E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .43617        4.5774        .10371E-01    .20463E-02
   2  Index         3.8016        1.6826        .75002E-01    .32952E-03
   3  Normalizat    1.1921        .40163E-01    .63762E-01    .12966E-04
   4  Prefactor     .81962        .24036E-01    .43972E-01    .92647E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.436165
  Index      = 3.80159
  Normalizat = 1.19211
  Prefactor  = 0.819616
 **********
 **   18 **HESSE 
 **********

 FCN=   8469.444     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      314 TOTAL
                     EDM=   .17E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .43617        13.041        .47295E-03   -1.5576    
   2  Index         3.8016        3.3341        .39111E-02   -.24204    
   3  Normalizat    1.1921        .15158        .28205E-03   -.86847    
   4  Prefactor     .81962        .88692E-01    .19948E-03   -.99009    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.69519e-07
Minuit parameter uncertainties:
  1  4.77058
  2  3.67527
  3  0.151637
  4  0.0887078
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/286000': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8469.44409955
delta logL = 0.893759907458

Extracting fit parameters...

4FGL J0937.9-1434
   Spectrum: PowerLaw
257    Prefactor:  4.362e-01  4.771e+00  1.000e-04  1.000e+04 ( 1.000e-14)
258        Index:  3.802e+00  3.675e+00  0.000e+00  1.000e+01 (-1.000e+00)
259        Scale:  3.063e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
534    Prefactor:  8.196e-01  8.871e-02  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.192e+00  1.516e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.96
Ra Dec: 144.475 -14.571
Photon Index (Free Index): 3.80 +/- 3.68
Photon Flux (Free Index): 6.97e-08 +/- 5.77e-08
Energy Flux (Free Index): 1.08e-05 +/- 9.08e-06

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/286000/cmap_HighResolution_656380801_656640001_4FGL_J0937.9-1434_daily_bin1609.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.75e-03', comment='SUCCESS', energy_flux2='1.08e-05', dlogl='8.94e-01', photon_flux2='6.97e-08', job_status='DONE', time_completed='2021-12-07 20:37:01.773595', photon_index_error2='3.68', photon_index2='3.80', ts='0.08', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', photon_flux_upper_limit='6.34e-08', energy_flux_error2='9.08e-06', EG='1.26', time_epoch_completed='1638938221.77', return_code='0', job_id='286000', GAL2='0.82', EG2='1.19', return_code2='102', photon_flux_error2='5.77e-08', ts2='1.96', photon_index='1.98' WHERE bin_id='1609' AND source_name='4FGL J0937.9-1434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 20:37:01 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0192>
Subject: Job 286000: <4FGL_J0937.9-1434_daily_bin1609> in cluster <slac> Done

Job <4FGL_J0937.9-1434_daily_bin1609> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Dec  7 20:25:15 2021
Job was executed on host(s) <bullet0192>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 20:25:26 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec  7 20:25:26 2021
Terminated at Tue Dec  7 20:37:02 2021
Results reported at Tue Dec  7 20:37:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0937.9-1434_daily_bin1609 144.475 -14.5706 656380801 656640001 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 :                                   675.06 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             384.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   696 sec.
    Turnaround time :                            707 sec.

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

