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


Performing analysis on: 4FGL_J1037.4-2933_daily_bin1443
RA = 159.356, Dec = -29.5568
tmin = 613353601, tmax = 613612801
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='14815', job_status='RUN', time_executed='2021-09-02 05:32:06.008862', time_epoch_executed='1630585926.01' WHERE source_name='4FGL J1037.4-2933' and cadence='daily' and bin_id='1443'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/14815

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/14815/ft1_4FGL_J1037.4-2933_daily_bin1443.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/14815/ft2_4FGL_J1037.4-2933_daily_bin1443.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/14815/ft1_4FGL_J1037.4-2933_daily_bin1443.fits outfile=/scratch/kocevski/14815/ft1_filteredMKT_4FGL_J1037.4-2933_daily_bin1443.fits ra=159.356 dec=-29.5568 rad=12.0 tmin=613353601.0 tmax=613612801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 2.82
user 2.58
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/14815/ft2_4FGL_J1037.4-2933_daily_bin1443.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/14815/ft1_filteredMKT_4FGL_J1037.4-2933_daily_bin1443.fits evtable="EVENTS" outfile="/scratch/kocevski/14815/ft1_filtered_4FGL_J1037.4-2933_daily_bin1443.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.52
user 0.35
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/14815/ft1_filtered_4FGL_J1037.4-2933_daily_bin1443.fits" evtable="EVENTS" scfile=/scratch/kocevski/14815/ft2_4FGL_J1037.4-2933_daily_bin1443.fits sctable="SC_DATA" outfile=/scratch/kocevski/14815/ltcube_613353601_613612801_4FGL_J1037.4-2933_daily_bin1443.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/14815/ft2_4FGL_J1037.4-2933_daily_bin1443.fits
.....................!
real 18.82
user 18.41
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/14815/ft1_filtered_4FGL_J1037.4-2933_daily_bin1443.fits evtable="EVENTS" scfile=/scratch/kocevski/14815/ft2_4FGL_J1037.4-2933_daily_bin1443.fits sctable="SC_DATA" expcube=/scratch/kocevski/14815/ltcube_613353601_613612801_4FGL_J1037.4-2933_daily_bin1443.fits outfile=/scratch/kocevski/14815/expmap_613353601_613612801_4FGL_J1037.4-2933_daily_bin1443.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/14815/ltcube_613353601_613612801_4FGL_J1037.4-2933_daily_bin1443.fits
.....................!
real 192.76
user 187.78
sys 4.07

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/14815/ft1_filtered_4FGL_J1037.4-2933_daily_bin1443.fits scfile=/scratch/kocevski/14815/ft2_4FGL_J1037.4-2933_daily_bin1443.fits outfile=/scratch/kocevski/14815/cmap_613353601_613612801_4FGL_J1037.4-2933_daily_bin1443.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.59
user 0.42
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/14815/ft1_filtered_4FGL_J1037.4-2933_daily_bin1443.fits scfile=/scratch/kocevski/14815/ft2_4FGL_J1037.4-2933_daily_bin1443.fits outfile=/scratch/kocevski/14815/cmap_HighResolution_613353601_613612801_4FGL_J1037.4-2933_daily_bin1443.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.41
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/14815/ft1_filtered_4FGL_J1037.4-2933_daily_bin1443.fits evtable="EVENTS" scfile=/scratch/kocevski/14815/ft2_4FGL_J1037.4-2933_daily_bin1443.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/14815/Model_4FGL_J1037.4-2933_daily_bin1443.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/14815/ft1_filtered_4FGL_J1037.4-2933_daily_bin1443.fits....................!
real 117.62
user 115.95
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.1464       1.0000         .10000E-03   10000.    
     2 'norm      '    1.9715       1.0000         .10000E-03   10000.    
     3 'norm      '    18.594       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.2974       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11361E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.1507       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .21686E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    17.677       1.0000         .10000E-03   10000.    
    11 'norm      '    2.6388       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .13643       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.3787       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.8074       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.0362       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10727E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .15426E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.412       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .18571E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .62365       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1976       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=   12225.88     FROM MIGRAD    STATUS=CONVERGED    484 CALLS     1974 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.1444        5.3083       -.35679E-06   -.25092E-03
   2  norm          1.9718        1.1372        .43521E-07   -.44389E-04
   3  norm          18.603        9.2987        .50668E-06   -.19336E-03
   4  Prefactor     8.4148        15.613       -.33849E-05   -.48174E-03
   5  Prefactor     .10000E-03    15.533       -.45964E-06** at limit **
   6  norm          .10000E-03    4.0278       -.11301E-06** at limit **
   7  norm          .10000E-03    6.0549        .14081E-06** at limit **
   8  Prefactor     6.1513        8.5406        .27403E-05   -.56573E-03
   9  Prefactor     .10020E-03    7.9374       -.91233E-06** at limit **
  10  Prefactor     17.613        14.567       -.11536E-05   -.21691E-03
  11  norm          2.6469        3.6976        .60340E-06    .22797E-03
  12  Prefactor     .11229        9.0571       -.14294E-05    .50902E-03
  13  Prefactor     3.3828        3.3002        .24452E-06    .88204E-04
  14  Prefactor     6.8070        6.5594       -.28577E-06   -.27913E-03
  15  Prefactor     1.0373        2.9033        .13090E-05   -.29277E-03
  16  Prefactor     .10000E-03    5.0371        .11372E-06** at limit **
  17  Prefactor     .10001E-03    42.544       -.60899E-05** at limit **
  18  Prefactor     11.443        8.1879       -.69042E-06   -.37163E-03
  19  Prefactor     .10000E-03    28.508        .18257E-05** at limit **
  20  Normalizat    .62356        .19137       -.53285E-06    .22051E-03
  21  Prefactor     1.1975        .92297E-01   -.20359E-07    .45991E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.14444
  norm       = 1.97178
  norm       = 18.6032
  Prefactor  = 8.41481
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 6.15133
  Prefactor  = 0.000100202
  Prefactor  = 17.6135
  norm       = 2.64688
  Prefactor  = 0.112288
  Prefactor  = 3.3828
  Prefactor  = 6.80702
  Prefactor  = 1.0373
  Prefactor  = 0.0001
  Prefactor  = 0.000100011
  Prefactor  = 11.4428
  Prefactor  = 0.000100001
  Normalizat = 0.623564
  Prefactor  = 1.19754
 **********
 **   18 **HESSE 
 **********

 FCN=   12225.88     FROM HESSE     STATUS=OK           333 CALLS     2307 TOTAL
                     EDM=   .79E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.1444        5.3196        .19795E-03   -1.5301    
   2  norm          1.9718        1.1322        .85244E-04   -1.5427    
   3  norm          18.603        9.3375        .46441E-03   -1.4845    
   4  Prefactor     8.4148        16.486        .13918E-03   -1.5128    
   5  Prefactor     .10000E-03    15.793        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    4.0604        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    6.2643        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.1513        9.0957        .80938E-03   -1.5212    
   9  Prefactor     .10020E-03    47.351        .53092E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     17.613        14.458        .95261E-04   -1.4868    
  11  norm          2.6469        3.5738        .19658E-03   -1.5383    
  12  Prefactor     .11229        10.011        .80982E-01   -1.5641    
  13  Prefactor     3.3828        3.2528        .17224E-03   -1.5340    
  14  Prefactor     6.8070        6.5738        .15378E-03   -1.5186    
  15  Prefactor     1.0373        2.9536        .30698E-03   -1.5504    
  16  Prefactor     .10000E-03    5.1194        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10001E-03    44.292        .20449E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     11.443        8.2151        .11859E-03   -1.5031    
  19  Prefactor     .10000E-03    28.734        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .62356        .20990        .41988E-03   -1.0699    
  21  Prefactor     1.1975        .10236        .16165E-03   -.86407    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.94345e-09
Minuit parameter uncertainties:
  1  5.32018
  2  1.13222
  3  9.33826
  4  16.4946
  5  1.4286e-05
  6  6.95616e-06
  7  2.43252e-05
  8  9.09774
  9  0.00619536
  10  14.4613
  11  3.57414
  12  2.11987
  13  3.25301
  14  6.57453
  15  2.95405
  16  7.55831e-09
  17  0.0014077
  18  8.21593
  19  0.000405362
  20  0.210164
  21  0.102379
Done.

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

Extracting fit parameters...

4FGL J1037.4-2933
   Spectrum: PowerLaw
285    Prefactor:  1.761e+01  1.446e+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.198e+00  1.024e-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:  6.236e-01  2.102e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.43
Ra Dec: 159.356 -29.557
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 4.73e-08 +/- 3.88e-08
Energy Flux (Fixed Index): 1.52e-05 +/- 1.25e-05

TS (Fixed Index): 3.43
Ra Dec: 159.356 -29.557
Photon Flux Upper Limit: 1.16e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.96e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/14815/likelihoodResults_613353601_613612801_4FGL_J1037.4-2933_daily_bin1443.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) = 12224.2306803
delta logL = 1.65250622003

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 12224.1914758
delta logL = 1.6917106852

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.6521       1.0000         .10000E-03   10000.    
     2 'Index     '    3.6684       1.0000          .0000       10.000    
     3 'Normalizat'    .52851       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2291       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   12224.19     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      309 TOTAL
                     EDM=   .90E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.6385        33.986        .44219E-03   -.81650E-03
   2  Index         3.6703        2.8622        .39710E-02   -.10511E-03
   3  Normalizat    .52851        .19462        .45324E-03   -.67023E-04
   4  Prefactor     1.2291        .97658E-01    .15970E-03   -.12415E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.6385
  Index      = 3.67029
  Normalizat = 0.528512
  Prefactor  = 1.22907
 **********
 **   18 **HESSE 
 **********

 FCN=   12224.19     FROM HESSE     STATUS=OK            25 CALLS      334 TOTAL
                     EDM=   .50E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.6385        5.9574        .17687E-04   -1.5326    
   2  Index         3.6703        .81703        .15884E-03   -.26918    
   3  Normalizat    .52851        .20280        .18129E-04   -1.1111    
   4  Prefactor     1.2291        .10334        .63880E-05   -.85441    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.9819e-11
Minuit parameter uncertainties:
  1  5.95839
  2  0.820996
  3  0.203086
  4  0.10336
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/14815': 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) = 12224.1914726
delta logL = 1.69171385675

Extracting fit parameters...

4FGL J1037.4-2933
   Spectrum: PowerLaw
285    Prefactor:  3.639e+00  5.958e+00  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  3.670e+00  8.210e-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:  1.229e+00  1.034e-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:  5.285e-01  2.031e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.27
Ra Dec: 159.356 -29.557
Photon Index (Free Index): 3.67 +/- 0.82
Photon Flux (Free Index): 1.14e-07 +/- 5.37e-08
Energy Flux (Free Index): 1.82e-05 +/- 8.25e-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/14815/cmap_HighResolution_613353601_613612801_4FGL_J1037.4-2933_daily_bin1443.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.96e-03', comment='SUCCESS', photon_flux='4.73e-08', energy_flux2='1.82e-05', photon_flux_error='3.88e-08', dlogl='1.69e+00', energy_flux='1.52e-05', photon_flux2='1.14e-07', job_status='DONE', time_completed='2021-09-02 05:47:54.219974', photon_index_error2='0.82', photon_index2='3.67', ts='3.43', fit_tolerance='1e-08', GAL='1.20', photon_index_error='0.00', photon_flux_upper_limit='1.16e-07', energy_flux_error2='8.25e-06', EG='0.62', time_epoch_completed='1630586874.22', return_code='0', job_id='14815', GAL2='1.23', EG2='0.53', return_code2='0', energy_flux_error='1.25e-05', photon_flux_error2='5.37e-08', ts2='7.27', photon_index='2.41' WHERE bin_id='1443' AND source_name='4FGL J1037.4-2933' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 05:47:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0024>
Subject: Job 14815: <4FGL_J1037.4-2933_daily_bin1443> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1037.4-2933_daily_bin1443 159.356 -29.5568 613353601 613612801 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 :                                   937.27 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             338.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   975 sec.
    Turnaround time :                            979 sec.

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

