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


Performing analysis on: 4FGL_J2037.0-2826_daily_bin1023
RA = 309.252, Dec = -28.4383
tmin = 504489601, tmax = 504748801
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='75045', job_status='RUN', time_executed='2021-09-25 13:54:36.282918', time_epoch_executed='1632603276.28' WHERE source_name='4FGL J2037.0-2826' and cadence='daily' and bin_id='1023'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/75045

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/75045/ft1_4FGL_J2037.0-2826_daily_bin1023.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/75045/ft2_4FGL_J2037.0-2826_daily_bin1023.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/75045/ft1_4FGL_J2037.0-2826_daily_bin1023.fits outfile=/scratch/kocevski/75045/ft1_filteredMKT_4FGL_J2037.0-2826_daily_bin1023.fits ra=309.252 dec=-28.4383 rad=12.0 tmin=504489601.0 tmax=504748801.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.60
user 4.26
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/75045/ft2_4FGL_J2037.0-2826_daily_bin1023.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/75045/ft2_4FGL_J2037.0-2826_daily_bin1023.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/75045/ft1_filteredMKT_4FGL_J2037.0-2826_daily_bin1023.fits evtable="EVENTS" outfile="/scratch/kocevski/75045/ft1_filtered_4FGL_J2037.0-2826_daily_bin1023.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.52
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/75045/ft1_filtered_4FGL_J2037.0-2826_daily_bin1023.fits" evtable="EVENTS" scfile=/scratch/kocevski/75045/ft2_4FGL_J2037.0-2826_daily_bin1023.fits sctable="SC_DATA" outfile=/scratch/kocevski/75045/ltcube_504489601_504748801_4FGL_J2037.0-2826_daily_bin1023.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/75045/ft2_4FGL_J2037.0-2826_daily_bin1023.fits
.....................!
real 13.13
user 12.75
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/75045/ft1_filtered_4FGL_J2037.0-2826_daily_bin1023.fits evtable="EVENTS" scfile=/scratch/kocevski/75045/ft2_4FGL_J2037.0-2826_daily_bin1023.fits sctable="SC_DATA" expcube=/scratch/kocevski/75045/ltcube_504489601_504748801_4FGL_J2037.0-2826_daily_bin1023.fits outfile=/scratch/kocevski/75045/expmap_504489601_504748801_4FGL_J2037.0-2826_daily_bin1023.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/75045/ltcube_504489601_504748801_4FGL_J2037.0-2826_daily_bin1023.fits
.....................!
real 190.95
user 185.50
sys 4.48

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

Setting source of interest to:
4FGL J2037.0-2826 @ 309.252 -28.4383

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/75045/ft1_filtered_4FGL_J2037.0-2826_daily_bin1023.fits scfile=/scratch/kocevski/75045/ft2_4FGL_J2037.0-2826_daily_bin1023.fits outfile=/scratch/kocevski/75045/cmap_504489601_504748801_4FGL_J2037.0-2826_daily_bin1023.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=309.252 yref=-28.4383 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/75045/ft1_filtered_4FGL_J2037.0-2826_daily_bin1023.fits scfile=/scratch/kocevski/75045/ft2_4FGL_J2037.0-2826_daily_bin1023.fits outfile=/scratch/kocevski/75045/cmap_HighResolution_504489601_504748801_4FGL_J2037.0-2826_daily_bin1023.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=309.252 yref=-28.4383 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/75045/ft1_filtered_4FGL_J2037.0-2826_daily_bin1023.fits evtable="EVENTS" scfile=/scratch/kocevski/75045/ft2_4FGL_J2037.0-2826_daily_bin1023.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/75045/Model_4FGL_J2037.0-2826_daily_bin1023.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/75045/ft1_filtered_4FGL_J2037.0-2826_daily_bin1023.fits.....................!
real 76.74
user 75.31
sys 1.13

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/75045/ft1_filtered_4FGL_J2037.0-2826_daily_bin1023.fits', '/scratch/kocevski/75045/ft2_4FGL_J2037.0-2826_daily_bin1023.fits', expMap='/scratch/kocevski/75045/expmap_504489601_504748801_4FGL_J2037.0-2826_daily_bin1023.fits', expCube='/scratch/kocevski/75045/ltcube_504489601_504748801_4FGL_J2037.0-2826_daily_bin1023.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/75045/Model_4FGL_J2037.0-2826_daily_bin1023.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2037.0-2826'

4FGL J2037.0-2826
   Spectrum: PowerLaw
318    Prefactor:  1.729e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
319        Index:  2.567e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
320        Scale:  6.447e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/75045/ft1_filtered_4FGL_J2037.0-2826_daily_bin1023.fits
Spacecraft file(s): /scratch/kocevski/75045/ft2_4FGL_J2037.0-2826_daily_bin1023.fits
Exposure map: /scratch/kocevski/75045/expmap_504489601_504748801_4FGL_J2037.0-2826_daily_bin1023.fits
Exposure cube: /scratch/kocevski/75045/ltcube_504489601_504748801_4FGL_J2037.0-2826_daily_bin1023.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/75045/Model_4FGL_J2037.0-2826_daily_bin1023.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) = 8380.84468697

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .23541E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .37084E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.0303       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.8773       1.0000         .10000E-03   10000.    
     5 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    107.25       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .20732E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.8046       1.0000         .10000E-03   10000.    
     9 'Prefactor '    90.059       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.6325       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10310E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    17.835       1.0000         .10000E-03   10000.    
    15 'Normalizat'    1.4524       1.0000         .10000E-01   10.000    
    16 'Prefactor '    .98084       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5860E+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=   8380.835     FROM MIGRAD    STATUS=FAILED       531 CALLS     1940 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10012E-03    71.172        .32152E-02** at limit **
   2  Prefactor     .10001E-03    227.46        .89567E-02** at limit **
   3  norm          1.0194        39.961        .47170E-02    .13509E-02
   4  Prefactor     9.8725        41.129        .12750E-03    .13196E-04
   5  norm          .10000E-03    7.7882        .18142E-02** at limit **
   6  Prefactor     107.26        62.356        .38833E-04   -.16629E-04
   7  Prefactor     .10001E-03    70.218        .33075E-02** at limit **
   8  Prefactor     2.8050        4.7886        .12146E-02    .13565E-03
   9  Prefactor     90.057        93.709        .42342E-04    .53700E-05
  10  norm          .10000E-03    21.639        .18142E-02** at limit **
  11  Prefactor     3.6327        28.143        .21197E-03   -.38616E-05
  12  Prefactor     .10000E-03    35.878        .18142E-02** at limit **
  13  Prefactor     .10000E-03    2.8097        .14949E-02** at limit **
  14  norm          17.835        13.433        .94839E-04    .14385E-05
  15  Normalizat    1.4519        .31124        .37781E-03    .12018E-03
  16  Prefactor     .98108        .11822        .17438E-03    .73280E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8380.835     FROM SIMPLEX   STATUS=UNCHANGED    772 CALLS     2712 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10012E-03    71.172        .74100E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10001E-03    227.46        .20694E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.0194        39.961        .12183E-06   -1.5506    
   4  Prefactor     9.8725        41.129        .35475E-07   -1.5079    
   5  norm          .10000E-03    7.7882        .29349E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     107.26        62.356        .40248E-08   -1.3633    
   7  Prefactor     .10001E-03    70.218        .49706E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.8050        4.7886        .12125E-07   -1.5373    
   9  Prefactor     90.057        93.709        .29285E-07   -1.3807    
  10  norm          .10000E-03    21.639        .54034E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.6327        28.143        .54610E-08   -1.5327    
  12  Prefactor     .10000E-03    35.878        .65361E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.8097        .12782E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          17.835        13.433        .22029E-08   -1.4863    
  15  Normalizat    1.4519        .31124        .28273E-08   -.79138    
  16  Prefactor     .98108        .11822        .24729E-09   -.93363    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8380.835     FROM MIGRAD    STATUS=CONVERGED    194 CALLS     2906 TOTAL
                     EDM=   .40E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    73.529        .12861E-03** at limit **
   2  Prefactor     .10000E-03    237.08        .35827E-03** at limit **
   3  norm          1.0194        39.969        .94339E-03    .56880E-05
   4  Prefactor     9.8725        41.025        .51001E-05    .89165E-06
   5  norm          .10000E-03    7.7909        .36285E-03** at limit **
   6  Prefactor     107.26        62.303        .77666E-05   -.29276E-05
   7  Prefactor     .10000E-03    73.423        .13230E-03** at limit **
   8  Prefactor     2.8049        4.7864        .48583E-04   -.70202E-05
   9  Prefactor     90.057        93.686        .84683E-05   -.26850E-05
  10  norm          .10000E-03    21.642        .36285E-03** at limit **
  11  Prefactor     3.6327        28.106        .84789E-05   -.10727E-05
  12  Prefactor     .10000E-03    35.893        .36285E-03** at limit **
  13  Prefactor     .10000E-03    2.8101        .29898E-03** at limit **
  14  norm          17.835        13.433        .37936E-05   -.23975E-06
  15  Normalizat    1.4519        .31130        .15112E-04    .28587E-04
  16  Prefactor     .98108        .11808        .34877E-04    .58544E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.01943
  Prefactor  = 9.87249
  norm       = 0.0001
  Prefactor  = 107.264
  Prefactor  = 0.0001
  Prefactor  = 2.80494
  Prefactor  = 90.0573
  norm       = 0.0001
  Prefactor  = 3.63275
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 17.8346
  Normalizat = 1.45195
  Prefactor  = 0.981075
 **********
 **   18 **HESSE 
 **********

 FCN=   8380.835     FROM HESSE     STATUS=OK           193 CALLS     3099 TOTAL
                     EDM=   .38E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    73.529        .25721E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    237.10        .71654E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.0194        39.901        .37736E-04   -1.5506    
   4  Prefactor     9.8725        41.119        .10200E-03   -1.5079    
   5  norm          .10000E-03    7.7910        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     107.26        62.297        .15533E-05   -1.3633    
   7  Prefactor     .10000E-03    73.419        .26460E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.8049        4.7871        .19433E-05   -1.5373    
   9  Prefactor     90.057        93.408        .16937E-05   -1.3807    
  10  norm          .10000E-03    21.642        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.6327        27.852        .16958E-05   -1.5327    
  12  Prefactor     .10000E-03    35.894        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.8101        .59796E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          17.835        13.433        .37936E-05   -1.4863    
  15  Normalizat    1.4519        .31057        .30225E-05   -.79138    
  16  Prefactor     .98108        .11791        .69753E-05   -.93363    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.80213e-12
Minuit parameter uncertainties:
  1  2.12737e-05
  2  0.000553158
  3  12.7642
  4  40.3435
  5  1.03478e-06
  6  62.3352
  7  3.26651e-05
  8  4.78777
  9  93.5613
  10  3.77538e-06
  11  20.1304
  12  7.95132e-06
  13  5.81e-07
  14  13.4353
  15  0.310975
  16  0.117942
Done.

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

Extracting fit parameters...

4FGL J2037.0-2826
   Spectrum: PowerLaw
318    Prefactor:  1.000e-04  3.267e-05  1.000e-04  1.000e+04 ( 1.000e-12)
319        Index:  2.567e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
320        Scale:  6.447e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
583    Prefactor:  9.811e-01  1.179e-01  0.000e+00  1.000e+01 ( 1.000e+00)
584        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
585        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
582   Normalization:  1.452e+00  3.110e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 309.252 -28.438
Photon Flux Upper Limit: 1.30e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.01e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/75045/likelihoodResults_504489601_504748801_4FGL_J2037.0-2826_daily_bin1023.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) = 8380.83484297
delta logL = -6.58683911752e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8380.83484283
delta logL = -6.57313667034e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96222E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5677       1.0000          .0000       10.000    
     3 'Normalizat'    1.4518       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98111       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5860E+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=   8380.835     FROM MIGRAD    STATUS=CONVERGED    122 CALLS      285 TOTAL
                     EDM=   .97E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .27406E-03    .71826        .51495E-01** at limit **
   2  Index         2.8670        6.1784        .50000       -.17349E-04
   3  Normalizat    1.4519        .24127E-02    .37781E-03   -.14209E-03
   4  Prefactor     .98107        .94495E-03    .17438E-03   -.35765E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000274062
  Index      = 2.86699
  Normalizat = 1.45195
  Prefactor  = 0.981075
 **********
 **   18 **HESSE 
 **********

 FCN=   8380.835     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      324 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .27406E-03    .61819        .54899E-01   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8670        6.5136        .50000       -.44073    
   3  Normalizat    1.4519        .23565E-02    .15112E-04   -.79138    
   4  Prefactor     .98107        .92294E-03    .34877E-04   -.93363    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.89389e-10
Minuit parameter uncertainties:
  1  0.0207466
  2  25.6077
  3  0.0023565
  4  0.000922939
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/75045': 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) = 8380.83477529
delta logL = 1.80877214007e-06

Extracting fit parameters...

4FGL J2037.0-2826
   Spectrum: PowerLaw
318    Prefactor:  2.741e-04  2.075e-02  1.000e-04  1.000e+04 ( 1.000e-12)
319        Index:  2.867e+00  2.561e+01  0.000e+00  1.000e+01 (-1.000e+00)
320        Scale:  6.447e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
583    Prefactor:  9.811e-01  9.229e-04  0.000e+00  1.000e+01 ( 1.000e+00)
584        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
585        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
582   Normalization:  1.452e+00  2.357e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 309.252 -28.438

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/75045/cmap_HighResolution_504489601_504748801_4FGL_J2037.0-2826_daily_bin1023.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.01e-02', job_status='DONE', photon_flux_upper_limit='1.30e-07', time_completed='2021-09-25 14:07:11.042002', job_id='75045', GAL2='0.98', fit_tolerance='1e-08', EG2='1.45', EG='1.45', time_epoch_completed='1632604031.04', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='1.81e-06', ts2='0.00', photon_index_error='0.00', photon_index='2.57' WHERE bin_id='1023' AND source_name='4FGL J2037.0-2826' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 14:07:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0128>
Subject: Job 75045: <4FGL_J2037.0-2826_daily_bin1023> in cluster <slac> Done

Job <4FGL_J2037.0-2826_daily_bin1023> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Sep 25 13:50:41 2021
Job was executed on host(s) <bullet0128>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 13:51:53 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 25 13:51:53 2021
Terminated at Sat Sep 25 14:07:11 2021
Results reported at Sat Sep 25 14:07:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2037.0-2826_daily_bin1023 309.252 -28.4383 504489601 504748801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2037.0-2826 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   751.27 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             304.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   918 sec.
    Turnaround time :                            990 sec.

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

