/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 189 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 = 7388
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0937.9-1434_daily_bin8
RA = 144.475, Dec = -14.5706
tmin = 241401601, tmax = 241660801
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='368971', job_status='RUN', time_executed='2021-08-31 19:14:05.212340', time_epoch_executed='1630462445.21' WHERE source_name='4FGL J0937.9-1434' and cadence='daily' and bin_id='8'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/368971

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/368971/ft1_4FGL_J0937.9-1434_daily_bin8.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/368971/ft2_4FGL_J0937.9-1434_daily_bin8.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/368971/ft1_4FGL_J0937.9-1434_daily_bin8.fits outfile=/scratch/kocevski/368971/ft1_filteredMKT_4FGL_J0937.9-1434_daily_bin8.fits ra=144.475 dec=-14.5706 rad=12.0 tmin=241401601.0 tmax=241660801.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 1.49
user 1.28
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/368971/ft1_filtered_4FGL_J0937.9-1434_daily_bin8.fits" evtable="EVENTS" scfile=/scratch/kocevski/368971/ft2_4FGL_J0937.9-1434_daily_bin8.fits sctable="SC_DATA" outfile=/scratch/kocevski/368971/ltcube_241401601_241660801_4FGL_J0937.9-1434_daily_bin8.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/368971/ft2_4FGL_J0937.9-1434_daily_bin8.fits
.....................!
real 12.43
user 12.12
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/368971/ft1_filtered_4FGL_J0937.9-1434_daily_bin8.fits evtable="EVENTS" scfile=/scratch/kocevski/368971/ft2_4FGL_J0937.9-1434_daily_bin8.fits sctable="SC_DATA" expcube=/scratch/kocevski/368971/ltcube_241401601_241660801_4FGL_J0937.9-1434_daily_bin8.fits outfile=/scratch/kocevski/368971/expmap_241401601_241660801_4FGL_J0937.9-1434_daily_bin8.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/368971/ltcube_241401601_241660801_4FGL_J0937.9-1434_daily_bin8.fits
.....................!
real 189.56
user 185.30
sys 3.89

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/368971/ft1_filtered_4FGL_J0937.9-1434_daily_bin8.fits scfile=/scratch/kocevski/368971/ft2_4FGL_J0937.9-1434_daily_bin8.fits outfile=/scratch/kocevski/368971/cmap_241401601_241660801_4FGL_J0937.9-1434_daily_bin8.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/368971/ft1_filtered_4FGL_J0937.9-1434_daily_bin8.fits scfile=/scratch/kocevski/368971/ft2_4FGL_J0937.9-1434_daily_bin8.fits outfile=/scratch/kocevski/368971/cmap_HighResolution_241401601_241660801_4FGL_J0937.9-1434_daily_bin8.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.54
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.8168       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    17.374       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10289E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .20675       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    21.701       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.3558       1.0000         .10000E-03   10000.    
    12 'norm      '    .10230E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .59738       1.0000         .10000E-03   10000.    
    15 'norm      '    .95309       1.0000         .10000E-03   10000.    
    16 'norm      '    13.075       1.0000         .10000E-03   10000.    
    17 'norm      '    .90621       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.2036       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .90571       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5370E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7936.402     FROM MIGRAD    STATUS=CONVERGED    125 CALLS     1633 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.6852        .74645E-06** at limit **
   2  norm          2.8166        2.2089       -.45188E-07   -.57065E-04
   3  Prefactor     .10000E-03    4.5464        .42067E-06** at limit **
   4  Prefactor     .10000E-03    5.2128       -.53490E-06** at limit **
   5  Prefactor     .10000E-03    1.5176       -.52451E-06** at limit **
   6  Prefactor     17.443        16.773       -.20576E-06   -.66891E-03
   7  Prefactor     .10000E-03    11.645       -.57819E-06** at limit **
   8  Prefactor     .10091E-03    6568.3       -.91897E-04** at limit **
   9  Prefactor     .10000E-03    5.7742       -.63560E-08** at limit **
  10  Prefactor     21.733        32.840        .93384E-06    .12523E-02
  11  Prefactor     1.3445        42.494       -.30738E-05   -.31725E-03
  12  norm          .10000E-03    4.1198       -.12902E-06** at limit **
  13  norm          .10000E-03    1.1179       -.16377E-06** at limit **
  14  norm          .59577        15.545        .32869E-06    .15635E-03
  15  norm          .95193        1.6427       -.87723E-07   -.93798E-04
  16  norm          13.079        2.8325       -.26944E-06    .15383E-01
  17  norm          .90560        1.3336        .22303E-06    .53745E-03
  18  Normalizat    1.2038        .21254        .18124E-06    .82541E-04
  19  Prefactor     .90571        .12589        .13819E-06    .14880E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 2.81659
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.4425
  Prefactor  = 0.0001
  Prefactor  = 0.000100912
  Prefactor  = 0.0001
  Prefactor  = 21.7327
  Prefactor  = 1.34452
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.595771
  norm       = 0.951935
  norm       = 13.0785
  norm       = 0.905602
  Normalizat = 1.20384
  Prefactor  = 0.905714
 **********
 **   18 **HESSE 
 **********

 FCN=   7936.402     FROM HESSE     STATUS=OK           320 CALLS     1953 TOTAL
                     EDM=   .48E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.6492        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.8166        2.2111        .60587E-02   -1.5372    
   3  Prefactor     .10000E-03    4.4117        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.2401        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.5172        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     17.443        17.476        .24022E-02   -1.4872    
   7  Prefactor     .10000E-03    11.638        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10091E-03    30.524        .13818       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.8519        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     21.733        33.988        .21496E-02   -1.4775    
  11  Prefactor     1.3445        43.723        .93847E-02   -1.5476    
  12  norm          .10000E-03    4.0702        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.1148        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .59577        5.2151        .74480E-01   -1.5554    
  15  norm          .95193        1.7749        .33580E-01   -1.5513    
  16  norm          13.079        9.3574        .27693E-02   -1.4985    
  17  norm          .90560        1.3587        .12830E-01   -1.5518    
  18  Normalizat    1.2038        .18400        .63146E-01   -.86484    
  19  Prefactor     .90571        .10639        .45078E-01   -.95942    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.77024e-07
Minuit parameter uncertainties:
  1  7.71371e-05
  2  2.21112
  3  3.36802e-05
  4  4.45132e-05
  5  2.61577e-05
  6  17.4812
  7  7.8042e-05
  8  0.010556
  9  3.83423e-06
  10  34.0187
  11  15.346
  12  1.04624e-05
  13  6.78589e-06
  14  3.52545
  15  1.77502
  16  9.35841
  17  1.35878
  18  0.184099
  19  0.106419
Done.

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

Extracting fit parameters...

4FGL J0937.9-1434
   Spectrum: PowerLaw
257    Prefactor:  2.173e+01  3.402e+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.057e-01  1.064e-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.204e+00  1.841e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/368971/likelihoodResults_241401601_241660801_4FGL_J0937.9-1434_daily_bin8.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) = 7935.37461045
delta logL = 1.02761784278

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7935.35569862
delta logL = 1.04652967386

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.6371       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9228       1.0000          .0000       10.000    
     3 'Normalizat'    1.1435       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92206       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=   7935.356     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      354 TOTAL
                     EDM=   .90E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.6380        79.244        .15141E-03    .12648E-02
   2  Index         2.9223        2.3669        .38709E-02    .44308E-03
   3  Normalizat    1.1435        .22270        .28539E-03    .45665E-03
   4  Prefactor     .92201        .13254        .18996E-03    .67478E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.63802
  Index      = 2.92233
  Normalizat = 1.1435
  Prefactor  = 0.922006
 **********
 **   18 **HESSE 
 **********

 FCN=   7935.356     FROM HESSE     STATUS=OK            25 CALLS      379 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.6380        12.591        .60566E-05   -1.5193    
   2  Index         2.9223        .67890        .15484E-03   -.42853    
   3  Normalizat    1.1435        .21165        .57077E-04   -.88367    
   4  Prefactor     .92201        .12595        .37991E-04   -.95376    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.91193e-10
Minuit parameter uncertainties:
  1  12.5958
  2  0.681449
  3  0.21181
  4  0.12599
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/368971': 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) = 7935.35569659
delta logL = 1.04653170428

Extracting fit parameters...

4FGL J0937.9-1434
   Spectrum: PowerLaw
257    Prefactor:  6.638e+00  1.260e+01  1.000e-04  1.000e+04 ( 1.000e-14)
258        Index:  2.922e+00  6.814e-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.220e-01  1.260e-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.144e+00  2.118e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.68
Ra Dec: 144.475 -14.571
Photon Index (Free Index): 2.92 +/- 0.68
Photon Flux (Free Index): 7.62e-08 +/- 5.62e-08
Energy Flux (Free Index): 1.58e-05 +/- 1.15e-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/368971/cmap_HighResolution_241401601_241660801_4FGL_J0937.9-1434_daily_bin8.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.50e-03', comment='SUCCESS', energy_flux2='1.58e-05', dlogl='1.05e+00', photon_flux2='7.62e-08', job_status='DONE', time_completed='2021-08-31 19:24:24.400949', photon_index_error2='0.68', photon_index2='2.92', ts='0.52', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='8.68e-08', energy_flux_error2='1.15e-05', EG='1.20', time_epoch_completed='1630463064.4', return_code='0', job_id='368971', GAL2='0.92', EG2='1.14', return_code2='0', photon_flux_error2='5.62e-08', ts2='2.68', photon_index='1.98' WHERE bin_id='8' AND source_name='4FGL J0937.9-1434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 19:24:24 PDT 2021


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

Job <4FGL_J0937.9-1434_daily_bin8> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Aug 31 19:10:45 2021
Job was executed on host(s) <bullet0044>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 19:10:47 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:10:47 2021
Terminated at Tue Aug 31 19:24:25 2021
Results reported at Tue Aug 31 19:24:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0937.9-1434_daily_bin8 144.475 -14.5706 241401601 241660801 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 :                                   617.08 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             249.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   817 sec.
    Turnaround time :                            820 sec.

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

