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


Performing analysis on: 4FGL_J0937.9-1434_daily_bin800
RA = 144.475, Dec = -14.5706
tmin = 446688001, tmax = 446947201
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='375050', job_status='RUN', time_executed='2021-08-31 19:31:02.463188', time_epoch_executed='1630463462.46' WHERE source_name='4FGL J0937.9-1434' and cadence='daily' and bin_id='800'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/375050

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/375050/ft1_4FGL_J0937.9-1434_daily_bin800.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/375050/ft2_4FGL_J0937.9-1434_daily_bin800.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/375050/ft1_4FGL_J0937.9-1434_daily_bin800.fits outfile=/scratch/kocevski/375050/ft1_filteredMKT_4FGL_J0937.9-1434_daily_bin800.fits ra=144.475 dec=-14.5706 rad=12.0 tmin=446688001.0 tmax=446947201.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.40
user 3.19
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/375050/ft1_filtered_4FGL_J0937.9-1434_daily_bin800.fits" evtable="EVENTS" scfile=/scratch/kocevski/375050/ft2_4FGL_J0937.9-1434_daily_bin800.fits sctable="SC_DATA" outfile=/scratch/kocevski/375050/ltcube_446688001_446947201_4FGL_J0937.9-1434_daily_bin800.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/375050/ft2_4FGL_J0937.9-1434_daily_bin800.fits
.....................!
real 11.93
user 11.55
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/375050/ft1_filtered_4FGL_J0937.9-1434_daily_bin800.fits evtable="EVENTS" scfile=/scratch/kocevski/375050/ft2_4FGL_J0937.9-1434_daily_bin800.fits sctable="SC_DATA" expcube=/scratch/kocevski/375050/ltcube_446688001_446947201_4FGL_J0937.9-1434_daily_bin800.fits outfile=/scratch/kocevski/375050/expmap_446688001_446947201_4FGL_J0937.9-1434_daily_bin800.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/375050/ltcube_446688001_446947201_4FGL_J0937.9-1434_daily_bin800.fits
.....................!
real 189.63
user 184.86
sys 4.40

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/375050/ft1_filtered_4FGL_J0937.9-1434_daily_bin800.fits scfile=/scratch/kocevski/375050/ft2_4FGL_J0937.9-1434_daily_bin800.fits outfile=/scratch/kocevski/375050/cmap_446688001_446947201_4FGL_J0937.9-1434_daily_bin800.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 1.11
user 0.38
sys 0.16

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/375050/ft1_filtered_4FGL_J0937.9-1434_daily_bin800.fits evtable="EVENTS" scfile=/scratch/kocevski/375050/ft2_4FGL_J0937.9-1434_daily_bin800.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/375050/Model_4FGL_J0937.9-1434_daily_bin800.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/375050/ft1_filtered_4FGL_J0937.9-1434_daily_bin800.fits.....................!
real 63.88
user 61.93
sys 1.12

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    7.3903       1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.756       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10352E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    20.448       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    26.973       1.0000         .10000E-03   10000.    
    10 'Prefactor '    58.233       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10366E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .60132       1.0000         .10000E-03   10000.    
    13 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    8.2610       1.0000         .10000E-03   10000.    
    17 'norm      '    1.5931       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .95098       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .98480       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=   6065.549     FROM MIGRAD    STATUS=CONVERGED    389 CALLS     1877 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.9639       -.37372E-07** at limit **
   2  norm          7.3903        3.5675       -.31079E-07   -.40441E-03
   3  Prefactor     15.756        7.1090        .94313E-07   -.23243E-04
   4  Prefactor     .10000E-03    5.7782       -.12819E-06** at limit **
   5  Prefactor     .10000E-03    2.2537       -.76546E-08** at limit **
   6  Prefactor     .10000E-03    48.917       -.10953E-05** at limit **
   7  Prefactor     20.451        33.481        .42426E-06    .21916E-04
   8  Prefactor     .10000E-03    46.987        .82085E-06** at limit **
   9  Prefactor     26.966        28.710       -.33451E-06   -.87353E-04
  10  Prefactor     58.240        43.006       -.63630E-06    .12678E-03
  11  Prefactor     .10000E-03    20.812        .35548E-06** at limit **
  12  norm          .58444        8.2518       -.11158E-05    .23830E-03
  13  norm          .10000E-03    1.9661       -.13746E-07** at limit **
  14  norm          .10000E-03    3.2694        .63712E-08** at limit **
  15  norm          .10000E-03    1.2230        .11418E-07** at limit **
  16  norm          8.2582        14.041        .28477E-05    .78649E-04
  17  norm          1.5933        1.7366        .21583E-06    .55486E-04
  18  Normalizat    .95091        .21011       -.10437E-05    .16132E-04
  19  Prefactor     .98480        .12364       -.23766E-06   -.30397E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 7.39026
  Prefactor  = 15.7564
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 20.4505
  Prefactor  = 0.000100001
  Prefactor  = 26.966
  Prefactor  = 58.2401
  Prefactor  = 0.0001
  norm       = 0.584436
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 8.25825
  norm       = 1.59334
  Normalizat = 0.950912
  Prefactor  = 0.984798
 **********
 **   18 **HESSE 
 **********

 FCN=   6065.549     FROM HESSE     STATUS=OK           264 CALLS     2141 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.9806        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          7.3903        3.5653        .99235E-04   -1.5164    
   3  Prefactor     15.756        7.1191        .10090E-03   -1.4914    
   4  Prefactor     .10000E-03    5.7932        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.2567        .11418E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    50.426        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     20.451        33.528        .88574E-04   -1.4803    
   8  Prefactor     .10000E-03    47.308        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     26.966        28.718        .77136E-04   -1.4669    
  10  Prefactor     58.240        43.648        .52573E-04   -1.4180    
  11  Prefactor     .10000E-03    21.155        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .58444        18.427        .35879E-02   -1.5555    
  13  norm          .10000E-03    1.9788        .10661E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    3.2713        .13753E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.2662        .16813E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          8.2582        14.159        .69742E-03   -1.5133    
  17  norm          1.5933        1.7248        .10163E-03   -1.5456    
  18  Normalizat    .95091        .24476        .31456E-03   -.94694    
  19  Prefactor     .98480        .14594        .18603E-03   -.93238    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.56333e-10
Minuit parameter uncertainties:
  1  1.64784e-05
  2  3.56542
  3  7.1195
  4  9.19027e-06
  5  1.13809e-06
  6  0.000423996
  7  33.5584
  8  0.000526359
  9  28.7331
  10  43.672
  11  4.91006e-05
  12  6.56503
  13  2.23004e-06
  14  5.57271e-08
  15  1.96244e-06
  16  14.1648
  17  1.7249
  18  0.245052
  19  0.145995
Done.

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

Extracting fit parameters...

4FGL J0937.9-1434
   Spectrum: PowerLaw
257    Prefactor:  5.824e+01  4.367e+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.848e-01  1.460e-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.509e-01  2.451e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.50
Ra Dec: 144.475 -14.571
Photon Index (Fixed Index): 1.98 +/- 0.00
Photon Flux (Fixed Index): 5.20e-08 +/- 3.90e-08
Energy Flux (Fixed Index): 3.78e-05 +/- 2.83e-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) = 6065.44717914
delta logL = 0.101813464161

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6065.42808468
delta logL = 0.120907928796

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    42.596       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2133       1.0000          .0000       10.000    
     3 'Normalizat'    .93461       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98884       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=   6065.428     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      267 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     42.545        526.44        .15356E-02   -.92025E-05
   2  Index         2.2143        2.4259        .11908        .12422E-03
   3  Normalizat    .93437        .10050        .71641E-01    .38677E-05
   4  Prefactor     .98938        .47810E-01    .46127E-01   -.24554E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 42.5448
  Index      = 2.21431
  Normalizat = 0.934368
  Prefactor  = 0.989381
 **********
 **   18 **HESSE 
 **********

 FCN=   6065.428     FROM HESSE     STATUS=OK            33 CALLS      300 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     42.545        47.336        .61423E-04   -1.4403    
   2  Index         2.2143        .53022        .40960E-02   -.59093    
   3  Normalizat    .93437        .24206        .31699E-03   -.95263    
   4  Prefactor     .98938        .14472        .18561E-03   -.93084    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.66503e-09
Minuit parameter uncertainties:
  1  47.3774
  2  0.53167
  3  0.242345
  4  0.144772
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/375050': 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) = 6065.42806325
delta logL = 0.120929351418

Extracting fit parameters...

4FGL J0937.9-1434
   Spectrum: PowerLaw
257    Prefactor:  4.254e+01  4.738e+01  1.000e-04  1.000e+04 ( 1.000e-14)
258        Index:  2.214e+00  5.317e-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.894e-01  1.448e-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.344e-01  2.423e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.73
Ra Dec: 144.475 -14.571
Photon Index (Free Index): 2.21 +/- 0.53
Photon Flux (Free Index): 6.84e-08 +/- 5.34e-08
Energy Flux (Free Index): 2.99e-05 +/- 2.40e-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/375050/cmap_HighResolution_446688001_446947201_4FGL_J0937.9-1434_daily_bin800.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.20e-08', energy_flux2='2.99e-05', photon_flux_error='3.90e-08', dlogl='1.21e-01', energy_flux='3.78e-05', photon_flux2='6.84e-08', job_status='DONE', time_completed='2021-08-31 19:39:35.322068', photon_index_error2='0.53', photon_index2='2.21', ts='4.50', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='2.40e-05', EG='0.95', time_epoch_completed='1630463975.32', return_code='0', job_id='375050', GAL2='0.99', EG2='0.93', return_code2='0', energy_flux_error='2.83e-05', photon_flux_error2='5.34e-08', ts2='4.73', photon_index='1.98' WHERE bin_id='800' AND source_name='4FGL J0937.9-1434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 19:39:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 375050: <4FGL_J0937.9-1434_daily_bin800> in cluster <slac> Done

Job <4FGL_J0937.9-1434_daily_bin800> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Aug 31 19:30:42 2021
Job was executed on host(s) <bullet0252>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 19:30:44 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:30:44 2021
Terminated at Tue Aug 31 19:39:36 2021
Results reported at Tue Aug 31 19:39:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0937.9-1434_daily_bin800 144.475 -14.5706 446688001 446947201 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 :                                   509.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             276.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   531 sec.
    Turnaround time :                            534 sec.

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

