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


Performing analysis on: 4FGL_J0937.9-1434_daily_bin787
RA = 144.475, Dec = -14.5706
tmin = 443318401, tmax = 443577601
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='375029', job_status='RUN', time_executed='2021-08-31 19:30:52.492332', time_epoch_executed='1630463452.49' WHERE source_name='4FGL J0937.9-1434' and cadence='daily' and bin_id='787'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/375029

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/375029/ft1_4FGL_J0937.9-1434_daily_bin787.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/375029/ft2_4FGL_J0937.9-1434_daily_bin787.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/375029/ft1_4FGL_J0937.9-1434_daily_bin787.fits outfile=/scratch/kocevski/375029/ft1_filteredMKT_4FGL_J0937.9-1434_daily_bin787.fits ra=144.475 dec=-14.5706 rad=12.0 tmin=443318401.0 tmax=443577601.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 4.74
user 4.38
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/375029/ft1_filtered_4FGL_J0937.9-1434_daily_bin787.fits" evtable="EVENTS" scfile=/scratch/kocevski/375029/ft2_4FGL_J0937.9-1434_daily_bin787.fits sctable="SC_DATA" outfile=/scratch/kocevski/375029/ltcube_443318401_443577601_4FGL_J0937.9-1434_daily_bin787.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/375029/ft2_4FGL_J0937.9-1434_daily_bin787.fits
.....................!
real 11.69
user 11.27
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/375029/ft1_filtered_4FGL_J0937.9-1434_daily_bin787.fits evtable="EVENTS" scfile=/scratch/kocevski/375029/ft2_4FGL_J0937.9-1434_daily_bin787.fits sctable="SC_DATA" expcube=/scratch/kocevski/375029/ltcube_443318401_443577601_4FGL_J0937.9-1434_daily_bin787.fits outfile=/scratch/kocevski/375029/expmap_443318401_443577601_4FGL_J0937.9-1434_daily_bin787.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/375029/ltcube_443318401_443577601_4FGL_J0937.9-1434_daily_bin787.fits
.....................!
real 190.27
user 185.91
sys 3.94

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/375029/ft1_filtered_4FGL_J0937.9-1434_daily_bin787.fits scfile=/scratch/kocevski/375029/ft2_4FGL_J0937.9-1434_daily_bin787.fits outfile=/scratch/kocevski/375029/cmap_443318401_443577601_4FGL_J0937.9-1434_daily_bin787.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.73
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/375029/ft1_filtered_4FGL_J0937.9-1434_daily_bin787.fits scfile=/scratch/kocevski/375029/ft2_4FGL_J0937.9-1434_daily_bin787.fits outfile=/scratch/kocevski/375029/cmap_HighResolution_443318401_443577601_4FGL_J0937.9-1434_daily_bin787.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 1.41
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/375029/ft1_filtered_4FGL_J0937.9-1434_daily_bin787.fits evtable="EVENTS" scfile=/scratch/kocevski/375029/ft2_4FGL_J0937.9-1434_daily_bin787.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/375029/Model_4FGL_J0937.9-1434_daily_bin787.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/375029/ft1_filtered_4FGL_J0937.9-1434_daily_bin787.fits.....................!
real 58.92
user 52.07
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    20.242       1.0000         .10000E-03   10000.    
     2 'norm      '    1.7625       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10678E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .14122E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .37680E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11659E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.1165       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10228E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.187       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12415E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.0343       1.0000         .10000E-03   10000.    
    14 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10173E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10075E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10123E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.1989       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .98842       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=   4608.251     FROM MIGRAD    STATUS=CONVERGED    409 CALLS     1952 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          20.250        15.194        .39158E-07    .12240E-03
   2  norm          1.7647        3.2793       -.24921E-06   -.17230E-03
   3  Prefactor     .10000E-03    13.277       -.96293E-07** at limit **
   4  Prefactor     .10000E-03    42.405       -.17554E-04** at limit **
   5  Prefactor     .10000E-03    5.3258        .88678E-08** at limit **
   6  Prefactor     .10001E-03    19.713        .46140E-05** at limit **
   7  Prefactor     .10000E-03    114.89       -.46902E-04** at limit **
   8  Prefactor     5.1014        99.588       -.37756E-04   -.83490E-04
   9  Prefactor     .10000E-03    36.195        .91029E-05** at limit **
  10  Prefactor     11.164        43.275       -.35010E-04   -.66348E-04
  11  Prefactor     .10000E-03    86.498        .46818E-04** at limit **
  12  norm          .10000E-03    6.7790        .45552E-06** at limit **
  13  norm          1.0416        6.2901       -.25581E-05   -.91864E-03
  14  norm          .10000E-03    4.3525        .65259E-07** at limit **
  15  norm          .10000E-03    1.7223       -.13935E-06** at limit **
  16  norm          .10000E-03    10.443       -.13475E-06** at limit **
  17  norm          .10000E-03    1.1107       -.21115E-06** at limit **
  18  Normalizat    1.1989        .23629        .31724E-05   -.22682E-03
  19  Prefactor     .98834        .13830        .85895E-06   -.99820E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 20.2501
  norm       = 1.76469
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.000100001
  Prefactor  = 5.10136
  Prefactor  = 0.0001
  Prefactor  = 11.1643
  Prefactor  = 0.000100001
  norm       = 0.000100001
  norm       = 1.04162
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 1.19893
  Prefactor  = 0.988336
 **********
 **   18 **HESSE 
 **********

 FCN=   4608.251     FROM HESSE     STATUS=OK           260 CALLS     2212 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          20.250        15.178        .89024E-04   -1.4808    
   2  norm          1.7647        3.2450        .16058E-03   -1.5442    
   3  Prefactor     .10000E-03    13.661        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    43.558        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.3499        .15299E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    125.83        .56147E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    116.12        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.1014        95.250        .17774E-03   -1.5256    
   9  Prefactor     .10000E-03    36.260        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     11.164        43.482        .11978E-03   -1.5040    
  11  Prefactor     .10000E-03    88.222        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    6.8153        .17252E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.0416        6.5706        .32625E-03   -1.5504    
  14  norm          .10000E-03    4.3559        .13832E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.7760        .17381E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    10.533        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.1252        .13859E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.1989        .27092        .29476E-03   -.86636    
  19  Prefactor     .98834        .15996        .19218E-03   -.93119    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.73558e-09
Minuit parameter uncertainties:
  1  15.1813
  2  3.24528
  3  7.27304e-05
  4  0.000218731
  5  8.61925e-06
  6  0.00165105
  7  0.000685294
  8  44.1677
  9  4.76928e-05
  10  43.6059
  11  0.000715133
  12  0.000130497
  13  5.23283
  14  2.39592e-06
  15  8.47843e-07
  16  6.48568e-06
  17  3.36067e-05
  18  0.271236
  19  0.16004
Done.

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

Extracting fit parameters...

4FGL J0937.9-1434
   Spectrum: PowerLaw
257    Prefactor:  1.116e+01  4.361e+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.883e-01  1.600e-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.199e+00  2.712e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.08
Ra Dec: 144.475 -14.571
Photon Flux Upper Limit: 1.18e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.85e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/375029/likelihoodResults_443318401_443577601_4FGL_J0937.9-1434_daily_bin787.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) = 4607.22474905
delta logL = 1.02577731135

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4607.05431717
delta logL = 1.19620919485

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11015E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    5.9274       1.0000          .0000       10.000    
     3 'Normalizat'    1.0531       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0436       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=   4607.054     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      354 TOTAL
                     EDM=   .64E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10714E-02    .14476E-01    .42433E-03** at limit **
   2  Index         5.9360        1.7787        .66492E-01    .26717E-03
   3  Normalizat    1.0529        .67601E-01    .70423E-01    .25455E-04
   4  Prefactor     1.0437        .40627E-01    .40298E-01    .62778E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00107143
  Index      = 5.93598
  Normalizat = 1.05293
  Prefactor  = 1.04373
 **********
 **   18 **HESSE 
 **********

 FCN=   4607.054     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      387 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10714E-02    .31606E-01    .17068E-04   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         5.9360        2.9476        .26281E-02    .18831    
   3  Normalizat    1.0529        .22570        .31160E-03   -.91278    
   4  Prefactor     1.0437        .13228        .18754E-03   -.91286    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.00977e-10
Minuit parameter uncertainties:
  1  0.011082
  2  3.16143
  3  0.225908
  4  0.132326
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/375029': 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): 102
logL (Free Index) = 4607.05431324
delta logL = 1.19621312198

Extracting fit parameters...

4FGL J0937.9-1434
   Spectrum: PowerLaw
257    Prefactor:  1.071e-03  1.108e-02  1.000e-04  1.000e+04 ( 1.000e-14)
258        Index:  5.936e+00  3.161e+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.044e+00  1.323e-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.053e+00  2.259e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.71
Ra Dec: 144.475 -14.571
Photon Index (Free Index): 5.94 +/- 3.16
Photon Flux (Free Index): 1.45e-07 +/- 1.06e-07
Energy Flux (Free Index): 1.82e-05 +/- 1.41e-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/375029/cmap_HighResolution_443318401_443577601_4FGL_J0937.9-1434_daily_bin787.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.85e-03', comment='SUCCESS', energy_flux2='1.82e-05', dlogl='1.20e+00', photon_flux2='1.45e-07', job_status='DONE', time_completed='2021-08-31 19:39:27.304720', photon_index_error2='3.16', photon_index2='5.94', ts='0.08', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='1.18e-07', energy_flux_error2='1.41e-05', EG='1.20', time_epoch_completed='1630463967.3', return_code='0', job_id='375029', GAL2='1.04', EG2='1.05', return_code2='102', photon_flux_error2='1.06e-07', ts2='2.71', photon_index='1.98' WHERE bin_id='787' AND source_name='4FGL J0937.9-1434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 19:39:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0011>
Subject: Job 375029: <4FGL_J0937.9-1434_daily_bin787> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0937.9-1434_daily_bin787 144.475 -14.5706 443318401 443577601 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 :                                   501.23 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             341.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   525 sec.
    Turnaround time :                            527 sec.

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

