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


Performing analysis on: 4FGL_J0937.9-1434_daily_bin1195
RA = 144.475, Dec = -14.5706
tmin = 549072001, tmax = 549331201
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='376896', job_status='RUN', time_executed='2021-08-31 19:37:10.078985', time_epoch_executed='1630463830.08' WHERE source_name='4FGL J0937.9-1434' and cadence='daily' and bin_id='1195'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/376896

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/376896/ft1_4FGL_J0937.9-1434_daily_bin1195.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/376896/ft2_4FGL_J0937.9-1434_daily_bin1195.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/376896/ft1_4FGL_J0937.9-1434_daily_bin1195.fits outfile=/scratch/kocevski/376896/ft1_filteredMKT_4FGL_J0937.9-1434_daily_bin1195.fits ra=144.475 dec=-14.5706 rad=12.0 tmin=549072001.0 tmax=549331201.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 2.93
user 2.73
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/376896/ft1_filtered_4FGL_J0937.9-1434_daily_bin1195.fits" evtable="EVENTS" scfile=/scratch/kocevski/376896/ft2_4FGL_J0937.9-1434_daily_bin1195.fits sctable="SC_DATA" outfile=/scratch/kocevski/376896/ltcube_549072001_549331201_4FGL_J0937.9-1434_daily_bin1195.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/376896/ft2_4FGL_J0937.9-1434_daily_bin1195.fits
.....................!
real 14.02
user 11.82
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/376896/ft1_filtered_4FGL_J0937.9-1434_daily_bin1195.fits evtable="EVENTS" scfile=/scratch/kocevski/376896/ft2_4FGL_J0937.9-1434_daily_bin1195.fits sctable="SC_DATA" expcube=/scratch/kocevski/376896/ltcube_549072001_549331201_4FGL_J0937.9-1434_daily_bin1195.fits outfile=/scratch/kocevski/376896/expmap_549072001_549331201_4FGL_J0937.9-1434_daily_bin1195.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/376896/ltcube_549072001_549331201_4FGL_J0937.9-1434_daily_bin1195.fits
.....................!
real 191.96
user 186.08
sys 5.38

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/376896/ft1_filtered_4FGL_J0937.9-1434_daily_bin1195.fits scfile=/scratch/kocevski/376896/ft2_4FGL_J0937.9-1434_daily_bin1195.fits outfile=/scratch/kocevski/376896/cmap_549072001_549331201_4FGL_J0937.9-1434_daily_bin1195.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.80
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/376896/ft1_filtered_4FGL_J0937.9-1434_daily_bin1195.fits scfile=/scratch/kocevski/376896/ft2_4FGL_J0937.9-1434_daily_bin1195.fits outfile=/scratch/kocevski/376896/cmap_HighResolution_549072001_549331201_4FGL_J0937.9-1434_daily_bin1195.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.71
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/376896/ft1_filtered_4FGL_J0937.9-1434_daily_bin1195.fits evtable="EVENTS" scfile=/scratch/kocevski/376896/ft2_4FGL_J0937.9-1434_daily_bin1195.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/376896/Model_4FGL_J0937.9-1434_daily_bin1195.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/376896/ft1_filtered_4FGL_J0937.9-1434_daily_bin1195.fits.....................!
real 79.37
user 77.08
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    6.9403       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .28440E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .32049       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    39.023       1.0000         .10000E-03   10000.    
     8 'Prefactor '    34.880       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.095       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .68126E-01   1.0000         .10000E-03   10000.    
    14 'norm      '    1.8224       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.7862       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .99210       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .99577       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=   7685.049     FROM MIGRAD    STATUS=CONVERGED    412 CALLS     1914 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.0105       -.10055E-06** at limit **
   2  norm          6.9402        3.4432       -.14299E-06   -.28898E-04
   3  Prefactor     .10000E-03    4.2585       -.48733E-06** at limit **
   4  Prefactor     .10000E-03    9.1478        .29130E-06** at limit **
   5  Prefactor     .31152        40.492        .25470E-04   -.43985E-04
   6  Prefactor     .10000E-03    5.4396       -.62023E-06** at limit **
   7  Prefactor     39.020        39.269        .13236E-05   -.33363E-04
   8  Prefactor     34.873        28.058        .18260E-05    .81224E-04
   9  Prefactor     .10000E-03    10.548       -.98772E-06** at limit **
  10  Prefactor     14.095        14.379        .28606E-06   -.28991E-04
  11  Prefactor     .10000E-03    12.768        .22210E-07** at limit **
  12  norm          .10000E-03    1.3495       -.60967E-09** at limit **
  13  norm          .76280E-01    1.8784        .16660E-05   -.12401E-04
  14  norm          1.8221        .81154       -.50991E-06   -.21498E-02
  15  norm          .10000E-03    .49900       -.25183E-07** at limit **
  16  norm          .10000E-03    2.5447       -.65955E-08** at limit **
  17  norm          2.7861        1.3776        .40891E-08   -.18392E-03
  18  Normalizat    .99221        .17583        .22195E-06    .30665E-03
  19  Prefactor     .99575        .10710       -.52979E-06    .27129E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 6.94024
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.311519
  Prefactor  = 0.0001
  Prefactor  = 39.0201
  Prefactor  = 34.8729
  Prefactor  = 0.0001
  Prefactor  = 14.0947
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.0762804
  norm       = 1.8221
  norm       = 0.0001
  norm       = 0.0001
  norm       = 2.78606
  Normalizat = 0.992209
  Prefactor  = 0.995749
 **********
 **   18 **HESSE 
 **********

 FCN=   7685.049     FROM HESSE     STATUS=OK           278 CALLS     2192 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.0231        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          6.9402        3.4285        .10963E-03   -1.5181    
   3  Prefactor     .10000E-03    5.1689        .48610E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.2247        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .31152        40.898        .40142E-02   -1.5596    
   6  Prefactor     .10000E-03    5.4647        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     39.020        39.236        .64163E-04   -1.4458    
   8  Prefactor     34.873        28.116        .67854E-04   -1.4526    
   9  Prefactor     .10000E-03    10.576        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     14.095        14.375        .10669E-03   -1.4957    
  11  Prefactor     .10000E-03    12.892        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.3524        .99442E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .76280E-01    8.8683        .22451E-02   -1.5653    
  14  norm          1.8221        4.6596        .14880E-02   -1.5438    
  15  norm          .10000E-03    .50209        .60455E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.5481        .13656E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.7861        1.3751        .69510E-04   -1.5374    
  18  Normalizat    .99221        .20559        .29425E-03   -.93292    
  19  Prefactor     .99575        .12645        .18255E-03   -.92871    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.36006e-07
Minuit parameter uncertainties:
  1  1.36239e-05
  2  3.42862
  3  0.000211934
  4  5.01513e-05
  5  7.14261
  6  8.92713e-05
  7  39.2616
  8  28.1271
  9  3.28553e-05
  10  14.3786
  11  0.000237881
  12  4.86918e-06
  13  1.64414
  14  4.66055
  15  7.77663e-08
  16  1.28899e-06
  17  1.37516
  18  0.205759
  19  0.126489
Done.

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

Extracting fit parameters...

4FGL J0937.9-1434
   Spectrum: PowerLaw
257    Prefactor:  1.409e+01  1.438e+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.957e-01  1.265e-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:  9.922e-01  2.058e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.55
Ra Dec: 144.475 -14.571
Photon Index (Fixed Index): 1.98 +/- 0.00
Photon Flux (Fixed Index): 1.26e-08 +/- 1.28e-08
Energy Flux (Fixed Index): 9.15e-06 +/- 9.33e-06

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

Saving results to:
/scratch/kocevski/376896/likelihoodResults_549072001_549331201_4FGL_J0937.9-1434_daily_bin1195.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) = 7684.39314276
delta logL = 0.656279441438

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7684.39117388
delta logL = 0.658248330005

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.369       1.0000         .10000E-03   10000.    
     2 'Index     '    1.2957       1.0000          .0000       10.000    
     3 'Normalizat'    .99801       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99411       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=   7684.391     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      318 TOTAL
                     EDM=   .65E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.370        26.317        .78012E-04   -.45905E-04
   2  Index         1.2957        .55097        .12103E-01    .58606E-05
   3  Normalizat    .99806        .19980        .29344E-03   -.77874E-05
   4  Prefactor     .99407        .12500        .18267E-03   -.15310E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.3698
  Index      = 1.29573
  Normalizat = 0.998058
  Prefactor  = 0.994071
 **********
 **   18 **HESSE 
 **********

 FCN=   7684.391     FROM HESSE     STATUS=OK            25 CALLS      343 TOTAL
                     EDM=   .57E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.370        26.351        .31205E-05   -1.4680    
   2  Index         1.2957        .55197        .48411E-03   -.83434    
   3  Normalizat    .99806        .19998        .11737E-04   -.93096    
   4  Prefactor     .99407        .12511        .73067E-05   -.92927    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.74255e-12
Minuit parameter uncertainties:
  1  26.3623
  2  0.554488
  3  0.200126
  4  0.125147
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/376896': 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) = 7684.39117383
delta logL = 0.65824837148

Extracting fit parameters...

4FGL J0937.9-1434
   Spectrum: PowerLaw
257    Prefactor:  2.637e+01  2.636e+01  1.000e-04  1.000e+04 ( 1.000e-14)
258        Index:  1.296e+00  5.545e-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.941e-01  1.251e-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:  9.981e-01  2.001e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.87
Ra Dec: 144.475 -14.571
Photon Index (Free Index): 1.30 +/- 0.55
Photon Flux (Free Index): 6.54e-09 +/- 7.79e-09
Energy Flux (Free Index): 4.06e-05 +/- 6.08e-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/376896/cmap_HighResolution_549072001_549331201_4FGL_J0937.9-1434_daily_bin1195.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.00e-03', comment='SUCCESS', photon_flux='1.26e-08', energy_flux2='4.06e-05', photon_flux_error='1.28e-08', dlogl='6.58e-01', energy_flux='9.15e-06', photon_flux2='6.54e-09', job_status='DONE', time_completed='2021-08-31 19:47:51.600783', photon_index_error2='0.55', photon_index2='1.30', ts='3.55', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='5.35e-08', energy_flux_error2='6.08e-05', EG='0.99', time_epoch_completed='1630464471.6', return_code='0', job_id='376896', GAL2='0.99', EG2='1.00', return_code2='0', energy_flux_error='9.33e-06', photon_flux_error2='7.79e-09', ts2='4.87', photon_index='1.98' WHERE bin_id='1195' AND source_name='4FGL J0937.9-1434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 19:47:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0064>
Subject: Job 376896: <4FGL_J0937.9-1434_daily_bin1195> in cluster <slac> Done

Job <4FGL_J0937.9-1434_daily_bin1195> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Aug 31 19:36:05 2021
Job was executed on host(s) <bullet0064>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 19:36:06 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:36:06 2021
Terminated at Tue Aug 31 19:47:52 2021
Results reported at Tue Aug 31 19:47:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0937.9-1434_daily_bin1195 144.475 -14.5706 549072001 549331201 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 :                                   633.19 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             343.05 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   705 sec.
    Turnaround time :                            707 sec.

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

