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


Performing analysis on: 4FGL_J1037.4-2933_daily_bin1560
RA = 159.356, Dec = -29.5568
tmin = 643680001, tmax = 643939201
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='15000', job_status='RUN', time_executed='2021-09-02 05:32:30.092507', time_epoch_executed='1630585950.09' WHERE source_name='4FGL J1037.4-2933' and cadence='daily' and bin_id='1560'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/15000

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/15000/ft1_4FGL_J1037.4-2933_daily_bin1560.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/15000/ft2_4FGL_J1037.4-2933_daily_bin1560.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/15000/ft1_4FGL_J1037.4-2933_daily_bin1560.fits outfile=/scratch/kocevski/15000/ft1_filteredMKT_4FGL_J1037.4-2933_daily_bin1560.fits ra=159.356 dec=-29.5568 rad=12.0 tmin=643680001.0 tmax=643939201.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.50
user 3.27
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/15000/ft2_4FGL_J1037.4-2933_daily_bin1560.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/15000/ft2_4FGL_J1037.4-2933_daily_bin1560.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/15000/ft1_filteredMKT_4FGL_J1037.4-2933_daily_bin1560.fits evtable="EVENTS" outfile="/scratch/kocevski/15000/ft1_filtered_4FGL_J1037.4-2933_daily_bin1560.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.36
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/15000/ft1_filtered_4FGL_J1037.4-2933_daily_bin1560.fits" evtable="EVENTS" scfile=/scratch/kocevski/15000/ft2_4FGL_J1037.4-2933_daily_bin1560.fits sctable="SC_DATA" outfile=/scratch/kocevski/15000/ltcube_643680001_643939201_4FGL_J1037.4-2933_daily_bin1560.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/15000/ft2_4FGL_J1037.4-2933_daily_bin1560.fits
.....................!
real 13.09
user 12.74
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/15000/ft1_filtered_4FGL_J1037.4-2933_daily_bin1560.fits evtable="EVENTS" scfile=/scratch/kocevski/15000/ft2_4FGL_J1037.4-2933_daily_bin1560.fits sctable="SC_DATA" expcube=/scratch/kocevski/15000/ltcube_643680001_643939201_4FGL_J1037.4-2933_daily_bin1560.fits outfile=/scratch/kocevski/15000/expmap_643680001_643939201_4FGL_J1037.4-2933_daily_bin1560.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/15000/ltcube_643680001_643939201_4FGL_J1037.4-2933_daily_bin1560.fits
.....................!
real 190.50
user 185.20
sys 4.91

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 173 point sources and 0 extended sources

Setting source of interest to:
4FGL J1037.4-2933 @ 159.356 -29.5568

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/15000/ft1_filtered_4FGL_J1037.4-2933_daily_bin1560.fits scfile=/scratch/kocevski/15000/ft2_4FGL_J1037.4-2933_daily_bin1560.fits outfile=/scratch/kocevski/15000/cmap_643680001_643939201_4FGL_J1037.4-2933_daily_bin1560.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=159.356 yref=-29.5568 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/15000/ft1_filtered_4FGL_J1037.4-2933_daily_bin1560.fits scfile=/scratch/kocevski/15000/ft2_4FGL_J1037.4-2933_daily_bin1560.fits outfile=/scratch/kocevski/15000/cmap_HighResolution_643680001_643939201_4FGL_J1037.4-2933_daily_bin1560.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=159.356 yref=-29.5568 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/15000/ft1_filtered_4FGL_J1037.4-2933_daily_bin1560.fits evtable="EVENTS" scfile=/scratch/kocevski/15000/ft2_4FGL_J1037.4-2933_daily_bin1560.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/15000/Model_4FGL_J1037.4-2933_daily_bin1560.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/15000/ft1_filtered_4FGL_J1037.4-2933_daily_bin1560.fits.....................!
real 68.05
user 65.56
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/15000/ft1_filtered_4FGL_J1037.4-2933_daily_bin1560.fits', '/scratch/kocevski/15000/ft2_4FGL_J1037.4-2933_daily_bin1560.fits', expMap='/scratch/kocevski/15000/expmap_643680001_643939201_4FGL_J1037.4-2933_daily_bin1560.fits', expCube='/scratch/kocevski/15000/ltcube_643680001_643939201_4FGL_J1037.4-2933_daily_bin1560.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/15000/Model_4FGL_J1037.4-2933_daily_bin1560.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1037.4-2933'

4FGL J1037.4-2933
   Spectrum: PowerLaw
285    Prefactor:  4.842e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.414e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
287        Scale:  1.170e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/15000/ft1_filtered_4FGL_J1037.4-2933_daily_bin1560.fits
Spacecraft file(s): /scratch/kocevski/15000/ft2_4FGL_J1037.4-2933_daily_bin1560.fits
Exposure map: /scratch/kocevski/15000/expmap_643680001_643939201_4FGL_J1037.4-2933_daily_bin1560.fits
Exposure cube: /scratch/kocevski/15000/ltcube_643680001_643939201_4FGL_J1037.4-2933_daily_bin1560.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/15000/Model_4FGL_J1037.4-2933_daily_bin1560.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) = 6295.36213374

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.4923       1.0000         .10000E-03   10000.    
     3 'norm      '    7.7246       1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.656       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10178E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .18251E-01   1.0000         .10000E-03   10000.    
     7 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    16.350       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.1411       1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.900       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.7793       1.0000         .10000E-03   10000.    
    14 'Prefactor '    26.176       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    35.699       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.2691       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0232       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5640E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6295.358     FROM MIGRAD    STATUS=CONVERGED    464 CALLS     2231 TOTAL
                     EDM=   .59E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    17.668       -.53474E-06** at limit **
   2  norm          3.4930        2.1203       -.37679E-07   -.12339E-03
   3  norm          7.7220        8.9579        .36191E-05    .17201E-03
   4  Prefactor     14.617        31.461        .31678E-04    .33252E-04
   5  Prefactor     .10000E-03    22.289       -.52539E-06** at limit **
   6  norm          .10218E-03    12.678       -.73804E-05** at limit **
   7  norm          .10000E-03    4.3032        .59061E-07** at limit **
   8  Prefactor     16.351        12.116        .30621E-06    .21619E-03
   9  Prefactor     2.1500        42.256       -.12889E-04   -.78835E-05
  10  Prefactor     14.901        26.802        .21742E-05    .21042E-03
  11  norm          .10000E-03    2.3285        .16180E-06** at limit **
  12  Prefactor     .10000E-03    30.540        .10550E-05** at limit **
  13  Prefactor     6.7805        6.4643        .20367E-06    .18928E-03
  14  Prefactor     26.179        17.633       -.29623E-06    .17714E-03
  15  Prefactor     .10000E-03    2.2649        .13730E-06** at limit **
  16  Prefactor     .10000E-03    4.7554        .74908E-08** at limit **
  17  Prefactor     35.699        50.983       -.22025E-05    .23309E-04
  18  Prefactor     .10000E-03    5.9269       -.13265E-06** at limit **
  19  Prefactor     .10000E-03    54.717       -.19086E-05** at limit **
  20  Normalizat    1.2686        .29467       -.20270E-05    .59162E-03
  21  Prefactor     1.0234        .13031       -.18111E-06    .94087E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 3.49303
  norm       = 7.72204
  Prefactor  = 14.6166
  Prefactor  = 0.000100001
  norm       = 0.000102175
  norm       = 0.0001
  Prefactor  = 16.3515
  Prefactor  = 2.15003
  Prefactor  = 14.9013
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 6.78049
  Prefactor  = 26.1793
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 35.6994
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.26863
  Prefactor  = 1.02336
 **********
 **   18 **HESSE 
 **********

 FCN=   6295.358     FROM HESSE     STATUS=OK           323 CALLS     2554 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    18.305        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.4930        2.1255        .85858E-04   -1.5334    
   3  norm          7.7220        8.9817        .14428E-03   -1.5152    
   4  Prefactor     14.617        31.851        .10462E-03   -1.4943    
   5  Prefactor     .10000E-03    22.414        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10218E-03    17.342        .74205E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    4.3128        .16066E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     16.351        12.124        .49525E-03   -1.4899    
   9  Prefactor     2.1500        42.674        .28167E-03   -1.5415    
  10  Prefactor     14.901        26.730        .10376E-03   -1.4936    
  11  norm          .10000E-03    2.3333        .11797E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    30.912        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.7805        6.4285        .15410E-03   -1.5187    
  14  Prefactor     26.179        17.655        .78299E-04   -1.4684    
  15  Prefactor     .10000E-03    2.2721        .11660E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.7687        .16897E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     35.699        51.033        .67074E-04   -1.4512    
  18  Prefactor     .10000E-03    5.9331        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    54.741        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.2686        .35330        .36644E-03   -.84508    
  21  Prefactor     1.0234        .15647        .18963E-03   -.91955    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.22822e-09
Minuit parameter uncertainties:
  1  1.28111e-05
  2  2.12555
  3  8.98323
  4  31.8883
  5  0.000260818
  6  0.0122877
  7  2.48235e-06
  8  12.1263
  9  19.1726
  10  26.7516
  11  2.22909e-06
  12  0.000397576
  13  6.42915
  14  17.6586
  15  4.99124e-06
  16  6.16415e-06
  17  51.0958
  18  1.2224e-05
  19  0.000113793
  20  0.353969
  21  0.156543
Done.

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

Extracting fit parameters...

4FGL J1037.4-2933
   Spectrum: PowerLaw
285    Prefactor:  1.490e+01  2.675e+01  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.414e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
287        Scale:  1.170e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
561    Prefactor:  1.023e+00  1.565e-01  0.000e+00  1.000e+01 ( 1.000e+00)
562        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
563        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
560   Normalization:  1.269e+00  3.540e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.43
Ra Dec: 159.356 -29.557
Photon Flux Upper Limit: 1.84e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.42e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/15000/likelihoodResults_643680001_643939201_4FGL_J1037.4-2933_daily_bin1560.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) = 6293.63109316
delta logL = 1.72739187487

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6293.62088229
delta logL = 1.73760275003

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1862       1.0000         .10000E-03   10000.    
     2 'Index     '    3.9769       1.0000          .0000       10.000    
     3 'Normalizat'    1.0989       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0737       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5640E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6293.621     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      256 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1808        30.531        .56754E-02    .31419E-03
   2  Index         3.9777        2.4616        .94806E-01    .16229E-03
   3  Normalizat    1.0988        .97918E-01    .87783E-01    .10010E-04
   4  Prefactor     1.0738        .45071E-01    .38683E-01   -.31936E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.18082
  Index      = 3.97775
  Normalizat = 1.09881
  Prefactor  = 1.07375
 **********
 **   18 **HESSE 
 **********

 FCN=   6293.621     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      287 TOTAL
                     EDM=   .32E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1808        50.806        .77202E-04   -1.5351    
   2  Index         3.9777        3.4518        .36733E-02   -.20590    
   3  Normalizat    1.0988        .33752        .38875E-03   -.89790    
   4  Prefactor     1.0738        .15740        .18538E-03   -.90310    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.1718e-07
Minuit parameter uncertainties:
  1  25.45
  2  3.83124
  3  0.338186
  4  0.15747
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/15000': 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): 102
logL (Free Index) = 6293.62088187
delta logL = 1.73760316799

Extracting fit parameters...

4FGL J1037.4-2933
   Spectrum: PowerLaw
285    Prefactor:  3.181e+00  2.545e+01  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  3.978e+00  3.831e+00  0.000e+00  1.000e+01 (-1.000e+00)
287        Scale:  1.170e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
561    Prefactor:  1.074e+00  1.575e-01  0.000e+00  1.000e+01 ( 1.000e+00)
562        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
563        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
560   Normalization:  1.099e+00  3.382e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.26
Ra Dec: 159.356 -29.557
Photon Index (Free Index): 3.98 +/- 3.83
Photon Flux (Free Index): 1.90e-07 +/- 1.16e-07
Energy Flux (Free Index): 2.86e-05 +/- 2.20e-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/15000/cmap_HighResolution_643680001_643939201_4FGL_J1037.4-2933_daily_bin1560.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.42e-02', comment='SUCCESS', energy_flux2='2.86e-05', dlogl='1.74e+00', photon_flux2='1.90e-07', job_status='DONE', time_completed='2021-09-02 05:43:01.299425', photon_index_error2='3.83', photon_index2='3.98', ts='0.43', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='1.84e-07', energy_flux_error2='2.20e-05', EG='1.27', time_epoch_completed='1630586581.3', return_code='0', job_id='15000', GAL2='1.07', EG2='1.10', return_code2='102', photon_flux_error2='1.16e-07', ts2='4.26', photon_index='2.41' WHERE bin_id='1560' AND source_name='4FGL J1037.4-2933' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 05:43:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0192>
Subject: Job 15000: <4FGL_J1037.4-2933_daily_bin1560> in cluster <slac> Done

Job <4FGL_J1037.4-2933_daily_bin1560> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep  2 05:31:52 2021
Job was executed on host(s) <bullet0192>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 05:31:54 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  2 05:31:54 2021
Terminated at Thu Sep  2 05:43:02 2021
Results reported at Thu Sep  2 05:43:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1037.4-2933_daily_bin1560 159.356 -29.5568 643680001 643939201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1037.4-2933 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   626.32 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             301.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   667 sec.
    Turnaround time :                            670 sec.

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

