/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 2 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 = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1037.7-2822_daily_bin554
RA = 159.427, Dec = -28.3816
tmin = 382924801, tmax = 383184001
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='27419', job_status='RUN', time_executed='2021-09-02 06:13:03.100974', time_epoch_executed='1630588383.1' WHERE source_name='4FGL J1037.7-2822' and cadence='daily' and bin_id='554'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/27419

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/27419/ft1_4FGL_J1037.7-2822_daily_bin554.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/27419/ft2_4FGL_J1037.7-2822_daily_bin554.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/27419/ft1_4FGL_J1037.7-2822_daily_bin554.fits outfile=/scratch/kocevski/27419/ft1_filteredMKT_4FGL_J1037.7-2822_daily_bin554.fits ra=159.427 dec=-28.3816 rad=12.0 tmin=382924801.0 tmax=383184001.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.49
user 4.26
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/27419/ft2_4FGL_J1037.7-2822_daily_bin554.fits

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/27419/ft1_filtered_4FGL_J1037.7-2822_daily_bin554.fits" evtable="EVENTS" scfile=/scratch/kocevski/27419/ft2_4FGL_J1037.7-2822_daily_bin554.fits sctable="SC_DATA" outfile=/scratch/kocevski/27419/ltcube_382924801_383184001_4FGL_J1037.7-2822_daily_bin554.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/27419/ft2_4FGL_J1037.7-2822_daily_bin554.fits
.....................!
real 12.78
user 11.53
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/27419/ft1_filtered_4FGL_J1037.7-2822_daily_bin554.fits evtable="EVENTS" scfile=/scratch/kocevski/27419/ft2_4FGL_J1037.7-2822_daily_bin554.fits sctable="SC_DATA" expcube=/scratch/kocevski/27419/ltcube_382924801_383184001_4FGL_J1037.7-2822_daily_bin554.fits outfile=/scratch/kocevski/27419/expmap_382924801_383184001_4FGL_J1037.7-2822_daily_bin554.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/27419/ltcube_382924801_383184001_4FGL_J1037.7-2822_daily_bin554.fits
.....................!
real 191.10
user 186.52
sys 4.17

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

Setting source of interest to:
4FGL J1037.7-2822 @ 159.427 -28.3816

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/27419/ft1_filtered_4FGL_J1037.7-2822_daily_bin554.fits scfile=/scratch/kocevski/27419/ft2_4FGL_J1037.7-2822_daily_bin554.fits outfile=/scratch/kocevski/27419/cmap_382924801_383184001_4FGL_J1037.7-2822_daily_bin554.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.427 yref=-28.3816 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.52
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/27419/ft1_filtered_4FGL_J1037.7-2822_daily_bin554.fits scfile=/scratch/kocevski/27419/ft2_4FGL_J1037.7-2822_daily_bin554.fits outfile=/scratch/kocevski/27419/cmap_HighResolution_382924801_383184001_4FGL_J1037.7-2822_daily_bin554.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.427 yref=-28.3816 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.54
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/27419/ft1_filtered_4FGL_J1037.7-2822_daily_bin554.fits evtable="EVENTS" scfile=/scratch/kocevski/27419/ft2_4FGL_J1037.7-2822_daily_bin554.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/27419/Model_4FGL_J1037.7-2822_daily_bin554.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/27419/ft1_filtered_4FGL_J1037.7-2822_daily_bin554.fits.....................!
real 56.11
user 54.83
sys 1.11

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/27419/ft1_filtered_4FGL_J1037.7-2822_daily_bin554.fits', '/scratch/kocevski/27419/ft2_4FGL_J1037.7-2822_daily_bin554.fits', expMap='/scratch/kocevski/27419/expmap_382924801_383184001_4FGL_J1037.7-2822_daily_bin554.fits', expCube='/scratch/kocevski/27419/ltcube_382924801_383184001_4FGL_J1037.7-2822_daily_bin554.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/27419/Model_4FGL_J1037.7-2822_daily_bin554.xml', optimizer='MINUIT')

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

4FGL J1037.7-2822
   Spectrum: LogParabola
292         norm:  3.073e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
293        alpha:  2.404e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
294         beta:  9.457e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
295           Eb:  8.993e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/27419/ft1_filtered_4FGL_J1037.7-2822_daily_bin554.fits
Spacecraft file(s): /scratch/kocevski/27419/ft2_4FGL_J1037.7-2822_daily_bin554.fits
Exposure map: /scratch/kocevski/27419/expmap_382924801_383184001_4FGL_J1037.7-2822_daily_bin554.fits
Exposure cube: /scratch/kocevski/27419/ltcube_382924801_383184001_4FGL_J1037.7-2822_daily_bin554.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/27419/Model_4FGL_J1037.7-2822_daily_bin554.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) = 5111.41808088

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .44566E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.2384       1.0000         .10000E-03   10000.    
     5 'Prefactor '    18.122       1.0000         .10000E-03   10000.    
     6 'norm      '    9.2472       1.0000         .10000E-03   10000.    
     7 'norm      '    .10324E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10270E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10125E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .44193       1.0000         .10000E-03   10000.    
    12 'Prefactor '    26.466       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.838       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.3725       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .53259       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2378       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5680E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5111.402     FROM MIGRAD    STATUS=CONVERGED    439 CALLS     2085 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.2788        .61681E-07** at limit **
   2  norm          .10000E-03    .63378       -.74779E-07** at limit **
   3  norm          .10074E-03    15.060        .48193E-05** at limit **
   4  Prefactor     5.1374        59.244       -.94916E-04   -.75413E-04
   5  Prefactor     18.132        19.731        .50052E-05   -.72227E-04
   6  norm          9.2477        11.309       -.58702E-05   -.25575E-03
   7  norm          .10000E-03    7.8961        .73727E-05** at limit **
   8  Prefactor     .10000E-03    10.697        .27939E-05** at limit **
   9  Prefactor     .10000E-03    9.5927       -.61413E-05** at limit **
  10  Prefactor     .10000E-03    6.4721        .13321E-05** at limit **
  11  norm          .44067        2.8152       -.83932E-06   -.36942E-03
  12  Prefactor     26.463        22.554       -.90805E-06    .99582E-04
  13  Prefactor     .10000E-03    2.5720        .53355E-07** at limit **
  14  Prefactor     10.831        14.364       -.26692E-05   -.54996E-04
  15  Prefactor     .10000E-03    4.5317       -.25612E-06** at limit **
  16  Prefactor     .10000E-03    7.1604       -.51637E-05** at limit **
  17  Prefactor     .10000E-03    79.848       -.71219E-06** at limit **
  18  Prefactor     4.3552        19.079       -.83773E-05   -.77295E-04
  19  Normalizat    .53266        .31326        .16216E-04   -.45100E-04
  20  Prefactor     1.2378        .15438       -.64426E-06   -.40573E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.00010074
  Prefactor  = 5.13738
  Prefactor  = 18.1323
  norm       = 9.24772
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.440673
  Prefactor  = 26.4626
  Prefactor  = 0.0001
  Prefactor  = 10.8308
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 4.35519
  Normalizat = 0.532659
  Prefactor  = 1.23782
 **********
 **   18 **HESSE 
 **********

 FCN=   5111.402     FROM HESSE     STATUS=OK           293 CALLS     2378 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.2800        .14444E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .64664        .55543E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10074E-03    154.58        .51762E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.1374        59.206        .17562E-03   -1.5255    
   5  Prefactor     18.132        19.627        .94084E-04   -1.4856    
   6  norm          9.2477        11.258        .13179E-03   -1.5100    
   7  norm          .10000E-03    8.0298        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    11.048        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.6053        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.4786        .17762E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .44067        5.1146        .22843E-02   -1.5575    
  12  Prefactor     26.463        22.436        .77870E-04   -1.4679    
  13  Prefactor     .10000E-03    2.5896        .11179E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     10.831        14.273        .12170E-03   -1.5050    
  15  Prefactor     .10000E-03    4.6278        .14854E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.2333        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    80.028        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.3552        18.900        .19261E-03   -1.5291    
  19  Normalizat    .53266        .33267        .46448E-03   -1.1092    
  20  Prefactor     1.2378        .16729        .16200E-03   -.85175    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.98503e-09
Minuit parameter uncertainties:
  1  2.57907e-06
  2  3.82643e-06
  3  0.0214461
  4  34.9238
  5  19.6338
  6  11.2606
  7  8.80874e-05
  8  0.00012653
  9  1.22684e-05
  10  1.13333e-05
  11  3.00256
  12  22.4434
  13  3.53689e-06
  14  14.2772
  15  4.92117e-05
  16  2.44743e-05
  17  0.000445968
  18  18.1549
  19  0.333918
  20  0.167362
Done.

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

Extracting fit parameters...

4FGL J1037.7-2822
   Spectrum: LogParabola
292         norm:  4.407e-01  3.003e+00  1.000e-04  1.000e+04 ( 1.000e-12)
293        alpha:  2.404e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
294         beta:  9.457e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
295           Eb:  8.993e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
565    Prefactor:  1.238e+00  1.674e-01  0.000e+00  1.000e+01 ( 1.000e+00)
566        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
567        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
564   Normalization:  5.327e-01  3.339e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.02
Ra Dec: 159.427 -28.382
Photon Flux Upper Limit: 1.03e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.45e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/27419/likelihoodResults_382924801_383184001_4FGL_J1037.7-2822_daily_bin554.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) = 5110.8568315
delta logL = 0.545311939561

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5110.85641097
delta logL = 0.545732473219

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5515       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.1379       1.0000          .0000       5.0000    
     3 'Normalizat'    .54278       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2307       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5680E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5110.856     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      245 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5534        2.1553        .85481E-02    .57349E-04
   2  alpha         1.1382        .61144        .50000       -.31216E-04
   3  Normalizat    .54293        .29418        .10380        .37188E-04
   4  Prefactor     1.2306        .15223        .33943E-01   -.11463E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.5534
  alpha      = 1.13821
  Normalizat = 0.542926
  Prefactor  = 1.23062
 **********
 **   18 **HESSE 
 **********

 FCN=   5110.856     FROM HESSE     STATUS=OK            33 CALLS      278 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5534        2.6868        .12068E-03   -1.5459    
   2  alpha         1.1382        .86062        .20656E-01   -.57605    
   3  Normalizat    .54293        .31949        .46012E-03   -1.1047    
   4  Prefactor     1.2306        .16600        .16229E-03   -.85394    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.85031e-09
Minuit parameter uncertainties:
  1  2.68704
  2  0.886825
  3  0.320583
  4  0.166075
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/27419': 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) = 5110.85641062
delta logL = 0.545732823371

Extracting fit parameters...

4FGL J1037.7-2822
   Spectrum: LogParabola
292         norm:  1.553e+00  2.687e+00  1.000e-04  1.000e+04 ( 1.000e-12)
293        alpha:  1.138e+00  8.868e-01  0.000e+00  5.000e+00 ( 1.000e+00)
294         beta:  9.457e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
295           Eb:  8.993e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
565    Prefactor:  1.231e+00  1.661e-01  0.000e+00  1.000e+01 ( 1.000e+00)
566        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
567        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
564   Normalization:  5.429e-01  3.206e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.12
Ra Dec: 159.427 -28.382
Photon Index (Free Index): 1.14 +/- 0.89
Photon Flux (Free Index): 6.17e-09 +/- 1.00e-08
Energy Flux (Free Index): 2.71e-05 +/- 5.44e-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/27419/cmap_HighResolution_382924801_383184001_4FGL_J1037.7-2822_daily_bin554.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.45e-05', comment='SUCCESS', energy_flux2='2.71e-05', dlogl='5.46e-01', photon_flux2='6.17e-09', job_status='DONE', time_completed='2021-09-02 06:22:32.242245', photon_index_error2='0.89', photon_index2='1.14', ts='0.02', fit_tolerance='1e-08', GAL='1.24', photon_index_error='0.00', photon_flux_upper_limit='1.03e-07', energy_flux_error2='5.44e-05', EG='0.53', time_epoch_completed='1630588952.24', return_code='0', job_id='27419', GAL2='1.23', EG2='0.54', return_code2='0', photon_flux_error2='1.00e-08', ts2='1.12', photon_index='2.40' WHERE bin_id='554' AND source_name='4FGL J1037.7-2822' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 06:22:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0088>
Subject: Job 27419: <4FGL_J1037.7-2822_daily_bin554> in cluster <slac> Done

Job <4FGL_J1037.7-2822_daily_bin554> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Thu Sep  2 06:12:48 2021
Job was executed on host(s) <bullet0088>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 06:12:50 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  2 06:12:50 2021
Terminated at Thu Sep  2 06:22:33 2021
Results reported at Thu Sep  2 06:22:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1037.7-2822_daily_bin554 159.427 -28.3816 382924801 383184001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1037.7-2822 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   554.19 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             307.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   582 sec.
    Turnaround time :                            585 sec.

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

