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


Performing analysis on: 4FGL_J0937.9-1434_daily_bin1133
RA = 144.475, Dec = -14.5706
tmin = 533001601, tmax = 533260801
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='376822', job_status='RUN', time_executed='2021-08-31 19:37:20.850922', time_epoch_executed='1630463840.85' WHERE source_name='4FGL J0937.9-1434' and cadence='daily' and bin_id='1133'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/376822

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/376822/ft1_4FGL_J0937.9-1434_daily_bin1133.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/376822/ft2_4FGL_J0937.9-1434_daily_bin1133.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/376822/ft1_4FGL_J0937.9-1434_daily_bin1133.fits outfile=/scratch/kocevski/376822/ft1_filteredMKT_4FGL_J0937.9-1434_daily_bin1133.fits ra=144.475 dec=-14.5706 rad=12.0 tmin=533001601.0 tmax=533260801.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.62
user 3.31
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/376822/ft1_filtered_4FGL_J0937.9-1434_daily_bin1133.fits" evtable="EVENTS" scfile=/scratch/kocevski/376822/ft2_4FGL_J0937.9-1434_daily_bin1133.fits sctable="SC_DATA" outfile=/scratch/kocevski/376822/ltcube_533001601_533260801_4FGL_J0937.9-1434_daily_bin1133.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/376822/ft2_4FGL_J0937.9-1434_daily_bin1133.fits
.....................!
real 13.18
user 12.41
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/376822/ft1_filtered_4FGL_J0937.9-1434_daily_bin1133.fits evtable="EVENTS" scfile=/scratch/kocevski/376822/ft2_4FGL_J0937.9-1434_daily_bin1133.fits sctable="SC_DATA" expcube=/scratch/kocevski/376822/ltcube_533001601_533260801_4FGL_J0937.9-1434_daily_bin1133.fits outfile=/scratch/kocevski/376822/expmap_533001601_533260801_4FGL_J0937.9-1434_daily_bin1133.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/376822/ltcube_533001601_533260801_4FGL_J0937.9-1434_daily_bin1133.fits
.....................!
real 191.80
user 186.26
sys 4.62

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/376822/ft1_filtered_4FGL_J0937.9-1434_daily_bin1133.fits scfile=/scratch/kocevski/376822/ft2_4FGL_J0937.9-1434_daily_bin1133.fits outfile=/scratch/kocevski/376822/cmap_533001601_533260801_4FGL_J0937.9-1434_daily_bin1133.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.60
user 0.38
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/376822/ft1_filtered_4FGL_J0937.9-1434_daily_bin1133.fits evtable="EVENTS" scfile=/scratch/kocevski/376822/ft2_4FGL_J0937.9-1434_daily_bin1133.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/376822/Model_4FGL_J0937.9-1434_daily_bin1133.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/376822/ft1_filtered_4FGL_J0937.9-1434_daily_bin1133.fits.....................!
real 91.72
user 90.19
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.0638       1.0000         .10000E-03   10000.    
     2 'norm      '    .10044E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.3948       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.3941       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    24.218       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    23.082       1.0000         .10000E-03   10000.    
     9 'Prefactor '    27.600       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10104E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .90682E-01   1.0000         .10000E-03   10000.    
    15 'norm      '    2.6626       1.0000         .10000E-03   10000.    
    16 'norm      '    3.8812       1.0000         .10000E-03   10000.    
    17 'norm      '    7.4153       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.2365       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .80547       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=   8780.638     FROM MIGRAD    STATUS=CONVERGED    389 CALLS     1956 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.0623        8.1890       -.77558E-06   -.12950E-03
   2  norm          .10000E-03    1.1253        .41444E-07** at limit **
   3  Prefactor     1.3975        4.9276       -.10150E-06   -.48578E-03
   4  Prefactor     5.3906        12.908        .26025E-05    .13203E-03
   5  Prefactor     .10000E-03    3.2069        .36313E-07** at limit **
   6  Prefactor     24.213        18.607        .17782E-05    .65818E-04
   7  Prefactor     .10000E-03    10.304        .14143E-06** at limit **
   8  Prefactor     23.068        30.645       -.82915E-05   -.33745E-03
   9  Prefactor     27.598        19.015        .20108E-06    .22474E-04
  10  Prefactor     .10000E-03    9.5354        .21169E-06** at limit **
  11  Prefactor     .10000E-03    7.4976       -.18371E-07** at limit **
  12  norm          .10000E-03    1.5481        .10838E-07** at limit **
  13  norm          .10000E-03    1.3991       -.27668E-07** at limit **
  14  norm          .14955        3.4922       -.16371E-06    .40526E-04
  15  norm          2.6626        1.7227        .11539E-07   -.69927E-04
  16  norm          3.8809        4.2191        .15300E-05   -.18817E-02
  17  norm          7.4151        1.5681        .20946E-08    .22595E-04
  18  Normalizat    1.2369        .16803       -.27407E-06    .30241E-04
  19  Prefactor     .80514        .99445E-01    .53973E-07    .35835E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.06228
  norm       = 0.0001
  Prefactor  = 1.39747
  Prefactor  = 5.39059
  Prefactor  = 0.0001
  Prefactor  = 24.2133
  Prefactor  = 0.0001
  Prefactor  = 23.0678
  Prefactor  = 27.5978
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.149545
  norm       = 2.66263
  norm       = 3.8809
  norm       = 7.41511
  Normalizat = 1.23694
  Prefactor  = 0.805142
 **********
 **   18 **HESSE 
 **********

 FCN=   8780.638     FROM HESSE     STATUS=OK           272 CALLS     2228 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.0623        8.1356        .23176E-03   -1.5358    
   2  norm          .10000E-03    1.1368        .96884E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.3975        5.1459        .36772E-03   -1.5472    
   4  Prefactor     5.3906        12.836        .17303E-03   -1.5244    
   5  Prefactor     .10000E-03    3.2263        .16384E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     24.213        18.678        .81398E-04   -1.4723    
   7  Prefactor     .10000E-03    10.317        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     23.068        31.686        .83374E-04   -1.4747    
   9  Prefactor     27.598        19.033        .76256E-04   -1.4657    
  10  Prefactor     .10000E-03    9.5532        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    7.6340        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.5544        .11385E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    4.6773        .21552E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .14955        44.589        .34087E-02   -1.5631    
  15  norm          2.6626        1.7172        .95676E-04   -1.5382    
  16  norm          3.8809        5.8260        .10241E-02   -1.5314    
  17  norm          7.4151        1.5693        .52106E-04   -1.5163    
  18  Normalizat    1.2369        .19864        .27063E-03   -.85469    
  19  Prefactor     .80514        .11748        .19688E-03   -.99539    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.44636e-09
Minuit parameter uncertainties:
  1  8.13857
  2  4.46549e-06
  3  5.14753
  4  12.8423
  5  4.28897e-06
  6  18.682
  7  7.30311e-06
  8  31.7087
  9  19.0367
  10  1.01e-05
  11  2.98869e-06
  12  1.83959e-07
  13  3.70815e-05
  14  5.16668
  15  1.71725
  16  5.82683
  17  1.56933
  18  0.198761
  19  0.117521
Done.

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

Extracting fit parameters...

4FGL J0937.9-1434
   Spectrum: PowerLaw
257    Prefactor:  1.000e-04  1.010e-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.051e-01  1.175e-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.237e+00  1.988e-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: 3.63e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.72e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/376822/likelihoodResults_533001601_533260801_4FGL_J0937.9-1434_daily_bin1133.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) = 8780.63878868
delta logL = -0.000498641069498

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8780.63828993
delta logL = 1.09566826723e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9564       1.0000          .0000       10.000    
     3 'Normalizat'    1.2369       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80514       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=   8780.638     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      247 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10038E-03    42.692        .18142E-02** at limit **
   2  Index         1.9247        5.9623        .50000        .16180E-04
   3  Normalizat    1.2369        .89758E-02    .27063E-03   -.50410E-06
   4  Prefactor     .80514        .54207E-02    .19688E-03    .23098E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100377
  Index      = 1.92468
  Normalizat = 1.23694
  Prefactor  = 0.805142
 **********
 **   18 **HESSE 
 **********

 FCN=   8780.638     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      276 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10038E-03    198.63        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9247        5.4821        .50000       -.66247    
   3  Normalizat    1.2369        .19737E-01    .10825E-04   -.85469    
   4  Prefactor     .80514        .11920E-01    .78752E-05   -.99539    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.73425e-09
Minuit parameter uncertainties:
  1  0.0173598
  2  222.043
  3  0.0197374
  4  0.0119198
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/376822': 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) = 8780.63828981
delta logL = 2.2710992198e-07

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
534    Prefactor:  8.051e-01  1.192e-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.237e+00  1.974e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/376822/cmap_HighResolution_533001601_533260801_4FGL_J0937.9-1434_daily_bin1133.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.72e-03', job_status='DONE', photon_flux_upper_limit='3.63e-08', time_completed='2021-08-31 19:49:01.642955', job_id='376822', GAL2='0.81', fit_tolerance='1e-08', EG2='1.24', EG='1.24', time_epoch_completed='1630464541.64', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='2.27e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='1133' AND source_name='4FGL J0937.9-1434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 19:49:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0069>
Subject: Job 376822: <4FGL_J0937.9-1434_daily_bin1133> in cluster <slac> Done

Job <4FGL_J0937.9-1434_daily_bin1133> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Aug 31 19:35:56 2021
Job was executed on host(s) <bullet0069>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 19:35:58 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:35:58 2021
Terminated at Tue Aug 31 19:49:04 2021
Results reported at Tue Aug 31 19:49:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0937.9-1434_daily_bin1133 144.475 -14.5706 533001601 533260801 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 :                                   689.16 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             340.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   783 sec.
    Turnaround time :                            788 sec.

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

