/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 128 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 = 7476
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1037.7-2822_daily_bin81
RA = 159.427, Dec = -28.3816
tmin = 260323201, tmax = 260582401
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='25371', job_status='RUN', time_executed='2021-09-02 06:09:09.671347', time_epoch_executed='1630588149.67' WHERE source_name='4FGL J1037.7-2822' and cadence='daily' and bin_id='81'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/25371

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/25371/ft1_4FGL_J1037.7-2822_daily_bin81.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/25371/ft2_4FGL_J1037.7-2822_daily_bin81.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/25371/ft1_4FGL_J1037.7-2822_daily_bin81.fits outfile=/scratch/kocevski/25371/ft1_filteredMKT_4FGL_J1037.7-2822_daily_bin81.fits ra=159.427 dec=-28.3816 rad=12.0 tmin=260323201.0 tmax=260582401.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 1.54
user 1.35
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/25371/ft2_4FGL_J1037.7-2822_daily_bin81.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/25371/ft1_filteredMKT_4FGL_J1037.7-2822_daily_bin81.fits evtable="EVENTS" outfile="/scratch/kocevski/25371/ft1_filtered_4FGL_J1037.7-2822_daily_bin81.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.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/25371/ft1_filtered_4FGL_J1037.7-2822_daily_bin81.fits" evtable="EVENTS" scfile=/scratch/kocevski/25371/ft2_4FGL_J1037.7-2822_daily_bin81.fits sctable="SC_DATA" outfile=/scratch/kocevski/25371/ltcube_260323201_260582401_4FGL_J1037.7-2822_daily_bin81.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/25371/ft2_4FGL_J1037.7-2822_daily_bin81.fits
.....................!
real 13.09
user 12.64
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/25371/ft1_filtered_4FGL_J1037.7-2822_daily_bin81.fits evtable="EVENTS" scfile=/scratch/kocevski/25371/ft2_4FGL_J1037.7-2822_daily_bin81.fits sctable="SC_DATA" expcube=/scratch/kocevski/25371/ltcube_260323201_260582401_4FGL_J1037.7-2822_daily_bin81.fits outfile=/scratch/kocevski/25371/expmap_260323201_260582401_4FGL_J1037.7-2822_daily_bin81.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/25371/ltcube_260323201_260582401_4FGL_J1037.7-2822_daily_bin81.fits
.....................!
real 190.93
user 185.67
sys 4.85

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/25371/ft1_filtered_4FGL_J1037.7-2822_daily_bin81.fits scfile=/scratch/kocevski/25371/ft2_4FGL_J1037.7-2822_daily_bin81.fits outfile=/scratch/kocevski/25371/cmap_260323201_260582401_4FGL_J1037.7-2822_daily_bin81.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/25371/ft1_filtered_4FGL_J1037.7-2822_daily_bin81.fits scfile=/scratch/kocevski/25371/ft2_4FGL_J1037.7-2822_daily_bin81.fits outfile=/scratch/kocevski/25371/cmap_HighResolution_260323201_260582401_4FGL_J1037.7-2822_daily_bin81.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/25371/ft1_filtered_4FGL_J1037.7-2822_daily_bin81.fits evtable="EVENTS" scfile=/scratch/kocevski/25371/ft2_4FGL_J1037.7-2822_daily_bin81.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/25371/Model_4FGL_J1037.7-2822_daily_bin81.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/25371/ft1_filtered_4FGL_J1037.7-2822_daily_bin81.fits.....................!
real 88.89
user 87.46
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/25371/ft1_filtered_4FGL_J1037.7-2822_daily_bin81.fits', '/scratch/kocevski/25371/ft2_4FGL_J1037.7-2822_daily_bin81.fits', expMap='/scratch/kocevski/25371/expmap_260323201_260582401_4FGL_J1037.7-2822_daily_bin81.fits', expCube='/scratch/kocevski/25371/ltcube_260323201_260582401_4FGL_J1037.7-2822_daily_bin81.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/25371/Model_4FGL_J1037.7-2822_daily_bin81.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/25371/ft1_filtered_4FGL_J1037.7-2822_daily_bin81.fits
Spacecraft file(s): /scratch/kocevski/25371/ft2_4FGL_J1037.7-2822_daily_bin81.fits
Exposure map: /scratch/kocevski/25371/expmap_260323201_260582401_4FGL_J1037.7-2822_daily_bin81.fits
Exposure cube: /scratch/kocevski/25371/ltcube_260323201_260582401_4FGL_J1037.7-2822_daily_bin81.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/25371/Model_4FGL_J1037.7-2822_daily_bin81.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) = 9096.04935066

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.2184       1.0000         .10000E-03   10000.    
     2 'norm      '    .63945       1.0000         .10000E-03   10000.    
     3 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.7652       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10174E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .81875E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.6576       1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.737       1.0000         .10000E-03   10000.    
    11 'norm      '    .16137E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.8492       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .56387       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.0731       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .99436       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0288       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=   9095.881     FROM MIGRAD    STATUS=CONVERGED    428 CALLS     1796 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.2182        6.4867       -.10646E-06   -.71684E-04
   2  norm          .63955        .84053       -.44104E-07   -.51204E-03
   3  norm          .10000E-03    10.180       -.34212E-06** at limit **
   4  Prefactor     4.7729        26.628        .90498E-05    .27862E-05
   5  Prefactor     .10000E-03    3.3315       -.16457E-07** at limit **
   6  norm          .10017E-03    5.2035       -.12603E-05** at limit **
   7  norm          .10000E-03    2.4411        .99940E-07** at limit **
   8  Prefactor     .10000E-03    2.1160        .13180E-07** at limit **
   9  Prefactor     6.6795        15.329       -.17183E-05   -.78181E-04
  10  Prefactor     15.735        14.867       -.17894E-05   -.37515E-03
  11  norm          .10016E-03    1.7944        .88160E-06** at limit **
  12  Prefactor     .10000E-03    22.404       -.75197E-05** at limit **
  13  Prefactor     4.8541        3.6949        .74820E-06   -.82161E-03
  14  Prefactor     .10000E-03    2.3600       -.95061E-07** at limit **
  15  Prefactor     .10000E-03    1.4129        .20009E-07** at limit **
  16  Prefactor     .54251        3.6977       -.13987E-05   -.40851E-03
  17  Prefactor     .10000E-03    11.685        .66403E-06** at limit **
  18  Prefactor     5.0678        5.9331       -.11870E-05   -.37205E-04
  19  Normalizat    .99450        .18759       -.32331E-06    .66153E-04
  20  Prefactor     1.0288        .95629E-01    .98377E-07    .15586E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.21824
  norm       = 0.639553
  norm       = 0.0001
  Prefactor  = 4.77287
  Prefactor  = 0.0001
  norm       = 0.00010017
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.6795
  Prefactor  = 15.7353
  norm       = 0.000100161
  Prefactor  = 0.0001
  Prefactor  = 4.85408
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.542508
  Prefactor  = 0.0001
  Prefactor  = 5.06776
  Normalizat = 0.9945
  Prefactor  = 1.02884
 **********
 **   18 **HESSE 
 **********

 FCN=   9095.881     FROM HESSE     STATUS=OK           307 CALLS     2103 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.2182        6.4863        .17597E-03   -1.5251    
   2  norm          .63955        .71398        .96491E-03   -1.5548    
   3  norm          .10000E-03    10.361        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.7729        25.733        .18431E-03   -1.5271    
   5  Prefactor     .10000E-03    3.3327        .17000E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10017E-03    6.2137        .65959E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.4496        .14545E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.1237        .13547E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.6795        15.065        .15552E-03   -1.5191    
  10  Prefactor     15.735        14.277        .10096E-03   -1.4914    
  11  norm          .10016E-03    23.291        .21833E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    21.924        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.8541        3.5980        .14334E-03   -1.5267    
  14  Prefactor     .10000E-03    2.3705        .14306E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.4253        .11068E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .54251        10.392        .36536E-02   -1.5561    
  17  Prefactor     .10000E-03    11.700        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.0678        5.9458        .17852E-03   -1.5258    
  19  Normalizat    .99450        .21890        .32723E-03   -.93215    
  20  Prefactor     1.0288        .11283        .17073E-03   -.91774    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.2486e-09
Minuit parameter uncertainties:
  1  6.48721
  2  0.713994
  3  1.01586e-05
  4  22.1794
  5  3.58022e-06
  6  0.0020539
  7  1.27465e-06
  8  5.30467e-07
  9  15.0735
  10  14.2803
  11  0.00386955
  12  0.000159378
  13  3.59814
  14  1.5613e-06
  15  1.11034e-06
  16  4.74933
  17  8.30436e-06
  18  5.94645
  19  0.219101
  20  0.112854
Done.

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

Extracting fit parameters...

4FGL J1037.7-2822
   Spectrum: LogParabola
292         norm:  1.002e-04  3.870e-03  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.029e+00  1.129e-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:  9.945e-01  2.191e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 159.427 -28.382
Photon Flux Upper Limit: 8.40e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.81e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/25371/likelihoodResults_260323201_260582401_4FGL_J1037.7-2822_daily_bin81.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): 102
logL (Free Index) = 9095.88094494
delta logL = -0.000204837939236

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9095.88062502
delta logL = 0.00011508433272

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .31253E-02   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5681       1.0000          .0000       5.0000    
     3 'Normalizat'    .99461       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0288       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9095.709     FROM MIGRAD    STATUS=CONVERGED    147 CALLS      316 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .99449E-01    13.042        .46150E-03   -.24429E-02
   2  alpha         4.4215        3.9688        .55950E-01   -.16540E-04
   3  Normalizat    .95643        .11524        .33276E-03    .10864E-04
   4  Prefactor     1.0400        .61103E-01    .16985E-03   -.34002E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0994491
  alpha      = 4.42154
  Normalizat = 0.956431
  Prefactor  = 1.03996
 **********
 **   18 **HESSE 
 **********

 FCN=   9095.709     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      343 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .99449E-01    14.462        .18460E-04   -1.5645    
   2  alpha         4.4215        4.3785        .22380E-02    .87668    
   3  Normalizat    .95643        .21808        .13310E-04   -.94505    
   4  Prefactor     1.0400        .11468        .33970E-04   -.91409    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.89731e-10
Minuit parameter uncertainties:
  1  2.39794
  2  12.7692
  3  0.218284
  4  0.11471
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/25371': 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): 102
logL (Free Index) = 9095.70916056
delta logL = 0.171579536496

Extracting fit parameters...

4FGL J1037.7-2822
   Spectrum: LogParabola
292         norm:  9.945e-02  2.398e+00  1.000e-04  1.000e+04 ( 1.000e-12)
293        alpha:  4.422e+00  1.277e+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.040e+00  1.147e-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:  9.564e-01  2.183e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 159.427 -28.382

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/25371/cmap_HighResolution_260323201_260582401_4FGL_J1037.7-2822_daily_bin81.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.81e-05', job_status='DONE', photon_flux_upper_limit='8.40e-08', time_completed='2021-09-02 06:21:13.767178', job_id='25371', GAL2='1.04', fit_tolerance='1e-08', EG2='0.96', EG='0.99', time_epoch_completed='1630588873.77', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='1.72e-01', ts2='0.37', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='81' AND source_name='4FGL J1037.7-2822' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 06:21:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0098>
Subject: Job 25371: <4FGL_J1037.7-2822_daily_bin81> in cluster <slac> Done

Job <4FGL_J1037.7-2822_daily_bin81> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Thu Sep  2 06:06:44 2021
Job was executed on host(s) <bullet0098>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 06:06:45 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:06:45 2021
Terminated at Thu Sep  2 06:21:14 2021
Results reported at Thu Sep  2 06:21:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1037.7-2822_daily_bin81 159.427 -28.3816 260323201 260582401 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 :                                   722.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             315.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   869 sec.
    Turnaround time :                            870 sec.

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

