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


Performing analysis on: 4FGL_J0937.9-1434_daily_bin1558
RA = 144.475, Dec = -14.5706
tmin = 643161601, tmax = 643420801
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='378473', job_status='RUN', time_executed='2021-08-31 19:42:22.653007', time_epoch_executed='1630464142.65' WHERE source_name='4FGL J0937.9-1434' and cadence='daily' and bin_id='1558'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/378473

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/378473/ft1_4FGL_J0937.9-1434_daily_bin1558.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/378473/ft2_4FGL_J0937.9-1434_daily_bin1558.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/378473/ft1_4FGL_J0937.9-1434_daily_bin1558.fits outfile=/scratch/kocevski/378473/ft1_filteredMKT_4FGL_J0937.9-1434_daily_bin1558.fits ra=144.475 dec=-14.5706 rad=12.0 tmin=643161601.0 tmax=643420801.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.49
user 3.28
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/378473/ft1_filtered_4FGL_J0937.9-1434_daily_bin1558.fits" evtable="EVENTS" scfile=/scratch/kocevski/378473/ft2_4FGL_J0937.9-1434_daily_bin1558.fits sctable="SC_DATA" outfile=/scratch/kocevski/378473/ltcube_643161601_643420801_4FGL_J0937.9-1434_daily_bin1558.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/378473/ft2_4FGL_J0937.9-1434_daily_bin1558.fits
.....................!
real 12.62
user 12.25
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/378473/ft1_filtered_4FGL_J0937.9-1434_daily_bin1558.fits evtable="EVENTS" scfile=/scratch/kocevski/378473/ft2_4FGL_J0937.9-1434_daily_bin1558.fits sctable="SC_DATA" expcube=/scratch/kocevski/378473/ltcube_643161601_643420801_4FGL_J0937.9-1434_daily_bin1558.fits outfile=/scratch/kocevski/378473/expmap_643161601_643420801_4FGL_J0937.9-1434_daily_bin1558.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/378473/ltcube_643161601_643420801_4FGL_J0937.9-1434_daily_bin1558.fits
.....................!
real 190.02
user 185.14
sys 4.39

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/378473/ft1_filtered_4FGL_J0937.9-1434_daily_bin1558.fits scfile=/scratch/kocevski/378473/ft2_4FGL_J0937.9-1434_daily_bin1558.fits outfile=/scratch/kocevski/378473/cmap_643161601_643420801_4FGL_J0937.9-1434_daily_bin1558.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.57
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/378473/ft1_filtered_4FGL_J0937.9-1434_daily_bin1558.fits scfile=/scratch/kocevski/378473/ft2_4FGL_J0937.9-1434_daily_bin1558.fits outfile=/scratch/kocevski/378473/cmap_HighResolution_643161601_643420801_4FGL_J0937.9-1434_daily_bin1558.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.57
user 0.40
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/378473/ft1_filtered_4FGL_J0937.9-1434_daily_bin1558.fits evtable="EVENTS" scfile=/scratch/kocevski/378473/ft2_4FGL_J0937.9-1434_daily_bin1558.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/378473/Model_4FGL_J0937.9-1434_daily_bin1558.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/378473/ft1_filtered_4FGL_J0937.9-1434_daily_bin1558.fits.....................!
real 65.18
user 63.69
sys 1.12

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/378473/ft1_filtered_4FGL_J0937.9-1434_daily_bin1558.fits', '/scratch/kocevski/378473/ft2_4FGL_J0937.9-1434_daily_bin1558.fits', expMap='/scratch/kocevski/378473/expmap_643161601_643420801_4FGL_J0937.9-1434_daily_bin1558.fits', expCube='/scratch/kocevski/378473/ltcube_643161601_643420801_4FGL_J0937.9-1434_daily_bin1558.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/378473/Model_4FGL_J0937.9-1434_daily_bin1558.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/378473/ft1_filtered_4FGL_J0937.9-1434_daily_bin1558.fits
Spacecraft file(s): /scratch/kocevski/378473/ft2_4FGL_J0937.9-1434_daily_bin1558.fits
Exposure map: /scratch/kocevski/378473/expmap_643161601_643420801_4FGL_J0937.9-1434_daily_bin1558.fits
Exposure cube: /scratch/kocevski/378473/ltcube_643161601_643420801_4FGL_J0937.9-1434_daily_bin1558.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/378473/Model_4FGL_J0937.9-1434_daily_bin1558.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 5999.77419031

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.824       1.0000         .10000E-03   10000.    
     2 'norm      '    .11532E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.8049       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.1841       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10223E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    40.716       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10332E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.1936       1.0000         .10000E-03   10000.    
    10 'Prefactor '    33.161       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10875E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.0830       1.0000         .10000E-03   10000.    
    14 'norm      '    8.4512       1.0000         .10000E-03   10000.    
    15 'norm      '    2.2164       1.0000         .10000E-03   10000.    
    16 'norm      '    18.024       1.0000         .10000E-03   10000.    
    17 'norm      '    .30513       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.1020       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .92651       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=   5999.671     FROM MIGRAD    STATUS=CONVERGED    380 CALLS     1704 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.822        11.814        .25495E-06    .46942E-04
   2  norm          .10000E-03    1.9508       -.20467E-06** at limit **
   3  Prefactor     4.8043        4.7103        .80307E-07   -.18490E-04
   4  Prefactor     5.1731        14.950        .93893E-07   -.35769E-04
   5  Prefactor     .10000E-03    7.5805        .22411E-06** at limit **
   6  Prefactor     40.721        24.943        .48565E-06    .41911E-04
   7  Prefactor     .10000E-03    12.069        .10800E-05** at limit **
   8  Prefactor     .10000E-03    22.468       -.29684E-06** at limit **
   9  Prefactor     5.1929        62.272        .23366E-07   -.67864E-05
  10  Prefactor     33.167        31.521        .34236E-06    .70926E-04
  11  Prefactor     .10000E-03    5.5470        .30900E-07** at limit **
  12  norm          .10000E-03    9.8098       -.94296E-06** at limit **
  13  norm          1.0841        2.5075        .73330E-06    .34294E-03
  14  norm          8.4502        9.6630        .67831E-06   -.13219E-03
  15  norm          2.2160        2.1457        .46196E-07   -.10922E-03
  16  norm          18.024        15.458       -.51787E-08   -.63238E-05
  17  norm          .30470        1.2662        .83611E-06   -.30897E-03
  18  Normalizat    1.1017        .21568       -.12277E-05   -.97422E-05
  19  Prefactor     .92668        .12400        .16692E-06   -.90194E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 12.8223
  norm       = 0.0001
  Prefactor  = 4.80429
  Prefactor  = 5.17309
  Prefactor  = 0.0001
  Prefactor  = 40.7208
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.19289
  Prefactor  = 33.1668
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.08408
  norm       = 8.45016
  norm       = 2.216
  norm       = 18.0241
  norm       = 0.304703
  Normalizat = 1.10174
  Prefactor  = 0.926684
 **********
 **   18 **HESSE 
 **********

 FCN=   5999.671     FROM HESSE     STATUS=OK           274 CALLS     1978 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.822        11.701        .11186E-03   -1.4992    
   2  norm          .10000E-03    3.4543        .20409E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.8043        4.7131        .16072E-03   -1.5270    
   4  Prefactor     5.1731        14.892        .17656E-03   -1.5253    
   5  Prefactor     .10000E-03    7.6916        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     40.721        25.021        .62820E-04   -1.4431    
   7  Prefactor     .10000E-03    12.268        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    22.532        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.1929        62.132        .17639E-03   -1.5252    
  10  Prefactor     33.167        31.798        .69585E-04   -1.4556    
  11  Prefactor     .10000E-03    5.5546        .17817E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    10.227        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.0841        2.2785        .20039E-02   -1.5500    
  14  norm          8.4502        9.6230        .68948E-03   -1.5127    
  15  norm          2.2160        2.1277        .10758E-03   -1.5410    
  16  norm          18.024        15.474        .94339E-04   -1.4859    
  17  norm          .30470        1.2423        .16369E-03   -1.5598    
  18  Normalizat    1.1017        .24990        .29948E-03   -.89696    
  19  Prefactor     .92668        .14518        .19208E-03   -.95215    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.76694e-10
Minuit parameter uncertainties:
  1  11.7034
  2  4.58974e-05
  3  4.71344
  4  14.903
  5  1.80169e-05
  6  25.027
  7  8.08912e-05
  8  5.37573e-05
  9  35.971
  10  31.8141
  11  8.85685e-07
  12  4.13569e-05
  13  2.27873
  14  9.62475
  15  2.12775
  16  15.4778
  17  1.23034
  18  0.250172
  19  0.145243
Done.

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

Extracting fit parameters...

4FGL J0937.9-1434
   Spectrum: PowerLaw
257    Prefactor:  3.317e+01  3.181e+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.267e-01  1.452e-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.102e+00  2.502e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.83
Ra Dec: 144.475 -14.571
Photon Index (Fixed Index): 1.98 +/- 0.00
Photon Flux (Fixed Index): 2.96e-08 +/- 2.84e-08
Energy Flux (Fixed Index): 2.15e-05 +/- 2.06e-05

TS (Fixed Index): 2.83
Ra Dec: 144.475 -14.571
Photon Flux Upper Limit: 1.05e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.84e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/378473/likelihoodResults_643161601_643420801_4FGL_J0937.9-1434_daily_bin1558.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) = 5999.66849749
delta logL = 0.00295768997421

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5999.66650437
delta logL = 0.00495080968903

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    30.781       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0473       1.0000          .0000       10.000    
     3 'Normalizat'    1.0994       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92712       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=   5999.667     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      281 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     30.762        41.225        .72218E-04   -.24148E-04
   2  Index         2.0482        .73604        .72090E-02    .39326E-03
   3  Normalizat    1.0990        .24199        .29980E-03    .40727E-04
   4  Prefactor     .92735        .14349        .19201E-03   -.87806E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 30.7618
  Index      = 2.04816
  Normalizat = 1.09897
  Prefactor  = 0.927354
 **********
 **   18 **HESSE 
 **********

 FCN=   5999.667     FROM HESSE     STATUS=OK            25 CALLS      306 TOTAL
                     EDM=   .55E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     30.762        38.950        .14444E-04   -1.4598    
   2  Index         2.0482        .69542        .14418E-02   -.63152    
   3  Normalizat    1.0990        .24185        .11992E-04   -.89785    
   4  Prefactor     .92735        .14354        .38402E-04   -.95192    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.52201e-11
Minuit parameter uncertainties:
  1  38.9824
  2  0.698907
  3  0.242091
  4  0.143597
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/378473': 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) = 5999.66650207
delta logL = 0.00495310605857

Extracting fit parameters...

4FGL J0937.9-1434
   Spectrum: PowerLaw
257    Prefactor:  3.076e+01  3.898e+01  1.000e-04  1.000e+04 ( 1.000e-14)
258        Index:  2.048e+00  6.989e-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.274e-01  1.436e-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.099e+00  2.421e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.84
Ra Dec: 144.475 -14.571
Photon Index (Free Index): 2.05 +/- 0.70
Photon Flux (Free Index): 3.24e-08 +/- 4.20e-08
Energy Flux (Free Index): 2.00e-05 +/- 2.39e-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/378473/cmap_HighResolution_643161601_643420801_4FGL_J0937.9-1434_daily_bin1558.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.84e-03', comment='SUCCESS', photon_flux='2.96e-08', energy_flux2='2.00e-05', photon_flux_error='2.84e-08', dlogl='4.95e-03', energy_flux='2.15e-05', photon_flux2='3.24e-08', job_status='DONE', time_completed='2021-08-31 19:51:29.597485', photon_index_error2='0.70', photon_index2='2.05', ts='2.83', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='1.05e-07', energy_flux_error2='2.39e-05', EG='1.10', time_epoch_completed='1630464689.6', return_code='0', job_id='378473', GAL2='0.93', EG2='1.10', return_code2='0', energy_flux_error='2.06e-05', photon_flux_error2='4.20e-08', ts2='2.84', photon_index='1.98' WHERE bin_id='1558' AND source_name='4FGL J0937.9-1434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 19:51:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0046>
Subject: Job 378473: <4FGL_J0937.9-1434_daily_bin1558> in cluster <slac> Done

Job <4FGL_J0937.9-1434_daily_bin1558> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Aug 31 19:40:37 2021
Job was executed on host(s) <bullet0046>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 19:40:39 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:40:39 2021
Terminated at Tue Aug 31 19:51:30 2021
Results reported at Tue Aug 31 19:51:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0937.9-1434_daily_bin1558 144.475 -14.5706 643161601 643420801 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 :                                   541.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             305.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   651 sec.
    Turnaround time :                            653 sec.

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

