/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 74 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 = 7451
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2139.4-4235_daily_bin1168
RA = 324.855, Dec = -42.5895
tmin = 542073601, tmax = 542332801
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='641137', job_status='RUN', time_executed='2021-09-26 21:53:39.536651', time_epoch_executed='1632718419.54' WHERE source_name='4FGL J2139.4-4235' and cadence='daily' and bin_id='1168'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/641137

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/641137/ft1_4FGL_J2139.4-4235_daily_bin1168.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/641137/ft2_4FGL_J2139.4-4235_daily_bin1168.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/641137/ft1_4FGL_J2139.4-4235_daily_bin1168.fits outfile=/scratch/kocevski/641137/ft1_filteredMKT_4FGL_J2139.4-4235_daily_bin1168.fits ra=324.855 dec=-42.5895 rad=12.0 tmin=542073601.0 tmax=542332801.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.58
user 3.32
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/641137/ft1_filtered_4FGL_J2139.4-4235_daily_bin1168.fits" evtable="EVENTS" scfile=/scratch/kocevski/641137/ft2_4FGL_J2139.4-4235_daily_bin1168.fits sctable="SC_DATA" outfile=/scratch/kocevski/641137/ltcube_542073601_542332801_4FGL_J2139.4-4235_daily_bin1168.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/641137/ft2_4FGL_J2139.4-4235_daily_bin1168.fits
.....................!
real 13.48
user 13.04
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/641137/ft1_filtered_4FGL_J2139.4-4235_daily_bin1168.fits evtable="EVENTS" scfile=/scratch/kocevski/641137/ft2_4FGL_J2139.4-4235_daily_bin1168.fits sctable="SC_DATA" expcube=/scratch/kocevski/641137/ltcube_542073601_542332801_4FGL_J2139.4-4235_daily_bin1168.fits outfile=/scratch/kocevski/641137/expmap_542073601_542332801_4FGL_J2139.4-4235_daily_bin1168.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/641137/ltcube_542073601_542332801_4FGL_J2139.4-4235_daily_bin1168.fits
.....................!
real 191.85
user 186.13
sys 5.26

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/641137/ft1_filtered_4FGL_J2139.4-4235_daily_bin1168.fits scfile=/scratch/kocevski/641137/ft2_4FGL_J2139.4-4235_daily_bin1168.fits outfile=/scratch/kocevski/641137/cmap_542073601_542332801_4FGL_J2139.4-4235_daily_bin1168.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/641137/ft1_filtered_4FGL_J2139.4-4235_daily_bin1168.fits scfile=/scratch/kocevski/641137/ft2_4FGL_J2139.4-4235_daily_bin1168.fits outfile=/scratch/kocevski/641137/cmap_HighResolution_542073601_542332801_4FGL_J2139.4-4235_daily_bin1168.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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/641137/ft1_filtered_4FGL_J2139.4-4235_daily_bin1168.fits evtable="EVENTS" scfile=/scratch/kocevski/641137/ft2_4FGL_J2139.4-4235_daily_bin1168.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/641137/Model_4FGL_J2139.4-4235_daily_bin1168.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/641137/ft1_filtered_4FGL_J2139.4-4235_daily_bin1168.fits.....................!
real 48.66
user 47.19
sys 1.31

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/641137/ft1_filtered_4FGL_J2139.4-4235_daily_bin1168.fits', '/scratch/kocevski/641137/ft2_4FGL_J2139.4-4235_daily_bin1168.fits', expMap='/scratch/kocevski/641137/expmap_542073601_542332801_4FGL_J2139.4-4235_daily_bin1168.fits', expCube='/scratch/kocevski/641137/ltcube_542073601_542332801_4FGL_J2139.4-4235_daily_bin1168.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/641137/Model_4FGL_J2139.4-4235_daily_bin1168.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/641137/ft1_filtered_4FGL_J2139.4-4235_daily_bin1168.fits
Spacecraft file(s): /scratch/kocevski/641137/ft2_4FGL_J2139.4-4235_daily_bin1168.fits
Exposure map: /scratch/kocevski/641137/expmap_542073601_542332801_4FGL_J2139.4-4235_daily_bin1168.fits
Exposure cube: /scratch/kocevski/641137/ltcube_542073601_542332801_4FGL_J2139.4-4235_daily_bin1168.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/641137/Model_4FGL_J2139.4-4235_daily_bin1168.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) = 5874.58409058

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.992       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    6.2465       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .47488E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.3366       1.0000         .10000E-03   10000.    
    10 'norm      '    7.5554       1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.462       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.640       1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.7535       1.0000         .10000E-03   10000.    
    16 'Prefactor '    41.544       1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.5899       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.9474       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    31.624       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .91900       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .95834       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.

 FCN=   5874.582     FROM MIGRAD    STATUS=CONVERGED    531 CALLS     2513 TOTAL
                     EDM=   .33E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.987        49.178        .24018E-06   -.34161E-05
   2  Prefactor     .10000E-03    64.197        .20384E-06** at limit **
   3  norm          6.2466        2.7127        .24638E-07   -.57154E-04
   4  Prefactor     .10000E-03    17.045        .30890E-06** at limit **
   5  Prefactor     .10000E-03    228.45        .32974E-05** at limit **
   6  Prefactor     .10000E-03    6.6696        .29101E-06** at limit **
   7  Prefactor     .10000E-03    9.1767        .12032E-06** at limit **
   8  Prefactor     .10000E-03    10.679        .42009E-07** at limit **
   9  Prefactor     5.3350        4.7354        .27582E-05   -.82213E-04
  10  norm          7.5561        4.4362        .71114E-09   -.14885E-04
  11  Prefactor     12.463        8.7805        .67832E-07   -.13243E-04
  12  Prefactor     .10000E-03    3.7272        .10820E-06** at limit **
  13  norm          .10000E-03    10.953        .57428E-06** at limit **
  14  Prefactor     13.627        40.351        .93925E-06   -.24190E-05
  15  Prefactor     9.7724        14.867       -.10441E-05   -.88209E-05
  16  Prefactor     41.076        166.90        .49748E-06   -.28048E-04
  17  Prefactor     6.5908        7.6710        .91406E-06   -.12929E-04
  18  Prefactor     6.9480        3.8587        .13271E-07    .87347E-05
  19  Prefactor     .10000E-03    31.439        .16459E-06** at limit **
  20  Prefactor     .10000E-03    3.9708       -.86044E-06** at limit **
  21  Prefactor     31.626        23.317       -.27311E-07   -.20150E-05
  22  Normalizat    .91891        .20788        .10917E-06   -.43764E-04
  23  Prefactor     .95835        .13222       -.76929E-06    .65625E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.9871
  Prefactor  = 0.0001
  norm       = 6.24664
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.33498
  norm       = 7.55605
  Prefactor  = 12.4634
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 13.6274
  Prefactor  = 9.77242
  Prefactor  = 41.0761
  Prefactor  = 6.59083
  Prefactor  = 6.94798
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.6261
  Normalizat = 0.918914
  Prefactor  = 0.958354
 **********
 **   18 **HESSE 
 **********

 FCN=   5874.582     FROM HESSE     STATUS=OK           370 CALLS     2883 TOTAL
                     EDM=   .70E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.987        49.251        .73160E-04   -1.4612    
   2  Prefactor     .10000E-03    64.261        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          6.2466        2.7128        .78504E-04   -1.5208    
   4  Prefactor     .10000E-03    17.085        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    237.79        .38545E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.8433        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.1850        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    10.685        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.3350        4.7427        .74916E-03   -1.5246    
  10  norm          7.5561        4.4389        .11973E-03   -1.5158    
  11  Prefactor     12.463        8.7950        .11347E-03   -1.5002    
  12  Prefactor     .10000E-03    3.7487        .14448E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    11.142        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     13.627        40.324        .10845E-03   -1.4969    
  15  Prefactor     9.7724        14.799        .12831E-03   -1.5083    
  16  Prefactor     41.076        167.70        .31097E-03   -1.4425    
  17  Prefactor     6.5908        7.6946        .78162E-03   -1.5194    
  18  Prefactor     6.9480        3.8685        .10811E-03   -1.5181    
  19  Prefactor     .10000E-03    31.522        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.9936        .14901E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     31.626        23.370        .71251E-04   -1.4583    
  22  Normalizat    .91891        .24201        .30313E-03   -.95799    
  23  Prefactor     .95835        .15360        .19833E-03   -.94131    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.9837e-11
Minuit parameter uncertainties:
  1  49.3176
  2  1.08284e-05
  3  2.7129
  4  9.63675e-06
  5  0.000608179
  6  1.90713e-05
  7  1.19795e-07
  8  1.3281e-05
  9  4.74305
  10  4.43913
  11  8.79589
  12  8.61193e-07
  13  9.55462e-06
  14  40.405
  15  14.8049
  16  166.811
  17  7.69577
  18  3.86864
  19  5.89688e-06
  20  6.21699e-06
  21  23.3767
  22  0.242302
  23  0.153672
Done.

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

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  7.556e+00  4.439e+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:  9.584e-01  1.537e-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:  9.189e-01  2.423e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.50
Ra Dec: 324.855 -42.590
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 4.58e-08 +/- 2.69e-08
Energy Flux (Fixed Index): 3.23e-05 +/- 1.90e-05

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) = 5874.33692262
delta logL = 0.244682930274

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5874.22608604
delta logL = 0.355519512316

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.7352       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.3582       1.0000          .0000       5.0000    
     3 'Normalizat'    .94719       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95233       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.

 FCN=   5874.226     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      208 TOTAL
                     EDM=   .77E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.7352        3.5067        .46227E-02   -.49121E-02
   2  alpha         1.3581        .39174        .30331       -.76664E-04
   3  Normalizat    .94723        .19392        .67611E-01    .21739E-03
   4  Prefactor     .95229        .12976        .45669E-01   -.53494E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.73524
  alpha      = 1.3581
  Normalizat = 0.947231
  Prefactor  = 0.95229
 **********
 **   18 **HESSE 
 **********

 FCN=   5874.226     FROM HESSE     STATUS=OK            31 CALLS      239 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.7352        5.3920        .11117E-03   -1.5273    
   2  alpha         1.3581        .65524        .12208E-01   -.47435    
   3  Normalizat    .94723        .22395        .29909E-03   -.94820    
   4  Prefactor     .95229        .14978        .19896E-03   -.94337    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.72282e-08
Minuit parameter uncertainties:
  1  5.39253
  2  0.665111
  3  0.22417
  4  0.149842
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/641137': 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) = 5874.22608599
delta logL = 0.355519565487

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  4.735e+00  5.393e+00  1.000e-04  1.000e+04 ( 1.000e-12)
299        alpha:  1.358e+00  6.651e-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:  9.523e-01  1.498e-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:  9.472e-01  2.242e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.21
Ra Dec: 324.855 -42.590
Photon Index (Free Index): 1.36 +/- 0.67
Photon Flux (Free Index): 1.96e-08 +/- 2.39e-08
Energy Flux (Free Index): 6.44e-05 +/- 7.66e-05

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/641137/cmap_HighResolution_542073601_542332801_4FGL_J2139.4-4235_daily_bin1168.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.58e-08', energy_flux2='6.44e-05', photon_flux_error='2.69e-08', dlogl='3.56e-01', energy_flux='3.23e-05', photon_flux2='1.96e-08', job_status='DONE', time_completed='2021-09-26 22:05:25.686331', photon_index_error2='0.67', photon_index2='1.36', ts='13.50', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', energy_flux_error2='7.66e-05', EG='0.92', time_epoch_completed='1632719125.69', return_code='0', job_id='641137', GAL2='0.95', EG2='0.95', return_code2='0', energy_flux_error='1.90e-05', photon_flux_error2='2.39e-08', ts2='14.21', photon_index='1.93' WHERE bin_id='1168' AND source_name='4FGL J2139.4-4235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 22:05:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0048>
Subject: Job 641137: <4FGL_J2139.4-4235_daily_bin1168> in cluster <slac> Done

Job <4FGL_J2139.4-4235_daily_bin1168> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep 26 21:50:31 2021
Job was executed on host(s) <bullet0048>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 21:52:16 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:52:16 2021
Terminated at Sun Sep 26 22:05:26 2021
Results reported at Sun Sep 26 22:05:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2139.4-4235_daily_bin1168 324.855 -42.5895 542073601 542332801 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 :                                   580.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             288.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   789 sec.
    Turnaround time :                            895 sec.

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

