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


Performing analysis on: 4FGL_J0937.9-1434_daily_bin1430
RA = 144.475, Dec = -14.5706
tmin = 609984001, tmax = 610243201
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='377283', job_status='RUN', time_executed='2021-08-31 19:37:19.382851', time_epoch_executed='1630463839.38' WHERE source_name='4FGL J0937.9-1434' and cadence='daily' and bin_id='1430'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/377283

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/377283/ft1_4FGL_J0937.9-1434_daily_bin1430.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/377283/ft2_4FGL_J0937.9-1434_daily_bin1430.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/377283/ft1_4FGL_J0937.9-1434_daily_bin1430.fits outfile=/scratch/kocevski/377283/ft1_filteredMKT_4FGL_J0937.9-1434_daily_bin1430.fits ra=144.475 dec=-14.5706 rad=12.0 tmin=609984001.0 tmax=610243201.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.17
user 4.87
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/377283/ft1_filtered_4FGL_J0937.9-1434_daily_bin1430.fits" evtable="EVENTS" scfile=/scratch/kocevski/377283/ft2_4FGL_J0937.9-1434_daily_bin1430.fits sctable="SC_DATA" outfile=/scratch/kocevski/377283/ltcube_609984001_610243201_4FGL_J0937.9-1434_daily_bin1430.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/377283/ft2_4FGL_J0937.9-1434_daily_bin1430.fits
.....................!
real 11.61
user 11.24
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/377283/ft1_filtered_4FGL_J0937.9-1434_daily_bin1430.fits evtable="EVENTS" scfile=/scratch/kocevski/377283/ft2_4FGL_J0937.9-1434_daily_bin1430.fits sctable="SC_DATA" expcube=/scratch/kocevski/377283/ltcube_609984001_610243201_4FGL_J0937.9-1434_daily_bin1430.fits outfile=/scratch/kocevski/377283/expmap_609984001_610243201_4FGL_J0937.9-1434_daily_bin1430.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/377283/ltcube_609984001_610243201_4FGL_J0937.9-1434_daily_bin1430.fits
.....................!
real 189.57
user 184.17
sys 4.72

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/377283/ft1_filtered_4FGL_J0937.9-1434_daily_bin1430.fits scfile=/scratch/kocevski/377283/ft2_4FGL_J0937.9-1434_daily_bin1430.fits outfile=/scratch/kocevski/377283/cmap_609984001_610243201_4FGL_J0937.9-1434_daily_bin1430.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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/377283/ft1_filtered_4FGL_J0937.9-1434_daily_bin1430.fits scfile=/scratch/kocevski/377283/ft2_4FGL_J0937.9-1434_daily_bin1430.fits outfile=/scratch/kocevski/377283/cmap_HighResolution_609984001_610243201_4FGL_J0937.9-1434_daily_bin1430.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.56
user 0.41
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/377283/ft1_filtered_4FGL_J0937.9-1434_daily_bin1430.fits evtable="EVENTS" scfile=/scratch/kocevski/377283/ft2_4FGL_J0937.9-1434_daily_bin1430.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/377283/Model_4FGL_J0937.9-1434_daily_bin1430.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/377283/ft1_filtered_4FGL_J0937.9-1434_daily_bin1430.fits.....................!
real 82.88
user 81.35
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.5299       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .20211E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.6945       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10226E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    6.3442       1.0000         .10000E-03   10000.    
    13 'norm      '    2.7109       1.0000         .10000E-03   10000.    
    14 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    19.168       1.0000         .10000E-03   10000.    
    17 'norm      '    5.6345       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0334       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .83626       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=   8821.344     FROM MIGRAD    STATUS=CONVERGED    379 CALLS     1587 TOTAL
                     EDM=   .94E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.0543        .35768E-07** at limit **
   2  norm          2.5285        2.7040       -.42365E-08    .65435E-04
   3  Prefactor     .10000E-03    1.6255        .23481E-07** at limit **
   4  Prefactor     .10044E-03    6.2878       -.23896E-05** at limit **
   5  Prefactor     9.6932        6.5117       -.12928E-07    .18236E-03
   6  Prefactor     .10000E-03    4.0970        .34734E-06** at limit **
   7  Prefactor     .10000E-03    12.166        .31291E-05** at limit **
   8  Prefactor     .10000E-03    7.5328       -.51699E-05** at limit **
   9  Prefactor     .10000E-03    6.6646        .59787E-05** at limit **
  10  Prefactor     .10000E-03    28.731        .48351E-05** at limit **
  11  Prefactor     .10000E-03    5.2563       -.16976E-05** at limit **
  12  norm          6.3417        4.8274       -.22412E-06   -.35329E-03
  13  norm          2.7110        2.3244       -.13446E-07    .25671E-04
  14  norm          .10000E-03    11.614       -.18537E-05** at limit **
  15  norm          .10000E-03    .71631       -.52195E-07** at limit **
  16  norm          19.168        8.5487       -.16621E-08   -.34670E-05
  17  norm          5.6346        1.3836       -.76026E-07   -.18045E-02
  18  Normalizat    1.0333        .15252        .44998E-06    .30614E-03
  19  Prefactor     .83628        .92249E-01    .83013E-07    .43499E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 2.52848
  Prefactor  = 0.0001
  Prefactor  = 0.000100443
  Prefactor  = 9.69316
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.34172
  norm       = 2.71097
  norm       = 0.0001
  norm       = 0.0001
  norm       = 19.1683
  norm       = 5.63464
  Normalizat = 1.03333
  Prefactor  = 0.836277
 **********
 **   18 **HESSE 
 **********

 FCN=   8821.344     FROM HESSE     STATUS=OK           264 CALLS     1851 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.0603        .16025E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.5285        2.6279        .15012E-03   -1.5390    
   3  Prefactor     .10000E-03    1.6418        .11690E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10044E-03    38.618        .42139E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.6932        6.4988        .12870E-03   -1.5085    
   6  Prefactor     .10000E-03    4.1027        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    12.187        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.5304        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.6460        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    28.973        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.3036        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          6.3417        4.8389        .15936E-03   -1.5204    
  13  norm          2.7110        2.3260        .12887E-03   -1.5379    
  14  norm          .10000E-03    11.855        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .73192        .77590E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          19.168        8.5515        .91482E-04   -1.4832    
  17  norm          5.6346        1.3929        .26505E-03   -1.5233    
  18  Normalizat    1.0333        .17714        .27313E-03   -.91922    
  19  Prefactor     .83628        .10777        .18433E-03   -.98405    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14932e-08
Minuit parameter uncertainties:
  1  4.01583e-06
  2  2.62803
  3  4.98925e-07
  4  0.0082801
  5  6.49932
  6  3.13067e-06
  7  4.93343e-05
  8  7.41207e-05
  9  7.75608e-05
  10  0.000120872
  11  1.98361e-05
  12  4.83921
  13  2.32613
  14  2.80088e-05
  15  8.56094e-07
  16  8.55202
  17  1.39288
  18  0.177238
  19  0.107798
Done.

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

Extracting fit parameters...

4FGL J0937.9-1434
   Spectrum: PowerLaw
257    Prefactor:  1.000e-04  1.209e-04  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:  8.363e-01  1.078e-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.033e+00  1.772e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/377283/likelihoodResults_609984001_610243201_4FGL_J0937.9-1434_daily_bin1430.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): 102
logL (Free Index) = 8821.3441195
delta logL = -0.000164431663507

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8821.34395598
delta logL = -9.09993104869e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0579       1.0000          .0000       10.000    
     3 'Normalizat'    1.0333       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83628       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8820.834     FROM MIGRAD    STATUS=FAILED       159 CALLS      344 TOTAL
                     EDM=   .54E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.9156        597.38        .18142E-01    .46879E-04
   2  Index         .70731        8.7381        .50000        .73312E-04
   3  Normalizat    1.0263        .63333E-01    .27313E-03    .38960E-04
   4  Prefactor     .83881        .39065E-01    .18433E-03    .47614E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8820.834     FROM SIMPLEX   STATUS=UNCHANGED     91 CALLS      435 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.9156        597.38        .22328E-03    .46879E-04
   2  Index         .70731        8.7381        .10466E-02    .73312E-04
   3  Normalizat    1.0263        .63333E-01    .46236E-04    .38960E-04
   4  Prefactor     .83881        .39065E-01    .65832E-04    .47614E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8820.834     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      469 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.9156        21.327        .37034E-03   -.14735E-05
   2  Index         .70731        1.1345        .26106E-01    .30063E-03
   3  Normalizat    1.0263        .17463        .10925E-04    .38710E-04
   4  Prefactor     .83881        .10784        .73731E-05    .47491E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.91562
  Index      = 0.707305
  Normalizat = 1.02627
  Prefactor  = 0.838814
 **********
 **   18 **HESSE 
 **********

 FCN=   8820.834     FROM HESSE     STATUS=OK            25 CALLS      494 TOTAL
                     EDM=   .19E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.9156        17.743        .14814E-04   -1.5145    
   2  Index         .70731        .95342        .52211E-02   -2.1092    
   3  Normalizat    1.0263        .17497        .21851E-05   -.92156    
   4  Prefactor     .83881        .10805        .14746E-05   -.98313    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.87384e-12
Minuit parameter uncertainties:
  1  17.7543
  2  0.976887
  3  0.17507
  4  0.108081
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/377283': 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) = 8820.83354895
delta logL = 0.510406122359

Extracting fit parameters...

4FGL J0937.9-1434
   Spectrum: PowerLaw
257    Prefactor:  7.916e+00  1.775e+01  1.000e-04  1.000e+04 ( 1.000e-14)
258        Index:  7.073e-01  9.769e-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:  8.388e-01  1.081e-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.026e+00  1.751e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.02
Ra Dec: 144.475 -14.571
Photon Index (Free Index): 0.71 +/- 0.98
Photon Flux (Free Index): 1.99e-09 +/- 6.32e-09
Energy Flux (Free Index): 5.21e-05 +/- 2.40e-04

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/377283/cmap_HighResolution_609984001_610243201_4FGL_J0937.9-1434_daily_bin1430.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.45e-03', comment='SUCCESS', energy_flux2='5.21e-05', dlogl='5.10e-01', photon_flux2='1.99e-09', job_status='DONE', time_completed='2021-08-31 19:49:25.985130', photon_index_error2='0.98', photon_index2='0.71', ts='-0.00', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', photon_flux_upper_limit='4.61e-08', energy_flux_error2='2.40e-04', EG='1.03', time_epoch_completed='1630464565.99', return_code='0', job_id='377283', GAL2='0.84', EG2='1.03', return_code2='0', photon_flux_error2='6.32e-09', ts2='1.02', photon_index='1.98' WHERE bin_id='1430' AND source_name='4FGL J0937.9-1434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 19:49:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0289>
Subject: Job 377283: <4FGL_J0937.9-1434_daily_bin1430> in cluster <slac> Done

Job <4FGL_J0937.9-1434_daily_bin1430> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Aug 31 19:36:38 2021
Job was executed on host(s) <bullet0289>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 19:36:40 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:36:40 2021
Terminated at Tue Aug 31 19:49:26 2021
Results reported at Tue Aug 31 19:49:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0937.9-1434_daily_bin1430 144.475 -14.5706 609984001 610243201 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 :                                   653.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             321.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   766 sec.
    Turnaround time :                            768 sec.

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

