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


Performing analysis on: 4FGL_J0937.9-1434_daily_bin869
RA = 144.475, Dec = -14.5706
tmin = 464572801, tmax = 464832001
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='375161', job_status='RUN', time_executed='2021-08-31 19:31:09.395787', time_epoch_executed='1630463469.4' WHERE source_name='4FGL J0937.9-1434' and cadence='daily' and bin_id='869'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/375161

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/375161/ft1_4FGL_J0937.9-1434_daily_bin869.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/375161/ft2_4FGL_J0937.9-1434_daily_bin869.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/375161/ft1_4FGL_J0937.9-1434_daily_bin869.fits outfile=/scratch/kocevski/375161/ft1_filteredMKT_4FGL_J0937.9-1434_daily_bin869.fits ra=144.475 dec=-14.5706 rad=12.0 tmin=464572801.0 tmax=464832001.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.37
user 3.15
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/375161/ft1_filtered_4FGL_J0937.9-1434_daily_bin869.fits" evtable="EVENTS" scfile=/scratch/kocevski/375161/ft2_4FGL_J0937.9-1434_daily_bin869.fits sctable="SC_DATA" outfile=/scratch/kocevski/375161/ltcube_464572801_464832001_4FGL_J0937.9-1434_daily_bin869.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/375161/ft2_4FGL_J0937.9-1434_daily_bin869.fits
.....................!
real 15.58
user 15.20
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/375161/ft1_filtered_4FGL_J0937.9-1434_daily_bin869.fits evtable="EVENTS" scfile=/scratch/kocevski/375161/ft2_4FGL_J0937.9-1434_daily_bin869.fits sctable="SC_DATA" expcube=/scratch/kocevski/375161/ltcube_464572801_464832001_4FGL_J0937.9-1434_daily_bin869.fits outfile=/scratch/kocevski/375161/expmap_464572801_464832001_4FGL_J0937.9-1434_daily_bin869.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/375161/ltcube_464572801_464832001_4FGL_J0937.9-1434_daily_bin869.fits
.....................!
real 190.56
user 185.19
sys 4.95

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/375161/ft1_filtered_4FGL_J0937.9-1434_daily_bin869.fits scfile=/scratch/kocevski/375161/ft2_4FGL_J0937.9-1434_daily_bin869.fits outfile=/scratch/kocevski/375161/cmap_464572801_464832001_4FGL_J0937.9-1434_daily_bin869.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.56
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/375161/ft1_filtered_4FGL_J0937.9-1434_daily_bin869.fits scfile=/scratch/kocevski/375161/ft2_4FGL_J0937.9-1434_daily_bin869.fits outfile=/scratch/kocevski/375161/cmap_HighResolution_464572801_464832001_4FGL_J0937.9-1434_daily_bin869.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.63
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/375161/ft1_filtered_4FGL_J0937.9-1434_daily_bin869.fits evtable="EVENTS" scfile=/scratch/kocevski/375161/ft2_4FGL_J0937.9-1434_daily_bin869.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/375161/Model_4FGL_J0937.9-1434_daily_bin869.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/375161/ft1_filtered_4FGL_J0937.9-1434_daily_bin869.fits.....................!
real 71.27
user 69.91
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .80892       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.8702       1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.714       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .12573E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.1167       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10187E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.3763       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10168E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10677E-02   1.0000         .10000E-03   10000.    
    14 'norm      '    3.5863       1.0000         .10000E-03   10000.    
    15 'norm      '    1.4115       1.0000         .10000E-03   10000.    
    16 'norm      '    10.619       1.0000         .10000E-03   10000.    
    17 'norm      '    .33418       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .83218       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .96328       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=   6845.514     FROM MIGRAD    STATUS=CONVERGED    386 CALLS     1658 TOTAL
                     EDM=   .58E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.8525        .18219E-07** at limit **
   2  norm          .80976        2.6662        .26092E-06   -.49676E-04
   3  Prefactor     5.8710        5.3012        .13936E-05   -.52819E-04
   4  Prefactor     12.713        10.667        .31466E-06    .12888E-04
   5  Prefactor     .10000E-03    12.906       -.41695E-07** at limit **
   6  Prefactor     .10000E-03    9.0618       -.93912E-07** at limit **
   7  Prefactor     8.1155        22.199        .58439E-06   -.11549E-05
   8  Prefactor     .10000E-03    17.851        .11135E-06** at limit **
   9  Prefactor     8.3983        35.744       -.67902E-05   -.45023E-05
  10  Prefactor     .10000E-03    17.211       -.18156E-06** at limit **
  11  Prefactor     .10000E-03    4.7409       -.89252E-07** at limit **
  12  norm          .10000E-03    1.8738        .12007E-06** at limit **
  13  norm          .10000E-03    1.8753        .46698E-06** at limit **
  14  norm          3.5861        6.4004        .23358E-05   -.34401E-04
  15  norm          1.4123        1.7176        .12994E-07   -.14892E-03
  16  norm          10.621        11.079        .18086E-06    .60438E-05
  17  norm          .33417        .85020        .17637E-07   -.14765E-03
  18  Normalizat    .83223        .18271       -.12232E-05   -.12487E-03
  19  Prefactor     .96327        .10689        .52777E-06    .41832E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.809757
  Prefactor  = 5.87099
  Prefactor  = 12.7133
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.11551
  Prefactor  = 0.0001
  Prefactor  = 8.39832
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 3.5861
  norm       = 1.41226
  norm       = 10.621
  norm       = 0.334172
  Normalizat = 0.832232
  Prefactor  = 0.963266
 **********
 **   18 **HESSE 
 **********

 FCN=   6845.514     FROM HESSE     STATUS=OK           274 CALLS     1932 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.8675        .15851E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .80976        2.6283        .22801E-03   -1.5528    
   3  Prefactor     5.8710        5.3493        .82876E-03   -1.5223    
   4  Prefactor     12.713        10.533        .56170E-03   -1.4995    
   5  Prefactor     .10000E-03    13.418        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9.1291        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     8.1155        22.194        .14073E-03   -1.5138    
   8  Prefactor     .10000E-03    17.875        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     8.3983        36.037        .13851E-03   -1.5128    
  10  Prefactor     .10000E-03    17.253        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.7577        .17593E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.8802        .11063E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    12.002        .21575E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.5861        6.4341        .10669E-02   -1.5329    
  15  norm          1.4123        1.6869        .11508E-03   -1.5470    
  16  norm          10.621        11.085        .12295E-03   -1.5056    
  17  norm          .33417        .89485        .11621E-02   -1.5592    
  18  Normalizat    .83223        .21233        .29632E-03   -.98884    
  19  Prefactor     .96327        .12762        .17205E-03   -.93964    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07235e-08
Minuit parameter uncertainties:
  1  2.80473e-06
  2  2.62871
  3  5.34977
  4  10.5348
  5  2.67904e-05
  6  5.10874e-06
  7  22.2167
  8  1.68046e-06
  9  34.829
  10  1.92246e-05
  11  4.40033e-06
  12  5.47261e-06
  13  0.000140755
  14  6.43538
  15  1.68699
  16  11.0872
  17  0.89489
  18  0.212546
  19  0.127663
Done.

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

Extracting fit parameters...

4FGL J0937.9-1434
   Spectrum: PowerLaw
257    Prefactor:  1.000e-04  1.922e-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:  9.633e-01  1.277e-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.322e-01  2.125e-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.11e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.83e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/375161/likelihoodResults_464572801_464832001_4FGL_J0937.9-1434_daily_bin869.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) = 6845.51409293
delta logL = -0.000276188531643

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6845.51381673
delta logL = 6.38465280645e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9721       1.0000          .0000       10.000    
     3 'Normalizat'    .83223       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96326       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=   6845.514     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      214 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.5071        .90712E-02** at limit **
   2  Index         1.9647        8.9890        .50000        .32996E-05
   3  Normalizat    .83223        .13284E-02    .66979E-01    .33533E-04
   4  Prefactor     .96326        .82881E-03    .45806E-01    .34860E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.96473
  Normalizat = 0.832234
  Prefactor  = 0.963265
 **********
 **   18 **HESSE 
 **********

 FCN=   6845.514     FROM HESSE     STATUS=NOT POSDEF    25 CALLS      239 TOTAL
                     EDM=   .28E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6384.0        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9647        5.2282        .20000E-01   -.65235    
   3  Normalizat    .83223        .84253E-01    .29632E-03   -.98884    
   4  Prefactor     .96326        .52644E-01    .17205E-03   -.93964    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.80387e-05
Minuit parameter uncertainties:
  1  6.08804e-06
  2  6415.57
  3  0.0842658
  4  0.0526469
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/375161': 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) = 6845.51381673
delta logL = 1.28902684082e-08

Extracting fit parameters...

4FGL J0937.9-1434
   Spectrum: PowerLaw
257    Prefactor:  1.000e-04  6.088e-06  1.000e-04  1.000e+04 ( 1.000e-14)
258        Index:  1.965e+00  6.416e+03  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.633e-01  5.265e-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:  8.322e-01  8.427e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/375161/cmap_HighResolution_464572801_464832001_4FGL_J0937.9-1434_daily_bin869.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.83e-03', job_status='DONE', photon_flux_upper_limit='5.11e-08', time_completed='2021-08-31 19:40:49.708771', job_id='375161', GAL2='0.96', fit_tolerance='1e-08', EG2='0.83', EG='0.83', time_epoch_completed='1630464049.71', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='1.29e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='869' AND source_name='4FGL J0937.9-1434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 19:40:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0199>
Subject: Job 375161: <4FGL_J0937.9-1434_daily_bin869> in cluster <slac> Done

Job <4FGL_J0937.9-1434_daily_bin869> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Aug 31 19:30:51 2021
Job was executed on host(s) <bullet0199>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 19:30:52 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:30:52 2021
Terminated at Tue Aug 31 19:40:50 2021
Results reported at Tue Aug 31 19:40:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0937.9-1434_daily_bin869 144.475 -14.5706 464572801 464832001 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 :                                   572.48 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             352.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   598 sec.
    Turnaround time :                            599 sec.

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

