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


Performing analysis on: 4FGL_J1037.7-2822_daily_bin536
RA = 159.427, Dec = -28.3816
tmin = 378259201, tmax = 378518401
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='27392', job_status='RUN', time_executed='2021-09-02 06:13:00.813095', time_epoch_executed='1630588380.81' WHERE source_name='4FGL J1037.7-2822' and cadence='daily' and bin_id='536'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/27392

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/27392/ft1_4FGL_J1037.7-2822_daily_bin536.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/27392/ft2_4FGL_J1037.7-2822_daily_bin536.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/27392/ft1_4FGL_J1037.7-2822_daily_bin536.fits outfile=/scratch/kocevski/27392/ft1_filteredMKT_4FGL_J1037.7-2822_daily_bin536.fits ra=159.427 dec=-28.3816 rad=12.0 tmin=378259201.0 tmax=378518401.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.46
user 4.20
sys 0.25

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/27392/ft1_filtered_4FGL_J1037.7-2822_daily_bin536.fits" evtable="EVENTS" scfile=/scratch/kocevski/27392/ft2_4FGL_J1037.7-2822_daily_bin536.fits sctable="SC_DATA" outfile=/scratch/kocevski/27392/ltcube_378259201_378518401_4FGL_J1037.7-2822_daily_bin536.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/27392/ft2_4FGL_J1037.7-2822_daily_bin536.fits
.....................!
real 12.50
user 12.14
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/27392/ft1_filtered_4FGL_J1037.7-2822_daily_bin536.fits evtable="EVENTS" scfile=/scratch/kocevski/27392/ft2_4FGL_J1037.7-2822_daily_bin536.fits sctable="SC_DATA" expcube=/scratch/kocevski/27392/ltcube_378259201_378518401_4FGL_J1037.7-2822_daily_bin536.fits outfile=/scratch/kocevski/27392/expmap_378259201_378518401_4FGL_J1037.7-2822_daily_bin536.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/27392/ltcube_378259201_378518401_4FGL_J1037.7-2822_daily_bin536.fits
.....................!
real 191.73
user 186.18
sys 4.47

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/27392/ft1_filtered_4FGL_J1037.7-2822_daily_bin536.fits scfile=/scratch/kocevski/27392/ft2_4FGL_J1037.7-2822_daily_bin536.fits outfile=/scratch/kocevski/27392/cmap_378259201_378518401_4FGL_J1037.7-2822_daily_bin536.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.55
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/27392/ft1_filtered_4FGL_J1037.7-2822_daily_bin536.fits scfile=/scratch/kocevski/27392/ft2_4FGL_J1037.7-2822_daily_bin536.fits outfile=/scratch/kocevski/27392/cmap_HighResolution_378259201_378518401_4FGL_J1037.7-2822_daily_bin536.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.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/27392/ft1_filtered_4FGL_J1037.7-2822_daily_bin536.fits evtable="EVENTS" scfile=/scratch/kocevski/27392/ft2_4FGL_J1037.7-2822_daily_bin536.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/27392/Model_4FGL_J1037.7-2822_daily_bin536.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/27392/ft1_filtered_4FGL_J1037.7-2822_daily_bin536.fits.....................!
real 68.44
user 67.11
sys 1.10

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10121E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    9.9615       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10699E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10651E-02   1.0000         .10000E-03   10000.    
     7 'norm      '    4.6671       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .14962E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .14160E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    20.753       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.6279       1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.7401       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.9695       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.9592       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .13260       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .87959       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2642       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=   6594.156     FROM MIGRAD    STATUS=CONVERGED    426 CALLS     2113 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    7.1414       -.16729E-06** at limit **
   2  norm          .10000E-03    .47037        .13793E-07** at limit **
   3  norm          9.9581        10.032        .58247E-06    .29203E-03
   4  Prefactor     .10000E-03    38.518        .26335E-06** at limit **
   5  Prefactor     .10000E-03    6.0110        .65859E-06** at limit **
   6  norm          .10428E-03    12.174       -.22208E-05** at limit **
   7  norm          4.6529        9.6831       -.10622E-05    .28503E-03
   8  Prefactor     .10000E-03    3.8679        .42497E-08** at limit **
   9  Prefactor     .10002E-03    56.321        .69739E-05** at limit **
  10  Prefactor     .10000E-03    5.6790       -.68361E-06** at limit **
  11  norm          .10000E-03    2.3390        .40562E-06** at limit **
  12  Prefactor     20.759        20.188        .28013E-06   -.11069E-03
  13  Prefactor     1.6303        3.7241        .83454E-06    .17938E-03
  14  Prefactor     9.7414        11.284       -.14340E-08   -.66285E-04
  15  Prefactor     3.9706        7.3561        .11704E-07   -.18216E-03
  16  Prefactor     6.9542        10.697        .20167E-07   -.83529E-04
  17  Prefactor     .10000E-03    24.185       -.12117E-05** at limit **
  18  Prefactor     .13099        6.2005        .62011E-07    .19317E-04
  19  Normalizat    .87918        .26093       -.11514E-05   -.21358E-03
  20  Prefactor     1.2645        .13136       -.69210E-06   -.46684E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  norm       = 9.9581
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000104285
  norm       = 4.65285
  Prefactor  = 0.0001
  Prefactor  = 0.000100017
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 20.7588
  Prefactor  = 1.63026
  Prefactor  = 9.74143
  Prefactor  = 3.97056
  Prefactor  = 6.95415
  Prefactor  = 0.0001
  Prefactor  = 0.130992
  Normalizat = 0.87918
  Prefactor  = 1.26448
 **********
 **   18 **HESSE 
 **********

 FCN=   6594.156     FROM HESSE     STATUS=OK           303 CALLS     2416 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.1863        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .47592        .54373E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          9.9581        10.041        .12696E-03   -1.5077    
   4  Prefactor     .10000E-03    38.886        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.0211        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10428E-03    146.17        .44574E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.6529        9.5421        .18628E-03   -1.5277    
   8  Prefactor     .10000E-03    3.8849        .15597E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10002E-03    58.233        .40946E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.6867        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    5.3771        .23597E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     20.759        20.094        .87923E-04   -1.4796    
  13  Prefactor     1.6303        3.6509        .22263E-03   -1.5453    
  14  Prefactor     9.7414        11.257        .12840E-03   -1.5084    
  15  Prefactor     3.9706        7.3779        .20245E-03   -1.5309    
  16  Prefactor     6.9542        10.706        .15208E-03   -1.5180    
  17  Prefactor     .10000E-03    24.193        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .13099        8.0737        .74509E-01   -1.5636    
  19  Normalizat    .87918        .29203        .40228E-03   -.97196    
  20  Prefactor     1.2645        .14719        .17785E-03   -.84369    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.84565e-08
Minuit parameter uncertainties:
  1  1.3226e-05
  2  1.22008e-06
  3  10.0431
  4  0.000162966
  5  6.75502e-05
  6  0.0501766
  7  9.54519
  8  3.15427e-06
  9  0.00199607
  10  6.18189e-05
  11  3.49062e-05
  12  20.1008
  13  3.6514
  14  11.2596
  15  7.3796
  16  10.7086
  17  0.000217032
  18  2.05628
  19  0.292556
  20  0.14724
Done.

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

Extracting fit parameters...

4FGL J1037.7-2822
   Spectrum: LogParabola
292         norm:  1.000e-04  3.491e-05  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.264e+00  1.472e-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:  8.792e-01  2.926e-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: 9.15e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.05e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/27392/likelihoodResults_378259201_378518401_4FGL_J1037.7-2822_daily_bin536.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) = 6594.15700882
delta logL = -0.000884374204361

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6594.15612438
delta logL = 7.18018782209e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11024E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4534       1.0000          .0000       5.0000    
     3 'Normalizat'    .87921       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2645       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6593.653     FROM MIGRAD    STATUS=FAILED       159 CALLS      325 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .83188E-01    4.5900        .24221E-02    .16172E-02
   2  alpha         5.0000        2.5052        .50000    ** at limit **
   3  Normalizat    .77704        .36225        .40228E-02   -.24439E-03
   4  Prefactor     1.2952        .13874        .17785E-03   -.59737E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6593.653     FROM SIMPLEX   STATUS=UNCHANGED    144 CALLS      469 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .83188E-01    4.5900        .76288E-06    .16172E-02
   2  alpha         5.0000        2.5052        .89935E-02** at limit **
   3  Normalizat    .77704        .36225        .16195E-05   -.24439E-03
   4  Prefactor     1.2952        .13874        .76765E-07   -.59737E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6593.653     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      503 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .83188E-01    .92274E-01    .23493E-04   -.20291E-02
   2  alpha         5.0000        3.2753        .70475E-01** at limit **
   3  Normalizat    .77704        .29341        .16091E-03   -.24860E-03
   4  Prefactor     1.2952        .14827        .35571E-04   -.59709E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.083188
  alpha      = 5
  Normalizat = 0.777043
  Prefactor  = 1.29524
 **********
 **   18 **HESSE 
 **********

 FCN=   6593.653     FROM HESSE     STATUS=OK            23 CALLS      526 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .83188E-01    .91183E-01    .93972E-06   -1.5650    
   2  alpha         5.0000        3.2752        .28190E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .77704        .29339        .32182E-04   -1.0093    
   4  Prefactor     1.2952        .14828        .71141E-05   -.83449    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.6453e-10
Minuit parameter uncertainties:
  1  0.0911835
  2  2.90288e-05
  3  0.293992
  4  0.148328
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/27392': 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) = 6593.6526559
delta logL = 0.50346854409

Extracting fit parameters...

4FGL J1037.7-2822
   Spectrum: LogParabola
292         norm:  8.319e-02  9.118e-02  1.000e-04  1.000e+04 ( 1.000e-12)
293        alpha:  5.000e+00  2.903e-05  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.295e+00  1.483e-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:  7.770e-01  2.940e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.13
Ra Dec: 159.427 -28.382
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 8.57e-08 +/- 9.35e-08
Energy Flux (Free Index): 1.17e-05 +/- 1.28e-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/27392/cmap_HighResolution_378259201_378518401_4FGL_J1037.7-2822_daily_bin536.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.05e-05', comment='SUCCESS', energy_flux2='1.17e-05', dlogl='5.03e-01', photon_flux2='8.57e-08', job_status='DONE', time_completed='2021-09-02 06:23:59.481773', photon_index_error2='0.00', photon_index2='5.00', ts='-0.00', fit_tolerance='1e-08', GAL='1.26', photon_index_error='0.00', photon_flux_upper_limit='9.15e-08', energy_flux_error2='1.28e-05', EG='0.88', time_epoch_completed='1630589039.48', return_code='0', job_id='27392', GAL2='1.30', EG2='0.78', return_code2='0', photon_flux_error2='9.35e-08', ts2='1.13', photon_index='2.40' WHERE bin_id='536' AND source_name='4FGL J1037.7-2822' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 06:23:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0170>
Subject: Job 27392: <4FGL_J1037.7-2822_daily_bin536> in cluster <slac> Done

Job <4FGL_J1037.7-2822_daily_bin536> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Thu Sep  2 06:12:46 2021
Job was executed on host(s) <bullet0170>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 06:12:47 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:47 2021
Terminated at Thu Sep  2 06:23:59 2021
Results reported at Thu Sep  2 06:23:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1037.7-2822_daily_bin536 159.427 -28.3816 378259201 378518401 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 :                                   646.22 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             341.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   672 sec.
    Turnaround time :                            673 sec.

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

