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


Performing analysis on: 4FGL_J0937.9-1434_daily_bin1600
RA = 144.475, Dec = -14.5706
tmin = 654048001, tmax = 654307201
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='257763', job_status='RUN', time_executed='2021-09-26 00:16:07.373344', time_epoch_executed='1632640567.37' WHERE source_name='4FGL J0937.9-1434' and cadence='daily' and bin_id='1600'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/257763

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/257763/ft1_4FGL_J0937.9-1434_daily_bin1600.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/257763/ft2_4FGL_J0937.9-1434_daily_bin1600.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/257763/ft1_4FGL_J0937.9-1434_daily_bin1600.fits outfile=/scratch/kocevski/257763/ft1_filteredMKT_4FGL_J0937.9-1434_daily_bin1600.fits ra=144.475 dec=-14.5706 rad=12.0 tmin=654048001.0 tmax=654307201.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.61
user 3.37
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/257763/ft2_4FGL_J0937.9-1434_daily_bin1600.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/257763/ft1_filteredMKT_4FGL_J0937.9-1434_daily_bin1600.fits evtable="EVENTS" outfile="/scratch/kocevski/257763/ft1_filtered_4FGL_J0937.9-1434_daily_bin1600.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.33
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/257763/ft1_filtered_4FGL_J0937.9-1434_daily_bin1600.fits" evtable="EVENTS" scfile=/scratch/kocevski/257763/ft2_4FGL_J0937.9-1434_daily_bin1600.fits sctable="SC_DATA" outfile=/scratch/kocevski/257763/ltcube_654048001_654307201_4FGL_J0937.9-1434_daily_bin1600.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/257763/ft2_4FGL_J0937.9-1434_daily_bin1600.fits
.....................!
real 14.10
user 13.72
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/257763/ft1_filtered_4FGL_J0937.9-1434_daily_bin1600.fits evtable="EVENTS" scfile=/scratch/kocevski/257763/ft2_4FGL_J0937.9-1434_daily_bin1600.fits sctable="SC_DATA" expcube=/scratch/kocevski/257763/ltcube_654048001_654307201_4FGL_J0937.9-1434_daily_bin1600.fits outfile=/scratch/kocevski/257763/expmap_654048001_654307201_4FGL_J0937.9-1434_daily_bin1600.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/257763/ltcube_654048001_654307201_4FGL_J0937.9-1434_daily_bin1600.fits
.....................!
real 192.60
user 187.52
sys 4.61

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/257763/ft1_filtered_4FGL_J0937.9-1434_daily_bin1600.fits scfile=/scratch/kocevski/257763/ft2_4FGL_J0937.9-1434_daily_bin1600.fits outfile=/scratch/kocevski/257763/cmap_654048001_654307201_4FGL_J0937.9-1434_daily_bin1600.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.55
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/257763/ft1_filtered_4FGL_J0937.9-1434_daily_bin1600.fits scfile=/scratch/kocevski/257763/ft2_4FGL_J0937.9-1434_daily_bin1600.fits outfile=/scratch/kocevski/257763/cmap_HighResolution_654048001_654307201_4FGL_J0937.9-1434_daily_bin1600.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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/257763/ft1_filtered_4FGL_J0937.9-1434_daily_bin1600.fits evtable="EVENTS" scfile=/scratch/kocevski/257763/ft2_4FGL_J0937.9-1434_daily_bin1600.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/257763/Model_4FGL_J0937.9-1434_daily_bin1600.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/257763/ft1_filtered_4FGL_J0937.9-1434_daily_bin1600.fits.....................!
real 64.47
user 63.09
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.6449       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.9709       1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.076       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    47.026       1.0000         .10000E-03   10000.    
     8 'Prefactor '    71.621       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.343       1.0000         .10000E-03   10000.    
    12 'norm      '    .17995E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    9.7057       1.0000         .10000E-03   10000.    
    15 'norm      '    1.1790       1.0000         .10000E-03   10000.    
    16 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .29085       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.1702       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .87601       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=   5784.717     FROM MIGRAD    STATUS=CONVERGED    376 CALLS     1884 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.6452        8.5702        .75551E-07   -.18334E-04
   2  norm          .10000E-03    2.1539       -.15174E-08** at limit **
   3  Prefactor     8.9704        7.8966        .18205E-05   -.49755E-03
   4  Prefactor     15.077        11.702        .91989E-07    .88801E-05
   5  Prefactor     .10000E-03    7.6685        .52978E-07** at limit **
   6  Prefactor     .10000E-03    5.7778       -.25533E-06** at limit **
   7  Prefactor     47.036        41.762        .20417E-05    .21243E-03
   8  Prefactor     71.630        43.935        .15257E-05    .21168E-03
   9  Prefactor     .10000E-03    20.209       -.17023E-06** at limit **
  10  Prefactor     .10000E-03    11.263       -.83803E-06** at limit **
  11  Prefactor     11.343        16.197        .78891E-07   -.36022E-04
  12  norm          .10000E-03    11.769        .11269E-05** at limit **
  13  norm          .10000E-03    2.4422        .13567E-07** at limit **
  14  norm          9.7060        9.8031       -.14362E-06    .27779E-04
  15  norm          1.1790        1.7282        .14275E-06   -.42327E-04
  16  norm          .10000E-03    5.8205        .32135E-06** at limit **
  17  norm          .29511        1.1315        .38054E-06   -.43947E-03
  18  Normalizat    1.1699        .21572       -.11590E-05   -.58940E-04
  19  Prefactor     .87617        .12558       -.90179E-07   -.14394E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.64519
  norm       = 0.0001
  Prefactor  = 8.97041
  Prefactor  = 15.0767
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 47.0363
  Prefactor  = 71.6295
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.3426
  norm       = 0.0001
  norm       = 0.0001
  norm       = 9.706
  norm       = 1.17904
  norm       = 0.0001
  norm       = 0.29511
  Normalizat = 1.16989
  Prefactor  = 0.876166
 **********
 **   18 **HESSE 
 **********

 FCN=   5784.717     FROM HESSE     STATUS=OK           268 CALLS     2152 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.6452        8.5577        .16908E-03   -1.5233    
   2  norm          .10000E-03    2.1974        .10884E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.9704        8.2227        .66909E-03   -1.5109    
   4  Prefactor     15.077        11.692        .10315E-03   -1.4931    
   5  Prefactor     .10000E-03    7.7928        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.8034        .17890E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     47.036        43.383        .58471E-04   -1.4335    
   8  Prefactor     71.630        45.068        .47436E-04   -1.4013    
   9  Prefactor     .10000E-03    20.256        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    11.403        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     11.343        16.217        .11895E-03   -1.5034    
  12  norm          .10000E-03    12.429        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.4710        .11603E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          9.7060        9.8078        .64314E-03   -1.5085    
  15  norm          1.1790        1.6911        .11719E-03   -1.5491    
  16  norm          .10000E-03    5.8657        .17959E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .29511        1.7872        .14745E-02   -1.5599    
  18  Normalizat    1.1699        .25254        .28987E-03   -.87539    
  19  Prefactor     .87617        .14822        .19479E-03   -.96979    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.3721e-10
Minuit parameter uncertainties:
  1  8.55957
  2  1.67595e-06
  3  8.22376
  4  11.6942
  5  1.57778e-05
  6  3.75177e-05
  7  43.412
  8  45.0893
  9  2.87504e-05
  10  0.000131906
  11  16.2236
  12  0.000156957
  13  1.91149e-06
  14  9.80946
  15  1.69114
  16  4.03808e-05
  17  1.45229
  18  0.252798
  19  0.148293
Done.

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

Extracting fit parameters...

4FGL J0937.9-1434
   Spectrum: PowerLaw
257    Prefactor:  1.000e-04  1.319e-04  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.762e-01  1.483e-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.170e+00  2.528e-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: 5.17e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.87e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/257763/likelihoodResults_654048001_654307201_4FGL_J0937.9-1434_daily_bin1600.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) = 5784.71723482
delta logL = -0.00041709150355

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5784.71681755
delta logL = 1.7906040739e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9464       1.0000          .0000       10.000    
     3 'Normalizat'    1.1699       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87617       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.

 FCN=   5784.717     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      246 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10141E-03    74.422        .18142E-02** at limit **
   2  Index         1.8893        8.1991        .50000        .17990E-04
   3  Normalizat    1.1699        .13556E-01    .28987E-03   -.85106E-05
   4  Prefactor     .87617        .80535E-02    .19479E-03   -.36186E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101409
  Index      = 1.88932
  Normalizat = 1.16989
  Prefactor  = 0.876167
 **********
 **   18 **HESSE 
 **********

 FCN=   5784.717     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      275 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10141E-03    326.42        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8893        8.0698        .50000       -.67147    
   3  Normalizat    1.1699        .29137E-01    .11595E-04   -.87539    
   4  Prefactor     .87617        .17310E-01    .77915E-05   -.96979    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.54325e-08
Minuit parameter uncertainties:
  1  0.0431218
  2  388.357
  3  0.0291373
  4  0.0173096
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/257763': 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) = 5784.71681732
delta logL = 4.10072061641e-07

Extracting fit parameters...

4FGL J0937.9-1434
   Spectrum: PowerLaw
257    Prefactor:  1.014e-04  4.312e-02  1.000e-04  1.000e+04 ( 1.000e-14)
258        Index:  1.889e+00  3.884e+02  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.762e-01  1.731e-02  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.170e+00  2.914e-02  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/257763/cmap_HighResolution_654048001_654307201_4FGL_J0937.9-1434_daily_bin1600.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.87e-03', job_status='DONE', photon_flux_upper_limit='5.17e-08', time_completed='2021-09-26 00:25:16.937676', job_id='257763', GAL2='0.88', fit_tolerance='1e-08', EG2='1.17', EG='1.17', time_epoch_completed='1632641116.94', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='4.10e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='1600' AND source_name='4FGL J0937.9-1434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 00:25:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0093>
Subject: Job 257763: <4FGL_J0937.9-1434_daily_bin1600> in cluster <slac> Done

Job <4FGL_J0937.9-1434_daily_bin1600> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep 26 00:15:21 2021
Job was executed on host(s) <bullet0093>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 00:15:38 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 26 00:15:38 2021
Terminated at Sun Sep 26 00:25:17 2021
Results reported at Sun Sep 26 00:25:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0937.9-1434_daily_bin1600 144.475 -14.5706 654048001 654307201 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 :                                   550.26 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             328.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   579 sec.
    Turnaround time :                            596 sec.

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

