/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 9 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 = 7354
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0937.9-1434_daily_bin181
RA = 144.475, Dec = -14.5706
tmin = 286243201, tmax = 286502401
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='370326', job_status='RUN', time_executed='2021-08-31 19:15:46.273390', time_epoch_executed='1630462546.27' WHERE source_name='4FGL J0937.9-1434' and cadence='daily' and bin_id='181'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/370326

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/370326/ft1_4FGL_J0937.9-1434_daily_bin181.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/370326/ft2_4FGL_J0937.9-1434_daily_bin181.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/370326/ft1_4FGL_J0937.9-1434_daily_bin181.fits outfile=/scratch/kocevski/370326/ft1_filteredMKT_4FGL_J0937.9-1434_daily_bin181.fits ra=144.475 dec=-14.5706 rad=12.0 tmin=286243201.0 tmax=286502401.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.50
user 3.29
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/370326/ft2_4FGL_J0937.9-1434_daily_bin181.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/370326/ft1_filteredMKT_4FGL_J0937.9-1434_daily_bin181.fits evtable="EVENTS" outfile="/scratch/kocevski/370326/ft1_filtered_4FGL_J0937.9-1434_daily_bin181.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.61
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/370326/ft1_filtered_4FGL_J0937.9-1434_daily_bin181.fits" evtable="EVENTS" scfile=/scratch/kocevski/370326/ft2_4FGL_J0937.9-1434_daily_bin181.fits sctable="SC_DATA" outfile=/scratch/kocevski/370326/ltcube_286243201_286502401_4FGL_J0937.9-1434_daily_bin181.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/370326/ft2_4FGL_J0937.9-1434_daily_bin181.fits
.....................!
real 11.61
user 11.22
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/370326/ft1_filtered_4FGL_J0937.9-1434_daily_bin181.fits evtable="EVENTS" scfile=/scratch/kocevski/370326/ft2_4FGL_J0937.9-1434_daily_bin181.fits sctable="SC_DATA" expcube=/scratch/kocevski/370326/ltcube_286243201_286502401_4FGL_J0937.9-1434_daily_bin181.fits outfile=/scratch/kocevski/370326/expmap_286243201_286502401_4FGL_J0937.9-1434_daily_bin181.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/370326/ltcube_286243201_286502401_4FGL_J0937.9-1434_daily_bin181.fits
.....................!
real 190.06
user 185.29
sys 4.42

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/370326/ft1_filtered_4FGL_J0937.9-1434_daily_bin181.fits scfile=/scratch/kocevski/370326/ft2_4FGL_J0937.9-1434_daily_bin181.fits outfile=/scratch/kocevski/370326/cmap_286243201_286502401_4FGL_J0937.9-1434_daily_bin181.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.53
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/370326/ft1_filtered_4FGL_J0937.9-1434_daily_bin181.fits scfile=/scratch/kocevski/370326/ft2_4FGL_J0937.9-1434_daily_bin181.fits outfile=/scratch/kocevski/370326/cmap_HighResolution_286243201_286502401_4FGL_J0937.9-1434_daily_bin181.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.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/370326/ft1_filtered_4FGL_J0937.9-1434_daily_bin181.fits evtable="EVENTS" scfile=/scratch/kocevski/370326/ft2_4FGL_J0937.9-1434_daily_bin181.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/370326/Model_4FGL_J0937.9-1434_daily_bin181.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/370326/ft1_filtered_4FGL_J0937.9-1434_daily_bin181.fits.....................!
real 56.88
user 55.51
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    16.267       1.0000         .10000E-03   10000.    
     2 'norm      '    3.1353       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.7104       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.255       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    65.675       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.2767       1.0000         .10000E-03   10000.    
    12 'norm      '    .10971E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    14.889       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    4.1152       1.0000         .10000E-03   10000.    
    17 'norm      '    .66846       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .99470       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0139       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=   4914.168     FROM MIGRAD    STATUS=CONVERGED    387 CALLS     1936 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          16.267        13.185        .28982E-07    .39412E-05
   2  norm          3.1350        3.7507       -.17352E-07   -.84560E-04
   3  Prefactor     6.7109        6.1409        .79818E-06   -.97769E-03
   4  Prefactor     10.255        13.758        .10927E-06    .54129E-05
   5  Prefactor     .10000E-03    5.2039        .57964E-06** at limit **
   6  Prefactor     .10000E-03    13.255       -.13384E-06** at limit **
   7  Prefactor     .10000E-03    60.032        .30959E-06** at limit **
   8  Prefactor     65.684        57.595        .48477E-05    .14118E-03
   9  Prefactor     .10000E-03    45.267        .29384E-06** at limit **
  10  Prefactor     .10000E-03    60.259        .85989E-07** at limit **
  11  Prefactor     9.2758        16.758        .26519E-06    .19727E-04
  12  norm          .10000E-03    6.5132       -.17686E-06** at limit **
  13  norm          .10000E-03    1.2071        .29356E-08** at limit **
  14  norm          14.890        12.350        .45791E-07    .16127E-04
  15  norm          .10000E-03    .69960       -.57624E-07** at limit **
  16  norm          4.1154        9.5294       -.29930E-06   -.42888E-04
  17  norm          .66849        1.4166        .13535E-06   -.53639E-04
  18  Normalizat    .99482        .24599       -.15948E-05    .15548E-03
  19  Prefactor     1.0138        .14317        .10288E-05    .98838E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 16.2667
  norm       = 3.13497
  Prefactor  = 6.71089
  Prefactor  = 10.2553
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 65.6839
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.27576
  norm       = 0.000100001
  norm       = 0.0001
  norm       = 14.8896
  norm       = 0.0001
  norm       = 4.11544
  norm       = 0.66849
  Normalizat = 0.994824
  Prefactor  = 1.01379
 **********
 **   18 **HESSE 
 **********

 FCN=   4914.168     FROM HESSE     STATUS=OK           270 CALLS     2206 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          16.267        13.180        .99304E-04   -1.4901    
   2  norm          3.1350        3.7405        .14044E-03   -1.5354    
   3  Prefactor     6.7109        9.3587        .77450E-03   -1.5190    
   4  Prefactor     10.255        13.734        .12512E-03   -1.5067    
   5  Prefactor     .10000E-03    5.2248        .15621E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    13.306        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    60.353        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     65.684        58.505        .49522E-04   -1.4085    
   9  Prefactor     .10000E-03    45.375        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    60.516        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     9.2758        16.726        .13158E-03   -1.5099    
  12  norm          .10000E-03    29.193        .33664E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.2088        .75216E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          14.890        12.357        .10380E-03   -1.4936    
  15  norm          .10000E-03    .70784        .57272E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.1154        9.5274        .19872E-03   -1.5302    
  17  norm          .66849        1.2136        .11755E-02   -1.5544    
  18  Normalizat    .99482        .28137        .31487E-03   -.93204    
  19  Prefactor     1.0138        .16883        .18656E-03   -.92271    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.4048e-09
Minuit parameter uncertainties:
  1  13.1819
  2  3.74075
  3  9.36072
  4  13.7381
  5  1.58598e-05
  6  6.52901e-05
  7  8.38437e-06
  8  58.5564
  9  9.43211e-06
  10  9.47457e-06
  11  16.7344
  12  0.000285533
  13  9.68875e-07
  14  12.3592
  15  1.11013e-06
  16  9.53093
  17  1.21365
  18  0.28179
  19  0.168922
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
534    Prefactor:  1.014e+00  1.689e-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.948e-01  2.818e-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: 9.04e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.77e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/370326/likelihoodResults_286243201_286502401_4FGL_J0937.9-1434_daily_bin181.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) = 4914.16801249
delta logL = -7.86369382695e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4913.853582
delta logL = 0.314351853809

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .61090       1.0000         .10000E-03   10000.    
     2 'Index     '    3.6723       1.0000          .0000       10.000    
     3 'Normalizat'    .92106       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0361       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=   4913.854     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      270 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .61106        15.454        .11715E-01    .13336E-02
   2  Index         3.6727        2.4873        .77522E-01    .12804E-03
   3  Normalizat    .92089        .52237E-01    .73695E-01    .24746E-04
   4  Prefactor     1.0362        .31301E-01    .40800E-01   -.45123E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.611064
  Index      = 3.67273
  Normalizat = 0.920888
  Prefactor  = 1.03616
 **********
 **   18 **HESSE 
 **********

 FCN=   4913.854     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      303 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .61106        47.574        .68357E-04   -1.5552    
   2  Index         3.6727        6.8275        .47117E-02   -.26868    
   3  Normalizat    .92089        .23545        .32611E-03   -.95730    
   4  Prefactor     1.0362        .13797        .18473E-03   -.91534    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.64574e-09
Minuit parameter uncertainties:
  1  10.7914
  2  5.87136
  3  0.235714
  4  0.13802
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/370326': 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) = 4913.85358126
delta logL = 0.314352589263

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
534    Prefactor:  1.036e+00  1.380e-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.209e-01  2.357e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/370326/cmap_HighResolution_286243201_286502401_4FGL_J0937.9-1434_daily_bin181.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.77e-03', job_status='DONE', photon_flux_upper_limit='9.04e-08', time_completed='2021-08-31 19:24:19.547630', job_id='370326', GAL2='1.04', fit_tolerance='1e-08', EG2='0.92', EG='0.99', time_epoch_completed='1630463059.55', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='3.14e-01', ts2='0.68', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='181' AND source_name='4FGL J0937.9-1434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 19:24:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0156>
Subject: Job 370326: <4FGL_J0937.9-1434_daily_bin181> in cluster <slac> Done

Job <4FGL_J0937.9-1434_daily_bin181> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Aug 31 19:15:28 2021
Job was executed on host(s) <bullet0156>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 19:15:29 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:15:29 2021
Terminated at Tue Aug 31 19:24:19 2021
Results reported at Tue Aug 31 19:24:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0937.9-1434_daily_bin181 144.475 -14.5706 286243201 286502401 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 :                                   506.40 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             355.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   530 sec.
    Turnaround time :                            531 sec.

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

