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


Performing analysis on: 4FGL_J0937.9-1434_daily_bin1071
RA = 144.475, Dec = -14.5706
tmin = 516931201, tmax = 517190401
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='375447', job_status='RUN', time_executed='2021-08-31 19:32:34.268560', time_epoch_executed='1630463554.27' WHERE source_name='4FGL J0937.9-1434' and cadence='daily' and bin_id='1071'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/375447

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/375447/ft1_4FGL_J0937.9-1434_daily_bin1071.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/375447/ft2_4FGL_J0937.9-1434_daily_bin1071.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/375447/ft1_4FGL_J0937.9-1434_daily_bin1071.fits outfile=/scratch/kocevski/375447/ft1_filteredMKT_4FGL_J0937.9-1434_daily_bin1071.fits ra=144.475 dec=-14.5706 rad=12.0 tmin=516931201.0 tmax=517190401.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.94
user 3.69
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/375447/ft1_filtered_4FGL_J0937.9-1434_daily_bin1071.fits" evtable="EVENTS" scfile=/scratch/kocevski/375447/ft2_4FGL_J0937.9-1434_daily_bin1071.fits sctable="SC_DATA" outfile=/scratch/kocevski/375447/ltcube_516931201_517190401_4FGL_J0937.9-1434_daily_bin1071.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/375447/ft2_4FGL_J0937.9-1434_daily_bin1071.fits
.....................!
real 11.56
user 11.13
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/375447/ft1_filtered_4FGL_J0937.9-1434_daily_bin1071.fits evtable="EVENTS" scfile=/scratch/kocevski/375447/ft2_4FGL_J0937.9-1434_daily_bin1071.fits sctable="SC_DATA" expcube=/scratch/kocevski/375447/ltcube_516931201_517190401_4FGL_J0937.9-1434_daily_bin1071.fits outfile=/scratch/kocevski/375447/expmap_516931201_517190401_4FGL_J0937.9-1434_daily_bin1071.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/375447/ltcube_516931201_517190401_4FGL_J0937.9-1434_daily_bin1071.fits
.....................!
real 190.81
user 186.11
sys 3.94

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/375447/ft1_filtered_4FGL_J0937.9-1434_daily_bin1071.fits scfile=/scratch/kocevski/375447/ft2_4FGL_J0937.9-1434_daily_bin1071.fits outfile=/scratch/kocevski/375447/cmap_516931201_517190401_4FGL_J0937.9-1434_daily_bin1071.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/375447/ft1_filtered_4FGL_J0937.9-1434_daily_bin1071.fits scfile=/scratch/kocevski/375447/ft2_4FGL_J0937.9-1434_daily_bin1071.fits outfile=/scratch/kocevski/375447/cmap_HighResolution_516931201_517190401_4FGL_J0937.9-1434_daily_bin1071.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/375447/ft1_filtered_4FGL_J0937.9-1434_daily_bin1071.fits evtable="EVENTS" scfile=/scratch/kocevski/375447/ft2_4FGL_J0937.9-1434_daily_bin1071.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/375447/Model_4FGL_J0937.9-1434_daily_bin1071.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/375447/ft1_filtered_4FGL_J0937.9-1434_daily_bin1071.fits....................!
real 58.96
user 57.74
sys 1.07

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.4212       1.0000         .10000E-03   10000.    
     2 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    22.974       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .13258E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10200E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11039E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    75.923       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.885       1.0000         .10000E-03   10000.    
    12 'norm      '    6.4198       1.0000         .10000E-03   10000.    
    13 'norm      '    .24787E-01   1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.4567       1.0000         .10000E-03   10000.    
    16 'norm      '    2.1963       1.0000         .10000E-03   10000.    
    17 'norm      '    .10048E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .87253       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0469       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=   5269.859     FROM MIGRAD    STATUS=CONVERGED    420 CALLS     1937 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.4244        15.027        .46474E-05   -.10237E-03
   2  norm          .10000E-03    1.7891       -.67716E-07** at limit **
   3  Prefactor     22.973        10.869        .40988E-05   -.73711E-04
   4  Prefactor     .10000E-03    41.412        .65391E-06** at limit **
   5  Prefactor     .10000E-03    8.5011        .43861E-07** at limit **
   6  Prefactor     .10000E-03    9.8657       -.52076E-07** at limit **
   7  Prefactor     .10000E-03    63.332       -.31875E-05** at limit **
   8  Prefactor     75.895        47.494        .53948E-05   -.27592E-04
   9  Prefactor     .10000E-03    32.665        .61070E-06** at limit **
  10  Prefactor     .10000E-03    14.283       -.16224E-06** at limit **
  11  Prefactor     13.865        22.385        .22104E-04   -.39657E-04
  12  norm          6.4172        6.4633       -.56119E-06   -.17712E-03
  13  norm          .11945E-03    3.0712        .54271E-06** at limit **
  14  norm          .10000E-03    4.0409        .79572E-08** at limit **
  15  norm          2.4575        2.0608        .24658E-06   -.17162E-03
  16  norm          2.1911        22.756        .39869E-05   -.15636E-03
  17  norm          .10000E-03    .93103        .15671E-06** at limit **
  18  Normalizat    .87307        .22974       -.59120E-05   -.13936E-03
  19  Prefactor     1.0467        .13684       -.15395E-05   -.24454E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.42437
  norm       = 0.0001
  Prefactor  = 22.9728
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 75.8948
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.8649
  norm       = 6.41723
  norm       = 0.000119447
  norm       = 0.0001
  norm       = 2.45753
  norm       = 2.19114
  norm       = 0.0001
  Normalizat = 0.87307
  Prefactor  = 1.04665
 **********
 **   18 **HESSE 
 **********

 FCN=   5269.859     FROM HESSE     STATUS=OK           272 CALLS     2209 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.4244        14.822        .21870E-03   -1.5338    
   2  norm          .10000E-03    1.7990        .94623E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     22.973        10.887        .83569E-04   -1.4749    
   4  Prefactor     .10000E-03    42.431        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8.6804        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9.9008        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    63.631        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     75.895        47.496        .46083E-04   -1.3963    
   9  Prefactor     .10000E-03    32.818        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    14.289        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     13.865        22.412        .10749E-03   -1.4963    
  12  norm          6.4172        6.4602        .15841E-03   -1.5201    
  13  norm          .11945E-03    8.4225        .39250E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    4.0486        .14252E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.4575        2.0664        .91788E-04   -1.5394    
  16  norm          2.1911        22.510        .27766E-03   -1.5412    
  17  norm          .10000E-03    .96019        .13661E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .87307        .26564        .32689E-03   -.97413    
  19  Prefactor     1.0467        .15965        .18296E-03   -.91190    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.56838e-10
Minuit parameter uncertainties:
  1  14.2544
  2  5.09508e-06
  3  10.8876
  4  2.09741e-05
  5  5.41731e-05
  6  5.92584e-06
  7  0.000383404
  8  47.5194
  9  8.00837e-05
  10  4.91246e-05
  11  22.4255
  12  6.46086
  13  0.0255996
  14  4.80377e-06
  15  2.06649
  16  14.0524
  17  1.02811e-05
  18  0.26604
  19  0.159724
Done.

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

Extracting fit parameters...

4FGL J0937.9-1434
   Spectrum: PowerLaw
257    Prefactor:  1.000e-04  4.912e-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:  1.047e+00  1.597e-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.731e-01  2.660e-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: 6.21e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.65e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/375447/likelihoodResults_516931201_517190401_4FGL_J0937.9-1434_daily_bin1071.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) = 5269.85906072
delta logL = -0.000332849468577

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5269.85873001
delta logL = -2.13413932215e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3223       1.0000          .0000       10.000    
     3 'Normalizat'    .87306       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0467       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=   5269.859     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      276 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10727E-03    .77407        .18142E-01** at limit **
   2  Index         2.1848        6.0897        .50000        .28777E-04
   3  Normalizat    .87307        .15324E-02    .32690E-03   -.92856E-05
   4  Prefactor     1.0467        .93715E-03    .18296E-03   -.21040E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010727
  Index      = 2.1848
  Normalizat = 0.87307
  Prefactor  = 1.04665
 **********
 **   18 **HESSE 
 **********

 FCN=   5269.859     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      305 TOTAL
                     EDM=   .77E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10727E-03    49.049        .23491E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1848        5.7363        .50000       -.59806    
   3  Normalizat    .87307        .12239E-01    .13076E-04   -.97413    
   4  Prefactor     1.0467        .74847E-02    .36592E-04   -.91190    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.69887e-09
Minuit parameter uncertainties:
  1  0.0377977
  2  239.92
  3  0.0122392
  4  0.00748473
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/375447': 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) = 5269.85872924
delta logL = -1.36871949508e-06

Extracting fit parameters...

4FGL J0937.9-1434
   Spectrum: PowerLaw
257    Prefactor:  1.073e-04  3.780e-02  1.000e-04  1.000e+04 ( 1.000e-14)
258        Index:  2.185e+00  2.399e+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:  1.047e+00  7.485e-03  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.731e-01  1.224e-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/375447/cmap_HighResolution_516931201_517190401_4FGL_J0937.9-1434_daily_bin1071.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.65e-03', job_status='DONE', photon_flux_upper_limit='6.21e-08', time_completed='2021-08-31 19:41:42.457386', job_id='375447', GAL2='1.05', fit_tolerance='1e-08', EG2='0.87', EG='0.87', time_epoch_completed='1630464102.46', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='-1.37e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='1071' AND source_name='4FGL J0937.9-1434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 19:41:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0235>
Subject: Job 375447: <4FGL_J0937.9-1434_daily_bin1071> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0937.9-1434_daily_bin1071 144.475 -14.5706 516931201 517190401 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 :                                   521.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             280.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   622 sec.
    Turnaround time :                            625 sec.

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

