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


Performing analysis on: 4FGL_J2139.4-4235_daily_bin1780
RA = 324.855, Dec = -42.5895
tmin = 700704001, tmax = 700963201
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='77898', job_status='RUN', time_executed='2023-03-20 01:47:18.738806', time_epoch_executed='1679302038.74' WHERE source_name='4FGL J2139.4-4235' and cadence='daily' and bin_id='1780'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/77898

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/77898/ft1_4FGL_J2139.4-4235_daily_bin1780.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/77898/ft2_4FGL_J2139.4-4235_daily_bin1780.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/77898/ft1_4FGL_J2139.4-4235_daily_bin1780.fits outfile=/scratch/kocevski/77898/ft1_filteredMKT_4FGL_J2139.4-4235_daily_bin1780.fits ra=324.855 dec=-42.5895 rad=12.0 tmin=700704001.0 tmax=700963201.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.10
user 3.89
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/77898/ft2_4FGL_J2139.4-4235_daily_bin1780.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/77898/ft2_4FGL_J2139.4-4235_daily_bin1780.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/77898/ft1_filteredMKT_4FGL_J2139.4-4235_daily_bin1780.fits evtable="EVENTS" outfile="/scratch/kocevski/77898/ft1_filtered_4FGL_J2139.4-4235_daily_bin1780.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.34
sys 0.14

Number of photons that the gtmktime cut: 757

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/77898/ft1_filtered_4FGL_J2139.4-4235_daily_bin1780.fits" evtable="EVENTS" scfile=/scratch/kocevski/77898/ft2_4FGL_J2139.4-4235_daily_bin1780.fits sctable="SC_DATA" outfile=/scratch/kocevski/77898/ltcube_700704001_700963201_4FGL_J2139.4-4235_daily_bin1780.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/77898/ft2_4FGL_J2139.4-4235_daily_bin1780.fits
.....................!
real 12.94
user 12.59
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/77898/ft1_filtered_4FGL_J2139.4-4235_daily_bin1780.fits evtable="EVENTS" scfile=/scratch/kocevski/77898/ft2_4FGL_J2139.4-4235_daily_bin1780.fits sctable="SC_DATA" expcube=/scratch/kocevski/77898/ltcube_700704001_700963201_4FGL_J2139.4-4235_daily_bin1780.fits outfile=/scratch/kocevski/77898/expmap_700704001_700963201_4FGL_J2139.4-4235_daily_bin1780.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/77898/ltcube_700704001_700963201_4FGL_J2139.4-4235_daily_bin1780.fits
.....................!
real 190.56
user 185.76
sys 4.37

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

Setting source of interest to:
4FGL J2139.4-4235 @ 324.855 -42.5895

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/77898/ft1_filtered_4FGL_J2139.4-4235_daily_bin1780.fits scfile=/scratch/kocevski/77898/ft2_4FGL_J2139.4-4235_daily_bin1780.fits outfile=/scratch/kocevski/77898/cmap_700704001_700963201_4FGL_J2139.4-4235_daily_bin1780.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=324.855 yref=-42.5895 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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/77898/ft1_filtered_4FGL_J2139.4-4235_daily_bin1780.fits scfile=/scratch/kocevski/77898/ft2_4FGL_J2139.4-4235_daily_bin1780.fits outfile=/scratch/kocevski/77898/cmap_HighResolution_700704001_700963201_4FGL_J2139.4-4235_daily_bin1780.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=324.855 yref=-42.5895 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.55
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/77898/ft1_filtered_4FGL_J2139.4-4235_daily_bin1780.fits evtable="EVENTS" scfile=/scratch/kocevski/77898/ft2_4FGL_J2139.4-4235_daily_bin1780.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/77898/Model_4FGL_J2139.4-4235_daily_bin1780.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/77898/ft1_filtered_4FGL_J2139.4-4235_daily_bin1780.fits.....................!
real 63.85
user 62.47
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/77898/ft1_filtered_4FGL_J2139.4-4235_daily_bin1780.fits', '/scratch/kocevski/77898/ft2_4FGL_J2139.4-4235_daily_bin1780.fits', expMap='/scratch/kocevski/77898/expmap_700704001_700963201_4FGL_J2139.4-4235_daily_bin1780.fits', expCube='/scratch/kocevski/77898/ltcube_700704001_700963201_4FGL_J2139.4-4235_daily_bin1780.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/77898/Model_4FGL_J2139.4-4235_daily_bin1780.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2139.4-4235'

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  7.892e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
299        alpha:  1.929e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
300         beta:  4.914e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
301           Eb:  8.547e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/77898/ft1_filtered_4FGL_J2139.4-4235_daily_bin1780.fits
Spacecraft file(s): /scratch/kocevski/77898/ft2_4FGL_J2139.4-4235_daily_bin1780.fits
Exposure map: /scratch/kocevski/77898/expmap_700704001_700963201_4FGL_J2139.4-4235_daily_bin1780.fits
Exposure cube: /scratch/kocevski/77898/ltcube_700704001_700963201_4FGL_J2139.4-4235_daily_bin1780.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/77898/Model_4FGL_J2139.4-4235_daily_bin1780.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) = 8210.42972736

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.1500       1.0000          .0000       .10000E+07
     2 'norm      '    1.3329       1.0000          .0000       .10000E+07
     3 'Prefactor '    47.642       1.0000          .0000       .10000E+07
     4 'Prefactor '    7.2869       1.0000          .0000       .10000E+07
     5 'Prefactor '    13.910       1.0000          .0000       .10000E+07
     6 'Prefactor '    .35817E-05   1.0000          .0000       .10000E+07
     7 'Prefactor '    .10117E-04   1.0000          .0000       .10000E+07
     8 'norm      '    2.4887       1.0000          .0000       .10000E+07
     9 'Prefactor '    1.4761       1.0000          .0000       .10000E+07
    10 'Prefactor '    .17159E-04   1.0000          .0000       .10000E+07
    11 'norm      '    1.4409       1.0000          .0000       .10000E+07
    12 'Prefactor '    15.611       1.0000          .0000       .10000E+07
    13 'Prefactor '    .36360E-07   1.0000          .0000       .10000E+07
    14 'Prefactor '    88.673       1.0000          .0000       .10000E+07
    15 'Prefactor '    3.9633       1.0000          .0000       .10000E+07
    16 'Prefactor '    .65886       1.0000          .0000       .10000E+07
    17 'Prefactor '    .60856E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    .48987E-05   1.0000          .0000       .10000E+07
    19 'Prefactor '    .42568E-02   1.0000          .0000       .10000E+07
    20 'Normalizat'    1.1423       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0863       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5810E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8210.420     FROM MIGRAD    STATUS=CONVERGED    177 CALLS     1679 TOTAL
                     EDM=   .29E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .53871        618.15       -.38382E-05   -.13572E-03
   2  norm          1.3334        1.5134       -.67002E-08    .76758E-03
   3  Prefactor     47.807        2.6890        .11741E-08   -.21918E-01
   4  Prefactor     7.2631        7.5712       -.35748E-09   -.41386E-03
   5  Prefactor     14.414        4.0511       -.38158E-07    .11633E-01
   6  Prefactor     .50515E-08    41.836       -.43738E-07** at limit **
   7  Prefactor      .0000        2.2340        .26690E-07** at limit **
   8  norm          2.4802        3.0650        .82382E-08   -.47387E-03
   9  Prefactor     1.3914        9.4790       -.26890E-07    .79141E-04
  10  Prefactor      .0000        2.6212        .22071E-07** at limit **
  11  norm          1.4453        5.6915       -.22638E-07    .18128E-03
  12  Prefactor     15.980        22.116       -.11364E-07    .47050E-04
  13  Prefactor     .22204E-09    35.388       -.18403E-06** at limit **
  14  Prefactor     87.600        96.947       -.70202E-07   -.24392E-03
  15  Prefactor     4.0240        6.2911        .18690E-07   -.15476E-03
  16  Prefactor     .67265        7.1507       -.34599E-07    .20520E-03
  17  Prefactor     .55511E-10    14.384       -.80657E-07** at limit **
  18  Prefactor      .0000        3.8411       -.14891E-07** at limit **
  19  Prefactor      .0000        9.5673       -.23676E-07** at limit **
  20  Normalizat    1.1417        .22473        .39304E-06    .12522E-04
  21  Prefactor     1.0865        .14273       -.12829E-06    .30059E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.53871
  norm       = 1.33337
  Prefactor  = 47.8066
  Prefactor  = 7.26313
  Prefactor  = 14.4136
  Prefactor  = 5.05151e-09
  Prefactor  = 0
  norm       = 2.48016
  Prefactor  = 1.3914
  Prefactor  = 0
  norm       = 1.44528
  Prefactor  = 15.9796
  Prefactor  = 2.22045e-10
  Prefactor  = 87.6
  Prefactor  = 4.02398
  Prefactor  = 0.672651
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 0
  Normalizat = 1.14173
  Prefactor  = 1.08653
 **********
 **   18 **HESSE 
 **********

 FCN=   8210.420     FROM HESSE     STATUS=OK           371 CALLS     2050 TOTAL
                     EDM=   .69E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .53871        33.706        .17370E-01   -1.5693    
   2  norm          1.3334        1.5383        .95044E-03   -1.5685    
   3  Prefactor     47.807        27.501        .14489E-03   -1.5570    
   4  Prefactor     7.2631        7.6926        .37133E-03   -1.5654    
   5  Prefactor     14.414        32.434        .26830E-03   -1.5632    
   6  Prefactor     .50515E-08    42.114        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        2.2166        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.4802        3.1432        .64769E-03   -1.5676    
   9  Prefactor     1.3914        9.4815        .88357E-03   -1.5684    
  10  Prefactor      .0000        2.6203        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.4453        5.7389        .89833E-03   -1.5684    
  12  Prefactor     15.980        22.254        .25323E-03   -1.5628    
  13  Prefactor     .22204E-09    34.583        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     87.600        95.980        .10620E-03   -1.5521    
  15  Prefactor     4.0240        6.2999        .50642E-03   -1.5668    
  16  Prefactor     .67265        7.0896        .64113E-03   -1.5692    
  17  Prefactor     .55511E-10    14.338        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor      .0000        3.8372        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor      .0000        9.5707        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.1417        .19839        .67307E-01   -.88423    
  21  Prefactor     1.0865        .12344        .38132E-01   -.89898    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.90482e-08
Minuit parameter uncertainties:
  1  8.5225
  2  1.53833
  3  27.501
  4  7.69265
  5  32.434
  6  0.000920714
  7  1.02968e-05
  8  3.14317
  9  7.26433
  10  5.26778e-06
  11  5.7389
  12  22.2541
  13  0.000166094
  14  95.982
  15  6.29988
  16  4.36752
  17  5.33893e-05
  18  4.38715e-06
  19  1.62619e-05
  20  0.198519
  21  0.123474
Done.

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

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  2.480e+00  3.143e+00  0.000e+00  1.000e+06 ( 1.000e-12)
299        alpha:  1.929e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
300         beta:  4.914e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
301           Eb:  8.547e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
578    Prefactor:  1.087e+00  1.235e-01  0.000e+00  1.000e+01 ( 1.000e+00)
579        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
580        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
577   Normalization:  1.142e+00  1.985e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.45
Ra Dec: 324.855 -42.590
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 1.50e-08 +/- 1.90e-08
Energy Flux (Fixed Index): 1.06e-05 +/- 1.34e-05

TS (Fixed Index): 1.45
Ra Dec: 324.855 -42.590
Photon Flux Upper Limit: 7.14e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.03e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/77898/likelihoodResults_700704001_700963201_4FGL_J2139.4-4235_daily_bin1780.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) = 8210.30008812
delta logL = 0.119758206221

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8210.28305232
delta logL = 0.136794012211

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.8774       1.0000          .0000       .10000E+07
     2 'alpha     '    2.7356       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0998       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0997       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5810E+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=   8210.283     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      243 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.8777        4.0196        .13340E-04    .76801E-02
   2  alpha         2.7358        1.3183        .17229E-01    .68483E-04
   3  Normalizat    1.0998        .22370        .30255E-03    .34938E-03
   4  Prefactor     1.0997        .14324        .20393E-03    .20999E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.8777
  alpha      = 2.73583
  Normalizat = 1.09982
  Prefactor  = 1.09966
 **********
 **   18 **HESSE 
 **********

 FCN=   8210.283     FROM HESSE     STATUS=OK            25 CALLS      268 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.8777        3.4994        .53361E-06   -1.5674    
   2  alpha         2.7358        1.1577        .68915E-03    .94471E-01
   3  Normalizat    1.0998        .22103        .60510E-04   -.89758    
   4  Prefactor     1.0997        .14243        .40787E-04   -.89477    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.66848e-10
Minuit parameter uncertainties:
  1  3.49941
  2  1.20408
  3  0.221218
  4  0.142482
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/77898': 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) = 8210.28305193
delta logL = 0.136794402575

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  2.878e+00  3.499e+00  0.000e+00  1.000e+06 ( 1.000e-12)
299        alpha:  2.736e+00  1.204e+00  0.000e+00  5.000e+00 ( 1.000e+00)
300         beta:  4.914e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
301           Eb:  8.547e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
578    Prefactor:  1.100e+00  1.425e-01  0.000e+00  1.000e+01 ( 1.000e+00)
579        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
580        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
577   Normalization:  1.100e+00  2.212e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.74
Ra Dec: 324.855 -42.590
Photon Index (Free Index): 2.74 +/- 1.20
Photon Flux (Free Index): 5.13e-08 +/- 7.21e-08
Energy Flux (Free Index): 1.24e-05 +/- 1.18e-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/77898/cmap_HighResolution_700704001_700963201_4FGL_J2139.4-4235_daily_bin1780.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.03e-05', comment='SUCCESS', photon_flux='1.50e-08', energy_flux2='1.24e-05', photon_flux_error='1.90e-08', dlogl='1.37e-01', energy_flux='1.06e-05', photon_flux2='5.13e-08', job_status='DONE', time_completed='2023-03-20 01:58:38.564664', photon_index_error2='1.20', photon_index2='2.74', ts='1.45', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', photon_flux_upper_limit='7.14e-08', energy_flux_error2='1.18e-05', EG='1.14', time_epoch_completed='1679302718.56', return_code='0', job_id='77898', GAL2='1.10', EG2='1.10', return_code2='0', energy_flux_error='1.34e-05', photon_flux_error2='7.21e-08', ts2='1.74', photon_index='1.93' WHERE bin_id='1780' AND source_name='4FGL J2139.4-4235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Mar 20 01:58:38 PDT 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0263>
Subject: Job 77898: <4FGL_J2139.4-4235_daily_bin1780> in cluster <slac> Done

Job <4FGL_J2139.4-4235_daily_bin1780> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Mar 20 01:45:15 2023
Job was executed on host(s) <bullet0263>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Mar 20 01:45:17 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Mar 20 01:45:17 2023
Terminated at Mon Mar 20 01:58:39 2023
Results reported at Mon Mar 20 01:58:39 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2139.4-4235_daily_bin1780 324.855 -42.5895 700704001 700963201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2139.4-4235 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   682.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             274.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   801 sec.
    Turnaround time :                            804 sec.

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

