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


Performing analysis on: 4FGL_J0937.9-1434_daily_bin1043
RA = 144.475, Dec = -14.5706
tmin = 509673601, tmax = 509932801
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='375403', job_status='RUN', time_executed='2021-08-31 19:34:33.948825', time_epoch_executed='1630463673.95' WHERE source_name='4FGL J0937.9-1434' and cadence='daily' and bin_id='1043'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/375403

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/375403/ft1_4FGL_J0937.9-1434_daily_bin1043.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/375403/ft2_4FGL_J0937.9-1434_daily_bin1043.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/375403/ft1_4FGL_J0937.9-1434_daily_bin1043.fits outfile=/scratch/kocevski/375403/ft1_filteredMKT_4FGL_J0937.9-1434_daily_bin1043.fits ra=144.475 dec=-14.5706 rad=12.0 tmin=509673601.0 tmax=509932801.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.59
user 3.36
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/375403/ft1_filtered_4FGL_J0937.9-1434_daily_bin1043.fits" evtable="EVENTS" scfile=/scratch/kocevski/375403/ft2_4FGL_J0937.9-1434_daily_bin1043.fits sctable="SC_DATA" outfile=/scratch/kocevski/375403/ltcube_509673601_509932801_4FGL_J0937.9-1434_daily_bin1043.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/375403/ft2_4FGL_J0937.9-1434_daily_bin1043.fits
.....................!
real 16.07
user 15.72
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/375403/ft1_filtered_4FGL_J0937.9-1434_daily_bin1043.fits evtable="EVENTS" scfile=/scratch/kocevski/375403/ft2_4FGL_J0937.9-1434_daily_bin1043.fits sctable="SC_DATA" expcube=/scratch/kocevski/375403/ltcube_509673601_509932801_4FGL_J0937.9-1434_daily_bin1043.fits outfile=/scratch/kocevski/375403/expmap_509673601_509932801_4FGL_J0937.9-1434_daily_bin1043.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/375403/ltcube_509673601_509932801_4FGL_J0937.9-1434_daily_bin1043.fits
.....................!
real 189.36
user 185.06
sys 3.99

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/375403/ft1_filtered_4FGL_J0937.9-1434_daily_bin1043.fits scfile=/scratch/kocevski/375403/ft2_4FGL_J0937.9-1434_daily_bin1043.fits outfile=/scratch/kocevski/375403/cmap_509673601_509932801_4FGL_J0937.9-1434_daily_bin1043.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.59
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/375403/ft1_filtered_4FGL_J0937.9-1434_daily_bin1043.fits scfile=/scratch/kocevski/375403/ft2_4FGL_J0937.9-1434_daily_bin1043.fits outfile=/scratch/kocevski/375403/cmap_HighResolution_509673601_509932801_4FGL_J0937.9-1434_daily_bin1043.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/375403/ft1_filtered_4FGL_J0937.9-1434_daily_bin1043.fits evtable="EVENTS" scfile=/scratch/kocevski/375403/ft2_4FGL_J0937.9-1434_daily_bin1043.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/375403/Model_4FGL_J0937.9-1434_daily_bin1043.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/375403/ft1_filtered_4FGL_J0937.9-1434_daily_bin1043.fits.....................!
real 82.55
user 81.25
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    18.924       1.0000         .10000E-03   10000.    
     2 'norm      '    .57103       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.4262       1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.078       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.1762       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    19.182       1.0000         .10000E-03   10000.    
     9 'Prefactor '    64.304       1.0000         .10000E-03   10000.    
    10 'Prefactor '    26.079       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.0211       1.0000         .10000E-03   10000.    
    12 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .26860E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    7.5933       1.0000         .10000E-03   10000.    
    15 'norm      '    4.2496       1.0000         .10000E-03   10000.    
    16 'norm      '    3.3798       1.0000         .10000E-03   10000.    
    17 'norm      '    1.1608       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .64384       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0567       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=   8281.145     FROM MIGRAD    STATUS=CONVERGED    352 CALLS     1935 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          18.920        12.167       -.59008E-05    .45595E-04
   2  norm          .57216        2.4131       -.52747E-06   -.13844E-02
   3  Prefactor     3.4256        3.4841       -.39678E-06   -.28693E-03
   4  Prefactor     11.077        7.9187       -.10151E-05    .40504E-04
   5  Prefactor     .10000E-03    3.3511        .37171E-06** at limit **
   6  Prefactor     2.1730        8.3598       -.71320E-05   -.27831E-03
   7  Prefactor     .10000E-03    6.1390        .89611E-07** at limit **
   8  Prefactor     19.180        31.712       -.48626E-05    .72393E-04
   9  Prefactor     64.314        33.321        .12059E-04    .17868E-03
  10  Prefactor     26.080        19.492        .96423E-06    .25858E-04
  11  Prefactor     3.0193        7.8110       -.35397E-05   -.27167E-03
  12  norm          .10000E-03    1.4897       -.72071E-07** at limit **
  13  norm          .10000E-03    2.1655       -.21475E-05** at limit **
  14  norm          7.5928        6.6158       -.35204E-06    .87334E-05
  15  norm          4.2508        2.0896       -.23217E-06   -.12595E-02
  16  norm          3.3799        5.7622       -.59420E-06   -.33818E-03
  17  norm          1.1606        1.1400       -.15363E-06   -.12194E-02
  18  Normalizat    .64376        .16556       -.10254E-05    .37449E-03
  19  Prefactor     1.0568        .10053        .93579E-06    .38570E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 18.9201
  norm       = 0.572163
  Prefactor  = 3.42562
  Prefactor  = 11.0767
  Prefactor  = 0.0001
  Prefactor  = 2.173
  Prefactor  = 0.0001
  Prefactor  = 19.18
  Prefactor  = 64.3143
  Prefactor  = 26.0795
  Prefactor  = 3.01929
  norm       = 0.0001
  norm       = 0.000100004
  norm       = 7.59277
  norm       = 4.25077
  norm       = 3.37985
  norm       = 1.16062
  Normalizat = 0.64376
  Prefactor  = 1.05681
 **********
 **   18 **HESSE 
 **********

 FCN=   8281.145     FROM HESSE     STATUS=OK           272 CALLS     2207 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          18.920        11.614        .92069E-04   -1.4838    
   2  norm          .57216        2.2860        .25220E-03   -1.5557    
   3  Prefactor     3.4256        3.4878        .16521E-03   -1.5338    
   4  Prefactor     11.077        7.8716        .12037E-03   -1.5042    
   5  Prefactor     .10000E-03    3.4121        .16265E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.1730        8.3903        .27910E-03   -1.5413    
   7  Prefactor     .10000E-03    6.1436        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     19.180        31.551        .91448E-04   -1.4832    
   9  Prefactor     64.314        33.075        .50044E-04   -1.4102    
  10  Prefactor     26.080        19.484        .78444E-04   -1.4686    
  11  Prefactor     3.0193        7.8373        .23348E-03   -1.5360    
  12  norm          .10000E-03    1.4938        .10845E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    4.5276        .25597E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          7.5928        6.6192        .14553E-03   -1.5157    
  15  norm          4.2508        2.0875        .44470E-03   -1.5296    
  16  norm          3.3799        5.7580        .22009E-03   -1.5340    
  17  norm          1.1606        1.1220        .90714E-04   -1.5493    
  18  Normalizat    .64376        .18623        .33103E-03   -1.0616    
  19  Prefactor     1.0568        .11451        .16814E-03   -.90859    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.33478e-09
Minuit parameter uncertainties:
  1  11.6158
  2  2.28636
  3  3.48798
  4  7.87233
  5  5.01848e-06
  6  8.39484
  7  2.28554e-08
  8  31.5781
  9  33.0842
  10  19.4886
  11  7.83998
  12  8.72172e-06
  13  0.000277532
  14  6.61986
  15  2.08757
  16  5.75891
  17  1.122
  18  0.18641
  19  0.114534
Done.

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

Extracting fit parameters...

4FGL J0937.9-1434
   Spectrum: PowerLaw
257    Prefactor:  2.608e+01  1.949e+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.057e+00  1.145e-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:  6.438e-01  1.864e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.61
Ra Dec: 144.475 -14.571
Photon Index (Fixed Index): 1.98 +/- 0.00
Photon Flux (Fixed Index): 2.33e-08 +/- 1.74e-08
Energy Flux (Fixed Index): 1.69e-05 +/- 1.26e-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) = 8281.11197279
delta logL = 0.0329683463151

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8281.10955904
delta logL = 0.035382094964

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    30.722       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8177       1.0000          .0000       10.000    
     3 'Normalizat'    .64846       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0556       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=   8281.110     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      316 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     30.745        29.292        .36144E-03    .11940E-03
   2  Index         1.8175        .62553        .88239E-02    .40268E-03
   3  Normalizat    .64849        .17622        .32990E-03   -.39492E-04
   4  Prefactor     1.0556        .11276        .16823E-03   -.59064E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 30.7455
  Index      = 1.81745
  Normalizat = 0.648491
  Prefactor  = 1.0556
 **********
 **   18 **HESSE 
 **********

 FCN=   8281.110     FROM HESSE     STATUS=OK            25 CALLS      341 TOTAL
                     EDM=   .75E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     30.745        28.269        .72287E-04   -1.4598    
   2  Index         1.8175        .60382        .17648E-02   -.68996    
   3  Normalizat    .64849        .17623        .13196E-04   -1.0596    
   4  Prefactor     1.0556        .11283        .67292E-05   -.90898    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.53639e-11
Minuit parameter uncertainties:
  1  28.2813
  2  0.606313
  3  0.176384
  4  0.112852
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/375403': 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) = 8281.1095585
delta logL = 0.0353826299815

Extracting fit parameters...

4FGL J0937.9-1434
   Spectrum: PowerLaw
257    Prefactor:  3.075e+01  2.828e+01  1.000e-04  1.000e+04 ( 1.000e-14)
258        Index:  1.817e+00  6.063e-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:  1.056e+00  1.129e-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:  6.485e-01  1.764e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.68
Ra Dec: 144.475 -14.571
Photon Index (Free Index): 1.82 +/- 0.61
Photon Flux (Free Index): 1.88e-08 +/- 2.12e-08
Energy Flux (Free Index): 2.14e-05 +/- 2.63e-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/375403/cmap_HighResolution_509673601_509932801_4FGL_J0937.9-1434_daily_bin1043.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.33e-08', energy_flux2='2.14e-05', photon_flux_error='1.74e-08', dlogl='3.54e-02', energy_flux='1.69e-05', photon_flux2='1.88e-08', job_status='DONE', time_completed='2021-08-31 19:44:43.989647', photon_index_error2='0.61', photon_index2='1.82', ts='4.61', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='2.63e-05', EG='0.64', time_epoch_completed='1630464283.99', return_code='0', job_id='375403', GAL2='1.06', EG2='0.65', return_code2='0', energy_flux_error='1.26e-05', photon_flux_error2='2.12e-08', ts2='4.68', photon_index='1.98' WHERE bin_id='1043' AND source_name='4FGL J0937.9-1434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 19:44:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 375403: <4FGL_J0937.9-1434_daily_bin1043> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0937.9-1434_daily_bin1043 144.475 -14.5706 509673601 509932801 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 :                                   607.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             317.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   809 sec.
    Turnaround time :                            810 sec.

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

