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


Performing analysis on: 4FGL_J2031.2-4121_daily_bin1743
RA = 307.811, Dec = -41.3574
tmin = 691113601, tmax = 691372801
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='462658', job_status='RUN', time_executed='2022-11-29 01:09:56.792940', time_epoch_executed='1669712996.79' WHERE source_name='4FGL J2031.2-4121' and cadence='daily' and bin_id='1743'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/462658

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/462658/ft1_4FGL_J2031.2-4121_daily_bin1743.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/462658/ft2_4FGL_J2031.2-4121_daily_bin1743.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/462658/ft1_4FGL_J2031.2-4121_daily_bin1743.fits outfile=/scratch/kocevski/462658/ft1_filteredMKT_4FGL_J2031.2-4121_daily_bin1743.fits ra=307.811 dec=-41.3574 rad=12.0 tmin=691113601.0 tmax=691372801.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 2.75
user 2.51
sys 0.21

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

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

Number of photons that the gtmktime cut: 1087

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/462658/ft1_filtered_4FGL_J2031.2-4121_daily_bin1743.fits" evtable="EVENTS" scfile=/scratch/kocevski/462658/ft2_4FGL_J2031.2-4121_daily_bin1743.fits sctable="SC_DATA" outfile=/scratch/kocevski/462658/ltcube_691113601_691372801_4FGL_J2031.2-4121_daily_bin1743.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/462658/ft2_4FGL_J2031.2-4121_daily_bin1743.fits
.....................!
real 14.71
user 14.29
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/462658/ft1_filtered_4FGL_J2031.2-4121_daily_bin1743.fits evtable="EVENTS" scfile=/scratch/kocevski/462658/ft2_4FGL_J2031.2-4121_daily_bin1743.fits sctable="SC_DATA" expcube=/scratch/kocevski/462658/ltcube_691113601_691372801_4FGL_J2031.2-4121_daily_bin1743.fits outfile=/scratch/kocevski/462658/expmap_691113601_691372801_4FGL_J2031.2-4121_daily_bin1743.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/462658/ltcube_691113601_691372801_4FGL_J2031.2-4121_daily_bin1743.fits
.....................!
real 192.53
user 186.36
sys 5.80

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/462658/ft1_filtered_4FGL_J2031.2-4121_daily_bin1743.fits scfile=/scratch/kocevski/462658/ft2_4FGL_J2031.2-4121_daily_bin1743.fits outfile=/scratch/kocevski/462658/cmap_691113601_691372801_4FGL_J2031.2-4121_daily_bin1743.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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/462658/ft1_filtered_4FGL_J2031.2-4121_daily_bin1743.fits scfile=/scratch/kocevski/462658/ft2_4FGL_J2031.2-4121_daily_bin1743.fits outfile=/scratch/kocevski/462658/cmap_HighResolution_691113601_691372801_4FGL_J2031.2-4121_daily_bin1743.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.56
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.4394       1.0000          .0000       .10000E+07
     2 'Prefactor '    11.319       1.0000          .0000       .10000E+07
     3 'Prefactor '    22.452       1.0000          .0000       .10000E+07
     4 'norm      '    7.7434       1.0000          .0000       .10000E+07
     5 'Prefactor '    3.8756       1.0000          .0000       .10000E+07
     6 'norm      '    27.851       1.0000          .0000       .10000E+07
     7 'norm      '    .21806E-03   1.0000          .0000       .10000E+07
     8 'norm      '    25.103       1.0000          .0000       .10000E+07
     9 'norm      '    2.1775       1.0000          .0000       .10000E+07
    10 'norm      '    2.4874       1.0000          .0000       .10000E+07
    11 'norm      '    .44546E-03   1.0000          .0000       .10000E+07
    12 'norm      '    24.176       1.0000          .0000       .10000E+07
    13 'Prefactor '    .21278E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    9.0772       1.0000          .0000       .10000E+07
    15 'norm      '    .31979E-05   1.0000          .0000       .10000E+07
    16 'Prefactor '    .19423E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    .34246E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    4.0088       1.0000          .0000       .10000E+07
    19 'Normalizat'    1.0813       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0830       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=   11159.65     FROM MIGRAD    STATUS=CONVERGED    118 CALLS     1485 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.4505        8.6302        .42185E-06   -.59125E-03
   2  Prefactor     11.396        4.2894        .24146E-06    .85795E-02
   3  Prefactor     22.444        1.3143        .11641E-07    .22484E-02
   4  norm          7.7769        2.2101        .70742E-07    .37029E-01
   5  Prefactor     3.8934        5.3736       -.22952E-06    .74117E-03
   6  norm          27.851        2.5584        .70769E-07   -.45050E-02
   7  norm          .55511E-10    3.4908       -.66266E-06** at limit **
   8  norm          24.926        10.208       -.34352E-06   -.26314E-01
   9  norm          2.1760        1.6910        .40269E-07    .39658E-05
  10  norm          2.4884        2.4072       -.11376E-06    .90333E-03
  11  norm           .0000        7.2001        .23809E-06** at limit **
  12  norm          24.216        1.0376       -.19139E-08    .76738E-02
  13  Prefactor     .22204E-09    69.846        .93774E-06** at limit **
  14  Prefactor     8.9326        14.313       -.90576E-06    .18926E-01
  15  norm           .0000        .39928        .37478E-07** at limit **
  16  Prefactor      .0000        6.4245       -.14384E-06** at limit **
  17  Prefactor      .0000        3.7380       -.16618E-06** at limit **
  18  Prefactor     4.4758        40.169        .11349E-05    .16540E-02
  19  Normalizat    1.0808        .24478       -.83118E-05    .11306E-04
  20  Prefactor     1.0833        .11099        .34873E-05   -.18085E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.45052
  Prefactor  = 11.3962
  Prefactor  = 22.4441
  norm       = 7.77685
  Prefactor  = 3.89337
  norm       = 27.8513
  norm       = 5.55112e-11
  norm       = 24.9264
  norm       = 2.17595
  norm       = 2.48841
  norm       = 0
  norm       = 24.216
  Prefactor  = 2.22045e-10
  Prefactor  = 8.93258
  norm       = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 4.47583
  Normalizat = 1.08081
  Prefactor  = 1.08329
 **********
 **   18 **HESSE 
 **********

 FCN=   11159.65     FROM HESSE     STATUS=OK           337 CALLS     1822 TOTAL
                     EDM=   .84E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.4505        8.7004        .43061E-03   -1.5661    
   2  Prefactor     11.396        17.981        .29752E-03   -1.5640    
   3  Prefactor     22.444        12.376        .21110E-03   -1.5613    
   4  norm          7.7769        14.806        .36012E-03   -1.5652    
   5  Prefactor     3.8934        5.3906        .51232E-03   -1.5668    
   6  norm          27.851        2.5697        .18952E-03   -1.5602    
   7  norm          .55511E-10    3.4957        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          24.926        17.621        .19963E-03   -1.5608    
   9  norm          2.1760        1.6883        .69743E-03   -1.5678    
  10  norm          2.4884        2.4167        .64787E-03   -1.5676    
  11  norm           .0000        7.2032        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          24.216        18.953        .20343E-03   -1.5610    
  13  Prefactor     .22204E-09    69.893        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.9326        18.199        .33242E-03   -1.5648    
  15  norm           .0000        .39881        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor      .0000        6.4306        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor      .0000        3.7388        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.4758        40.901        .50344E-03   -1.5666    
  19  Normalizat    1.0808        .21633        .94842E-01   -.90370    
  20  Prefactor     1.0833        .98039E-01    .38271E-01   -.90002    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.44925e-08
Minuit parameter uncertainties:
  1  8.7004
  2  17.9806
  3  12.3762
  4  14.8059
  5  5.39058
  6  2.56971
  7  2.06442e-05
  8  17.6212
  9  1.6883
  10  2.4167
  11  1.20597e-05
  12  18.9529
  13  0.000263591
  14  18.199
  15  3.80463e-07
  16  1.03677e-05
  17  9.20452e-06
  18  27.0606
  19  0.216505
  20  0.0980555
Done.

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

Extracting fit parameters...

4FGL J2031.2-4121
   Spectrum: LogParabola
278         norm:  2.422e+01  1.895e+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:  1.083e+00  9.806e-02  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.081e+00  2.165e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.41
Ra Dec: 307.811 -41.357
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 1.92e-08 +/- 1.51e-08
Energy Flux (Fixed Index): 1.51e-05 +/- 1.18e-05

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

Saving results to:
/scratch/kocevski/462658/likelihoodResults_691113601_691372801_4FGL_J2031.2-4121_daily_bin1743.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) = 11158.6398761
delta logL = 1.0069998392

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11158.6224693
delta logL = 1.02440660936

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.799       1.0000          .0000       .10000E+07
     2 'alpha     '    3.5355       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0478       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0866       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=   11158.62     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      281 TOTAL
                     EDM=   .46E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.798        14.819        .12185E-04   -.17932E-02
   2  alpha         3.5356        .94987        .15235E-01   -.14163E-04
   3  Normalizat    1.0478        .24150        .42553E-03   -.79081E-04
   4  Prefactor     1.0865        .10910        .19012E-03   -.29505E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 10.798
  alpha      = 3.53563
  Normalizat = 1.04779
  Prefactor  = 1.08653
 **********
 **   18 **HESSE 
 **********

 FCN=   11158.62     FROM HESSE     STATUS=OK            25 CALLS      306 TOTAL
                     EDM=   .60E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.798        12.103        .48741E-06   -1.5642    
   2  alpha         3.5356        .78332        .60942E-03    .42712    
   3  Normalizat    1.0478        .24041        .17021E-04   -.91446    
   4  Prefactor     1.0865        .10898        .38023E-04   -.89898    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.04797e-11
Minuit parameter uncertainties:
  1  12.1028
  2  0.799681
  3  0.240665
  4  0.109001
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/462658': 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) = 11158.6224692
delta logL = 1.02440668537

Extracting fit parameters...

4FGL J2031.2-4121
   Spectrum: LogParabola
278         norm:  1.080e+01  1.210e+01  0.000e+00  1.000e+06 ( 1.000e-13)
279        alpha:  3.536e+00  7.997e-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.087e+00  1.090e-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.048e+00  2.407e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.45
Ra Dec: 307.811 -41.357
Photon Index (Free Index): 3.54 +/- 0.80
Photon Flux (Free Index): 5.70e-08 +/- 4.42e-08
Energy Flux (Free Index): 1.82e-05 +/- 1.07e-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/462658/cmap_HighResolution_691113601_691372801_4FGL_J2031.2-4121_daily_bin1743.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.39e-05', comment='SUCCESS', photon_flux='1.92e-08', energy_flux2='1.82e-05', photon_flux_error='1.51e-08', dlogl='1.02e+00', energy_flux='1.51e-05', photon_flux2='5.70e-08', job_status='DONE', time_completed='2022-11-29 01:22:05.691299', photon_index_error2='0.80', photon_index2='3.54', ts='3.41', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', photon_flux_upper_limit='5.60e-08', energy_flux_error2='1.07e-05', EG='1.08', time_epoch_completed='1669713725.69', return_code='0', job_id='462658', GAL2='1.09', EG2='1.05', return_code2='0', energy_flux_error='1.18e-05', photon_flux_error2='4.42e-08', ts2='5.45', photon_index='2.28' WHERE bin_id='1743' AND source_name='4FGL J2031.2-4121' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Nov 29 01:22:05 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0102>
Subject: Job 462658: <4FGL_J2031.2-4121_daily_bin1743> in cluster <slac> Done

Job <4FGL_J2031.2-4121_daily_bin1743> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Nov 29 01:05:28 2022
Job was executed on host(s) <bullet0102>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Nov 29 01:07:51 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Nov 29 01:07:51 2022
Terminated at Tue Nov 29 01:22:06 2022
Results reported at Tue Nov 29 01:22:06 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2031.2-4121_daily_bin1743 307.811 -41.3574 691113601 691372801 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 :                                   731.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             320.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   854 sec.
    Turnaround time :                            998 sec.

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

