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


Performing analysis on: 4FGL_J1037.4-2933_daily_bin1362
RA = 159.356, Dec = -29.5568
tmin = 592358401, tmax = 592617601
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='14688', job_status='RUN', time_executed='2021-09-02 05:31:46.822711', time_epoch_executed='1630585906.82' WHERE source_name='4FGL J1037.4-2933' and cadence='daily' and bin_id='1362'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/14688

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/14688/ft1_4FGL_J1037.4-2933_daily_bin1362.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/14688/ft2_4FGL_J1037.4-2933_daily_bin1362.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/14688/ft1_4FGL_J1037.4-2933_daily_bin1362.fits outfile=/scratch/kocevski/14688/ft1_filteredMKT_4FGL_J1037.4-2933_daily_bin1362.fits ra=159.356 dec=-29.5568 rad=12.0 tmin=592358401.0 tmax=592617601.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.10
user 2.82
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/14688/ft2_4FGL_J1037.4-2933_daily_bin1362.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/14688/ft1_filteredMKT_4FGL_J1037.4-2933_daily_bin1362.fits evtable="EVENTS" outfile="/scratch/kocevski/14688/ft1_filtered_4FGL_J1037.4-2933_daily_bin1362.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 4.69
user 0.27
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/14688/ft1_filtered_4FGL_J1037.4-2933_daily_bin1362.fits" evtable="EVENTS" scfile=/scratch/kocevski/14688/ft2_4FGL_J1037.4-2933_daily_bin1362.fits sctable="SC_DATA" outfile=/scratch/kocevski/14688/ltcube_592358401_592617601_4FGL_J1037.4-2933_daily_bin1362.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/14688/ft2_4FGL_J1037.4-2933_daily_bin1362.fits
.....................!
real 14.84
user 14.43
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/14688/ft1_filtered_4FGL_J1037.4-2933_daily_bin1362.fits evtable="EVENTS" scfile=/scratch/kocevski/14688/ft2_4FGL_J1037.4-2933_daily_bin1362.fits sctable="SC_DATA" expcube=/scratch/kocevski/14688/ltcube_592358401_592617601_4FGL_J1037.4-2933_daily_bin1362.fits outfile=/scratch/kocevski/14688/expmap_592358401_592617601_4FGL_J1037.4-2933_daily_bin1362.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/14688/ltcube_592358401_592617601_4FGL_J1037.4-2933_daily_bin1362.fits
.....................!
real 164.39
user 159.69
sys 4.29

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/14688/ft1_filtered_4FGL_J1037.4-2933_daily_bin1362.fits scfile=/scratch/kocevski/14688/ft2_4FGL_J1037.4-2933_daily_bin1362.fits outfile=/scratch/kocevski/14688/cmap_592358401_592617601_4FGL_J1037.4-2933_daily_bin1362.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.33
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/14688/ft1_filtered_4FGL_J1037.4-2933_daily_bin1362.fits scfile=/scratch/kocevski/14688/ft2_4FGL_J1037.4-2933_daily_bin1362.fits outfile=/scratch/kocevski/14688/cmap_HighResolution_592358401_592617601_4FGL_J1037.4-2933_daily_bin1362.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.56
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/14688/ft1_filtered_4FGL_J1037.4-2933_daily_bin1362.fits evtable="EVENTS" scfile=/scratch/kocevski/14688/ft2_4FGL_J1037.4-2933_daily_bin1362.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/14688/Model_4FGL_J1037.4-2933_daily_bin1362.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/14688/ft1_filtered_4FGL_J1037.4-2933_daily_bin1362.fits.....................!
real 70.59
user 69.24
sys 1.09

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.8227       1.0000         .10000E-03   10000.    
     2 'norm      '    2.2996       1.0000         .10000E-03   10000.    
     3 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    19.652       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.7520       1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.014       1.0000         .10000E-03   10000.    
    10 'Prefactor '    30.966       1.0000         .10000E-03   10000.    
    11 'norm      '    .10215E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    26.061       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.2038       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .89989E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.6846       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.9677       1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.675       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.6157       1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.5673       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .79901       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0526       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=   8573.200     FROM MIGRAD    STATUS=CONVERGED    428 CALLS     1893 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.8226        5.7998       -.63923E-08    .41306E-04
   2  norm          2.2994        1.2604        .63611E-07   -.10081E-03
   3  norm          .10000E-03    7.2167       -.13152E-06** at limit **
   4  Prefactor     19.649        15.534       -.80624E-06   -.21451E-03
   5  Prefactor     .10000E-03    3.0926        .60291E-07** at limit **
   6  norm          .10000E-03    3.4409       -.61397E-07** at limit **
   7  norm          .10000E-03    4.2647        .21333E-06** at limit **
   8  Prefactor     8.7512        9.5273       -.70865E-08   -.46476E-04
   9  Prefactor     12.014        14.310        .63478E-06   -.27012E-03
  10  Prefactor     30.975        15.614        .34814E-05    .10670E-02
  11  norm          .10000E-03    2.2670        .85755E-07** at limit **
  12  Prefactor     26.060        16.913       -.80792E-06   -.14149E-03
  13  Prefactor     2.2056        3.8924       -.60971E-06   -.52803E-03
  14  Prefactor     .10001E-03    4.7977        .67579E-06** at limit **
  15  Prefactor     7.6836        5.9583        .14603E-05   -.16456E-02
  16  Prefactor     5.9679        6.2758        .10002E-05   -.83264E-03
  17  Prefactor     12.675        15.615       -.17069E-06   -.14759E-04
  18  Prefactor     5.6153        7.4838        .13255E-05   -.79791E-03
  19  Prefactor     7.5660        45.414       -.14346E-05   -.30170E-04
  20  Normalizat    .79916        .21437       -.18553E-05   -.72462E-04
  21  Prefactor     1.0526        .10196        .29404E-07   -.17682E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.82264
  norm       = 2.2994
  norm       = 0.0001
  Prefactor  = 19.6492
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 8.75118
  Prefactor  = 12.014
  Prefactor  = 30.9746
  norm       = 0.0001
  Prefactor  = 26.0601
  Prefactor  = 2.20558
  Prefactor  = 0.000100009
  Prefactor  = 7.68363
  Prefactor  = 5.96788
  Prefactor  = 12.6749
  Prefactor  = 5.61535
  Prefactor  = 7.56599
  Normalizat = 0.799162
  Prefactor  = 1.05256
 **********
 **   18 **HESSE 
 **********

 FCN=   8573.200     FROM HESSE     STATUS=OK           321 CALLS     2214 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.8226        5.8047        .16644E-03   -1.5225    
   2  norm          2.2994        1.2571        .73834E-04   -1.5405    
   3  norm          .10000E-03    7.3641        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     19.649        15.619        .90350E-04   -1.4821    
   5  Prefactor     .10000E-03    3.0944        .15903E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    3.4676        .16772E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    4.3165        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     8.7512        9.5302        .13549E-03   -1.5116    
   9  Prefactor     12.014        14.404        .57786E-03   -1.5015    
  10  Prefactor     30.975        16.857        .72002E-04   -1.4594    
  11  norm          .10000E-03    2.3156        .27165E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     26.060        16.903        .78471E-04   -1.4687    
  13  Prefactor     2.2056        3.8996        .22179E-03   -1.5411    
  14  Prefactor     .10001E-03    14.956        .38316E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.6836        6.5153        .72329E-03   -1.5154    
  16  Prefactor     5.9679        6.4729        .82186E-03   -1.5219    
  17  Prefactor     12.675        15.614        .11251E-03   -1.4996    
  18  Prefactor     5.6153        7.7772        .84761E-03   -1.5234    
  19  Prefactor     7.5660        45.499        .14578E-03   -1.5158    
  20  Normalizat    .79916        .24664        .37689E-03   -1.0010    
  21  Prefactor     1.0526        .11825        .16797E-03   -.90997    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.05263e-09
Minuit parameter uncertainties:
  1  5.80525
  2  1.25713
  3  4.35822e-06
  4  15.6224
  5  3.82589e-06
  6  5.68054e-06
  7  1.32978e-06
  8  9.53188
  9  14.4082
  10  16.8595
  11  6.29064e-05
  12  16.9059
  13  3.9
  14  0.000734542
  15  6.51592
  16  6.47368
  17  15.6193
  18  7.7786
  19  37.1497
  20  0.246986
  21  0.118275
Done.

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

Extracting fit parameters...

4FGL J1037.4-2933
   Spectrum: PowerLaw
285    Prefactor:  3.097e+01  1.686e+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.053e+00  1.183e-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.992e-01  2.470e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.66
Ra Dec: 159.356 -29.557
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 8.31e-08 +/- 4.52e-08
Energy Flux (Fixed Index): 2.67e-05 +/- 1.46e-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) = 8573.13286822
delta logL = 0.0670071686

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8573.11359347
delta logL = 0.0862819179929

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    37.587       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2321       1.0000          .0000       10.000    
     3 'Normalizat'    .81217       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0481       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=   8573.114     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      272 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     37.589        25.124        .65373E-04   -.28103E-03
   2  Index         2.2320        .43889        .57506E-02   -.18577E-03
   3  Normalizat    .81218        .23378        .37416E-03    .15460E-03
   4  Prefactor     1.0481        .11766        .16828E-03    .40844E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 37.5892
  Index      = 2.23201
  Normalizat = 0.812175
  Prefactor  = 1.04811
 **********
 **   18 **HESSE 
 **********

 FCN=   8573.114     FROM HESSE     STATUS=OK            25 CALLS      297 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     37.589        24.318        .13075E-04   -1.4481    
   2  Index         2.2320        .42454        .23002E-03   -.58668    
   3  Normalizat    .81218        .23378        .14966E-04   -.99619    
   4  Prefactor     1.0481        .11769        .33655E-04   -.91143    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.83371e-10
Minuit parameter uncertainties:
  1  24.3241
  2  0.42528
  3  0.234071
  4  0.117719
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/14688': 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) = 8573.11359346
delta logL = 0.0862819263602

Extracting fit parameters...

4FGL J1037.4-2933
   Spectrum: PowerLaw
285    Prefactor:  3.759e+01  2.432e+01  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.232e+00  4.253e-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.048e+00  1.177e-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:  8.122e-01  2.341e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.83
Ra Dec: 159.356 -29.557
Photon Index (Free Index): 2.23 +/- 0.43
Photon Flux (Free Index): 7.40e-08 +/- 4.58e-08
Energy Flux (Free Index): 3.14e-05 +/- 2.12e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/14688/cmap_HighResolution_592358401_592617601_4FGL_J1037.4-2933_daily_bin1362.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.31e-08', energy_flux2='3.14e-05', photon_flux_error='4.52e-08', dlogl='8.63e-02', energy_flux='2.67e-05', photon_flux2='7.40e-08', job_status='DONE', time_completed='2021-09-02 05:41:05.205083', photon_index_error2='0.43', photon_index2='2.23', ts='6.66', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', energy_flux_error2='2.12e-05', EG='0.80', time_epoch_completed='1630586465.21', return_code='0', job_id='14688', GAL2='1.05', EG2='0.81', return_code2='0', energy_flux_error='1.46e-05', photon_flux_error2='4.58e-08', ts2='6.83', photon_index='2.41' WHERE bin_id='1362' AND source_name='4FGL J1037.4-2933' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 05:41:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0026>
Subject: Job 14688: <4FGL_J1037.4-2933_daily_bin1362> in cluster <slac> Done

Job <4FGL_J1037.4-2933_daily_bin1362> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep  2 05:31:25 2021
Job was executed on host(s) <bullet0026>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 05:31:27 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:27 2021
Terminated at Thu Sep  2 05:41:06 2021
Results reported at Thu Sep  2 05:41:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1037.4-2933_daily_bin1362 159.356 -29.5568 592358401 592617601 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 :                                   546.26 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             366.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   578 sec.
    Turnaround time :                            581 sec.

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

