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


Performing analysis on: 4FGL_J2139.4-4235_daily_bin1324
RA = 324.855, Dec = -42.5895
tmin = 582508801, tmax = 582768001
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='641376', job_status='RUN', time_executed='2021-09-26 21:55:21.514126', time_epoch_executed='1632718521.51' WHERE source_name='4FGL J2139.4-4235' and cadence='daily' and bin_id='1324'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/641376

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/641376/ft1_4FGL_J2139.4-4235_daily_bin1324.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/641376/ft2_4FGL_J2139.4-4235_daily_bin1324.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/641376/ft1_4FGL_J2139.4-4235_daily_bin1324.fits outfile=/scratch/kocevski/641376/ft1_filteredMKT_4FGL_J2139.4-4235_daily_bin1324.fits ra=324.855 dec=-42.5895 rad=12.0 tmin=582508801.0 tmax=582768001.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.83
user 3.53
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/641376/ft1_filtered_4FGL_J2139.4-4235_daily_bin1324.fits" evtable="EVENTS" scfile=/scratch/kocevski/641376/ft2_4FGL_J2139.4-4235_daily_bin1324.fits sctable="SC_DATA" outfile=/scratch/kocevski/641376/ltcube_582508801_582768001_4FGL_J2139.4-4235_daily_bin1324.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/641376/ft2_4FGL_J2139.4-4235_daily_bin1324.fits
.....................!
real 16.53
user 16.06
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/641376/ft1_filtered_4FGL_J2139.4-4235_daily_bin1324.fits evtable="EVENTS" scfile=/scratch/kocevski/641376/ft2_4FGL_J2139.4-4235_daily_bin1324.fits sctable="SC_DATA" expcube=/scratch/kocevski/641376/ltcube_582508801_582768001_4FGL_J2139.4-4235_daily_bin1324.fits outfile=/scratch/kocevski/641376/expmap_582508801_582768001_4FGL_J2139.4-4235_daily_bin1324.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/641376/ltcube_582508801_582768001_4FGL_J2139.4-4235_daily_bin1324.fits
.....................!
real 196.39
user 189.04
sys 5.24

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/641376/ft1_filtered_4FGL_J2139.4-4235_daily_bin1324.fits scfile=/scratch/kocevski/641376/ft2_4FGL_J2139.4-4235_daily_bin1324.fits outfile=/scratch/kocevski/641376/cmap_582508801_582768001_4FGL_J2139.4-4235_daily_bin1324.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.57
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/641376/ft1_filtered_4FGL_J2139.4-4235_daily_bin1324.fits scfile=/scratch/kocevski/641376/ft2_4FGL_J2139.4-4235_daily_bin1324.fits outfile=/scratch/kocevski/641376/cmap_HighResolution_582508801_582768001_4FGL_J2139.4-4235_daily_bin1324.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.62
user 0.42
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10334E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    124.11       1.0000         .10000E-03   10000.    
     3 'norm      '    17.549       1.0000         .10000E-03   10000.    
     4 'Prefactor '    47.684       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10142E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.7085       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10348E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10331E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    22.294       1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.3501       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    10.291       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.562       1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.546       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10176E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    46.242       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .95010       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .98706       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=   6122.968     FROM MIGRAD    STATUS=CONVERGED    483 CALLS     2470 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    27.728       -.38378E-06** at limit **
   2  Prefactor     124.06        101.37       -.41686E-04    .12464E-04
   3  norm          17.548        3.5717       -.18617E-06    .12876E-03
   4  Prefactor     47.662        40.558       -.23315E-04    .51889E-04
   5  Prefactor     .10000E-03    34.906        .17053E-04** at limit **
   6  Prefactor     6.7068        8.5614       -.11668E-05   -.79383E-04
   7  Prefactor     .10000E-03    29.512        .68104E-05** at limit **
   8  Prefactor     .10000E-03    29.431        .63617E-05** at limit **
   9  Prefactor     .10000E-03    1.9880       -.73618E-06** at limit **
  10  norm          22.293        7.4775       -.67629E-08    .44142E-03
  11  Prefactor     8.3463        12.664       -.10494E-05    .50996E-03
  12  Prefactor     .10000E-03    21.306       -.24036E-04** at limit **
  13  norm          10.291        7.9829       -.17207E-06    .80705E-04
  14  Prefactor     .10000E-03    17.215        .74682E-05** at limit **
  15  Prefactor     .10000E-03    3.3191       -.35730E-06** at limit **
  16  Prefactor     .10000E-03    30.039        .86656E-05** at limit **
  17  Prefactor     12.559        13.202       -.70078E-06    .69221E-04
  18  Prefactor     12.544        6.2256       -.34228E-05    .21440E-03
  19  Prefactor     .10000E-03    46.212       -.25128E-04** at limit **
  20  Prefactor     .10000E-03    4.3087        .13087E-07** at limit **
  21  Prefactor     46.227        37.613       -.15068E-04    .85626E-04
  22  Normalizat    .95018        .22969        .10621E-04    .18020E-03
  23  Prefactor     .98702        .13991        .27219E-05    .41545E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 124.058
  norm       = 17.5483
  Prefactor  = 47.6617
  Prefactor  = 0.0001
  Prefactor  = 6.70678
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 22.2925
  Prefactor  = 8.34629
  Prefactor  = 0.0001
  norm       = 10.2907
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.5591
  Prefactor  = 12.5436
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 46.2271
  Normalizat = 0.950181
  Prefactor  = 0.987018
 **********
 **   18 **HESSE 
 **********

 FCN=   6122.968     FROM HESSE     STATUS=OK           362 CALLS     2832 TOTAL
                     EDM=   .77E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    27.741        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     124.06        101.45        .18065E-03   -1.3476    
   3  norm          17.548        3.5733        .63446E-04   -1.4870    
   4  Prefactor     47.662        40.699        .58068E-04   -1.4326    
   5  Prefactor     .10000E-03    34.903        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.7068        8.5618        .15492E-03   -1.5190    
   7  Prefactor     .10000E-03    29.582        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    29.491        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.0154        .10773E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          22.293        7.4794        .84832E-04   -1.4763    
  11  Prefactor     8.3463        12.654        .13873E-03   -1.5130    
  12  Prefactor     .10000E-03    21.776        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          10.291        7.9799        .12490E-03   -1.5066    
  14  Prefactor     .10000E-03    17.218        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.3297        .13921E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    30.035        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     12.559        13.261        .11302E-03   -1.4999    
  18  Prefactor     12.544        6.2711        .11309E-03   -1.4999    
  19  Prefactor     .10000E-03    46.149        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.3448        .15858E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     46.227        37.669        .58962E-04   -1.4347    
  22  Normalizat    .95018        .26197        .33371E-03   -.94719    
  23  Prefactor     .98702        .15994        .21480E-03   -.93163    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.67191e-10
Minuit parameter uncertainties:
  1  0.000206985
  2  101.593
  3  3.57336
  4  40.7226
  5  0.000148469
  6  8.56335
  7  0.000157346
  8  0.000219347
  9  2.80011e-05
  10  7.47968
  11  12.6577
  12  3.69135e-05
  13  7.98073
  14  8.2769e-05
  15  3.0555e-05
  16  5.16256e-05
  17  13.264
  18  6.27144
  19  0.000354375
  20  2.46898e-05
  21  37.6882
  22  0.262322
  23  0.160019
Done.

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

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  2.229e+01  7.480e+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.870e-01  1.600e-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.502e-01  2.623e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 29.08
Ra Dec: 324.855 -42.590
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 1.35e-07 +/- 4.53e-08
Energy Flux (Fixed Index): 9.52e-05 +/- 3.20e-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) = 6122.84272311
delta logL = 0.12533252794

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6122.82093131
delta logL = 0.147124331501

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    21.912       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0928       1.0000          .0000       5.0000    
     3 'Normalizat'    .92461       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99447       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=   6122.821     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      206 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          21.912        17.006        .21392E-02    .15329E-02
   2  alpha         2.0931        .66184        .19762        .27540E-04
   3  Normalizat    .92487        .22172        .76273E-01    .14105E-04
   4  Prefactor     .99441        .13974        .46198E-01    .79112E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 21.9125
  alpha      = 2.09308
  Normalizat = 0.924873
  Prefactor  = 0.994412
 **********
 **   18 **HESSE 
 **********

 FCN=   6122.821     FROM HESSE     STATUS=OK            31 CALLS      237 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          21.912        7.2717        .85567E-04   -1.4771    
   2  alpha         2.0931        .30363        .81574E-02   -.16350    
   3  Normalizat    .92487        .24004        .33756E-03   -.95592    
   4  Prefactor     .99441        .15500        .21400E-03   -.92916    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.04871e-10
Minuit parameter uncertainties:
  1  7.27201
  2  0.304399
  3  0.240323
  4  0.155066
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/641376': 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) = 6122.82092931
delta logL = 0.147126334195

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  2.191e+01  7.272e+00  1.000e-04  1.000e+04 ( 1.000e-12)
299        alpha:  2.093e+00  3.044e-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.944e-01  1.551e-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.249e-01  2.403e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 29.20
Ra Dec: 324.855 -42.590
Photon Index (Free Index): 2.09 +/- 0.30
Photon Flux (Free Index): 1.60e-07 +/- 6.79e-08
Energy Flux (Free Index): 8.16e-05 +/- 3.38e-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/641376/cmap_HighResolution_582508801_582768001_4FGL_J2139.4-4235_daily_bin1324.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.35e-07', energy_flux2='8.16e-05', photon_flux_error='4.53e-08', dlogl='1.47e-01', energy_flux='9.52e-05', photon_flux2='1.60e-07', job_status='DONE', time_completed='2021-09-26 22:06:26.904594', photon_index_error2='0.30', photon_index2='2.09', ts='29.08', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='3.38e-05', EG='0.95', time_epoch_completed='1632719186.9', return_code='0', job_id='641376', GAL2='0.99', EG2='0.92', return_code2='0', energy_flux_error='3.20e-05', photon_flux_error2='6.79e-08', ts2='29.20', photon_index='1.93' WHERE bin_id='1324' AND source_name='4FGL J2139.4-4235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 22:06:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0094>
Subject: Job 641376: <4FGL_J2139.4-4235_daily_bin1324> in cluster <slac> Done

Job <4FGL_J2139.4-4235_daily_bin1324> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep 26 21:50:50 2021
Job was executed on host(s) <bullet0094>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 21:54:47 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:54:47 2021
Terminated at Sun Sep 26 22:06:27 2021
Results reported at Sun Sep 26 22:06:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2139.4-4235_daily_bin1324 324.855 -42.5895 582508801 582768001 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 :                                   601.54 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             339.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   700 sec.
    Turnaround time :                            937 sec.

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

