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


Performing analysis on: 4FGL_J0937.9-1434_daily_bin1138
RA = 144.475, Dec = -14.5706
tmin = 534297601, tmax = 534556801
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='376827', job_status='RUN', time_executed='2021-08-31 19:36:26.715926', time_epoch_executed='1630463786.72' WHERE source_name='4FGL J0937.9-1434' and cadence='daily' and bin_id='1138'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/376827

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/376827/ft1_4FGL_J0937.9-1434_daily_bin1138.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/376827/ft2_4FGL_J0937.9-1434_daily_bin1138.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/376827/ft1_4FGL_J0937.9-1434_daily_bin1138.fits outfile=/scratch/kocevski/376827/ft1_filteredMKT_4FGL_J0937.9-1434_daily_bin1138.fits ra=144.475 dec=-14.5706 rad=12.0 tmin=534297601.0 tmax=534556801.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.55
user 3.31
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/376827/ft1_filtered_4FGL_J0937.9-1434_daily_bin1138.fits" evtable="EVENTS" scfile=/scratch/kocevski/376827/ft2_4FGL_J0937.9-1434_daily_bin1138.fits sctable="SC_DATA" outfile=/scratch/kocevski/376827/ltcube_534297601_534556801_4FGL_J0937.9-1434_daily_bin1138.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/376827/ft2_4FGL_J0937.9-1434_daily_bin1138.fits
.....................!
real 12.88
user 12.50
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/376827/ft1_filtered_4FGL_J0937.9-1434_daily_bin1138.fits evtable="EVENTS" scfile=/scratch/kocevski/376827/ft2_4FGL_J0937.9-1434_daily_bin1138.fits sctable="SC_DATA" expcube=/scratch/kocevski/376827/ltcube_534297601_534556801_4FGL_J0937.9-1434_daily_bin1138.fits outfile=/scratch/kocevski/376827/expmap_534297601_534556801_4FGL_J0937.9-1434_daily_bin1138.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/376827/ltcube_534297601_534556801_4FGL_J0937.9-1434_daily_bin1138.fits
.....................!
real 191.09
user 185.29
sys 5.15

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/376827/ft1_filtered_4FGL_J0937.9-1434_daily_bin1138.fits scfile=/scratch/kocevski/376827/ft2_4FGL_J0937.9-1434_daily_bin1138.fits outfile=/scratch/kocevski/376827/cmap_534297601_534556801_4FGL_J0937.9-1434_daily_bin1138.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/376827/ft1_filtered_4FGL_J0937.9-1434_daily_bin1138.fits scfile=/scratch/kocevski/376827/ft2_4FGL_J0937.9-1434_daily_bin1138.fits outfile=/scratch/kocevski/376827/cmap_HighResolution_534297601_534556801_4FGL_J0937.9-1434_daily_bin1138.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/376827/ft1_filtered_4FGL_J0937.9-1434_daily_bin1138.fits evtable="EVENTS" scfile=/scratch/kocevski/376827/ft2_4FGL_J0937.9-1434_daily_bin1138.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/376827/Model_4FGL_J0937.9-1434_daily_bin1138.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/376827/ft1_filtered_4FGL_J0937.9-1434_daily_bin1138.fits.....................!
real 64.61
user 63.02
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.4721       1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    25.293       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.5101       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11341E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    88.056       1.0000         .10000E-03   10000.    
     9 'Prefactor '    75.022       1.0000         .10000E-03   10000.    
    10 'Prefactor '    19.408       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.2986       1.0000         .10000E-03   10000.    
    13 'norm      '    6.1862       1.0000         .10000E-03   10000.    
    14 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.5577       1.0000         .10000E-03   10000.    
    16 'norm      '    .49573       1.0000         .10000E-03   10000.    
    17 'norm      '    8.8915       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0662       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .76651       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=   5760.320     FROM MIGRAD    STATUS=CONVERGED    380 CALLS     1897 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.4706        18.489       -.44332E-05   -.29628E-04
   2  norm          .10000E-03    2.2852        .38383E-06** at limit **
   3  Prefactor     25.293        10.026        .27073E-07   -.19798E-04
   4  Prefactor     4.5141        13.615       -.64914E-06    .32550E-05
   5  Prefactor     .10000E-03    16.512       -.16979E-05** at limit **
   6  Prefactor     .10000E-03    7.6636       -.77037E-06** at limit **
   7  Prefactor     .10000E-03    13.157        .31918E-06** at limit **
   8  Prefactor     88.067        48.211       -.48426E-06   -.86834E-04
   9  Prefactor     75.028        42.174       -.18463E-06   -.39374E-04
  10  Prefactor     19.407        22.362        .39877E-06    .23909E-04
  11  Prefactor     .10000E-03    6.4678        .26833E-06** at limit **
  12  norm          3.2999        5.9705       -.14853E-05   -.66970E-04
  13  norm          6.1866        4.1661       -.43981E-07    .19159E-03
  14  norm          .10000E-03    20.998        .81591E-06** at limit **
  15  norm          3.5578        2.2988       -.15062E-07   -.13414E-04
  16  norm          .51184        64.780        .86928E-05   -.20725E-04
  17  norm          8.8917        2.2554       -.38143E-09    .24656E-05
  18  Normalizat    1.0659        .22608        .13667E-05   -.95240E-04
  19  Prefactor     .76664        .12839       -.11302E-05    .12487E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.47056
  norm       = 0.0001
  Prefactor  = 25.2934
  Prefactor  = 4.51414
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 88.067
  Prefactor  = 75.028
  Prefactor  = 19.4069
  Prefactor  = 0.0001
  norm       = 3.29989
  norm       = 6.18655
  norm       = 0.0001
  norm       = 3.55782
  norm       = 0.511839
  norm       = 8.8917
  Normalizat = 1.06591
  Prefactor  = 0.766642
 **********
 **   18 **HESSE 
 **********

 FCN=   5760.320     FROM HESSE     STATUS=OK           272 CALLS     2169 TOTAL
                     EDM=   .33E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.4706        18.581        .26006E-03   -1.5394    
   2  norm          .10000E-03    2.3639        .11256E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     25.293        10.035        .79652E-04   -1.4702    
   4  Prefactor     4.5141        13.425        .18958E-03   -1.5283    
   5  Prefactor     .10000E-03    17.005        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.6767        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    13.155        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     88.067        48.123        .42816E-04   -1.3828    
   9  Prefactor     75.028        42.217        .46356E-04   -1.3973    
  10  Prefactor     19.407        22.352        .90914E-04   -1.4827    
  11  Prefactor     .10000E-03    6.4843        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.2999        5.9712        .22292E-03   -1.5345    
  13  norm          6.1866        4.1590        .12266E-03   -1.5210    
  14  norm          .10000E-03    21.281        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.5578        2.2970        .89229E-04   -1.5331    
  16  norm          .51184        64.811        .44685E-02   -1.5565    
  17  norm          8.8917        2.2568        .55172E-04   -1.5111    
  18  Normalizat    1.0659        .25251        .29260E-03   -.90854    
  19  Prefactor     .76664        .14475        .20181E-03   -1.0097    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.29237e-08
Minuit parameter uncertainties:
  1  13.5564
  2  3.43005e-05
  3  10.0356
  4  13.4341
  5  6.71077e-05
  6  1.80595e-05
  7  5.68144e-05
  8  48.1446
  9  42.2341
  10  22.3614
  11  6.53609e-06
  12  5.97229
  13  4.15924
  14  7.38838e-05
  15  2.2971
  16  11.5308
  17  2.25681
  18  0.252796
  19  0.144818
Done.

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

Extracting fit parameters...

4FGL J0937.9-1434
   Spectrum: PowerLaw
257    Prefactor:  1.941e+01  2.236e+01  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:  7.666e-01  1.448e-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.066e+00  2.528e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.81
Ra Dec: 144.475 -14.571
Photon Index (Fixed Index): 1.98 +/- 0.00
Photon Flux (Fixed Index): 1.73e-08 +/- 1.99e-08
Energy Flux (Fixed Index): 1.26e-05 +/- 1.45e-05

TS (Fixed Index): 1.81
Ra Dec: 144.475 -14.571
Photon Flux Upper Limit: 7.76e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.81e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/376827/likelihoodResults_534297601_534556801_4FGL_J0937.9-1434_daily_bin1138.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): 0
logL (Free Index) = 5760.0861065
delta logL = 0.234064429228

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5760.08544985
delta logL = 0.234721081028

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    30.924       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5351       1.0000          .0000       10.000    
     3 'Normalizat'    1.0722       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76485       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=   5760.085     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      307 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     30.928        35.106        .72051E-04    .56487E-05
   2  Index         1.5350        .62359        .10559E-01    .16594E-03
   3  Normalizat    1.0722        .23746        .29182E-03   -.13129E-04
   4  Prefactor     .76482        .14212        .20200E-03    .53467E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 30.9285
  Index      = 1.53501
  Normalizat = 1.07223
  Prefactor  = 0.764823
 **********
 **   18 **HESSE 
 **********

 FCN=   5760.085     FROM HESSE     STATUS=OK            25 CALLS      332 TOTAL
                     EDM=   .18E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     30.928        34.847        .14410E-04   -1.4595    
   2  Index         1.5350        .61927        .21118E-02   -.76564    
   3  Normalizat    1.0722        .23765        .11673E-04   -.90649    
   4  Prefactor     .76482        .14224        .80799E-05   -1.0104    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.82138e-12
Minuit parameter uncertainties:
  1  34.8704
  2  0.622362
  3  0.237884
  4  0.142305
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/376827': 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): 0
logL (Free Index) = 5760.08544979
delta logL = 0.234721140371

Extracting fit parameters...

4FGL J0937.9-1434
   Spectrum: PowerLaw
257    Prefactor:  3.093e+01  3.487e+01  1.000e-04  1.000e+04 ( 1.000e-14)
258        Index:  1.535e+00  6.224e-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:  7.648e-01  1.423e-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.072e+00  2.379e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.28
Ra Dec: 144.475 -14.571
Photon Index (Free Index): 1.54 +/- 0.62
Photon Flux (Free Index): 1.08e-08 +/- 1.50e-08
Energy Flux (Free Index): 3.03e-05 +/- 5.02e-05

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/376827/cmap_HighResolution_534297601_534556801_4FGL_J0937.9-1434_daily_bin1138.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.81e-03', comment='SUCCESS', photon_flux='1.73e-08', energy_flux2='3.03e-05', photon_flux_error='1.99e-08', dlogl='2.35e-01', energy_flux='1.26e-05', photon_flux2='1.08e-08', job_status='DONE', time_completed='2021-08-31 19:45:54.567325', photon_index_error2='0.62', photon_index2='1.54', ts='1.81', fit_tolerance='1e-08', GAL='0.77', photon_index_error='0.00', photon_flux_upper_limit='7.76e-08', energy_flux_error2='5.02e-05', EG='1.07', time_epoch_completed='1630464354.57', return_code='0', job_id='376827', GAL2='0.76', EG2='1.07', return_code2='0', energy_flux_error='1.45e-05', photon_flux_error2='1.50e-08', ts2='2.28', photon_index='1.98' WHERE bin_id='1138' AND source_name='4FGL J0937.9-1434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 19:45:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0259>
Subject: Job 376827: <4FGL_J0937.9-1434_daily_bin1138> in cluster <slac> Done

Job <4FGL_J0937.9-1434_daily_bin1138> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Aug 31 19:35:57 2021
Job was executed on host(s) <bullet0259>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 19:35:59 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:59 2021
Terminated at Tue Aug 31 19:45:55 2021
Results reported at Tue Aug 31 19:45:55 2021

Your job looked like:

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

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

