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


Performing analysis on: 4FGL_J0937.9-1434_daily_bin1073
RA = 144.475, Dec = -14.5706
tmin = 517449601, tmax = 517708801
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='375452', job_status='RUN', time_executed='2021-08-31 19:32:53.125153', time_epoch_executed='1630463573.13' WHERE source_name='4FGL J0937.9-1434' and cadence='daily' and bin_id='1073'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/375452

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/375452/ft1_4FGL_J0937.9-1434_daily_bin1073.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/375452/ft2_4FGL_J0937.9-1434_daily_bin1073.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/375452/ft1_4FGL_J0937.9-1434_daily_bin1073.fits outfile=/scratch/kocevski/375452/ft1_filteredMKT_4FGL_J0937.9-1434_daily_bin1073.fits ra=144.475 dec=-14.5706 rad=12.0 tmin=517449601.0 tmax=517708801.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 5.63
user 5.36
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/375452/ft1_filtered_4FGL_J0937.9-1434_daily_bin1073.fits" evtable="EVENTS" scfile=/scratch/kocevski/375452/ft2_4FGL_J0937.9-1434_daily_bin1073.fits sctable="SC_DATA" outfile=/scratch/kocevski/375452/ltcube_517449601_517708801_4FGL_J0937.9-1434_daily_bin1073.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/375452/ft2_4FGL_J0937.9-1434_daily_bin1073.fits
.....................!
real 11.84
user 11.40
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/375452/ft1_filtered_4FGL_J0937.9-1434_daily_bin1073.fits evtable="EVENTS" scfile=/scratch/kocevski/375452/ft2_4FGL_J0937.9-1434_daily_bin1073.fits sctable="SC_DATA" expcube=/scratch/kocevski/375452/ltcube_517449601_517708801_4FGL_J0937.9-1434_daily_bin1073.fits outfile=/scratch/kocevski/375452/expmap_517449601_517708801_4FGL_J0937.9-1434_daily_bin1073.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/375452/ltcube_517449601_517708801_4FGL_J0937.9-1434_daily_bin1073.fits
.....................!
real 189.50
user 185.21
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/375452/ft1_filtered_4FGL_J0937.9-1434_daily_bin1073.fits scfile=/scratch/kocevski/375452/ft2_4FGL_J0937.9-1434_daily_bin1073.fits outfile=/scratch/kocevski/375452/cmap_517449601_517708801_4FGL_J0937.9-1434_daily_bin1073.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=144.475 yref=-14.5706 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.52
user 0.37
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/375452/ft1_filtered_4FGL_J0937.9-1434_daily_bin1073.fits scfile=/scratch/kocevski/375452/ft2_4FGL_J0937.9-1434_daily_bin1073.fits outfile=/scratch/kocevski/375452/cmap_HighResolution_517449601_517708801_4FGL_J0937.9-1434_daily_bin1073.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=144.475 yref=-14.5706 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/375452/ft1_filtered_4FGL_J0937.9-1434_daily_bin1073.fits evtable="EVENTS" scfile=/scratch/kocevski/375452/ft2_4FGL_J0937.9-1434_daily_bin1073.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/375452/Model_4FGL_J0937.9-1434_daily_bin1073.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/375452/ft1_filtered_4FGL_J0937.9-1434_daily_bin1073.fits.....................!
real 60.77
user 59.55
sys 1.09

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    15.004       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.1709       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .26311E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    62.153       1.0000         .10000E-03   10000.    
     8 'Prefactor '    44.841       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10395E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    61.308       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.0741       1.0000         .10000E-03   10000.    
    12 'norm      '    .12439E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    4.6910       1.0000         .10000E-03   10000.    
    14 'norm      '    .10134E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.5035       1.0000         .10000E-03   10000.    
    16 'norm      '    14.331       1.0000         .10000E-03   10000.    
    17 'norm      '    .53033       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .79289       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0230       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=   5555.432     FROM MIGRAD    STATUS=CONVERGED    667 CALLS     2236 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          15.023        16.631        .10340E-03   -.45079E-05
   2  norm          .10000E-03    13.313        .22181E-02** at limit **
   3  Prefactor     3.1676        7.1539        .11380E-02    .34247E-03
   4  Prefactor     .10000E-03    6.6083        .18142E-02** at limit **
   5  Prefactor     .10000E-03    6.3556        .18142E-02** at limit **
   6  Prefactor     .10000E-03    113.88        .59205E-02** at limit **
   7  Prefactor     62.133        49.470        .50898E-04    .11392E-04
   8  Prefactor     44.842        48.398        .59872E-04    .83548E-05
   9  Prefactor     .10000E-03    43.049        .18142E-02** at limit **
  10  Prefactor     61.294        41.437        .51245E-04   -.10959E-04
  11  Prefactor     6.0828        16.877        .16291E-03    .15004E-04
  12  norm          .10000E-03    7.1086        .18142E-02** at limit **
  13  norm          4.6915        3.7631        .62698E-03   -.11188E-04
  14  norm          .10000E-03    12.399        .18142E-02** at limit **
  15  norm          3.5032        2.8359        .10812E-03   -.17876E-05
  16  norm          14.331        13.298        .10580E-03   -.87035E-05
  17  norm          .52935        1.1719        .11659E-03    .33737E-04
  18  Normalizat    .79255        .26143        .33392E-03   -.22607E-04
  19  Prefactor     1.0234        .15599        .17991E-03   -.11811E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 15.0226
  norm       = 0.0001
  Prefactor  = 3.16759
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 62.1326
  Prefactor  = 44.8417
  Prefactor  = 0.0001
  Prefactor  = 61.2939
  Prefactor  = 6.08282
  norm       = 0.0001
  norm       = 4.6915
  norm       = 0.0001
  norm       = 3.50318
  norm       = 14.3311
  norm       = 0.529354
  Normalizat = 0.792545
  Prefactor  = 1.02336
 **********
 **   18 **HESSE 
 **********

 FCN=   5555.432     FROM HESSE     STATUS=OK           252 CALLS     2488 TOTAL
                     EDM=   .74E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          15.023        16.617        .41360E-05   -1.4933    
   2  norm          .10000E-03    13.410        .44362E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.1676        7.1507        .22759E-03   -1.5352    
   4  Prefactor     .10000E-03    6.6087        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.3589        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    116.59        .23682E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     62.133        49.489        .20359E-05   -1.4130    
   8  Prefactor     44.842        48.360        .23949E-05   -1.4368    
   9  Prefactor     .10000E-03    43.059        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     61.294        41.434        .10249E-04   -1.4141    
  11  Prefactor     6.0828        16.875        .65163E-05   -1.5215    
  12  norm          .10000E-03    7.1117        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.6915        3.7629        .25079E-04   -1.5275    
  14  norm          .10000E-03    12.411        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.5032        2.8358        .43247E-05   -1.5334    
  16  norm          14.331        13.298        .42322E-05   -1.4951    
  17  norm          .52935        1.1718        .46638E-05   -1.5562    
  18  Normalizat    .79255        .26162        .13357E-04   -1.0035    
  19  Prefactor     1.0234        .15609        .35983E-04   -.91955    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.4446e-11
Minuit parameter uncertainties:
  1  16.6223
  2  0.000133672
  3  7.15261
  4  8.6395e-06
  5  8.80128e-06
  6  0.000215147
  7  49.5219
  8  48.4022
  9  1.13246e-05
  10  41.4536
  11  16.8886
  12  7.10457e-05
  13  3.7631
  14  4.58195e-06
  15  2.83589
  16  13.3008
  17  1.17183
  18  0.262032
  19  0.156158
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
534    Prefactor:  1.023e+00  1.562e-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:  7.925e-01  2.620e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.44
Ra Dec: 144.475 -14.571
Photon Index (Fixed Index): 1.98 +/- 0.00
Photon Flux (Fixed Index): 5.47e-08 +/- 3.70e-08
Energy Flux (Fixed Index): 3.98e-05 +/- 2.69e-05

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) = 5554.8999427
delta logL = 0.532088147774

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5554.88584068
delta logL = 0.546190165492

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.034       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6272       1.0000          .0000       10.000    
     3 'Normalizat'    .72413       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0480       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=   5554.886     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      287 TOTAL
                     EDM=   .81E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.976        221.53        .21333E-02    .20416E-04
   2  Index         2.6280        2.1810        .81168E-01    .18627E-03
   3  Normalizat    .72301        .10515        .78566E-01    .24928E-04
   4  Prefactor     1.0488        .52890E-01    .40027E-01   -.40130E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.9758
  Index      = 2.62802
  Normalizat = 0.72301
  Prefactor  = 1.04877
 **********
 **   18 **HESSE 
 **********

 FCN=   5554.886     FROM HESSE     STATUS=OK            33 CALLS      320 TOTAL
                     EDM=   .59E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.976        59.728        .85331E-04   -1.4770    
   2  Index         2.6280        1.1319        .31309E-02   -.49428    
   3  Normalizat    .72301        .27305        .34784E-03   -1.0299    
   4  Prefactor     1.0488        .16037        .17791E-03   -.91121    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.91335e-11
Minuit parameter uncertainties:
  1  59.8908
  2  1.14475
  3  0.273567
  4  0.160447
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/375452': 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) = 5554.88582741
delta logL = 0.546203438162

Extracting fit parameters...

4FGL J0937.9-1434
   Spectrum: PowerLaw
257    Prefactor:  2.198e+01  5.989e+01  1.000e-04  1.000e+04 ( 1.000e-14)
258        Index:  2.628e+00  1.145e+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:  1.049e+00  1.604e-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:  7.230e-01  2.736e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.61
Ra Dec: 144.475 -14.571
Photon Index (Free Index): 2.63 +/- 1.14
Photon Flux (Free Index): 1.09e-07 +/- 8.40e-08
Energy Flux (Free Index): 2.78e-05 +/- 2.01e-05

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/375452/cmap_HighResolution_517449601_517708801_4FGL_J0937.9-1434_daily_bin1073.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.47e-08', energy_flux2='2.78e-05', photon_flux_error='3.70e-08', dlogl='5.46e-01', energy_flux='3.98e-05', photon_flux2='1.09e-07', job_status='DONE', time_completed='2021-08-31 19:41:57.679504', photon_index_error2='1.14', photon_index2='2.63', ts='4.44', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='2.01e-05', EG='0.79', time_epoch_completed='1630464117.68', return_code='0', job_id='375452', GAL2='1.05', EG2='0.72', return_code2='0', energy_flux_error='2.69e-05', photon_flux_error2='8.40e-08', ts2='5.61', photon_index='1.98' WHERE bin_id='1073' AND source_name='4FGL J0937.9-1434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 19:41:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 375452: <4FGL_J0937.9-1434_daily_bin1073> in cluster <slac> Done

Job <4FGL_J0937.9-1434_daily_bin1073> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Aug 31 19:31:18 2021
Job was executed on host(s) <bullet0241>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 19:31:20 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:31:20 2021
Terminated at Tue Aug 31 19:41:58 2021
Results reported at Tue Aug 31 19:41:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0937.9-1434_daily_bin1073 144.475 -14.5706 517449601 517708801 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 :                                   520.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             303.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   637 sec.
    Turnaround time :                            640 sec.

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

