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


Performing analysis on: 4FGL_J0937.9-1434_daily_bin1360
RA = 144.475, Dec = -14.5706
tmin = 591840001, tmax = 592099201
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='377165', job_status='RUN', time_executed='2021-08-31 19:37:05.332204', time_epoch_executed='1630463825.33' WHERE source_name='4FGL J0937.9-1434' and cadence='daily' and bin_id='1360'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/377165

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/377165/ft1_4FGL_J0937.9-1434_daily_bin1360.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/377165/ft2_4FGL_J0937.9-1434_daily_bin1360.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/377165/ft1_4FGL_J0937.9-1434_daily_bin1360.fits outfile=/scratch/kocevski/377165/ft1_filteredMKT_4FGL_J0937.9-1434_daily_bin1360.fits ra=144.475 dec=-14.5706 rad=12.0 tmin=591840001.0 tmax=592099201.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.28
user 5.04
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/377165/ft1_filtered_4FGL_J0937.9-1434_daily_bin1360.fits" evtable="EVENTS" scfile=/scratch/kocevski/377165/ft2_4FGL_J0937.9-1434_daily_bin1360.fits sctable="SC_DATA" outfile=/scratch/kocevski/377165/ltcube_591840001_592099201_4FGL_J0937.9-1434_daily_bin1360.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/377165/ft2_4FGL_J0937.9-1434_daily_bin1360.fits
.....................!
real 11.79
user 11.44
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/377165/ft1_filtered_4FGL_J0937.9-1434_daily_bin1360.fits evtable="EVENTS" scfile=/scratch/kocevski/377165/ft2_4FGL_J0937.9-1434_daily_bin1360.fits sctable="SC_DATA" expcube=/scratch/kocevski/377165/ltcube_591840001_592099201_4FGL_J0937.9-1434_daily_bin1360.fits outfile=/scratch/kocevski/377165/expmap_591840001_592099201_4FGL_J0937.9-1434_daily_bin1360.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/377165/ltcube_591840001_592099201_4FGL_J0937.9-1434_daily_bin1360.fits
.....................!
real 189.97
user 185.30
sys 4.30

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/377165/ft1_filtered_4FGL_J0937.9-1434_daily_bin1360.fits scfile=/scratch/kocevski/377165/ft2_4FGL_J0937.9-1434_daily_bin1360.fits outfile=/scratch/kocevski/377165/cmap_591840001_592099201_4FGL_J0937.9-1434_daily_bin1360.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.54
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/377165/ft1_filtered_4FGL_J0937.9-1434_daily_bin1360.fits scfile=/scratch/kocevski/377165/ft2_4FGL_J0937.9-1434_daily_bin1360.fits outfile=/scratch/kocevski/377165/cmap_HighResolution_591840001_592099201_4FGL_J0937.9-1434_daily_bin1360.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/377165/ft1_filtered_4FGL_J0937.9-1434_daily_bin1360.fits evtable="EVENTS" scfile=/scratch/kocevski/377165/ft2_4FGL_J0937.9-1434_daily_bin1360.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/377165/Model_4FGL_J0937.9-1434_daily_bin1360.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/377165/ft1_filtered_4FGL_J0937.9-1434_daily_bin1360.fits.....................!
real 86.09
user 84.70
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11206E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    5.2515       1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.2526       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    34.520       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10242E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.335       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10075E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .31514E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.8249       1.0000         .10000E-03   10000.    
    15 'norm      '    3.9495       1.0000         .10000E-03   10000.    
    16 'norm      '    .57443E-01   1.0000         .10000E-03   10000.    
    17 'norm      '    1.0444       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.1178       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .83294       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=   8627.600     FROM MIGRAD    STATUS=CONVERGED    400 CALLS     1920 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    7.4876       -.26439E-06** at limit **
   2  norm          5.2525        2.6889       -.14912E-06    .56670E-04
   3  Prefactor     8.2525        4.7495       -.20118E-06   -.19520E-03
   4  Prefactor     .10000E-03    3.8524        .31673E-06** at limit **
   5  Prefactor     .10000E-03    2.8553        .39479E-07** at limit **
   6  Prefactor     .10000E-03    4.0095       -.34273E-07** at limit **
   7  Prefactor     34.485        32.632       -.28830E-04    .28078E-04
   8  Prefactor     .10000E-03    12.261        .52892E-06** at limit **
   9  Prefactor     12.332        16.731       -.89654E-06    .12528E-04
  10  Prefactor     .10000E-03    13.930       -.54444E-06** at limit **
  11  Prefactor     .10000E-03    4.6217       -.10906E-06** at limit **
  12  norm          .10000E-03    2.1431        .17737E-06** at limit **
  13  norm          .10001E-03    1.4325       -.24212E-06** at limit **
  14  norm          3.8250        3.7930        .23036E-06    .32104E-03
  15  norm          3.9499        1.7907       -.10660E-06    .25649E-03
  16  norm          .10010E-03    3.7792       -.54343E-06** at limit **
  17  norm          1.0441        1.0346       -.33997E-06   -.13459E-02
  18  Normalizat    1.1178        .15911        .40645E-05   -.40651E-05
  19  Prefactor     .83299        .95151E-01    .36943E-06    .39137E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 5.2525
  Prefactor  = 8.25249
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 34.4846
  Prefactor  = 0.0001
  Prefactor  = 12.3315
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100009
  norm       = 3.82501
  norm       = 3.94986
  norm       = 0.000100097
  norm       = 1.04406
  Normalizat = 1.11784
  Prefactor  = 0.832987
 **********
 **   18 **HESSE 
 **********

 FCN=   8627.600     FROM HESSE     STATUS=OK           276 CALLS     2196 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.6083        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.2525        2.6888        .10554E-03   -1.5250    
   3  Prefactor     8.2525        4.7573        .13956E-03   -1.5133    
   4  Prefactor     .10000E-03    3.8646        .17799E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.8802        .15325E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.0145        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     34.485        32.653        .68206E-04   -1.4533    
   8  Prefactor     .10000E-03    12.278        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     12.332        16.741        .11405E-03   -1.5005    
  10  Prefactor     .10000E-03    13.969        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.6401        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    2.1563        .13276E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10001E-03    15.541        .21402E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.8250        3.8022        .17597E-03   -1.5317    
  15  norm          3.9499        1.7841        .80860E-04   -1.5310    
  16  norm          .10010E-03    6.2359        .61763E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.0441        1.0104        .90167E-04   -1.5504    
  18  Normalizat    1.1178        .18465        .26933E-03   -.89181    
  19  Prefactor     .83299        .11127        .18791E-03   -.98524    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1543e-09
Minuit parameter uncertainties:
  1  2.73861e-05
  2  2.68891
  3  4.75748
  4  1.17725e-05
  5  1.4187e-05
  6  7.99129e-06
  7  32.67
  8  2.61907e-05
  9  16.7475
  10  1.48355e-05
  11  3.15058e-05
  12  6.38743e-06
  13  0.000756983
  14  3.80245
  15  1.78408
  16  0.00155338
  17  1.01045
  18  0.184756
  19  0.111299
Done.

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

Extracting fit parameters...

4FGL J0937.9-1434
   Spectrum: PowerLaw
257    Prefactor:  1.000e-04  1.484e-05  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.330e-01  1.113e-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.118e+00  1.848e-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.32e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.24e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/377165/likelihoodResults_591840001_592099201_4FGL_J0937.9-1434_daily_bin1360.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) = 8627.6002545
delta logL = -0.000341148732332

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8627.59991326
delta logL = 9.20645106817e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10168E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9409       1.0000          .0000       10.000    
     3 'Normalizat'    1.1178       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83302       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=   8627.600     FROM MIGRAD    STATUS=FAILED       105 CALLS      263 TOTAL
                     EDM=   .97E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    1054.0        .18142E-02** at limit **
   2  Index         1.9022        5.5732        .50000        .19344E-04
   3  Normalizat    1.1178        .37788E-01    .26933E-03    .58251E-05
   4  Prefactor     .83299        .23243E-01    .18791E-03    .71390E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8627.600     FROM SIMPLEX   STATUS=UNCHANGED    179 CALLS      442 TOTAL
                     EDM=   .73E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    1054.0        .54919E-03** at limit **
   2  Index         1.9022        5.5732        .33453E-05    .19344E-04
   3  Normalizat    1.1178        .37788E-01    .97608E-07    .58251E-05
   4  Prefactor     .83299        .23243E-01    .26958E-07    .71390E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8627.600     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      476 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    6499.9        .36285E-03** at limit **
   2  Index         1.9020        5.5882        .50000        .19339E-04
   3  Normalizat    1.1178        .10465        .10773E-04    .63316E-05
   4  Prefactor     .83299        .64373E-01    .75165E-05    .84700E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100006
  Index      = 1.90203
  Normalizat = 1.11784
  Prefactor  = 0.832985
 **********
 **   18 **HESSE 
 **********

 FCN=   8627.600     FROM HESSE     STATUS=OK            29 CALLS      505 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    16.775        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9020        5.9291        .50000       -.66823    
   3  Normalizat    1.1178        .17842        .21547E-05   -.89181    
   4  Prefactor     .83299        .10975        .15033E-05   -.98524    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.94777e-10
Minuit parameter uncertainties:
  1  0.000631548
  2  4.06258
  3  0.178517
  4  0.109782
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/377165': 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) = 8627.59991295
delta logL = 4.05278115068e-07

Extracting fit parameters...

4FGL J0937.9-1434
   Spectrum: PowerLaw
257    Prefactor:  1.000e-04  6.315e-04  1.000e-04  1.000e+04 ( 1.000e-14)
258        Index:  1.902e+00  4.063e+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:  8.330e-01  1.098e-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.118e+00  1.785e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/377165/cmap_HighResolution_591840001_592099201_4FGL_J0937.9-1434_daily_bin1360.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.24e-03', job_status='DONE', photon_flux_upper_limit='4.32e-08', time_completed='2021-08-31 19:49:06.627968', job_id='377165', GAL2='0.83', fit_tolerance='1e-08', EG2='1.12', EG='1.12', time_epoch_completed='1630464546.63', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='4.05e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='1360' AND source_name='4FGL J0937.9-1434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 19:49:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0124>
Subject: Job 377165: <4FGL_J0937.9-1434_daily_bin1360> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0937.9-1434_daily_bin1360 144.475 -14.5706 591840001 592099201 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 :                                   689.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             359.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   756 sec.
    Turnaround time :                            758 sec.

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

