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


Performing analysis on: 4FGL_J1037.7-2822_daily_bin1480
RA = 159.427, Dec = -28.3816
tmin = 622944001, tmax = 623203201
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='32640', job_status='RUN', time_executed='2021-09-02 06:35:27.062839', time_epoch_executed='1630589727.06' WHERE source_name='4FGL J1037.7-2822' and cadence='daily' and bin_id='1480'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/32640

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/32640/ft1_4FGL_J1037.7-2822_daily_bin1480.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/32640/ft2_4FGL_J1037.7-2822_daily_bin1480.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/32640/ft1_4FGL_J1037.7-2822_daily_bin1480.fits outfile=/scratch/kocevski/32640/ft1_filteredMKT_4FGL_J1037.7-2822_daily_bin1480.fits ra=159.427 dec=-28.3816 rad=12.0 tmin=622944001.0 tmax=623203201.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.08
user 2.86
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/32640/ft2_4FGL_J1037.7-2822_daily_bin1480.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/32640/ft1_filteredMKT_4FGL_J1037.7-2822_daily_bin1480.fits evtable="EVENTS" outfile="/scratch/kocevski/32640/ft1_filtered_4FGL_J1037.7-2822_daily_bin1480.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.54
user 0.35
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/32640/ft1_filtered_4FGL_J1037.7-2822_daily_bin1480.fits" evtable="EVENTS" scfile=/scratch/kocevski/32640/ft2_4FGL_J1037.7-2822_daily_bin1480.fits sctable="SC_DATA" outfile=/scratch/kocevski/32640/ltcube_622944001_623203201_4FGL_J1037.7-2822_daily_bin1480.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/32640/ft2_4FGL_J1037.7-2822_daily_bin1480.fits
.....................!
real 20.01
user 19.65
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/32640/ft1_filtered_4FGL_J1037.7-2822_daily_bin1480.fits evtable="EVENTS" scfile=/scratch/kocevski/32640/ft2_4FGL_J1037.7-2822_daily_bin1480.fits sctable="SC_DATA" expcube=/scratch/kocevski/32640/ltcube_622944001_623203201_4FGL_J1037.7-2822_daily_bin1480.fits outfile=/scratch/kocevski/32640/expmap_622944001_623203201_4FGL_J1037.7-2822_daily_bin1480.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/32640/ltcube_622944001_623203201_4FGL_J1037.7-2822_daily_bin1480.fits
.....................!
real 192.05
user 186.21
sys 5.46

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/32640/ft1_filtered_4FGL_J1037.7-2822_daily_bin1480.fits scfile=/scratch/kocevski/32640/ft2_4FGL_J1037.7-2822_daily_bin1480.fits outfile=/scratch/kocevski/32640/cmap_622944001_623203201_4FGL_J1037.7-2822_daily_bin1480.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.80
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/32640/ft1_filtered_4FGL_J1037.7-2822_daily_bin1480.fits scfile=/scratch/kocevski/32640/ft2_4FGL_J1037.7-2822_daily_bin1480.fits outfile=/scratch/kocevski/32640/cmap_HighResolution_622944001_623203201_4FGL_J1037.7-2822_daily_bin1480.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.57
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/32640/ft1_filtered_4FGL_J1037.7-2822_daily_bin1480.fits evtable="EVENTS" scfile=/scratch/kocevski/32640/ft2_4FGL_J1037.7-2822_daily_bin1480.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/32640/Model_4FGL_J1037.7-2822_daily_bin1480.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/32640/ft1_filtered_4FGL_J1037.7-2822_daily_bin1480.fits.....................!
real 45.60
user 43.92
sys 1.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.5957       1.0000         .10000E-03   10000.    
     2 'norm      '    2.6089       1.0000         .10000E-03   10000.    
     3 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    6.2292       1.0000         .10000E-03   10000.    
     7 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10338E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .18277       1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.834       1.0000         .10000E-03   10000.    
    11 'norm      '    5.5114       1.0000         .10000E-03   10000.    
    12 'Prefactor '    22.068       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10259E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.3985       1.0000         .10000E-03   10000.    
    16 'Prefactor '    13.698       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10752E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10928E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .73205       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1143       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5680E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3730.938     FROM MIGRAD    STATUS=CONVERGED     98 CALLS     1723 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.5950        1.0112        .46087E-10    .24541E-04
   2  norm          2.6087        1.7183        .12256E-07    .42059E-05
   3  norm          .10000E-03    5.2910       -.17440E-06** at limit **
   4  Prefactor     .10000E-03    4.9732       -.15187E-05** at limit **
   5  Prefactor     .10000E-03    7.8905        .82341E-06** at limit **
   6  norm          6.2232        1.0396       -.17135E-07   -.23496E-03
   7  norm          .10000E-03    4.6106       -.15796E-05** at limit **
   8  Prefactor     .10000E-03    12.788        .14357E-05** at limit **
   9  Prefactor     .10041E-03    392.14       -.30891E-04** at limit **
  10  Prefactor     13.789        2.1946       -.38604E-06   -.32891E-02
  11  norm          5.5198        6.0199       -.87313E-07   -.91150E-03
  12  Prefactor     22.077        3.8836        .35936E-06   -.11011E-01
  13  Prefactor     .10000E-03    8.2734       -.12195E-06** at limit **
  14  Prefactor     .10001E-03    28.445       -.12437E-05** at limit **
  15  Prefactor     6.3970        1.0323       -.68702E-08    .34730E-03
  16  Prefactor     13.687        1.1756       -.77274E-07   -.18459E-02
  17  Prefactor     .10026E-03    55.582       -.44834E-06** at limit **
  18  Prefactor     .10000E-03    17.971       -.78607E-06** at limit **
  19  Normalizat    .73227        .36695       -.87450E-06    .19477E-04
  20  Prefactor     1.1143        .18289        .83741E-06    .64493E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.59497
  norm       = 2.60866
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 6.22322
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100414
  Prefactor  = 13.7894
  norm       = 5.5198
  Prefactor  = 22.0772
  Prefactor  = 0.000100003
  Prefactor  = 0.000100009
  Prefactor  = 6.39701
  Prefactor  = 13.6873
  Prefactor  = 0.000100265
  Prefactor  = 0.000100001
  Normalizat = 0.732272
  Prefactor  = 1.11428
 **********
 **   18 **HESSE 
 **********

 FCN=   3730.938     FROM HESSE     STATUS=OK           335 CALLS     2058 TOTAL
                     EDM=   .52E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.5950        6.6064        .39064E-02   -1.5194    
   2  norm          2.6087        1.7236        .63137E-02   -1.5385    
   3  norm          .10000E-03    5.2787        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.3163        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.9022        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          6.2232        13.272        .40210E-02   -1.5209    
   7  norm          .10000E-03    9.2451        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    12.482        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10041E-03    25.627        .98987E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     13.789        29.989        .26922E-02   -1.4965    
  11  norm          5.5198        7.1040        .42786E-02   -1.5238    
  12  Prefactor     22.077        27.762        .21316E-02   -1.4768    
  13  Prefactor     .10000E-03    8.2018        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10001E-03    28.150        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.3970        8.8306        .39668E-02   -1.5202    
  16  Prefactor     13.687        20.136        .27056E-02   -1.4968    
  17  Prefactor     .10026E-03    56.212        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    18.006        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .73227        .33885        .91550E-01   -1.0263    
  20  Prefactor     1.1143        .16144        .37068E-01   -.89012    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.16065e-07
Minuit parameter uncertainties:
  1  6.60716
  2  1.72361
  3  2.33217e-07
  4  7.72134e-05
  5  0.000211947
  6  13.2784
  7  0.000149781
  8  0.000124513
  9  0.00651637
  10  30.0216
  11  7.10504
  12  27.7783
  13  0.000295285
  14  0.00102451
  15  8.83242
  16  20.1461
  17  0.00771997
  18  0.000323448
  19  0.339823
  20  0.161515
Done.

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

Extracting fit parameters...

4FGL J1037.7-2822
   Spectrum: LogParabola
292         norm:  5.520e+00  7.105e+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.114e+00  1.615e-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.323e-01  3.398e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.35
Ra Dec: 159.427 -28.382
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 6.04e-08 +/- 7.77e-08
Energy Flux (Fixed Index): 2.02e-05 +/- 2.60e-05

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

Saving results to:
/scratch/kocevski/32640/likelihoodResults_622944001_623203201_4FGL_J1037.7-2822_daily_bin1480.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) = 3730.89494414
delta logL = 0.0425902031238

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3730.88129949
delta logL = 0.0562348475019

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.5154       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6923       1.0000          .0000       5.0000    
     3 'Normalizat'    .71628       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1190       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=   3730.881     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      235 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.5149        6.4331        .12936E-03    .87000E-03
   2  alpha         2.6932        .92045        .13314E-01    .82839E-04
   3  Normalizat    .71617        .36778        .40973E-03   -.14185E-03
   4  Prefactor     1.1191        .18384        .16749E-03   -.40815E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.51487
  alpha      = 2.69322
  Normalizat = 0.716166
  Prefactor  = 1.11914
 **********
 **   18 **HESSE 
 **********

 FCN=   3730.881     FROM HESSE     STATUS=OK            23 CALLS      258 TOTAL
                     EDM=   .76E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.5149        6.0984        .51744E-05   -1.5283    
   2  alpha         2.6932        .87379        .53257E-03    .77366E-01
   3  Normalizat    .71617        .36771        .16389E-04   -1.0326    
   4  Prefactor     1.1191        .18381        .33498E-04   -.88857    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.61613e-10
Minuit parameter uncertainties:
  1  6.09925
  2  0.892752
  3  0.368983
  4  0.183918
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/32640': 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) = 3730.8812984
delta logL = 0.056235937182

Extracting fit parameters...

4FGL J1037.7-2822
   Spectrum: LogParabola
292         norm:  4.515e+00  6.099e+00  1.000e-04  1.000e+04 ( 1.000e-12)
293        alpha:  2.693e+00  8.928e-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.119e+00  1.839e-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.162e-01  3.690e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.48
Ra Dec: 159.427 -28.382
Photon Index (Free Index): 2.69 +/- 0.89
Photon Flux (Free Index): 7.57e-08 +/- 8.83e-08
Energy Flux (Free Index): 1.96e-05 +/- 2.07e-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/32640/cmap_HighResolution_622944001_623203201_4FGL_J1037.7-2822_daily_bin1480.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.39e-05', comment='SUCCESS', photon_flux='6.04e-08', energy_flux2='1.96e-05', photon_flux_error='7.77e-08', dlogl='5.62e-02', energy_flux='2.02e-05', photon_flux2='7.57e-08', job_status='DONE', time_completed='2021-09-02 06:43:39.433994', photon_index_error2='0.89', photon_index2='2.69', ts='1.35', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', photon_flux_upper_limit='2.21e-07', energy_flux_error2='2.07e-05', EG='0.73', time_epoch_completed='1630590219.43', return_code='0', job_id='32640', GAL2='1.12', EG2='0.72', return_code2='0', energy_flux_error='2.60e-05', photon_flux_error2='8.83e-08', ts2='1.48', photon_index='2.40' WHERE bin_id='1480' AND source_name='4FGL J1037.7-2822' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 06:43:39 PDT 2021


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

Job <4FGL_J1037.7-2822_daily_bin1480> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Thu Sep  2 06:31:34 2021
Job was executed on host(s) <bullet0098>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 06:32:37 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:32:37 2021
Terminated at Thu Sep  2 06:43:40 2021
Results reported at Thu Sep  2 06:43:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1037.7-2822_daily_bin1480 159.427 -28.3816 622944001 623203201 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 :                                   485.06 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             338.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   662 sec.
    Turnaround time :                            726 sec.

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

