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


Performing analysis on: 4FGL_J0937.9-1434_daily_bin866
RA = 144.475, Dec = -14.5706
tmin = 463795201, tmax = 464054401
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='375157', job_status='RUN', time_executed='2021-08-31 19:31:09.188272', time_epoch_executed='1630463469.19' WHERE source_name='4FGL J0937.9-1434' and cadence='daily' and bin_id='866'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/375157

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/375157/ft1_4FGL_J0937.9-1434_daily_bin866.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/375157/ft2_4FGL_J0937.9-1434_daily_bin866.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/375157/ft1_4FGL_J0937.9-1434_daily_bin866.fits outfile=/scratch/kocevski/375157/ft1_filteredMKT_4FGL_J0937.9-1434_daily_bin866.fits ra=144.475 dec=-14.5706 rad=12.0 tmin=463795201.0 tmax=464054401.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.56
user 3.33
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/375157/ft2_4FGL_J0937.9-1434_daily_bin866.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/375157/ft1_filteredMKT_4FGL_J0937.9-1434_daily_bin866.fits evtable="EVENTS" outfile="/scratch/kocevski/375157/ft1_filtered_4FGL_J0937.9-1434_daily_bin866.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.53
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/375157/ft1_filtered_4FGL_J0937.9-1434_daily_bin866.fits" evtable="EVENTS" scfile=/scratch/kocevski/375157/ft2_4FGL_J0937.9-1434_daily_bin866.fits sctable="SC_DATA" outfile=/scratch/kocevski/375157/ltcube_463795201_464054401_4FGL_J0937.9-1434_daily_bin866.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/375157/ft2_4FGL_J0937.9-1434_daily_bin866.fits
.....................!
real 11.49
user 11.08
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/375157/ft1_filtered_4FGL_J0937.9-1434_daily_bin866.fits evtable="EVENTS" scfile=/scratch/kocevski/375157/ft2_4FGL_J0937.9-1434_daily_bin866.fits sctable="SC_DATA" expcube=/scratch/kocevski/375157/ltcube_463795201_464054401_4FGL_J0937.9-1434_daily_bin866.fits outfile=/scratch/kocevski/375157/expmap_463795201_464054401_4FGL_J0937.9-1434_daily_bin866.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/375157/ltcube_463795201_464054401_4FGL_J0937.9-1434_daily_bin866.fits
.....................!
real 190.91
user 185.96
sys 4.02

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/375157/ft1_filtered_4FGL_J0937.9-1434_daily_bin866.fits scfile=/scratch/kocevski/375157/ft2_4FGL_J0937.9-1434_daily_bin866.fits outfile=/scratch/kocevski/375157/cmap_463795201_464054401_4FGL_J0937.9-1434_daily_bin866.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.61
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/375157/ft1_filtered_4FGL_J0937.9-1434_daily_bin866.fits scfile=/scratch/kocevski/375157/ft2_4FGL_J0937.9-1434_daily_bin866.fits outfile=/scratch/kocevski/375157/cmap_HighResolution_463795201_464054401_4FGL_J0937.9-1434_daily_bin866.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 3.45
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    5.5542       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.8876       1.0000         .10000E-03   10000.    
     4 'Prefactor '    23.807       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .37362       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.2752       1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.798       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11039E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.4626       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.2615       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.5689       1.0000         .10000E-03   10000.    
    12 'norm      '    .10257E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.6572       1.0000         .10000E-03   10000.    
    14 'norm      '    5.8284       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.9090       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .66639       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0683       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=   8042.399     FROM MIGRAD    STATUS=CONVERGED    397 CALLS     1648 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    15.055       -.14228E-05** at limit **
   2  norm          5.5520        2.9276       -.39734E-07   -.12093E-03
   3  Prefactor     4.8881        3.8368        .38912E-06   -.61440E-04
   4  Prefactor     23.815        12.794        .55442E-06   -.49643E-04
   5  Prefactor     .41822        4.2427        .44578E-08   -.15119E-03
   6  Prefactor     3.2723        8.6731        .34866E-06   -.32436E-05
   7  Prefactor     16.785        30.534        .12916E-05   -.22602E-04
   8  Prefactor     .10000E-03    15.674        .73742E-07** at limit **
   9  Prefactor     1.4076        74.087        .21342E-05    .17553E-05
  10  Prefactor     2.2566        42.046        .73894E-05   -.13640E-04
  11  Prefactor     2.5645        13.576        .63527E-05   -.62948E-04
  12  norm          .10000E-03    5.7344        .16528E-06** at limit **
  13  norm          1.6569        2.5285        .14111E-06   -.23027E-04
  14  norm          5.8294        7.7162        .11796E-06   -.40258E-05
  15  norm          .10000E-03    .45542        .55390E-07** at limit **
  16  norm          .10000E-03    6.0859        .30923E-06** at limit **
  17  norm          1.9091        1.1601        .72477E-07   -.19131E-04
  18  Normalizat    .66659        .16631       -.81037E-06   -.10639E-03
  19  Prefactor     1.0681        .10188       -.65577E-06   -.34043E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100003
  norm       = 5.55196
  Prefactor  = 4.88806
  Prefactor  = 23.8153
  Prefactor  = 0.41822
  Prefactor  = 3.27234
  Prefactor  = 16.7846
  Prefactor  = 0.0001
  Prefactor  = 1.40761
  Prefactor  = 2.25664
  Prefactor  = 2.56451
  norm       = 0.0001
  norm       = 1.65687
  norm       = 5.82936
  norm       = 0.0001
  norm       = 0.0001
  norm       = 1.90912
  Normalizat = 0.666585
  Prefactor  = 1.06814
 **********
 **   18 **HESSE 
 **********

 FCN=   8042.399     FROM HESSE     STATUS=OK           276 CALLS     1924 TOTAL
                     EDM=   .54E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    15.705        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.5520        2.9195        .10551E-03   -1.5237    
   3  Prefactor     4.8881        3.8410        .75095E-03   -1.5266    
   4  Prefactor     23.815        12.781        .82096E-04   -1.4732    
   5  Prefactor     .41822        13.979        .35368E-02   -1.5579    
   6  Prefactor     3.2723        8.6554        .22375E-03   -1.5346    
   7  Prefactor     16.785        30.519        .97722E-04   -1.4888    
   8  Prefactor     .10000E-03    15.749        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.4076        75.344        .35570E-03   -1.5471    
  10  Prefactor     2.2566        41.267        .13658E-02   -1.5408    
  11  Prefactor     2.5645        13.561        .12734E-02   -1.5388    
  12  norm          .10000E-03    5.9495        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.6569        2.5027        .17018E-03   -1.5451    
  14  norm          5.8294        7.7117        .16635E-03   -1.5225    
  15  norm          .10000E-03    .46133        .59115E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    6.1638        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.9091        1.1523        .71896E-04   -1.5432    
  18  Normalizat    .66659        .18771        .32534E-03   -1.0523    
  19  Prefactor     1.0681        .11643        .16783E-03   -.90491    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.411e-08
Minuit parameter uncertainties:
  1  0.000399412
  2  2.9196
  3  3.84122
  4  12.7821
  5  4.83649
  6  8.65869
  7  30.5477
  8  3.31923e-05
  9  20.6232
  10  19.3152
  11  11.7983
  12  2.11368e-05
  13  2.50287
  14  7.71306
  15  2.39899e-06
  16  4.66556e-05
  17  1.15232
  18  0.187893
  19  0.116457
Done.

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

Extracting fit parameters...

4FGL J0937.9-1434
   Spectrum: PowerLaw
257    Prefactor:  2.257e+00  1.932e+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.068e+00  1.165e-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.666e-01  1.879e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/375157/likelihoodResults_463795201_464054401_4FGL_J0937.9-1434_daily_bin866.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) = 8042.17532973
delta logL = 0.223362913885

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8042.11999657
delta logL = 0.278696073173

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .53554       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4056       1.0000          .0000       10.000    
     3 'Normalizat'    .63763       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0767       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=   8042.120     FROM MIGRAD    STATUS=FAILED        88 CALLS      280 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .53550        53.347        .92380E-04   -.36119E-02
   2  Index         3.4059        6.6229        .67090E-02   -.45794E-03
   3  Normalizat    .63757        .15604        .33234E-03   -.64369E-03
   4  Prefactor     1.0767        .92905E-01    .16723E-03   -.11785E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8042.120     FROM SIMPLEX   STATUS=UNCHANGED     91 CALLS      371 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .53550        53.347        .20244E-03   -.36119E-02
   2  Index         3.4059        6.6229        .19782E-02   -.45794E-03
   3  Normalizat    .63757        .15604        .19608E-03   -.64369E-03
   4  Prefactor     1.0767        .92905E-01    .29427E-04   -.11785E-02
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8042.120     FROM MIGRAD    STATUS=CONVERGED     29 CALLS      400 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .53527        6.5795        .36952E-05   -.40445E-02
   2  Index         3.4060        2.3867        .26836E-03   -.39258E-03
   3  Normalizat    .63757        .18662        .13294E-04   -.62566E-03
   4  Prefactor     1.0767        .11721        .33445E-04   -.12301E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.535273
  Index      = 3.40601
  Normalizat = 0.637571
  Prefactor  = 1.07674
 **********
 **   18 **HESSE 
 **********

 FCN=   8042.120     FROM HESSE     STATUS=OK            23 CALLS      423 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .53527        5.3314        .73904E-06   -1.5562    
   2  Index         3.4060        2.1676        .10734E-04   -.32446    
   3  Normalizat    .63757        .18612        .26587E-05   -1.0641    
   4  Prefactor     1.0767        .11700        .66891E-05   -.90213    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.01441e-09
Minuit parameter uncertainties:
  1  3.37867
  2  2.25135
  3  0.186301
  4  0.117025
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/375157': 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) = 8042.1199964
delta logL = 0.2786962381

Extracting fit parameters...

4FGL J0937.9-1434
   Spectrum: PowerLaw
257    Prefactor:  5.353e-01  3.379e+00  1.000e-04  1.000e+04 ( 1.000e-14)
258        Index:  3.406e+00  2.251e+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.077e+00  1.170e-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.376e-01  1.863e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
Ra Dec: 144.475 -14.571

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/375157/cmap_HighResolution_463795201_464054401_4FGL_J0937.9-1434_daily_bin866.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.01e-03', job_status='DONE', photon_flux_upper_limit='5.35e-08', time_completed='2021-08-31 19:41:47.083394', job_id='375157', GAL2='1.08', fit_tolerance='1e-08', EG2='0.64', EG='0.67', time_epoch_completed='1630464107.08', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='2.79e-01', ts2='0.59', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='866' AND source_name='4FGL J0937.9-1434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 19:41:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0197>
Subject: Job 375157: <4FGL_J0937.9-1434_daily_bin866> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0937.9-1434_daily_bin866 144.475 -14.5706 463795201 464054401 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 :                                   628.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             348.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   655 sec.
    Turnaround time :                            656 sec.

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

