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


Performing analysis on: 4FGL_J0937.9-1434_daily_bin1086
RA = 144.475, Dec = -14.5706
tmin = 520819201, tmax = 521078401
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='375473', job_status='RUN', time_executed='2021-08-31 19:33:57.039727', time_epoch_executed='1630463637.04' WHERE source_name='4FGL J0937.9-1434' and cadence='daily' and bin_id='1086'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/375473

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/375473/ft1_4FGL_J0937.9-1434_daily_bin1086.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/375473/ft2_4FGL_J0937.9-1434_daily_bin1086.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/375473/ft1_4FGL_J0937.9-1434_daily_bin1086.fits outfile=/scratch/kocevski/375473/ft1_filteredMKT_4FGL_J0937.9-1434_daily_bin1086.fits ra=144.475 dec=-14.5706 rad=12.0 tmin=520819201.0 tmax=521078401.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.63
user 3.27
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/375473/ft1_filtered_4FGL_J0937.9-1434_daily_bin1086.fits" evtable="EVENTS" scfile=/scratch/kocevski/375473/ft2_4FGL_J0937.9-1434_daily_bin1086.fits sctable="SC_DATA" outfile=/scratch/kocevski/375473/ltcube_520819201_521078401_4FGL_J0937.9-1434_daily_bin1086.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/375473/ft2_4FGL_J0937.9-1434_daily_bin1086.fits
.....................!
real 12.38
user 11.67
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/375473/ft1_filtered_4FGL_J0937.9-1434_daily_bin1086.fits evtable="EVENTS" scfile=/scratch/kocevski/375473/ft2_4FGL_J0937.9-1434_daily_bin1086.fits sctable="SC_DATA" expcube=/scratch/kocevski/375473/ltcube_520819201_521078401_4FGL_J0937.9-1434_daily_bin1086.fits outfile=/scratch/kocevski/375473/expmap_520819201_521078401_4FGL_J0937.9-1434_daily_bin1086.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/375473/ltcube_520819201_521078401_4FGL_J0937.9-1434_daily_bin1086.fits
.....................!
real 193.85
user 185.37
sys 4.11

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/375473/ft1_filtered_4FGL_J0937.9-1434_daily_bin1086.fits scfile=/scratch/kocevski/375473/ft2_4FGL_J0937.9-1434_daily_bin1086.fits outfile=/scratch/kocevski/375473/cmap_520819201_521078401_4FGL_J0937.9-1434_daily_bin1086.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.58
user 0.37
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.4807       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.5485       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    17.349       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.8938       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10145E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    48.658       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .11641E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    8.0582       1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    14.918       1.0000         .10000E-03   10000.    
    17 'norm      '    4.5848       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .90102       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .93507       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=   4506.854     FROM MIGRAD    STATUS=CONVERGED    384 CALLS     1882 TOTAL
                     EDM=   .94E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.7317        .21567E-06** at limit **
   2  norm          3.4808        4.0904       -.76938E-06   -.26387E-03
   3  Prefactor     5.5490        7.7246       -.67847E-06   -.12540E-03
   4  Prefactor     .10000E-03    4.9602       -.35876E-06** at limit **
   5  Prefactor     17.348        11.121       -.62991E-06    .26468E-04
   6  Prefactor     .10000E-03    12.906       -.75552E-05** at limit **
   7  Prefactor     5.8566        98.273       -.10214E-03    .57285E-05
   8  Prefactor     .10000E-03    15.182        .29900E-05** at limit **
   9  Prefactor     .10000E-03    118.47        .31520E-05** at limit **
  10  Prefactor     48.636        48.588       -.20738E-04   -.92684E-04
  11  Prefactor     .10000E-03    4.6837        .26587E-06** at limit **
  12  norm          .10000E-03    10.873        .71864E-05** at limit **
  13  norm          8.0569        5.8123       -.13480E-05   -.17151E-02
  14  norm          .10000E-03    9.0452       -.17830E-05** at limit **
  15  norm          .10000E-03    1.5745       -.12273E-06** at limit **
  16  norm          14.916        18.841       -.12097E-05   -.26174E-04
  17  norm          4.5847        2.2169       -.24788E-06    .13567E-03
  18  Normalizat    .90108        .24490        .93214E-05   -.34113E-04
  19  Prefactor     .93501        .14296        .14657E-05    .18776E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 3.48079
  Prefactor  = 5.54898
  Prefactor  = 0.0001
  Prefactor  = 17.3483
  Prefactor  = 0.0001
  Prefactor  = 5.85663
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 48.6361
  Prefactor  = 0.0001
  norm       = 0.000100003
  norm       = 8.05686
  norm       = 0.0001
  norm       = 0.0001
  norm       = 14.9157
  norm       = 4.58471
  Normalizat = 0.901084
  Prefactor  = 0.935013
 **********
 **   18 **HESSE 
 **********

 FCN=   4506.854     FROM HESSE     STATUS=OK           264 CALLS     2146 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.7386        .15694E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.4808        4.0823        .14138E-03   -1.5335    
   3  Prefactor     5.5490        7.7727        .17056E-03   -1.5237    
   4  Prefactor     .10000E-03    4.9686        .14600E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     17.348        11.121        .96157E-04   -1.4875    
   6  Prefactor     .10000E-03    12.964        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.8566        97.852        .16541E-03   -1.5224    
   8  Prefactor     .10000E-03    15.185        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    120.07        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     48.636        48.720        .57487E-04   -1.4312    
  11  Prefactor     .10000E-03    4.6856        .14191E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    11.058        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          8.0569        5.8587        .66309E-03   -1.5140    
  14  norm          .10000E-03    9.0845        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.6029        .82190E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          14.916        18.867        .10370E-03   -1.4935    
  17  norm          4.5847        2.2179        .66497E-04   -1.5280    
  18  Normalizat    .90108        .28739        .31589E-03   -.96422    
  19  Prefactor     .93501        .16940        .18579E-03   -.94928    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.91333e-09
Minuit parameter uncertainties:
  1  7.90133e-06
  2  4.08266
  3  7.77416
  4  6.67609e-06
  5  11.1221
  6  5.72789e-05
  7  47.9705
  8  2.92265e-05
  9  0.000598353
  10  48.76
  11  3.1679e-05
  12  0.000388801
  13  5.85909
  14  1.63844e-05
  15  1.30713e-05
  16  18.8748
  17  2.21795
  18  0.287882
  19  0.169495
Done.

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

Extracting fit parameters...

4FGL J0937.9-1434
   Spectrum: PowerLaw
257    Prefactor:  4.864e+01  4.876e+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.350e-01  1.695e-01  0.000e+00  1.000e+01 ( 1.000e+00)
535        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
536        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
533   Normalization:  9.011e-01  2.879e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.38
Ra Dec: 144.475 -14.571
Photon Index (Fixed Index): 1.98 +/- 0.00
Photon Flux (Fixed Index): 4.34e-08 +/- 4.35e-08
Energy Flux (Fixed Index): 3.16e-05 +/- 3.16e-05

TS (Fixed Index): 1.38
Ra Dec: 144.475 -14.571
Photon Flux Upper Limit: 1.41e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.06e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/375473/likelihoodResults_520819201_521078401_4FGL_J0937.9-1434_daily_bin1086.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): 0
logL (Free Index) = 4506.26093766
delta logL = 0.593092484117

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4506.24730747
delta logL = 0.606722671964

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.212       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6852       1.0000          .0000       10.000    
     3 'Normalizat'    .84816       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95092       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=   4506.247     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      260 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.166        268.07        .24868E-02    .30727E-03
   2  Index         2.6861        2.4562        .90638E-01    .26807E-03
   3  Normalizat    .84815        .99392E-01    .73337E-01   -.14398E-04
   4  Prefactor     .95090        .52846E-01    .45651E-01   -.32128E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.1664
  Index      = 2.68609
  Normalizat = 0.848149
  Prefactor  = 0.950898
 **********
 **   18 **HESSE 
 **********

 FCN=   4506.247     FROM HESSE     STATUS=OK            31 CALLS      291 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.166        39.959        .99472E-04   -1.4904    
   2  Index         2.6861        .94607        .33649E-02   -.48113    
   3  Normalizat    .84815        .28358        .32456E-03   -.98307    
   4  Prefactor     .95090        .16772        .18427E-03   -.94385    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27163e-10
Minuit parameter uncertainties:
  1  40.0252
  2  0.953405
  3  0.284083
  4  0.167813
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/375473': 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) = 4506.24730602
delta logL = 0.606724117316

Extracting fit parameters...

4FGL J0937.9-1434
   Spectrum: PowerLaw
257    Prefactor:  1.617e+01  4.003e+01  1.000e-04  1.000e+04 ( 1.000e-14)
258        Index:  2.686e+00  9.534e-01  0.000e+00  1.000e+01 (-1.000e+00)
259        Scale:  3.063e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
534    Prefactor:  9.509e-01  1.678e-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:  8.481e-01  2.841e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.62
Ra Dec: 144.475 -14.571
Photon Index (Free Index): 2.69 +/- 0.95
Photon Flux (Free Index): 9.42e-08 +/- 7.71e-08
Energy Flux (Free Index): 2.29e-05 +/- 1.97e-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/375473/cmap_HighResolution_520819201_521078401_4FGL_J0937.9-1434_daily_bin1086.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.06e-02', comment='SUCCESS', photon_flux='4.34e-08', energy_flux2='2.29e-05', photon_flux_error='4.35e-08', dlogl='6.07e-01', energy_flux='3.16e-05', photon_flux2='9.42e-08', job_status='DONE', time_completed='2021-08-31 19:42:16.304998', photon_index_error2='0.95', photon_index2='2.69', ts='1.38', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='1.41e-07', energy_flux_error2='1.97e-05', EG='0.90', time_epoch_completed='1630464136.31', return_code='0', job_id='375473', GAL2='0.95', EG2='0.85', return_code2='0', energy_flux_error='3.16e-05', photon_flux_error2='7.71e-08', ts2='2.62', photon_index='1.98' WHERE bin_id='1086' AND source_name='4FGL J0937.9-1434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 19:42:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0304>
Subject: Job 375473: <4FGL_J0937.9-1434_daily_bin1086> in cluster <slac> Done

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

Your job looked like:

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

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

