/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 147 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7390
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2139.4-4235_daily_bin868
RA = 324.855, Dec = -42.5895
tmin = 464313601, tmax = 464572801
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='638282', job_status='RUN', time_executed='2021-09-26 21:43:55.209841', time_epoch_executed='1632717835.21' WHERE source_name='4FGL J2139.4-4235' and cadence='daily' and bin_id='868'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/638282

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/638282/ft1_4FGL_J2139.4-4235_daily_bin868.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/638282/ft2_4FGL_J2139.4-4235_daily_bin868.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/638282/ft1_4FGL_J2139.4-4235_daily_bin868.fits outfile=/scratch/kocevski/638282/ft1_filteredMKT_4FGL_J2139.4-4235_daily_bin868.fits ra=324.855 dec=-42.5895 rad=12.0 tmin=464313601.0 tmax=464572801.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.45
user 3.22
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/638282/ft1_filtered_4FGL_J2139.4-4235_daily_bin868.fits" evtable="EVENTS" scfile=/scratch/kocevski/638282/ft2_4FGL_J2139.4-4235_daily_bin868.fits sctable="SC_DATA" outfile=/scratch/kocevski/638282/ltcube_464313601_464572801_4FGL_J2139.4-4235_daily_bin868.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/638282/ft2_4FGL_J2139.4-4235_daily_bin868.fits
.....................!
real 13.29
user 12.96
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/638282/ft1_filtered_4FGL_J2139.4-4235_daily_bin868.fits evtable="EVENTS" scfile=/scratch/kocevski/638282/ft2_4FGL_J2139.4-4235_daily_bin868.fits sctable="SC_DATA" expcube=/scratch/kocevski/638282/ltcube_464313601_464572801_4FGL_J2139.4-4235_daily_bin868.fits outfile=/scratch/kocevski/638282/expmap_464313601_464572801_4FGL_J2139.4-4235_daily_bin868.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/638282/ltcube_464313601_464572801_4FGL_J2139.4-4235_daily_bin868.fits
.....................!
real 190.81
user 186.05
sys 4.30

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/638282/ft1_filtered_4FGL_J2139.4-4235_daily_bin868.fits scfile=/scratch/kocevski/638282/ft2_4FGL_J2139.4-4235_daily_bin868.fits outfile=/scratch/kocevski/638282/cmap_464313601_464572801_4FGL_J2139.4-4235_daily_bin868.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/638282/ft1_filtered_4FGL_J2139.4-4235_daily_bin868.fits scfile=/scratch/kocevski/638282/ft2_4FGL_J2139.4-4235_daily_bin868.fits outfile=/scratch/kocevski/638282/cmap_HighResolution_464313601_464572801_4FGL_J2139.4-4235_daily_bin868.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.57
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/638282/ft1_filtered_4FGL_J2139.4-4235_daily_bin868.fits evtable="EVENTS" scfile=/scratch/kocevski/638282/ft2_4FGL_J2139.4-4235_daily_bin868.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/638282/Model_4FGL_J2139.4-4235_daily_bin868.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/638282/ft1_filtered_4FGL_J2139.4-4235_daily_bin868.fits.....................!
real 44.04
user 42.74
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/638282/ft1_filtered_4FGL_J2139.4-4235_daily_bin868.fits', '/scratch/kocevski/638282/ft2_4FGL_J2139.4-4235_daily_bin868.fits', expMap='/scratch/kocevski/638282/expmap_464313601_464572801_4FGL_J2139.4-4235_daily_bin868.fits', expCube='/scratch/kocevski/638282/ltcube_464313601_464572801_4FGL_J2139.4-4235_daily_bin868.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/638282/Model_4FGL_J2139.4-4235_daily_bin868.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  1.000e-04  1.000e+04 ( 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  0.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/638282/ft1_filtered_4FGL_J2139.4-4235_daily_bin868.fits
Spacecraft file(s): /scratch/kocevski/638282/ft2_4FGL_J2139.4-4235_daily_bin868.fits
Exposure map: /scratch/kocevski/638282/expmap_464313601_464572801_4FGL_J2139.4-4235_daily_bin868.fits
Exposure cube: /scratch/kocevski/638282/ltcube_464313601_464572801_4FGL_J2139.4-4235_daily_bin868.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/638282/Model_4FGL_J2139.4-4235_daily_bin868.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) = 5139.21411285

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.8695       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    6.4773       1.0000         .10000E-03   10000.    
     4 'Prefactor '    83.806       1.0000         .10000E-03   10000.    
     5 'Prefactor '    29.079       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    19.678       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.2907       1.0000         .10000E-03   10000.    
    10 'norm      '    3.4973       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .59412E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    25.930       1.0000         .10000E-03   10000.    
    13 'norm      '    .97579E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11904E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    20.069       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10345E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.565       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .24836E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    37.493       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10648E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .88898       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .83309       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=   5139.195     FROM MIGRAD    STATUS=CONVERGED    923 CALLS     2988 TOTAL
                     EDM=   .77E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.8428        29.353        .14294E-03   -.70788E-05
   2  Prefactor     .10000E-03    42.095        .18142E-02** at limit **
   3  norm          6.4774        2.6400        .70528E-04    .59320E-04
   4  Prefactor     83.801        38.411        .43879E-04    .61197E-04
   5  Prefactor     29.079        33.199        .74296E-04    .15302E-05
   6  Prefactor     .10000E-03    5.1079        .15743E-02** at limit **
   7  Prefactor     .10000E-03    11.412        .18142E-02** at limit **
   8  Prefactor     19.682        34.028        .90289E-04    .10073E-05
   9  Prefactor     5.2916        4.5831        .13499E-03   -.66531E-05
  10  norm          3.4969        4.8966        .89625E-03    .62155E-04
  11  Prefactor     .10350E-03    12.879        .55987E-01** at limit **
  12  Prefactor     25.927        13.967        .78669E-04    .66129E-03
  13  norm          .46417E-01    12.727        .54927E-01    .76940E-03
  14  Prefactor     .10001E-03    76.721        .18142E-02** at limit **
  15  Prefactor     20.071        10.392        .89406E-04    .14242E-03
  16  Prefactor     .10000E-03    51.747        .18142E-02** at limit **
  17  Prefactor     11.575        13.266        .11780E-03    .10114E-03
  18  Prefactor     .10003E-03    9.6540        .19261E-02** at limit **
  19  Prefactor     37.473        39.058        .65455E-04   -.32827E-04
  20  Prefactor     .10000E-03    3.7117        .13391E-02** at limit **
  21  Prefactor     .10000E-03    37.062        .18142E-02** at limit **
  22  Normalizat    .88837        .23878        .28835E-03    .44644E-03
  23  Prefactor     .83349        .15129        .19874E-03    .41118E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.84283
  Prefactor  = 0.0001
  norm       = 6.47743
  Prefactor  = 83.8011
  Prefactor  = 29.0789
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.6824
  Prefactor  = 5.29161
  norm       = 3.49688
  Prefactor  = 0.000103499
  Prefactor  = 25.9269
  norm       = 0.0464173
  Prefactor  = 0.00010001
  Prefactor  = 20.0708
  Prefactor  = 0.000100002
  Prefactor  = 11.5749
  Prefactor  = 0.000100032
  Prefactor  = 37.4733
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.888371
  Prefactor  = 0.833486
 **********
 **   18 **HESSE 
 **********

 FCN=   5139.195     FROM HESSE     STATUS=OK           368 CALLS     3356 TOTAL
                     EDM=   .66E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.8428        29.349        .57174E-05   -1.5148    
   2  Prefactor     .10000E-03    42.096        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          6.4774        2.6397        .28211E-05   -1.5199    
   4  Prefactor     83.801        38.408        .87758E-05   -1.3875    
   5  Prefactor     29.079        33.199        .14859E-04   -1.4629    
   6  Prefactor     .10000E-03    5.1093        .31486E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    11.412        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     19.682        34.026        .36116E-05   -1.4820    
   9  Prefactor     5.2916        4.5828        .53997E-05   -1.5248    
  10  norm          3.4969        4.8948        .35850E-04   -1.5334    
  11  Prefactor     .10350E-03    10.547        .64285E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     25.927        13.954        .15734E-04   -1.4689    
  13  norm          .46417E-01    9.9160        .64388E-01   -1.5665    
  14  Prefactor     .10001E-03    76.758        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     20.071        10.392        .35763E-05   -1.4812    
  16  Prefactor     .10000E-03    51.748        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     11.575        13.266        .47119E-05   -1.5027    
  18  Prefactor     .10003E-03    9.7287        .38523E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     37.473        39.056        .13091E-04   -1.4483    
  20  Prefactor     .10000E-03    3.7128        .26783E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    37.085        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .88837        .23891        .57670E-04   -.96870    
  23  Prefactor     .83349        .15122        .39747E-04   -.98506    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.64075e-09
Minuit parameter uncertainties:
  1  29.4027
  2  5.49987e-05
  3  2.63978
  4  38.419
  5  33.2196
  6  2.65774e-05
  7  2.16122e-05
  8  34.0595
  9  4.58306
  10  4.89532
  11  0.0121513
  12  13.9554
  13  1.35563
  14  0.00172426
  15  10.3931
  16  0.000590121
  17  13.269
  18  0.00111946
  19  39.0826
  20  2.66564e-05
  21  0.000112773
  22  0.239198
  23  0.151299
Done.

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

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  3.497e+00  4.895e+00  1.000e-04  1.000e+04 ( 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  0.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:  8.335e-01  1.513e-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:  8.884e-01  2.392e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/638282/likelihoodResults_464313601_464572801_4FGL_J2139.4-4235_daily_bin868.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) = 5139.08880202
delta logL = 0.105921663237

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5139.0866277
delta logL = 0.108095982968

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.2570       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3298       1.0000          .0000       5.0000    
     3 'Normalizat'    .87732       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83680       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=   5139.087     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      241 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.2565        4.7225        .15133E-03    .14889E-02
   2  alpha         2.3298        .92591        .17297E-01    .14095E-03
   3  Normalizat    .87728        .21798        .28996E-03    .14660E-03
   4  Prefactor     .83683        .14612        .19834E-03   -.29613E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.25645
  alpha      = 2.32983
  Normalizat = 0.87728
  Prefactor  = 0.836833
 **********
 **   18 **HESSE 
 **********

 FCN=   5139.087     FROM HESSE     STATUS=OK            23 CALLS      264 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.2565        4.5420        .60531E-05   -1.5347    
   2  alpha         2.3298        .89168        .69187E-03   -.68120E-01
   3  Normalizat    .87728        .21801        .11598E-04   -.97263    
   4  Prefactor     .83683        .14611        .39668E-04   -.98385    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.59669e-09
Minuit parameter uncertainties:
  1  4.54248
  2  0.911854
  3  0.218224
  4  0.146181
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/638282': 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) = 5139.08662767
delta logL = 0.108096015651

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  3.256e+00  4.542e+00  1.000e-04  1.000e+04 ( 1.000e-12)
299        alpha:  2.330e+00  9.119e-01  0.000e+00  5.000e+00 ( 1.000e+00)
300         beta:  4.914e-02  0.000e+00  0.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:  8.368e-01  1.462e-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:  8.773e-01  2.182e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.71
Ra Dec: 324.855 -42.590

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/638282/cmap_HighResolution_464313601_464572801_4FGL_J2139.4-4235_daily_bin868.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.57e-05', job_status='DONE', photon_flux_upper_limit='9.33e-08', time_completed='2021-09-26 21:54:24.071873', job_id='638282', GAL2='0.84', fit_tolerance='1e-08', EG2='0.88', EG='0.89', time_epoch_completed='1632718464.07', return_code2='0', ts='0.71', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='1.08e-01', ts2='0.93', photon_index_error='0.00', photon_index='1.93' WHERE bin_id='868' AND source_name='4FGL J2139.4-4235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 21:54:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0106>
Subject: Job 638282: <4FGL_J2139.4-4235_daily_bin868> in cluster <slac> Done

Job <4FGL_J2139.4-4235_daily_bin868> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep 26 21:40:24 2021
Job was executed on host(s) <bullet0106>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 21:41:19 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 26 21:41:19 2021
Terminated at Sun Sep 26 21:54:24 2021
Results reported at Sun Sep 26 21:54:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2139.4-4235_daily_bin868 324.855 -42.5895 464313601 464572801 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 :                                   628.46 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             320.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   785 sec.
    Turnaround time :                            840 sec.

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

