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


Performing analysis on: 4FGL_J0937.9-1434_daily_bin837
RA = 144.475, Dec = -14.5706
tmin = 456278401, tmax = 456537601
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='375108', job_status='RUN', time_executed='2021-08-31 19:31:04.430357', time_epoch_executed='1630463464.43' WHERE source_name='4FGL J0937.9-1434' and cadence='daily' and bin_id='837'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/375108

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/375108/ft1_4FGL_J0937.9-1434_daily_bin837.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/375108/ft2_4FGL_J0937.9-1434_daily_bin837.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/375108/ft1_4FGL_J0937.9-1434_daily_bin837.fits outfile=/scratch/kocevski/375108/ft1_filteredMKT_4FGL_J0937.9-1434_daily_bin837.fits ra=144.475 dec=-14.5706 rad=12.0 tmin=456278401.0 tmax=456537601.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 5.19
user 4.85
sys 0.27

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/375108/ft1_filtered_4FGL_J0937.9-1434_daily_bin837.fits" evtable="EVENTS" scfile=/scratch/kocevski/375108/ft2_4FGL_J0937.9-1434_daily_bin837.fits sctable="SC_DATA" outfile=/scratch/kocevski/375108/ltcube_456278401_456537601_4FGL_J0937.9-1434_daily_bin837.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/375108/ft2_4FGL_J0937.9-1434_daily_bin837.fits
.....................!
real 12.61
user 12.07
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/375108/ft1_filtered_4FGL_J0937.9-1434_daily_bin837.fits evtable="EVENTS" scfile=/scratch/kocevski/375108/ft2_4FGL_J0937.9-1434_daily_bin837.fits sctable="SC_DATA" expcube=/scratch/kocevski/375108/ltcube_456278401_456537601_4FGL_J0937.9-1434_daily_bin837.fits outfile=/scratch/kocevski/375108/expmap_456278401_456537601_4FGL_J0937.9-1434_daily_bin837.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/375108/ltcube_456278401_456537601_4FGL_J0937.9-1434_daily_bin837.fits
.....................!
real 190.82
user 185.82
sys 4.26

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/375108/ft1_filtered_4FGL_J0937.9-1434_daily_bin837.fits scfile=/scratch/kocevski/375108/ft2_4FGL_J0937.9-1434_daily_bin837.fits outfile=/scratch/kocevski/375108/cmap_456278401_456537601_4FGL_J0937.9-1434_daily_bin837.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 1.08
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/375108/ft1_filtered_4FGL_J0937.9-1434_daily_bin837.fits scfile=/scratch/kocevski/375108/ft2_4FGL_J0937.9-1434_daily_bin837.fits outfile=/scratch/kocevski/375108/cmap_HighResolution_456278401_456537601_4FGL_J0937.9-1434_daily_bin837.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=144.475 yref=-14.5706 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.63
user 0.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/375108/ft1_filtered_4FGL_J0937.9-1434_daily_bin837.fits evtable="EVENTS" scfile=/scratch/kocevski/375108/ft2_4FGL_J0937.9-1434_daily_bin837.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/375108/Model_4FGL_J0937.9-1434_daily_bin837.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/375108/ft1_filtered_4FGL_J0937.9-1434_daily_bin837.fits.....................!
real 93.20
user 89.45
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10140E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    26.972       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.1560       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12049E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10211E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.056       1.0000         .10000E-03   10000.    
    10 'Prefactor '    50.544       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.5467       1.0000         .10000E-03   10000.    
    12 'norm      '    7.6487       1.0000         .10000E-03   10000.    
    13 'norm      '    7.7094       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.2106       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .93847       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9401.383     FROM MIGRAD    STATUS=CONVERGED    401 CALLS     1686 TOTAL
                     EDM=   .51E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    16.643         .0000    ** at limit **
   2  norm          .10000E-03    .93886         .0000    ** at limit **
   3  Prefactor     .10000E-03    2.8206         .0000    ** at limit **
   4  Prefactor     26.969        14.397         .0000       -.22874E-04
   5  Prefactor     3.1577        7.5697         .0000        .74034E-02
   6  Prefactor     .10000E-03    88.944         .0000    ** at limit **
   7  Prefactor     .10000E-03    31.065         .0000    ** at limit **
   8  Prefactor     .10000E-03    48.586         .0000    ** at limit **
   9  Prefactor     11.060        29.724         .0000       -.46059E-03
  10  Prefactor     50.545        38.441         .0000       -.47698E-03
  11  Prefactor     5.5448        9.4616         .0000       -.16887E-03
  12  norm          7.6467        8.4883         .0000       -.38793E-03
  13  norm          7.7096        3.5349         .0000        .18450E-03
  14  norm          .10000E-03    3.1129         .0000    ** at limit **
  15  norm          .10000E-03    .47474         .0000    ** at limit **
  16  norm          .10000E-03    3.7356         .0000    ** at limit **
  17  norm          .10000E-03    .36613         .0000    ** at limit **
  18  Normalizat    1.2107        .17074         .0000       -.17066E-03
  19  Prefactor     .93845        .10114         .0000       -.14057E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.9694
  Prefactor  = 3.15771
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.0604
  Prefactor  = 50.545
  Prefactor  = 5.54484
  norm       = 7.64673
  norm       = 7.70965
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 1.21066
  Prefactor  = 0.938455
 **********
 **   18 **HESSE 
 **********

 FCN=   9401.383     FROM HESSE     STATUS=OK           266 CALLS     1952 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    16.852        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .94128        .91708E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.8532        .15899E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     26.969        14.383        .77138E-04   -1.4669    
   5  Prefactor     3.1577        7.5660        .11408E-02   -1.5353    
   6  Prefactor     .10000E-03    92.538        .36333E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    31.169        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    48.976        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     11.060        29.823        .12049E-03   -1.5043    
  10  Prefactor     50.545        38.298        .56409E-04   -1.4285    
  11  Prefactor     5.5448        9.4493        .17059E-03   -1.5237    
  12  norm          7.6467        8.4510        .14500E-03   -1.5155    
  13  norm          7.7096        3.5335        .11918E-03   -1.5153    
  14  norm          .10000E-03    3.1213        .16707E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .48580        .65220E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.7730        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .72969        .11385E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.2107        .20181        .28635E-03   -.86274    
  19  Prefactor     .93845        .11953        .19536E-03   -.94810    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.74959e-09
Minuit parameter uncertainties:
  1  4.83267e-05
  2  7.13151e-07
  3  6.40333e-07
  4  14.3851
  5  7.56824
  6  0.000560699
  7  0.000144491
  8  1.38883e-05
  9  29.8634
  10  38.3167
  11  9.45182
  12  8.45233
  13  3.53359
  14  7.97134e-06
  15  4.39236e-06
  16  2.76437e-06
  17  4.42582e-07
  18  0.201943
  19  0.119568
Done.

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

Extracting fit parameters...

4FGL J0937.9-1434
   Spectrum: PowerLaw
257    Prefactor:  5.055e+01  3.832e+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:  9.385e-01  1.196e-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.211e+00  2.019e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.56
Ra Dec: 144.475 -14.571
Photon Index (Fixed Index): 1.98 +/- 0.00
Photon Flux (Fixed Index): 4.51e-08 +/- 3.42e-08
Energy Flux (Fixed Index): 3.28e-05 +/- 2.49e-05

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) = 9400.52510153
delta logL = 0.857917925801

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9400.50569384
delta logL = 0.877325616237

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.696       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5570       1.0000          .0000       10.000    
     3 'Normalizat'    1.1673       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95114       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=   9400.506     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      285 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.693        30.636        .85991E-04   -.52804E-03
   2  Index         2.5570        .57426        .34604E-02   -.36931E-03
   3  Normalizat    1.1673        .19928        .29054E-03   -.21013E-03
   4  Prefactor     .95115        .12003        .19403E-03   -.45759E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.6929
  Index      = 2.55704
  Normalizat = 1.16729
  Prefactor  = 0.951149
 **********
 **   18 **HESSE 
 **********

 FCN=   9400.506     FROM HESSE     STATUS=OK            25 CALLS      310 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.693        23.843        .34397E-05   -1.4776    
   2  Index         2.5570        .44692        .13842E-03   -.51048    
   3  Normalizat    1.1673        .19838        .11621E-04   -.87620    
   4  Prefactor     .95115        .11974        .38805E-04   -.94376    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.58724e-10
Minuit parameter uncertainties:
  1  23.8531
  2  0.447706
  3  0.198511
  4  0.119778
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/375108': 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) = 9400.50569382
delta logL = 0.877325632249

Extracting fit parameters...

4FGL J0937.9-1434
   Spectrum: PowerLaw
257    Prefactor:  2.169e+01  2.385e+01  1.000e-04  1.000e+04 ( 1.000e-14)
258        Index:  2.557e+00  4.477e-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:  9.511e-01  1.198e-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.167e+00  1.985e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.38
Ra Dec: 144.475 -14.571
Photon Index (Free Index): 2.56 +/- 0.45
Photon Flux (Free Index): 8.80e-08 +/- 5.00e-08
Energy Flux (Free Index): 2.40e-05 +/- 1.28e-05

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/375108/cmap_HighResolution_456278401_456537601_4FGL_J0937.9-1434_daily_bin837.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.51e-08', energy_flux2='2.40e-05', photon_flux_error='3.42e-08', dlogl='8.77e-01', energy_flux='3.28e-05', photon_flux2='8.80e-08', job_status='DONE', time_completed='2021-08-31 19:41:43.955792', photon_index_error2='0.45', photon_index2='2.56', ts='5.56', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='1.28e-05', EG='1.21', time_epoch_completed='1630464103.96', return_code='0', job_id='375108', GAL2='0.95', EG2='1.17', return_code2='0', energy_flux_error='2.49e-05', photon_flux_error2='5.00e-08', ts2='7.38', photon_index='1.98' WHERE bin_id='837' AND source_name='4FGL J0937.9-1434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 19:41:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0188>
Subject: Job 375108: <4FGL_J0937.9-1434_daily_bin837> in cluster <slac> Done

Job <4FGL_J0937.9-1434_daily_bin837> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Aug 31 19:30:47 2021
Job was executed on host(s) <bullet0188>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 19:30:50 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 31 19:30:50 2021
Terminated at Tue Aug 31 19:41:44 2021
Results reported at Tue Aug 31 19:41:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0937.9-1434_daily_bin837 144.475 -14.5706 456278401 456537601 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 :                                   624.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             349.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   655 sec.
    Turnaround time :                            657 sec.

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

