aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 63 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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 = 7719
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2031.2-4121_daily_bin1751
RA = 307.811, Dec = -41.3574
tmin = 693187201, tmax = 693446401
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='85361', job_status='RUN', time_executed='2022-12-23 01:11:32.891369', time_epoch_executed='1671786692.89' WHERE source_name='4FGL J2031.2-4121' and cadence='daily' and bin_id='1751'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/85361

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/85361/ft1_4FGL_J2031.2-4121_daily_bin1751.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/85361/ft2_4FGL_J2031.2-4121_daily_bin1751.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/85361/ft1_4FGL_J2031.2-4121_daily_bin1751.fits outfile=/scratch/kocevski/85361/ft1_filteredMKT_4FGL_J2031.2-4121_daily_bin1751.fits ra=307.811 dec=-41.3574 rad=12.0 tmin=693187201.0 tmax=693446401.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.61
user 3.38
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/85361/ft2_4FGL_J2031.2-4121_daily_bin1751.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/85361/ft2_4FGL_J2031.2-4121_daily_bin1751.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/85361/ft1_filteredMKT_4FGL_J2031.2-4121_daily_bin1751.fits evtable="EVENTS" outfile="/scratch/kocevski/85361/ft1_filtered_4FGL_J2031.2-4121_daily_bin1751.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.31
sys 0.17

Number of photons that the gtmktime cut: 820

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/85361/ft1_filtered_4FGL_J2031.2-4121_daily_bin1751.fits" evtable="EVENTS" scfile=/scratch/kocevski/85361/ft2_4FGL_J2031.2-4121_daily_bin1751.fits sctable="SC_DATA" outfile=/scratch/kocevski/85361/ltcube_693187201_693446401_4FGL_J2031.2-4121_daily_bin1751.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/85361/ft2_4FGL_J2031.2-4121_daily_bin1751.fits
.....................!
real 12.09
user 11.71
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/85361/ft1_filtered_4FGL_J2031.2-4121_daily_bin1751.fits evtable="EVENTS" scfile=/scratch/kocevski/85361/ft2_4FGL_J2031.2-4121_daily_bin1751.fits sctable="SC_DATA" expcube=/scratch/kocevski/85361/ltcube_693187201_693446401_4FGL_J2031.2-4121_daily_bin1751.fits outfile=/scratch/kocevski/85361/expmap_693187201_693446401_4FGL_J2031.2-4121_daily_bin1751.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/85361/ltcube_693187201_693446401_4FGL_J2031.2-4121_daily_bin1751.fits
.....................!
real 191.76
user 186.43
sys 5.00

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

Setting source of interest to:
4FGL J2031.2-4121 @ 307.811 -41.3574

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/85361/ft1_filtered_4FGL_J2031.2-4121_daily_bin1751.fits scfile=/scratch/kocevski/85361/ft2_4FGL_J2031.2-4121_daily_bin1751.fits outfile=/scratch/kocevski/85361/cmap_693187201_693446401_4FGL_J2031.2-4121_daily_bin1751.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=307.811 yref=-41.3574 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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/85361/ft1_filtered_4FGL_J2031.2-4121_daily_bin1751.fits scfile=/scratch/kocevski/85361/ft2_4FGL_J2031.2-4121_daily_bin1751.fits outfile=/scratch/kocevski/85361/cmap_HighResolution_693187201_693446401_4FGL_J2031.2-4121_daily_bin1751.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=307.811 yref=-41.3574 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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/85361/ft1_filtered_4FGL_J2031.2-4121_daily_bin1751.fits evtable="EVENTS" scfile=/scratch/kocevski/85361/ft2_4FGL_J2031.2-4121_daily_bin1751.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/85361/Model_4FGL_J2031.2-4121_daily_bin1751.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/85361/ft1_filtered_4FGL_J2031.2-4121_daily_bin1751.fits....................!
real 69.14
user 67.85
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/85361/ft1_filtered_4FGL_J2031.2-4121_daily_bin1751.fits', '/scratch/kocevski/85361/ft2_4FGL_J2031.2-4121_daily_bin1751.fits', expMap='/scratch/kocevski/85361/expmap_693187201_693446401_4FGL_J2031.2-4121_daily_bin1751.fits', expCube='/scratch/kocevski/85361/ltcube_693187201_693446401_4FGL_J2031.2-4121_daily_bin1751.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/85361/Model_4FGL_J2031.2-4121_daily_bin1751.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2031.2-4121'

4FGL J2031.2-4121
   Spectrum: LogParabola
278         norm:  1.668e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
279        alpha:  2.281e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
280         beta:  5.212e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
281           Eb:  1.567e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/85361/ft1_filtered_4FGL_J2031.2-4121_daily_bin1751.fits
Spacecraft file(s): /scratch/kocevski/85361/ft2_4FGL_J2031.2-4121_daily_bin1751.fits
Exposure map: /scratch/kocevski/85361/expmap_693187201_693446401_4FGL_J2031.2-4121_daily_bin1751.fits
Exposure cube: /scratch/kocevski/85361/ltcube_693187201_693446401_4FGL_J2031.2-4121_daily_bin1751.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/85361/Model_4FGL_J2031.2-4121_daily_bin1751.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) = 8698.3747683

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .45785       1.0000          .0000       .10000E+07
     2 'Prefactor '    .18357E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    4.6188       1.0000          .0000       .10000E+07
     4 'norm      '    .43847E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    .18874E-08   1.0000          .0000       .10000E+07
     6 'norm      '    15.232       1.0000          .0000       .10000E+07
     7 'norm      '    .22865E-06   1.0000          .0000       .10000E+07
     8 'norm      '    .56676E-03   1.0000          .0000       .10000E+07
     9 'norm      '    2.1109       1.0000          .0000       .10000E+07
    10 'norm      '    2.1978       1.0000          .0000       .10000E+07
    11 'norm      '    .23248E-02   1.0000          .0000       .10000E+07
    12 'norm      '    .23060       1.0000          .0000       .10000E+07
    13 'Prefactor '    11.455       1.0000          .0000       .10000E+07
    14 'Prefactor '    22.575       1.0000          .0000       .10000E+07
    15 'norm      '    .46020       1.0000          .0000       .10000E+07
    16 'Prefactor '    10.920       1.0000          .0000       .10000E+07
    17 'Prefactor '    .28984       1.0000          .0000       .10000E+07
    18 'Prefactor '    .53363E-02   1.0000          .0000       .10000E+07
    19 'Normalizat'    .77426       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1023       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5590E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8698.360     FROM MIGRAD    STATUS=CONVERGED    108 CALLS     1510 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .45805        1.1709        .11812E-05    .44022E-03
   2  Prefactor     .70999E-07    25.617       -.47379E-06** at limit **
   3  Prefactor     4.6188        2.0561       -.73731E-06   -.51136E-03
   4  norm          .28366E-07    9.6853        .73075E-07** at limit **
   5  Prefactor     .55511E-10    1.3667        .63424E-08** at limit **
   6  norm          15.231        2.0924       -.78469E-08    .12720E-01
   7  norm          .49960E-09    3.0957       -.20554E-07** at limit **
   8  norm          .33307E-09    5.2223        .14170E-07** at limit **
   9  norm          2.1108        1.4474       -.13056E-07   -.40128E-02
  10  norm          2.1987        3.3746       -.57932E-07   -.65435E-03
  11  norm          .66613E-09    6.4258        .12899E-06** at limit **
  12  norm          .24578E-05    21.120       -.76644E-05** at limit **
  13  Prefactor     11.398        7.4560       -.19361E-05    .10511    
  14  Prefactor     22.552        1.0395        .22225E-07    .23975E-02
  15  norm          .46014        .97763        .27728E-08    .28421E-02
  16  Prefactor     10.917        1.3192       -.16262E-06    .94878E-02
  17  Prefactor     .28423        21.768       -.84260E-05   -.32207E-01
  18  Prefactor     .17764E-08    16.467        .78935E-06** at limit **
  19  Normalizat    .77431        .25117        .11460E-04   -.24648E-03
  20  Prefactor     1.1024        .11455       -.13812E-05   -.14761E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.458045
  Prefactor  = 7.09988e-08
  Prefactor  = 4.61879
  norm       = 2.83662e-08
  Prefactor  = 5.55112e-11
  norm       = 15.2313
  norm       = 4.996e-10
  norm       = 3.33067e-10
  norm       = 2.11078
  norm       = 2.19873
  norm       = 6.66134e-10
  norm       = 2.45776e-06
  Prefactor  = 11.398
  Prefactor  = 22.5523
  norm       = 0.460136
  Prefactor  = 10.9166
  Prefactor  = 0.284233
  Prefactor  = 1.77636e-09
  Normalizat = 0.774309
  Prefactor  = 1.10245
 **********
 **   18 **HESSE 
 **********

 FCN=   8698.360     FROM HESSE     STATUS=OK           347 CALLS     1857 TOTAL
                     EDM=   .35E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .45805        5.6936        .83068E-02   -1.5694    
   2  Prefactor     .70999E-07    25.683        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.6188        12.333        .46809E-03   -1.5665    
   4  norm          .28366E-07    9.7996        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .55511E-10    1.3662        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          15.231        2.1109        .25636E-03   -1.5630    
   7  norm          .49960E-09    3.1010        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .33307E-09    5.2329        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.1108        1.4499        .70979E-03   -1.5679    
  10  norm          2.1987        3.3992        .69381E-03   -1.5678    
  11  norm          .66613E-09    6.4191        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .24578E-05    11.033        .16495E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     11.398        77.173        .29574E-03   -1.5640    
  14  Prefactor     22.552        19.151        .21052E-03   -1.5613    
  15  norm          .46014        1.1084        .30424E-02   -1.5694    
  16  Prefactor     10.917        24.953        .30293E-03   -1.5642    
  17  Prefactor     .28423        4.4984        .67328E-02   -1.5697    
  18  Prefactor     .17764E-08    16.689        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .77431        .23530        .97187E-01   -1.0103    
  20  Prefactor     1.1024        .10207        .37499E-01   -.89388    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.48886e-06
Minuit parameter uncertainties:
  1  3.22982
  2  0.00270034
  3  12.3335
  4  0.00105463
  5  1.61541e-05
  6  2.11093
  7  7.81128e-05
  8  8.05876e-05
  9  1.44989
  10  3.39917
  11  0.000128671
  12  0.0104145
  13  59.3175
  14  19.1512
  15  1.10841
  16  24.9532
  17  2.26149
  18  0.000342236
  19  0.235607
  20  0.102091
Done.

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

Extracting fit parameters...

4FGL J2031.2-4121
   Spectrum: LogParabola
278         norm:  2.458e-06  1.041e-02  0.000e+00  1.000e+06 ( 1.000e-13)
279        alpha:  2.281e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
280         beta:  5.212e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
281           Eb:  1.567e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
556    Prefactor:  1.102e+00  1.021e-01  0.000e+00  1.000e+01 ( 1.000e+00)
557        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
558        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
555   Normalization:  7.743e-01  2.356e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 307.811 -41.357
Photon Flux Upper Limit: 4.43e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.47e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/85361/likelihoodResults_693187201_693446401_4FGL_J2031.2-4121_daily_bin1751.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) = 8698.36664523
delta logL = -0.00662640021619

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8697.34080976
delta logL = 1.01920907297

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.0351       1.0000          .0000       .10000E+07
     2 'alpha     '    4.1417       1.0000          .0000       5.0000    
     3 'Normalizat'    .73211       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1043       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5590E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8697.341     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      224 TOTAL
                     EDM=   .93E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.0432        55.727        .58219E-03    .45450E-02
   2  alpha         4.1398        4.5679        .46844        .70084E-04
   3  Normalizat    .73223        .75091E-01    .99585E-01    .28111E-04
   4  Prefactor     1.1042        .31603E-01    .37427E-01   -.38365E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.0432
  alpha      = 4.13978
  Normalizat = 0.732229
  Prefactor  = 1.10416
 **********
 **   18 **HESSE 
 **********

 FCN=   8697.341     FROM HESSE     STATUS=OK            31 CALLS      255 TOTAL
                     EDM=   .23E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.0432        5.5922        .13093E-04   -1.5673    
   2  alpha         4.1398        .92268        .20506E-02    .71539    
   3  Normalizat    .73223        .24898        .44137E-03   -1.0263    
   4  Prefactor     1.1042        .11350        .16715E-03   -.89334    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.2529e-12
Minuit parameter uncertainties:
  1  5.59218
  2  0.96407
  3  0.249366
  4  0.113528
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/85361': 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) = 8697.34080677
delta logL = 1.01921206237

Extracting fit parameters...

4FGL J2031.2-4121
   Spectrum: LogParabola
278         norm:  3.043e+00  5.592e+00  0.000e+00  1.000e+06 ( 1.000e-13)
279        alpha:  4.140e+00  9.641e-01  0.000e+00  5.000e+00 ( 1.000e+00)
280         beta:  5.212e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
281           Eb:  1.567e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
556    Prefactor:  1.104e+00  1.135e-01  0.000e+00  1.000e+01 ( 1.000e+00)
557        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
558        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
555   Normalization:  7.322e-01  2.494e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.06
Ra Dec: 307.811 -41.357
Photon Index (Free Index): 4.14 +/- 0.96
Photon Flux (Free Index): 5.24e-08 +/- 4.78e-08
Energy Flux (Free Index): 1.26e-05 +/- 1.06e-05

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/85361/cmap_HighResolution_693187201_693446401_4FGL_J2031.2-4121_daily_bin1751.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.47e-05', comment='SUCCESS', energy_flux2='1.26e-05', dlogl='1.02e+00', photon_flux2='5.24e-08', job_status='DONE', time_completed='2022-12-23 01:21:59.343644', photon_index_error2='0.96', photon_index2='4.14', ts='-0.00', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', photon_flux_upper_limit='4.43e-08', energy_flux_error2='1.06e-05', EG='0.77', time_epoch_completed='1671787319.34', return_code='0', job_id='85361', GAL2='1.10', EG2='0.73', return_code2='0', photon_flux_error2='4.78e-08', ts2='2.06', photon_index='2.28' WHERE bin_id='1751' AND source_name='4FGL J2031.2-4121' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Dec 23 01:21:59 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0074>
Subject: Job 85361: <4FGL_J2031.2-4121_daily_bin1751> in cluster <slac> Done

Job <4FGL_J2031.2-4121_daily_bin1751> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Dec 23 01:10:21 2022
Job was executed on host(s) <bullet0074>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Dec 23 01:10:22 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Dec 23 01:10:22 2022
Terminated at Fri Dec 23 01:22:00 2022
Results reported at Fri Dec 23 01:22:00 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2031.2-4121_daily_bin1751 307.811 -41.3574 693187201 693446401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2031.2-4121 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   628.44 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             319.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   697 sec.
    Turnaround time :                            699 sec.

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

