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


Performing analysis on: 4FGL_J2031.2-4121_daily_bin1749
RA = 307.811, Dec = -41.3574
tmin = 692668801, tmax = 692928001
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='961968', job_status='RUN', time_executed='2022-12-17 01:22:18.488474', time_epoch_executed='1671268938.49' WHERE source_name='4FGL J2031.2-4121' and cadence='daily' and bin_id='1749'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/961968

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/961968/ft1_4FGL_J2031.2-4121_daily_bin1749.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/961968/ft2_4FGL_J2031.2-4121_daily_bin1749.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/961968/ft1_4FGL_J2031.2-4121_daily_bin1749.fits outfile=/scratch/kocevski/961968/ft1_filteredMKT_4FGL_J2031.2-4121_daily_bin1749.fits ra=307.811 dec=-41.3574 rad=12.0 tmin=692668801.0 tmax=692928001.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.62
user 3.43
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/961968/ft2_4FGL_J2031.2-4121_daily_bin1749.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/961968/ft1_filteredMKT_4FGL_J2031.2-4121_daily_bin1749.fits evtable="EVENTS" outfile="/scratch/kocevski/961968/ft1_filtered_4FGL_J2031.2-4121_daily_bin1749.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 746

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/961968/ft1_filtered_4FGL_J2031.2-4121_daily_bin1749.fits" evtable="EVENTS" scfile=/scratch/kocevski/961968/ft2_4FGL_J2031.2-4121_daily_bin1749.fits sctable="SC_DATA" outfile=/scratch/kocevski/961968/ltcube_692668801_692928001_4FGL_J2031.2-4121_daily_bin1749.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/961968/ft2_4FGL_J2031.2-4121_daily_bin1749.fits
.....................!
real 12.07
user 11.71
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/961968/ft1_filtered_4FGL_J2031.2-4121_daily_bin1749.fits evtable="EVENTS" scfile=/scratch/kocevski/961968/ft2_4FGL_J2031.2-4121_daily_bin1749.fits sctable="SC_DATA" expcube=/scratch/kocevski/961968/ltcube_692668801_692928001_4FGL_J2031.2-4121_daily_bin1749.fits outfile=/scratch/kocevski/961968/expmap_692668801_692928001_4FGL_J2031.2-4121_daily_bin1749.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/961968/ltcube_692668801_692928001_4FGL_J2031.2-4121_daily_bin1749.fits
.....................!
real 190.04
user 185.35
sys 4.05

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/961968/ft1_filtered_4FGL_J2031.2-4121_daily_bin1749.fits scfile=/scratch/kocevski/961968/ft2_4FGL_J2031.2-4121_daily_bin1749.fits outfile=/scratch/kocevski/961968/cmap_692668801_692928001_4FGL_J2031.2-4121_daily_bin1749.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/961968/ft1_filtered_4FGL_J2031.2-4121_daily_bin1749.fits scfile=/scratch/kocevski/961968/ft2_4FGL_J2031.2-4121_daily_bin1749.fits outfile=/scratch/kocevski/961968/cmap_HighResolution_692668801_692928001_4FGL_J2031.2-4121_daily_bin1749.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/961968/ft1_filtered_4FGL_J2031.2-4121_daily_bin1749.fits evtable="EVENTS" scfile=/scratch/kocevski/961968/ft2_4FGL_J2031.2-4121_daily_bin1749.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/961968/Model_4FGL_J2031.2-4121_daily_bin1749.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/961968/ft1_filtered_4FGL_J2031.2-4121_daily_bin1749.fits.....................!
real 68.20
user 66.85
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/961968/ft1_filtered_4FGL_J2031.2-4121_daily_bin1749.fits', '/scratch/kocevski/961968/ft2_4FGL_J2031.2-4121_daily_bin1749.fits', expMap='/scratch/kocevski/961968/expmap_692668801_692928001_4FGL_J2031.2-4121_daily_bin1749.fits', expCube='/scratch/kocevski/961968/ltcube_692668801_692928001_4FGL_J2031.2-4121_daily_bin1749.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/961968/Model_4FGL_J2031.2-4121_daily_bin1749.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/961968/ft1_filtered_4FGL_J2031.2-4121_daily_bin1749.fits
Spacecraft file(s): /scratch/kocevski/961968/ft2_4FGL_J2031.2-4121_daily_bin1749.fits
Exposure map: /scratch/kocevski/961968/expmap_692668801_692928001_4FGL_J2031.2-4121_daily_bin1749.fits
Exposure cube: /scratch/kocevski/961968/ltcube_692668801_692928001_4FGL_J2031.2-4121_daily_bin1749.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/961968/Model_4FGL_J2031.2-4121_daily_bin1749.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) = 7997.10666392

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.2454       1.0000          .0000       .10000E+07
     2 'Prefactor '    .21242E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    22.421       1.0000          .0000       .10000E+07
     4 'norm      '    31.418       1.0000          .0000       .10000E+07
     5 'Prefactor '    .19340E-06   1.0000          .0000       .10000E+07
     6 'norm      '    19.881       1.0000          .0000       .10000E+07
     7 'norm      '    .19581E-04   1.0000          .0000       .10000E+07
     8 'norm      '    .13063       1.0000          .0000       .10000E+07
     9 'norm      '    .40923E-06   1.0000          .0000       .10000E+07
    10 'norm      '    5.7596       1.0000          .0000       .10000E+07
    11 'norm      '    .83253E-03   1.0000          .0000       .10000E+07
    12 'norm      '    1.6516       1.0000          .0000       .10000E+07
    13 'Prefactor '    75.229       1.0000          .0000       .10000E+07
    14 'Prefactor '    .11389E-01   1.0000          .0000       .10000E+07
    15 'norm      '    .73261E-01   1.0000          .0000       .10000E+07
    16 'Prefactor '    .21412       1.0000          .0000       .10000E+07
    17 'Prefactor '    .31410E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    .72965E-02   1.0000          .0000       .10000E+07
    19 'Normalizat'    1.7055       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .81041       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=   7997.102     FROM MIGRAD    STATUS=CONVERGED    151 CALLS     1529 TOTAL
                     EDM=   .63E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.2262        5.8782       -.27645E-07   -.40659E-02
   2  Prefactor     .55511E-09    16.228       -.23936E-06** at limit **
   3  Prefactor     22.380        1.8739        .12348E-07   -.19701E-01
   4  norm          31.438        3.0799       -.20929E-07    .47765E-01
   5  Prefactor      .0000        2.8524        .95355E-07** at limit **
   6  norm          19.880        2.5795       -.82851E-08    .76640E-03
   7  norm          .55511E-10    6.5217        .80607E-08** at limit **
   8  norm          .55511E-10    38.694        .29524E-06** at limit **
   9  norm           .0000        .43646       -.38690E-07** at limit **
  10  norm          5.7519        3.9624        .14434E-07   -.36412E-03
  11  norm          .13878E-08    18.789       -.54462E-07** at limit **
  12  norm          1.6286        2.0390       -.31050E-07    .65648E-03
  13  Prefactor     74.444        97.145        .59729E-06    .89896E-03
  14  Prefactor      .0000        8.7909       -.31294E-06** at limit **
  15  norm          .75157E-01    9.5050       -.47478E-06** at limit **
  16  Prefactor     .98255E-08    36.556       -.17827E-06** at limit **
  17  Prefactor      .0000        5.9333        .68563E-07** at limit **
  18  Prefactor     .55511E-10    13.086       -.14407E-07** at limit **
  19  Normalizat    1.7061        .29962        .23862E-05   -.20219E-04
  20  Prefactor     .81054        .12407       -.84507E-06   -.16074E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.22624
  Prefactor  = 5.55112e-10
  Prefactor  = 22.3801
  norm       = 31.4381
  Prefactor  = 0
  norm       = 19.8801
  norm       = 5.55112e-11
  norm       = 5.55112e-11
  norm       = 0
  norm       = 5.75192
  norm       = 1.38778e-09
  norm       = 1.62861
  Prefactor  = 74.4437
  Prefactor  = 0
  norm       = 0.0751567
  Prefactor  = 9.82547e-09
  Prefactor  = 0
  Prefactor  = 5.55112e-11
  Normalizat = 1.70608
  Prefactor  = 0.810544
 **********
 **   18 **HESSE 
 **********

 FCN=   7997.102     FROM HESSE     STATUS=OK           337 CALLS     1866 TOTAL
                     EDM=   .54E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.2262        11.834        .48879E-03   -1.5667    
   2  Prefactor     .55511E-09    16.311        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     22.380        17.748        .21124E-03   -1.5613    
   4  norm          31.438        24.449        .17843E-03   -1.5596    
   5  Prefactor      .0000        2.8672        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          19.880        2.5926        .22435E-03   -1.5619    
   7  norm          .55511E-10    6.5594        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .55511E-10    37.769        .13170E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm           .0000        .43698        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          5.7519        3.9566        .41828E-03   -1.5660    
  11  norm          .13878E-08    18.795        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.6286        67.002        .82116E-03   -1.5682    
  13  Prefactor     74.444        97.162        .11530E-03   -1.5535    
  14  Prefactor      .0000        8.8095        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .75157E-01    .88084        .50061E-02   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .98255E-08    47.476        .11530E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor      .0000        5.9402        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .55511E-10    13.105        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.7061        .25721        .80140E-01   -.72141    
  20  Prefactor     .81054        .10792        .43853E-01   -.99341    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.4167e-08
Minuit parameter uncertainties:
  1  11.8336
  2  0.000193742
  3  17.7479
  4  24.4494
  5  6.7567e-06
  6  2.59256
  7  4.48201e-05
  8  6.83282e-05
  9  9.52666e-07
  10  3.95665
  11  0.000321021
  12  20.8924
  13  97.1636
  14  1.83192e-05
  15  0.514592
  16  0.00136423
  17  1.41814e-05
  18  4.62821e-05
  19  0.257415
  20  0.107947
Done.

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

Extracting fit parameters...

4FGL J2031.2-4121
   Spectrum: LogParabola
278         norm:  1.629e+00  2.089e+01  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:  8.105e-01  1.079e-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:  1.706e+00  2.574e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/961968/likelihoodResults_692668801_692928001_4FGL_J2031.2-4121_daily_bin1749.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) = 7997.10166836
delta logL = 0.000558416895728

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7997.10157766
delta logL = 0.000649117864668

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.9178       1.0000          .0000       .10000E+07
     2 'alpha     '    2.0793       1.0000          .0000       5.0000    
     3 'Normalizat'    1.7062       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81049       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7997.102     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      267 TOTAL
                     EDM=   .88E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.9171        105.31        .30006E-04   -.49255E-05
   2  alpha         2.0787        2.7008        .16765       -.31470E-05
   3  Normalizat    1.7064        .29268        .35462E-03    .82070E-05
   4  Prefactor     .81040        .12441        .20578E-03   -.72648E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.91706
  alpha      = 2.07866
  Normalizat = 1.70641
  Prefactor  = 0.810405
 **********
 **   18 **HESSE 
 **********

 FCN=   7997.102     FROM HESSE     STATUS=OK            25 CALLS      292 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.9171        67.708        .12002E-05   -1.5680    
   2  alpha         2.0787        3.2638        .67061E-02   -.16934    
   3  Normalizat    1.7064        .29241        .14185E-04   -.72132    
   4  Prefactor     .81040        .12418        .82314E-05   -.99346    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.48778e-11
Minuit parameter uncertainties:
  1  22.7863
  2  5.12126
  3  0.292706
  4  0.124221
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/961968': 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) = 7997.10157734
delta logL = 0.000649430361591

Extracting fit parameters...

4FGL J2031.2-4121
   Spectrum: LogParabola
278         norm:  1.917e+00  2.279e+01  0.000e+00  1.000e+06 ( 1.000e-13)
279        alpha:  2.079e+00  5.121e+00  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:  8.104e-01  1.242e-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:  1.706e+00  2.927e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
Ra Dec: 307.811 -41.357

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/961968/cmap_HighResolution_692668801_692928001_4FGL_J2031.2-4121_daily_bin1749.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.90e-05', job_status='DONE', photon_flux_upper_limit='4.98e-08', time_completed='2022-12-17 01:32:12.990867', job_id='961968', GAL2='0.81', fit_tolerance='1e-08', EG2='1.71', EG='1.71', time_epoch_completed='1671269532.99', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='6.49e-04', ts2='0.01', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='1749' AND source_name='4FGL J2031.2-4121' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Dec 17 01:32:13 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0080>
Subject: Job 961968: <4FGL_J2031.2-4121_daily_bin1749> in cluster <slac> Done

Job <4FGL_J2031.2-4121_daily_bin1749> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Dec 17 01:20:13 2022
Job was executed on host(s) <bullet0080>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Dec 17 01:20:15 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Dec 17 01:20:15 2022
Terminated at Sat Dec 17 01:32:13 2022
Results reported at Sat Dec 17 01:32:13 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2031.2-4121_daily_bin1749 307.811 -41.3574 692668801 692928001 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 :                                   596.51 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             328.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   718 sec.
    Turnaround time :                            720 sec.

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

