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


Performing analysis on: 4FGL_J1037.4-2933_daily_bin1484
RA = 159.356, Dec = -29.5568
tmin = 623980801, tmax = 624240001
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='14879', job_status='RUN', time_executed='2021-09-02 05:33:22.466274', time_epoch_executed='1630586002.47' WHERE source_name='4FGL J1037.4-2933' and cadence='daily' and bin_id='1484'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/14879

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/14879/ft1_4FGL_J1037.4-2933_daily_bin1484.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/14879/ft2_4FGL_J1037.4-2933_daily_bin1484.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/14879/ft1_4FGL_J1037.4-2933_daily_bin1484.fits outfile=/scratch/kocevski/14879/ft1_filteredMKT_4FGL_J1037.4-2933_daily_bin1484.fits ra=159.356 dec=-29.5568 rad=12.0 tmin=623980801.0 tmax=624240001.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 4.13
user 3.85
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/14879/ft2_4FGL_J1037.4-2933_daily_bin1484.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/14879/ft1_filteredMKT_4FGL_J1037.4-2933_daily_bin1484.fits evtable="EVENTS" outfile="/scratch/kocevski/14879/ft1_filtered_4FGL_J1037.4-2933_daily_bin1484.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.53
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/14879/ft1_filtered_4FGL_J1037.4-2933_daily_bin1484.fits" evtable="EVENTS" scfile=/scratch/kocevski/14879/ft2_4FGL_J1037.4-2933_daily_bin1484.fits sctable="SC_DATA" outfile=/scratch/kocevski/14879/ltcube_623980801_624240001_4FGL_J1037.4-2933_daily_bin1484.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/14879/ft2_4FGL_J1037.4-2933_daily_bin1484.fits
.....................!
real 15.68
user 15.31
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/14879/ft1_filtered_4FGL_J1037.4-2933_daily_bin1484.fits evtable="EVENTS" scfile=/scratch/kocevski/14879/ft2_4FGL_J1037.4-2933_daily_bin1484.fits sctable="SC_DATA" expcube=/scratch/kocevski/14879/ltcube_623980801_624240001_4FGL_J1037.4-2933_daily_bin1484.fits outfile=/scratch/kocevski/14879/expmap_623980801_624240001_4FGL_J1037.4-2933_daily_bin1484.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/14879/ltcube_623980801_624240001_4FGL_J1037.4-2933_daily_bin1484.fits
.....................!
real 192.45
user 186.88
sys 5.14

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/14879/ft1_filtered_4FGL_J1037.4-2933_daily_bin1484.fits scfile=/scratch/kocevski/14879/ft2_4FGL_J1037.4-2933_daily_bin1484.fits outfile=/scratch/kocevski/14879/cmap_623980801_624240001_4FGL_J1037.4-2933_daily_bin1484.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.70
user 0.39
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/14879/ft1_filtered_4FGL_J1037.4-2933_daily_bin1484.fits scfile=/scratch/kocevski/14879/ft2_4FGL_J1037.4-2933_daily_bin1484.fits outfile=/scratch/kocevski/14879/cmap_HighResolution_623980801_624240001_4FGL_J1037.4-2933_daily_bin1484.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.57
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/14879/ft1_filtered_4FGL_J1037.4-2933_daily_bin1484.fits evtable="EVENTS" scfile=/scratch/kocevski/14879/ft2_4FGL_J1037.4-2933_daily_bin1484.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/14879/Model_4FGL_J1037.4-2933_daily_bin1484.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/14879/ft1_filtered_4FGL_J1037.4-2933_daily_bin1484.fits.....................!
real 93.86
user 92.10
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/14879/ft1_filtered_4FGL_J1037.4-2933_daily_bin1484.fits', '/scratch/kocevski/14879/ft2_4FGL_J1037.4-2933_daily_bin1484.fits', expMap='/scratch/kocevski/14879/expmap_623980801_624240001_4FGL_J1037.4-2933_daily_bin1484.fits', expCube='/scratch/kocevski/14879/ltcube_623980801_624240001_4FGL_J1037.4-2933_daily_bin1484.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/14879/Model_4FGL_J1037.4-2933_daily_bin1484.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/14879/ft1_filtered_4FGL_J1037.4-2933_daily_bin1484.fits
Spacecraft file(s): /scratch/kocevski/14879/ft2_4FGL_J1037.4-2933_daily_bin1484.fits
Exposure map: /scratch/kocevski/14879/expmap_623980801_624240001_4FGL_J1037.4-2933_daily_bin1484.fits
Exposure cube: /scratch/kocevski/14879/ltcube_623980801_624240001_4FGL_J1037.4-2933_daily_bin1484.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/14879/Model_4FGL_J1037.4-2933_daily_bin1484.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) = 9789.11724693

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.3088       1.0000         .10000E-03   10000.    
     2 'norm      '    2.2319       1.0000         .10000E-03   10000.    
     3 'norm      '    9.5664       1.0000         .10000E-03   10000.    
     4 'Prefactor '    35.189       1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.036       1.0000         .10000E-03   10000.    
     6 'norm      '    12.768       1.0000         .10000E-03   10000.    
     7 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.3586       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10300E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.9059       1.0000         .10000E-03   10000.    
    11 'norm      '    .99653       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.7702       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.7702       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .26463E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    25.456       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.0938       1.0000         .10000E-03   10000.    
    19 'Prefactor '    62.926       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .73014       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0496       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=   9789.109     FROM MIGRAD    STATUS=CONVERGED    421 CALLS     2213 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.3083        4.8483        .23697E-05   -.17682E-02
   2  norm          2.2320        1.0977        .40620E-07   -.21354E-04
   3  norm          9.5667        7.5673        .43650E-06    .12019E-03
   4  Prefactor     35.190        21.004        .77739E-08    .13181E-04
   5  Prefactor     10.037        10.300        .87960E-07    .23491E-04
   6  norm          12.768        7.4480        .26103E-06    .13528E-03
   7  norm          .10000E-03    2.5838       -.30371E-07** at limit **
   8  Prefactor     9.3587        7.5508        .15021E-06    .40194E-04
   9  Prefactor     .10000E-03    11.794        .57161E-08** at limit **
  10  Prefactor     9.9034        13.315        .10143E-06    .12161E-03
  11  norm          .99725        2.6574       -.95084E-07   -.70628E-03
  12  Prefactor     2.7712        8.1110       -.35626E-05   -.39612E-03
  13  Prefactor     3.7701        3.3919        .10999E-05    .72132E-03
  14  Prefactor     .10000E-03    3.1345       -.16930E-06** at limit **
  15  Prefactor     .10000E-03    2.0388        .12431E-06** at limit **
  16  Prefactor     .10001E-03    3.8764        .52511E-07** at limit **
  17  Prefactor     25.465        34.260        .69874E-05    .33330E-03
  18  Prefactor     2.0907        12.596        .69568E-06   -.25959E-04
  19  Prefactor     62.919        49.059       -.37122E-05   -.19693E-03
  20  Normalizat    .73018        .18631       -.49299E-06    .75611E-04
  21  Prefactor     1.0496        .92167E-01   -.10124E-07    .19149E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.30834
  norm       = 2.23195
  norm       = 9.5667
  Prefactor  = 35.1896
  Prefactor  = 10.0365
  norm       = 12.768
  norm       = 0.0001
  Prefactor  = 9.35873
  Prefactor  = 0.0001
  Prefactor  = 9.90338
  norm       = 0.997248
  Prefactor  = 2.77118
  Prefactor  = 3.77012
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00010001
  Prefactor  = 25.4647
  Prefactor  = 2.09065
  Prefactor  = 62.9193
  Normalizat = 0.730179
  Prefactor  = 1.04959
 **********
 **   18 **HESSE 
 **********

 FCN=   9789.109     FROM HESSE     STATUS=OK           323 CALLS     2536 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.3083        6.7226        .11128E-02   -1.5344    
   2  norm          2.2320        1.0927        .69837E-04   -1.5409    
   3  norm          9.5667        7.5638        .12957E-03   -1.5089    
   4  Prefactor     35.190        20.999        .67556E-04   -1.4521    
   5  Prefactor     10.037        10.295        .12648E-03   -1.5074    
   6  norm          12.768        7.4373        .11210E-03   -1.4993    
   7  norm          .10000E-03    2.6173        .15522E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.3587        7.5535        .13100E-03   -1.5096    
   9  Prefactor     .10000E-03    12.011        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.9034        12.987        .12732E-03   -1.5078    
  11  norm          .99725        2.5791        .22538E-03   -1.5508    
  12  Prefactor     2.7712        8.1949        .24452E-03   -1.5375    
  13  Prefactor     3.7701        3.3775        .15517E-03   -1.5320    
  14  Prefactor     .10000E-03    3.1574        .17105E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.0777        .13787E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    47.910        .37128E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     25.465        34.583        .79397E-04   -1.4698    
  18  Prefactor     2.0907        12.437        .28526E-03   -1.5419    
  19  Prefactor     62.919        49.291        .25293E-03   -1.4120    
  20  Normalizat    .73018        .21137        .37313E-03   -1.0271    
  21  Prefactor     1.0496        .10604        .16318E-03   -.91094    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.15179e-09
Minuit parameter uncertainties:
  1  6.72413
  2  1.0927
  3  7.5646
  4  21.0034
  5  10.2968
  6  7.43781
  7  5.45596e-06
  8  7.55425
  9  9.1323e-05
  10  12.991
  11  2.57936
  12  8.19823
  13  3.3777
  14  1.75436e-05
  15  3.04806e-06
  16  0.00139421
  17  34.6101
  18  10.2013
  19  49.3229
  20  0.211608
  21  0.106062
Done.

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

Extracting fit parameters...

4FGL J1037.4-2933
   Spectrum: PowerLaw
285    Prefactor:  9.903e+00  1.299e+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.050e+00  1.061e-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:  7.302e-01  2.116e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.03
Ra Dec: 159.356 -29.557
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 2.66e-08 +/- 3.48e-08
Energy Flux (Fixed Index): 8.55e-06 +/- 1.12e-05

TS (Fixed Index): 1.03
Ra Dec: 159.356 -29.557
Photon Flux Upper Limit: 9.72e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.52e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/14879/likelihoodResults_623980801_624240001_4FGL_J1037.4-2933_daily_bin1484.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) = 9789.08572142
delta logL = 0.0236341830059

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9789.07406069
delta logL = 0.0352949149819

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.0449       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6414       1.0000          .0000       10.000    
     3 'Normalizat'    .72248       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0519       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=   9789.074     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      225 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.0346        247.21        .35340E-02    .14380E-03
   2  Index         2.6421        6.3172        .16661        .15293E-03
   3  Normalizat    .72266        .62081E-01    .84653E-01    .56612E-04
   4  Prefactor     1.0518        .28126E-01    .39797E-01    .35651E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.03461
  Index      = 2.64207
  Normalizat = 0.722655
  Prefactor  = 1.05184
 **********
 **   18 **HESSE 
 **********

 FCN=   9789.074     FROM HESSE     STATUS=OK            33 CALLS      258 TOTAL
                     EDM=   .41E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.0346        13.997        .14136E-03   -1.5141    
   2  Index         2.6421        .99996        .95830E-02   -.49109    
   3  Normalizat    .72266        .20609        .37489E-03   -1.0301    
   4  Prefactor     1.0518        .10569        .16301E-03   -.91021    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.09902e-11
Minuit parameter uncertainties:
  1  14.0032
  2  1.00873
  3  0.206312
  4  0.105714
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/14879': 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) = 9789.07405968
delta logL = 0.0352959238644

Extracting fit parameters...

4FGL J1037.4-2933
   Spectrum: PowerLaw
285    Prefactor:  8.035e+00  1.400e+01  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.642e+00  1.009e+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.052e+00  1.057e-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:  7.227e-01  2.063e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.11
Ra Dec: 159.356 -29.557
Photon Index (Free Index): 2.64 +/- 1.01
Photon Flux (Free Index): 3.25e-08 +/- 3.98e-08
Energy Flux (Free Index): 8.22e-06 +/- 9.55e-06

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/14879/cmap_HighResolution_623980801_624240001_4FGL_J1037.4-2933_daily_bin1484.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.52e-03', comment='SUCCESS', photon_flux='2.66e-08', energy_flux2='8.22e-06', photon_flux_error='3.48e-08', dlogl='3.53e-02', energy_flux='8.55e-06', photon_flux2='3.25e-08', job_status='DONE', time_completed='2021-09-02 05:47:35.514016', photon_index_error2='1.01', photon_index2='2.64', ts='1.03', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='9.72e-08', energy_flux_error2='9.55e-06', EG='0.73', time_epoch_completed='1630586855.51', return_code='0', job_id='14879', GAL2='1.05', EG2='0.72', return_code2='0', energy_flux_error='1.12e-05', photon_flux_error2='3.98e-08', ts2='1.11', photon_index='2.41' WHERE bin_id='1484' AND source_name='4FGL J1037.4-2933' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 05:47:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0057>
Subject: Job 14879: <4FGL_J1037.4-2933_daily_bin1484> in cluster <slac> Done

Job <4FGL_J1037.4-2933_daily_bin1484> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep  2 05:31:42 2021
Job was executed on host(s) <bullet0057>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 05:31:44 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:44 2021
Terminated at Thu Sep  2 05:47:36 2021
Results reported at Thu Sep  2 05:47:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1037.4-2933_daily_bin1484 159.356 -29.5568 623980801 624240001 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 :                                   819.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             275.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   952 sec.
    Turnaround time :                            954 sec.

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

