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


Performing analysis on: 4FGL_J0937.9-1434_daily_bin1022
RA = 144.475, Dec = -14.5706
tmin = 504230401, tmax = 504489601
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='375368', job_status='RUN', time_executed='2021-08-31 19:32:38.359862', time_epoch_executed='1630463558.36' WHERE source_name='4FGL J0937.9-1434' and cadence='daily' and bin_id='1022'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/375368

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/375368/ft1_4FGL_J0937.9-1434_daily_bin1022.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/375368/ft2_4FGL_J0937.9-1434_daily_bin1022.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/375368/ft1_4FGL_J0937.9-1434_daily_bin1022.fits outfile=/scratch/kocevski/375368/ft1_filteredMKT_4FGL_J0937.9-1434_daily_bin1022.fits ra=144.475 dec=-14.5706 rad=12.0 tmin=504230401.0 tmax=504489601.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.96
user 3.39
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/375368/ft1_filtered_4FGL_J0937.9-1434_daily_bin1022.fits" evtable="EVENTS" scfile=/scratch/kocevski/375368/ft2_4FGL_J0937.9-1434_daily_bin1022.fits sctable="SC_DATA" outfile=/scratch/kocevski/375368/ltcube_504230401_504489601_4FGL_J0937.9-1434_daily_bin1022.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/375368/ft2_4FGL_J0937.9-1434_daily_bin1022.fits
.....................!
real 14.89
user 14.44
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/375368/ft1_filtered_4FGL_J0937.9-1434_daily_bin1022.fits evtable="EVENTS" scfile=/scratch/kocevski/375368/ft2_4FGL_J0937.9-1434_daily_bin1022.fits sctable="SC_DATA" expcube=/scratch/kocevski/375368/ltcube_504230401_504489601_4FGL_J0937.9-1434_daily_bin1022.fits outfile=/scratch/kocevski/375368/expmap_504230401_504489601_4FGL_J0937.9-1434_daily_bin1022.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/375368/ltcube_504230401_504489601_4FGL_J0937.9-1434_daily_bin1022.fits
.....................!
real 193.21
user 187.32
sys 4.46

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/375368/ft1_filtered_4FGL_J0937.9-1434_daily_bin1022.fits scfile=/scratch/kocevski/375368/ft2_4FGL_J0937.9-1434_daily_bin1022.fits outfile=/scratch/kocevski/375368/cmap_504230401_504489601_4FGL_J0937.9-1434_daily_bin1022.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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/375368/ft1_filtered_4FGL_J0937.9-1434_daily_bin1022.fits scfile=/scratch/kocevski/375368/ft2_4FGL_J0937.9-1434_daily_bin1022.fits outfile=/scratch/kocevski/375368/cmap_HighResolution_504230401_504489601_4FGL_J0937.9-1434_daily_bin1022.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.53
user 0.36
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/375368/ft1_filtered_4FGL_J0937.9-1434_daily_bin1022.fits evtable="EVENTS" scfile=/scratch/kocevski/375368/ft2_4FGL_J0937.9-1434_daily_bin1022.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/375368/Model_4FGL_J0937.9-1434_daily_bin1022.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/375368/ft1_filtered_4FGL_J0937.9-1434_daily_bin1022.fits.....................!
real 73.47
user 72.01
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.0701       1.0000         .10000E-03   10000.    
     2 'norm      '    2.5665       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .79759       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.3153       1.0000         .10000E-03   10000.    
     7 'Prefactor '    26.045       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.1778       1.0000         .10000E-03   10000.    
     9 'Prefactor '    107.19       1.0000         .10000E-03   10000.    
    10 'Prefactor '    20.541       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .17343E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.5908       1.0000         .10000E-03   10000.    
    14 'norm      '    1.2369       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.6835       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .97290       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .89290       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=   7160.889     FROM MIGRAD    STATUS=CONVERGED    427 CALLS     1957 TOTAL
                     EDM=   .12E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.0712        6.4617       -.42011E-06   -.19076E-04
   2  norm          2.5676        2.7152        .47291E-07   -.44404E-04
   3  Prefactor     .10000E-03    4.7089        .16755E-07** at limit **
   4  Prefactor     .77132        10.025        .31601E-06   -.12139E-04
   5  Prefactor     .10000E-03    4.4806       -.23296E-07** at limit **
   6  Prefactor     7.3334        21.049        .52819E-06    .75705E-05
   7  Prefactor     26.040        24.552        .33811E-05   -.30862E-05
   8  Prefactor     .89902        46.353       -.29037E-06    .87756E-05
   9  Prefactor     107.19        41.779        .16058E-05   -.34317E-05
  10  Prefactor     20.525        32.514        .28521E-05    .13551E-05
  11  Prefactor     .10000E-03    4.5161        .20277E-07** at limit **
  12  norm          .10000E-03    8.5955       -.20943E-06** at limit **
  13  norm          1.5909        1.5640       -.86215E-08   -.43658E-05
  14  norm          1.2254        .48505       -.25287E-07   -.10372E-03
  15  norm          .10000E-03    .45912        .43128E-08** at limit **
  16  norm          .10000E-03    3.7339        .41398E-07** at limit **
  17  norm          1.6835        1.0285        .30951E-07   -.79779E-05
  18  Normalizat    .97279        .18298       -.11444E-05    .91541E-05
  19  Prefactor     .89306        .10525        .18926E-07   -.65945E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.07117
  norm       = 2.56763
  Prefactor  = 0.0001
  Prefactor  = 0.771322
  Prefactor  = 0.0001
  Prefactor  = 7.3334
  Prefactor  = 26.0403
  Prefactor  = 0.899023
  Prefactor  = 107.193
  Prefactor  = 20.5248
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.59087
  norm       = 1.22539
  norm       = 0.0001
  norm       = 0.0001
  norm       = 1.68346
  Normalizat = 0.972789
  Prefactor  = 0.89306
 **********
 **   18 **HESSE 
 **********

 FCN=   7160.889     FROM HESSE     STATUS=OK           282 CALLS     2239 TOTAL
                     EDM=   .42E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.0712        6.4576        .17857E-03   -1.5258    
   2  norm          2.5676        2.7048        .13501E-03   -1.5387    
   3  Prefactor     .10000E-03    4.8530        .35838E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .77132        53.346        .48891E-02   -1.5532    
   5  Prefactor     .10000E-03    4.5217        .17489E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.3334        21.070        .74148E-03   -1.5166    
   7  Prefactor     26.040        24.521        .78496E-04   -1.4687    
   8  Prefactor     .89902        49.248        .13915       -1.5518    
   9  Prefactor     107.19        41.904        .38845E-04   -1.3634    
  10  Prefactor     20.525        32.494        .88374E-04   -1.4802    
  11  Prefactor     .10000E-03    4.5290        .17561E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    8.8731        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.5909        1.5844        .10228E-03   -1.5456    
  14  norm          1.2254        8.7252        .20181E-02   -1.5487    
  15  norm          .10000E-03    .46209        .55988E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.7514        .15967E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.6835        1.0210        .64440E-04   -1.5448    
  18  Normalizat    .97279        .21135        .28269E-03   -.93948    
  19  Prefactor     .89306        .12266        .17977E-03   -.96384    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.1872e-08
Minuit parameter uncertainties:
  1  6.45853
  2  2.70488
  3  4.74436e-06
  4  12.8402
  5  2.18587e-06
  6  21.0913
  7  24.5302
  8  13.3188
  9  41.9152
  10  32.5216
  11  4.04767e-06
  12  5.92744e-05
  13  1.58448
  14  6.54074
  15  2.18917e-07
  16  1.79197e-06
  17  1.02105
  18  0.211533
  19  0.122693
Done.

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

Extracting fit parameters...

4FGL J0937.9-1434
   Spectrum: PowerLaw
257    Prefactor:  2.052e+01  3.252e+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:  8.931e-01  1.227e-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.728e-01  2.115e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/375368/likelihoodResults_504230401_504489601_4FGL_J0937.9-1434_daily_bin1022.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) = 7159.00359854
delta logL = 1.88563677677

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7159.00322836
delta logL = 1.88600695447

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8421       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4303       1.0000          .0000       10.000    
     3 'Normalizat'    .88364       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92166       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=   7159.003     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      298 TOTAL
                     EDM=   .81E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8481        18.899        .76828E-03    .22498E-03
   2  Index         3.4286        1.8326        .74210E-01    .27655E-03
   3  Normalizat    .88367        .70612E-01    .66647E-01    .22257E-04
   4  Prefactor     .92160        .39883E-01    .45280E-01   -.74678E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.84812
  Index      = 3.42856
  Normalizat = 0.883673
  Prefactor  = 0.921595
 **********
 **   18 **HESSE 
 **********

 FCN=   7159.003     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      331 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8481        29.564        .30731E-04   -1.5436    
   2  Index         3.4286        2.5995        .28493E-02   -.31971    
   3  Normalizat    .88367        .19859        .29483E-03   -.97036    
   4  Prefactor     .92160        .11893        .17702E-03   -.95391    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.2856e-10
Minuit parameter uncertainties:
  1  14.7917
  2  2.75092
  3  0.198758
  4  0.118967
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/375368': 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) = 7159.00322167
delta logL = 1.88601364564

Extracting fit parameters...

4FGL J0937.9-1434
   Spectrum: PowerLaw
257    Prefactor:  1.848e+00  1.479e+01  1.000e-04  1.000e+04 ( 1.000e-14)
258        Index:  3.429e+00  2.751e+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:  9.216e-01  1.190e-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.837e-01  1.988e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.45
Ra Dec: 144.475 -14.571
Photon Index (Free Index): 3.43 +/- 2.75
Photon Flux (Free Index): 9.50e-08 +/- 6.15e-08
Energy Flux (Free Index): 1.61e-05 +/- 1.22e-05

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/375368/cmap_HighResolution_504230401_504489601_4FGL_J0937.9-1434_daily_bin1022.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.40e-03', comment='SUCCESS', energy_flux2='1.61e-05', dlogl='1.89e+00', photon_flux2='9.50e-08', job_status='DONE', time_completed='2021-08-31 19:43:23.825222', photon_index_error2='2.75', photon_index2='3.43', ts='0.49', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='8.55e-08', energy_flux_error2='1.22e-05', EG='0.97', time_epoch_completed='1630464203.83', return_code='0', job_id='375368', GAL2='0.92', EG2='0.88', return_code2='102', photon_flux_error2='6.15e-08', ts2='4.45', photon_index='1.98' WHERE bin_id='1022' AND source_name='4FGL J0937.9-1434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 19:43:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0190>
Subject: Job 375368: <4FGL_J0937.9-1434_daily_bin1022> in cluster <slac> Done

Job <4FGL_J0937.9-1434_daily_bin1022> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Aug 31 19:31:12 2021
Job was executed on host(s) <bullet0190>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 19:31:13 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:13 2021
Terminated at Tue Aug 31 19:43:24 2021
Results reported at Tue Aug 31 19:43:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0937.9-1434_daily_bin1022 144.475 -14.5706 504230401 504489601 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 :                                   618.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             311.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   731 sec.
    Turnaround time :                            732 sec.

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

