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


Performing analysis on: 4FGL_J0937.9-1434_daily_bin1248
RA = 144.475, Dec = -14.5706
tmin = 562809601, tmax = 563068801
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='376983', job_status='RUN', time_executed='2021-08-31 19:37:12.638173', time_epoch_executed='1630463832.64' WHERE source_name='4FGL J0937.9-1434' and cadence='daily' and bin_id='1248'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/376983

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/376983/ft1_4FGL_J0937.9-1434_daily_bin1248.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/376983/ft2_4FGL_J0937.9-1434_daily_bin1248.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/376983/ft1_4FGL_J0937.9-1434_daily_bin1248.fits outfile=/scratch/kocevski/376983/ft1_filteredMKT_4FGL_J0937.9-1434_daily_bin1248.fits ra=144.475 dec=-14.5706 rad=12.0 tmin=562809601.0 tmax=563068801.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.44
user 3.22
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/376983/ft2_4FGL_J0937.9-1434_daily_bin1248.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/376983/ft1_filteredMKT_4FGL_J0937.9-1434_daily_bin1248.fits evtable="EVENTS" outfile="/scratch/kocevski/376983/ft1_filtered_4FGL_J0937.9-1434_daily_bin1248.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.49
user 0.31
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/376983/ft1_filtered_4FGL_J0937.9-1434_daily_bin1248.fits" evtable="EVENTS" scfile=/scratch/kocevski/376983/ft2_4FGL_J0937.9-1434_daily_bin1248.fits sctable="SC_DATA" outfile=/scratch/kocevski/376983/ltcube_562809601_563068801_4FGL_J0937.9-1434_daily_bin1248.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/376983/ft2_4FGL_J0937.9-1434_daily_bin1248.fits
.....................!
real 12.48
user 12.10
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/376983/ft1_filtered_4FGL_J0937.9-1434_daily_bin1248.fits evtable="EVENTS" scfile=/scratch/kocevski/376983/ft2_4FGL_J0937.9-1434_daily_bin1248.fits sctable="SC_DATA" expcube=/scratch/kocevski/376983/ltcube_562809601_563068801_4FGL_J0937.9-1434_daily_bin1248.fits outfile=/scratch/kocevski/376983/expmap_562809601_563068801_4FGL_J0937.9-1434_daily_bin1248.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/376983/ltcube_562809601_563068801_4FGL_J0937.9-1434_daily_bin1248.fits
.....................!
real 191.09
user 184.80
sys 5.60

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/376983/ft1_filtered_4FGL_J0937.9-1434_daily_bin1248.fits scfile=/scratch/kocevski/376983/ft2_4FGL_J0937.9-1434_daily_bin1248.fits outfile=/scratch/kocevski/376983/cmap_562809601_563068801_4FGL_J0937.9-1434_daily_bin1248.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.34
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/376983/ft1_filtered_4FGL_J0937.9-1434_daily_bin1248.fits scfile=/scratch/kocevski/376983/ft2_4FGL_J0937.9-1434_daily_bin1248.fits outfile=/scratch/kocevski/376983/cmap_HighResolution_562809601_563068801_4FGL_J0937.9-1434_daily_bin1248.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.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/376983/ft1_filtered_4FGL_J0937.9-1434_daily_bin1248.fits evtable="EVENTS" scfile=/scratch/kocevski/376983/ft2_4FGL_J0937.9-1434_daily_bin1248.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/376983/Model_4FGL_J0937.9-1434_daily_bin1248.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/376983/ft1_filtered_4FGL_J0937.9-1434_daily_bin1248.fits.....................!
real 79.76
user 78.34
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.2762       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.9784       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.1120       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12060E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    70.854       1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.846       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .50113E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    17.731       1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.5566       1.0000         .10000E-03   10000.    
    12 'norm      '    15.929       1.0000         .10000E-03   10000.    
    13 'norm      '    5.8368       1.0000         .10000E-03   10000.    
    14 'norm      '    .92857E-02   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.3917       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .83590       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1006       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=   7548.388     FROM MIGRAD    STATUS=CONVERGED    438 CALLS     1970 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.0749        .42193E-07** at limit **
   2  norm          2.2762        1.7244       -.27661E-07    .49006E-04
   3  Prefactor     1.9760        3.8867        .19027E-06   -.92677E-03
   4  Prefactor     .10000E-03    5.2076       -.12016E-06** at limit **
   5  Prefactor     2.1094        3.9429       -.18682E-07   -.85940E-03
   6  Prefactor     .10002E-03    14.493       -.36625E-05** at limit **
   7  Prefactor     70.828        45.893       -.87289E-05    .19785E-03
   8  Prefactor     13.787        30.492        .10148E-04    .14336E-03
   9  Prefactor     .10000E-03    25.551       -.10330E-05** at limit **
  10  Prefactor     17.724        20.198       -.28968E-05    .92997E-04
  11  Prefactor     8.5546        15.203       -.17091E-05    .88291E-04
  12  norm          15.936        8.0760        .27819E-06    .10266E-03
  13  norm          5.8361        3.2832       -.86262E-07    .16102E-03
  14  norm          .10000E-03    4.1724       -.83630E-07** at limit **
  15  norm          .10000E-03    .69265       -.23471E-07** at limit **
  16  norm          .10000E-03    3.5256        .64494E-07** at limit **
  17  norm          2.3920        1.5736       -.78761E-07    .35845E-04
  18  Normalizat    .83572        .19504        .11231E-05    .39004E-03
  19  Prefactor     1.1007        .11702        .43488E-06    .41345E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 2.27618
  Prefactor  = 1.97603
  Prefactor  = 0.0001
  Prefactor  = 2.1094
  Prefactor  = 0.000100024
  Prefactor  = 70.8281
  Prefactor  = 13.787
  Prefactor  = 0.000100001
  Prefactor  = 17.7238
  Prefactor  = 8.55464
  norm       = 15.936
  norm       = 5.83613
  norm       = 0.000100002
  norm       = 0.0001
  norm       = 0.0001
  norm       = 2.39202
  Normalizat = 0.835724
  Prefactor  = 1.10074
 **********
 **   18 **HESSE 
 **********

 FCN=   7548.388     FROM HESSE     STATUS=OK           284 CALLS     2254 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.1449        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.2762        1.7283        .96798E-04   -1.5406    
   3  Prefactor     1.9760        6.3870        .14735E-02   -1.5427    
   4  Prefactor     .10000E-03    5.2274        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.1094        4.8347        .14050E-02   -1.5417    
   6  Prefactor     .10002E-03    118.49        .60322E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     70.828        45.549        .47691E-04   -1.4023    
   8  Prefactor     13.787        30.267        .10764E-03   -1.4965    
   9  Prefactor     .10000E-03    27.539        .11925       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     17.724        20.149        .95115E-04   -1.4866    
  11  Prefactor     8.5546        15.198        .13704E-03   -1.5123    
  12  norm          15.936        8.0771        .10035E-03   -1.4909    
  13  norm          5.8361        3.2834        .11439E-03   -1.5225    
  14  norm          .10000E-03    54.997        .34602E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .70460        .70583E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.5554        .15931E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.3920        1.5701        .84273E-04   -1.5399    
  18  Normalizat    .83572        .22114        .32958E-03   -.98757    
  19  Prefactor     1.1007        .13498        .18310E-03   -.89443    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.41349e-09
Minuit parameter uncertainties:
  1  7.35758e-06
  2  1.72834
  3  6.38923
  4  3.69535e-06
  5  4.83559
  6  0.00338962
  7  45.5714
  8  30.3005
  9  0.000300132
  10  20.157
  11  15.2047
  12  8.07764
  13  3.28348
  14  0.000696045
  15  1.62974e-06
  16  3.28698e-06
  17  1.57008
  18  0.221377
  19  0.135025
Done.

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

Extracting fit parameters...

4FGL J0937.9-1434
   Spectrum: PowerLaw
257    Prefactor:  1.772e+01  2.016e+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:  1.101e+00  1.350e-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:  8.357e-01  2.214e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.13
Ra Dec: 144.475 -14.571
Photon Index (Fixed Index): 1.98 +/- 0.00
Photon Flux (Fixed Index): 1.58e-08 +/- 1.80e-08
Energy Flux (Fixed Index): 1.15e-05 +/- 1.31e-05

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

Saving results to:
/scratch/kocevski/376983/likelihoodResults_562809601_563068801_4FGL_J0937.9-1434_daily_bin1248.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) = 7548.19720034
delta logL = 0.191056351859

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7548.19695922
delta logL = 0.191297466601

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.942       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5102       1.0000          .0000       10.000    
     3 'Normalizat'    .84190       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0996       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.

 FCN=   7548.197     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      270 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.970        892.36        .20466E-02   -.38060E-04
   2  Index         1.5115        5.3124        .29693        .37128E-04
   3  Normalizat    .84166        .98373E-01    .74239E-01    .17890E-03
   4  Prefactor     1.0997        .46348E-01    .37602E-01    .39255E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.9696
  Index      = 1.51146
  Normalizat = 0.841657
  Prefactor  = 1.09971
 **********
 **   18 **HESSE 
 **********

 FCN=   7548.197     FROM HESSE     STATUS=OK            31 CALLS      301 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.970        26.864        .40932E-03   -1.4728    
   2  Index         1.5115        .73300        .10681E-01   -.77219    
   3  Normalizat    .84166        .20822        .32856E-03   -.98542    
   4  Prefactor     1.0997        .13190        .18319E-03   -.89476    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05546e-10
Minuit parameter uncertainties:
  1  26.8779
  2  0.738211
  3  0.208418
  4  0.131944
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/376983': 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) = 7548.19695661
delta logL = 0.19130007423

Extracting fit parameters...

4FGL J0937.9-1434
   Spectrum: PowerLaw
257    Prefactor:  2.397e+01  2.688e+01  1.000e-04  1.000e+04 ( 1.000e-14)
258        Index:  1.511e+00  7.382e-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:  1.100e+00  1.319e-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:  8.417e-01  2.084e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.51
Ra Dec: 144.475 -14.571
Photon Index (Free Index): 1.51 +/- 0.74
Photon Flux (Free Index): 8.02e-09 +/- 1.29e-08
Energy Flux (Free Index): 2.44e-05 +/- 4.23e-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/376983/cmap_HighResolution_562809601_563068801_4FGL_J0937.9-1434_daily_bin1248.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.29e-03', comment='SUCCESS', photon_flux='1.58e-08', energy_flux2='2.44e-05', photon_flux_error='1.80e-08', dlogl='1.91e-01', energy_flux='1.15e-05', photon_flux2='8.02e-09', job_status='DONE', time_completed='2021-08-31 19:47:54.951885', photon_index_error2='0.74', photon_index2='1.51', ts='2.13', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', photon_flux_upper_limit='7.06e-08', energy_flux_error2='4.23e-05', EG='0.84', time_epoch_completed='1630464474.95', return_code='0', job_id='376983', GAL2='1.10', EG2='0.84', return_code2='0', energy_flux_error='1.31e-05', photon_flux_error2='1.29e-08', ts2='2.51', photon_index='1.98' WHERE bin_id='1248' AND source_name='4FGL J0937.9-1434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 19:47:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0153>
Subject: Job 376983: <4FGL_J0937.9-1434_daily_bin1248> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0937.9-1434_daily_bin1248 144.475 -14.5706 562809601 563068801 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 :                                   636.32 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             334.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   701 sec.
    Turnaround time :                            702 sec.

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

