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


Performing analysis on: 4FGL_J1037.4-2933_daily_bin1400
RA = 159.356, Dec = -29.5568
tmin = 602208001, tmax = 602467201
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='14748', job_status='RUN', time_executed='2021-09-02 05:32:19.566469', time_epoch_executed='1630585939.57' WHERE source_name='4FGL J1037.4-2933' and cadence='daily' and bin_id='1400'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/14748

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/14748/ft1_4FGL_J1037.4-2933_daily_bin1400.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/14748/ft2_4FGL_J1037.4-2933_daily_bin1400.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/14748/ft1_4FGL_J1037.4-2933_daily_bin1400.fits outfile=/scratch/kocevski/14748/ft1_filteredMKT_4FGL_J1037.4-2933_daily_bin1400.fits ra=159.356 dec=-29.5568 rad=12.0 tmin=602208001.0 tmax=602467201.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 5.30
user 5.04
sys 0.22

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/14748/ft1_filtered_4FGL_J1037.4-2933_daily_bin1400.fits" evtable="EVENTS" scfile=/scratch/kocevski/14748/ft2_4FGL_J1037.4-2933_daily_bin1400.fits sctable="SC_DATA" outfile=/scratch/kocevski/14748/ltcube_602208001_602467201_4FGL_J1037.4-2933_daily_bin1400.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/14748/ft2_4FGL_J1037.4-2933_daily_bin1400.fits
.....................!
real 15.46
user 15.04
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/14748/ft1_filtered_4FGL_J1037.4-2933_daily_bin1400.fits evtable="EVENTS" scfile=/scratch/kocevski/14748/ft2_4FGL_J1037.4-2933_daily_bin1400.fits sctable="SC_DATA" expcube=/scratch/kocevski/14748/ltcube_602208001_602467201_4FGL_J1037.4-2933_daily_bin1400.fits outfile=/scratch/kocevski/14748/expmap_602208001_602467201_4FGL_J1037.4-2933_daily_bin1400.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/14748/ltcube_602208001_602467201_4FGL_J1037.4-2933_daily_bin1400.fits
.....................!
real 191.15
user 186.28
sys 3.99

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/14748/ft1_filtered_4FGL_J1037.4-2933_daily_bin1400.fits scfile=/scratch/kocevski/14748/ft2_4FGL_J1037.4-2933_daily_bin1400.fits outfile=/scratch/kocevski/14748/cmap_602208001_602467201_4FGL_J1037.4-2933_daily_bin1400.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.55
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/14748/ft1_filtered_4FGL_J1037.4-2933_daily_bin1400.fits scfile=/scratch/kocevski/14748/ft2_4FGL_J1037.4-2933_daily_bin1400.fits outfile=/scratch/kocevski/14748/cmap_HighResolution_602208001_602467201_4FGL_J1037.4-2933_daily_bin1400.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.58
user 0.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/14748/ft1_filtered_4FGL_J1037.4-2933_daily_bin1400.fits evtable="EVENTS" scfile=/scratch/kocevski/14748/ft2_4FGL_J1037.4-2933_daily_bin1400.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/14748/Model_4FGL_J1037.4-2933_daily_bin1400.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/14748/ft1_filtered_4FGL_J1037.4-2933_daily_bin1400.fits.....................!
real 66.21
user 64.78
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    15.807       1.0000         .10000E-03   10000.    
     2 'norm      '    4.4456       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.2204       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    5.6087       1.0000         .10000E-03   10000.    
     8 'Prefactor '    22.337       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .85391E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    73.434       1.0000         .10000E-03   10000.    
    11 'norm      '    1.6516       1.0000         .10000E-03   10000.    
    12 'Prefactor '    18.263       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.012       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.4966       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.085       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .93614       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .93877       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6263.214     FROM MIGRAD    STATUS=CONVERGED    769 CALLS     2506 TOTAL
                     EDM=   .99E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          15.808        12.898        .10074E-03    .27085E-05
   2  norm          4.4456        2.2296        .79785E-04    .44173E-04
   3  norm          .10000E-03    2.8398        .13019E-02** at limit **
   4  Prefactor     3.2212        44.224        .11287E-02   -.74535E-05
   5  Prefactor     .10000E-03    9.6509        .18142E-02** at limit **
   6  norm          .10000E-03    13.098        .36285E-03** at limit **
   7  norm          5.6087        7.5173        .84814E-03    .67222E-04
   8  Prefactor     22.337        16.483        .84751E-04    .63046E-05
   9  Prefactor     .10000E-03    80.550        .47107E-02** at limit **
  10  Prefactor     73.420        28.070        .46851E-04    .24023E-04
  11  norm          1.6528        3.2674        .19012E-03    .19535E-03
  12  Prefactor     18.253        20.314        .93720E-04    .10093E-03
  13  Prefactor     .10000E-03    2.4333        .12012E-02** at limit **
  14  Prefactor     15.012        12.880        .10337E-03   -.21336E-04
  15  Prefactor     .10000E-03    3.5215        .14441E-02** at limit **
  16  Prefactor     7.4970        7.5745        .14648E-03   -.46569E-06
  17  Prefactor     .10000E-03    65.280        .18142E-02** at limit **
  18  Prefactor     .10000E-03    11.191        .18142E-02** at limit **
  19  Prefactor     10.085        90.249        .12618E-03   -.18020E-06
  20  Normalizat    .93611        .30439        .37457E-03    .36421E-06
  21  Prefactor     .93876        .14031        .17679E-03   -.11413E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 15.8076
  norm       = 4.44562
  norm       = 0.0001
  Prefactor  = 3.22122
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 5.60865
  Prefactor  = 22.337
  Prefactor  = 0.0001
  Prefactor  = 73.4195
  norm       = 1.6528
  Prefactor  = 18.2526
  Prefactor  = 0.0001
  Prefactor  = 15.0116
  Prefactor  = 0.0001
  Prefactor  = 7.49698
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.085
  Normalizat = 0.936108
  Prefactor  = 0.938762
 **********
 **   18 **HESSE 
 **********

 FCN=   6263.214     FROM HESSE     STATUS=OK           299 CALLS     2805 TOTAL
                     EDM=   .98E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          15.808        12.898        .40295E-05   -1.4913    
   2  norm          4.4456        2.2297        .31914E-05   -1.5286    
   3  norm          .10000E-03    2.8398        .26038E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.2212        44.181        .45149E-04   -1.5349    
   5  Prefactor     .10000E-03    9.6529        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    13.098        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          5.6087        7.5156        .33926E-04   -1.5234    
   8  Prefactor     22.337        16.482        .33901E-05   -1.4762    
   9  Prefactor     .10000E-03    81.649        .94215E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     73.420        28.065        .93703E-05   -1.3992    
  11  norm          1.6528        3.2667        .76050E-05   -1.5451    
  12  Prefactor     18.253        20.290        .37488E-05   -1.4853    
  13  Prefactor     .10000E-03    2.4335        .24024E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     15.012        12.879        .41349E-05   -1.4933    
  15  Prefactor     .10000E-03    3.5222        .28882E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     7.4970        7.5745        .58590E-05   -1.5160    
  17  Prefactor     .10000E-03    65.289        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    11.193        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     10.085        90.335        .50470E-05   -1.5073    
  20  Normalizat    .93611        .30459        .14983E-04   -.95203    
  21  Prefactor     .93876        .14041        .35357E-04   -.94799    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.81309e-11
Minuit parameter uncertainties:
  1  12.9006
  2  2.22969
  3  6.76176e-07
  4  23.8803
  5  2.74097e-06
  6  7.84003e-05
  7  7.51685
  8  16.4854
  9  9.05443e-05
  10  28.0699
  11  3.26702
  12  20.2976
  13  1.48907e-05
  14  12.8818
  15  1.46247e-06
  16  7.57551
  17  8.17562e-05
  18  1.46137e-05
  19  60.4884
  20  0.30515
  21  0.140465
Done.

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

Extracting fit parameters...

4FGL J1037.4-2933
   Spectrum: PowerLaw
285    Prefactor:  7.342e+01  2.807e+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:  9.388e-01  1.405e-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:  9.361e-01  3.051e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 19.57
Ra Dec: 159.356 -29.557
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 1.97e-07 +/- 7.53e-08
Energy Flux (Fixed Index): 6.34e-05 +/- 2.42e-05

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) = 6262.47692613
delta logL = 0.736840545569

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6262.47667275
delta logL = 0.737093926131

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6262.477     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      300 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     94.658        38.907        .41310E-04   -.23888E-03
   2  Index         1.9994        .34531        .52940E-02   -.16831E-03
   3  Normalizat    1.0084        .29736        .36301E-03    .37237E-04
   4  Prefactor     .91904        .13843        .17863E-03    .88835E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 94.6583
  Index      = 1.99944
  Normalizat = 1.0084
  Prefactor  = 0.919036
 **********
 **   18 **HESSE 
 **********

 FCN=   6262.477     FROM HESSE     STATUS=OK            23 CALLS      323 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     94.658        38.765        .82620E-05   -1.3759    
   2  Index         1.9994        .34369        .21176E-03   -.64364    
   3  Normalizat    1.0084        .29749        .14520E-04   -.92750    
   4  Prefactor     .91904        .13852        .35726E-04   -.95479    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.07082e-10
Minuit parameter uncertainties:
  1  38.7751
  2  0.344118
  3  0.297985
  4  0.138571
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/14748': 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) = 6262.47667262
delta logL = 0.737094056178

Extracting fit parameters...

4FGL J1037.4-2933
   Spectrum: PowerLaw
285    Prefactor:  9.466e+01  3.878e+01  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  1.999e+00  3.441e-01  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:  9.190e-01  1.386e-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.008e+00  2.980e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 20.97
Ra Dec: 159.356 -29.557
Photon Index (Free Index): 2.00 +/- 0.34
Photon Flux (Free Index): 1.29e-07 +/- 7.89e-08
Energy Flux (Free Index): 8.96e-05 +/- 5.07e-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/14748/cmap_HighResolution_602208001_602467201_4FGL_J1037.4-2933_daily_bin1400.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.97e-07', energy_flux2='8.96e-05', photon_flux_error='7.53e-08', dlogl='7.37e-01', energy_flux='6.34e-05', photon_flux2='1.29e-07', job_status='DONE', time_completed='2021-09-02 05:42:33.225733', photon_index_error2='0.34', photon_index2='2.00', ts='19.57', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='5.07e-05', EG='0.94', time_epoch_completed='1630586553.23', return_code='0', job_id='14748', GAL2='0.92', EG2='1.01', return_code2='0', energy_flux_error='2.42e-05', photon_flux_error2='7.89e-08', ts2='20.97', photon_index='2.41' WHERE bin_id='1400' AND source_name='4FGL J1037.4-2933' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 05:42:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0103>
Subject: Job 14748: <4FGL_J1037.4-2933_daily_bin1400> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1037.4-2933_daily_bin1400 159.356 -29.5568 602208001 602467201 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 :                                   602.45 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             340.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   661 sec.
    Turnaround time :                            664 sec.

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

