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


Performing analysis on: 4FGL_J0937.9-1434_daily_bin1021
RA = 144.475, Dec = -14.5706
tmin = 503971201, tmax = 504230401
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='375366', job_status='RUN', time_executed='2021-08-31 19:32:06.284035', time_epoch_executed='1630463526.28' WHERE source_name='4FGL J0937.9-1434' and cadence='daily' and bin_id='1021'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/375366

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/375366/ft1_4FGL_J0937.9-1434_daily_bin1021.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/375366/ft2_4FGL_J0937.9-1434_daily_bin1021.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/375366/ft1_4FGL_J0937.9-1434_daily_bin1021.fits outfile=/scratch/kocevski/375366/ft1_filteredMKT_4FGL_J0937.9-1434_daily_bin1021.fits ra=144.475 dec=-14.5706 rad=12.0 tmin=503971201.0 tmax=504230401.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 4.10
user 3.81
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/375366/ft1_filtered_4FGL_J0937.9-1434_daily_bin1021.fits" evtable="EVENTS" scfile=/scratch/kocevski/375366/ft2_4FGL_J0937.9-1434_daily_bin1021.fits sctable="SC_DATA" outfile=/scratch/kocevski/375366/ltcube_503971201_504230401_4FGL_J0937.9-1434_daily_bin1021.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/375366/ft2_4FGL_J0937.9-1434_daily_bin1021.fits
.....................!
real 12.41
user 12.04
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/375366/ft1_filtered_4FGL_J0937.9-1434_daily_bin1021.fits evtable="EVENTS" scfile=/scratch/kocevski/375366/ft2_4FGL_J0937.9-1434_daily_bin1021.fits sctable="SC_DATA" expcube=/scratch/kocevski/375366/ltcube_503971201_504230401_4FGL_J0937.9-1434_daily_bin1021.fits outfile=/scratch/kocevski/375366/expmap_503971201_504230401_4FGL_J0937.9-1434_daily_bin1021.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/375366/ltcube_503971201_504230401_4FGL_J0937.9-1434_daily_bin1021.fits
.....................!
real 191.30
user 185.28
sys 5.24

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/375366/ft1_filtered_4FGL_J0937.9-1434_daily_bin1021.fits scfile=/scratch/kocevski/375366/ft2_4FGL_J0937.9-1434_daily_bin1021.fits outfile=/scratch/kocevski/375366/cmap_503971201_504230401_4FGL_J0937.9-1434_daily_bin1021.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.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/375366/ft1_filtered_4FGL_J0937.9-1434_daily_bin1021.fits evtable="EVENTS" scfile=/scratch/kocevski/375366/ft2_4FGL_J0937.9-1434_daily_bin1021.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/375366/Model_4FGL_J0937.9-1434_daily_bin1021.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/375366/ft1_filtered_4FGL_J0937.9-1434_daily_bin1021.fits.....................!
real 69.21
user 67.83
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.514       1.0000         .10000E-03   10000.    
     2 'norm      '    4.4543       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.7521       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.3436       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    40.144       1.0000         .10000E-03   10000.    
     9 'Prefactor '    40.974       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    26.199       1.0000         .10000E-03   10000.    
    12 'norm      '    .10251E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    4.4840       1.0000         .10000E-03   10000.    
    15 'norm      '    1.0576       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.3570       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0785       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .80448       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=   6668.209     FROM MIGRAD    STATUS=CONVERGED    376 CALLS     1906 TOTAL
                     EDM=   .45E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.518        15.439        .97470E-07    .83592E-05
   2  norm          4.4546        3.6572       -.53878E-07   -.38133E-04
   3  Prefactor     .10000E-03    4.2583        .98753E-07** at limit **
   4  Prefactor     .10000E-03    6.4140        .42887E-07** at limit **
   5  Prefactor     9.7526        7.4558        .78001E-07    .60821E-05
   6  Prefactor     2.3588        47.729       -.34884E-05    .13223E-04
   7  Prefactor     .10000E-03    15.637        .78308E-06** at limit **
   8  Prefactor     40.083        46.877       -.13062E-05   -.71056E-04
   9  Prefactor     40.967        34.338       -.50596E-06   -.10321E-04
  10  Prefactor     .10000E-03    17.797       -.21438E-06** at limit **
  11  Prefactor     26.206        18.618        .17262E-06    .40394E-04
  12  norm          .10000E-03    11.086       -.92981E-07** at limit **
  13  norm          .10000E-03    1.4716       -.16057E-06** at limit **
  14  norm          4.4836        6.0928        .25369E-05   -.29602E-04
  15  norm          1.0577        1.6230        .63844E-07    .76165E-04
  16  norm          .10000E-03    2.4253        .27848E-07** at limit **
  17  norm          3.3574        1.3505       -.17381E-07   -.32278E-05
  18  Normalizat    1.0779        .19144        .12782E-05   -.45272E-04
  19  Prefactor     .80475        .10885       -.59783E-06    .10484E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 13.5176
  norm       = 4.45459
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.75258
  Prefactor  = 2.35882
  Prefactor  = 0.0001
  Prefactor  = 40.0827
  Prefactor  = 40.9672
  Prefactor  = 0.0001
  Prefactor  = 26.2058
  norm       = 0.0001
  norm       = 0.0001
  norm       = 4.48355
  norm       = 1.05768
  norm       = 0.0001
  norm       = 3.35738
  Normalizat = 1.07791
  Prefactor  = 0.804754
 **********
 **   18 **HESSE 
 **********

 FCN=   6668.209     FROM HESSE     STATUS=OK           272 CALLS     2178 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.518        15.422        .10896E-03   -1.4972    
   2  norm          4.4546        3.6479        .13109E-03   -1.5286    
   3  Prefactor     .10000E-03    4.3347        .16446E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.4321        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.7526        7.4544        .12832E-03   -1.5083    
   6  Prefactor     2.3588        46.479        .26780E-03   -1.5401    
   7  Prefactor     .10000E-03    15.659        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     40.083        47.164        .63264E-04   -1.4441    
   9  Prefactor     40.967        34.485        .62622E-04   -1.4427    
  10  Prefactor     .10000E-03    17.827        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     26.206        18.710        .78266E-04   -1.4684    
  12  norm          .10000E-03    11.425        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.4819        .96710E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.4836        6.1143        .95071E-03   -1.5284    
  15  norm          1.0577        1.3851        .12438E-02   -1.5502    
  16  norm          .10000E-03    2.4289        .12419E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.3574        1.3501        .57780E-04   -1.5341    
  18  Normalizat    1.0779        .22254        .27583E-03   -.90464    
  19  Prefactor     .80475        .12670        .18874E-03   -.99553    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1056e-10
Minuit parameter uncertainties:
  1  15.4267
  2  3.64807
  3  2.95724e-06
  4  1.35051e-06
  5  7.45514
  6  20.9596
  7  1.64773e-05
  8  47.2077
  9  34.502
  10  2.13717e-05
  11  18.7144
  12  2.41779e-05
  13  1.86346e-07
  14  6.11516
  15  1.38512
  16  8.90922e-07
  17  1.35013
  18  0.222729
  19  0.126745
Done.

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

Extracting fit parameters...

4FGL J0937.9-1434
   Spectrum: PowerLaw
257    Prefactor:  1.000e-04  2.137e-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:  8.048e-01  1.267e-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.078e+00  2.227e-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.92e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.43e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/375366/likelihoodResults_503971201_504230401_4FGL_J0937.9-1434_daily_bin1021.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) = 6668.20948093
delta logL = -0.000267296044512

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6668.20921388
delta logL = -2.50431185123e-07

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.8876       1.0000          .0000       10.000    
     3 'Normalizat'    1.0779       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80476       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=   6668.209     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      235 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    177.98        .90712E-02** at limit **
   2  Index         1.9047        8.3731        .50000       -.89970E-05
   3  Normalizat    1.0779        .15875E-01    .62361E-01    .14998E-04
   4  Prefactor     .80475        .95757E-02    .43779E-01    .16117E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.90465
  Normalizat = 1.07791
  Prefactor  = 0.804753
 **********
 **   18 **HESSE 
 **********

 FCN=   6668.209     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      268 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    366.98        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9047        8.4662        .50000       -.66756    
   3  Normalizat    1.0779        .23117E-01    .27583E-03   -.90464    
   4  Prefactor     .80475        .13954E-01    .18874E-03   -.99553    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.1141e-09
Minuit parameter uncertainties:
  1  0.00011082
  2  18.6157
  3  0.0231168
  4  0.0139536
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/375366': 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) = 6668.20921383
delta logL = -2.01102011488e-07

Extracting fit parameters...

4FGL J0937.9-1434
   Spectrum: PowerLaw
257    Prefactor:  1.000e-04  1.108e-04  1.000e-04  1.000e+04 ( 1.000e-14)
258        Index:  1.905e+00  1.862e+01  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.048e-01  1.395e-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.078e+00  2.312e-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/375366/cmap_HighResolution_503971201_504230401_4FGL_J0937.9-1434_daily_bin1021.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.43e-03', job_status='DONE', photon_flux_upper_limit='5.92e-08', time_completed='2021-08-31 19:42:16.445180', job_id='375366', GAL2='0.80', fit_tolerance='1e-08', EG2='1.08', EG='1.08', time_epoch_completed='1630464136.45', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='-2.01e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='1021' AND source_name='4FGL J0937.9-1434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 19:42:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0015>
Subject: Job 375366: <4FGL_J0937.9-1434_daily_bin1021> in cluster <slac> Done

Job <4FGL_J0937.9-1434_daily_bin1021> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Aug 31 19:31:12 2021
Job was executed on host(s) <bullet0015>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 19:31:13 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 31 19:31:13 2021
Terminated at Tue Aug 31 19:42:17 2021
Results reported at Tue Aug 31 19:42:17 2021

Your job looked like:

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

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

