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


Performing analysis on: 4FGL_J2139.4-4235_daily_bin1210
RA = 324.855, Dec = -42.5895
tmin = 552960001, tmax = 553219201
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='641201', job_status='RUN', time_executed='2021-09-26 21:54:41.559655', time_epoch_executed='1632718481.56' WHERE source_name='4FGL J2139.4-4235' and cadence='daily' and bin_id='1210'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/641201

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/641201/ft1_4FGL_J2139.4-4235_daily_bin1210.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/641201/ft2_4FGL_J2139.4-4235_daily_bin1210.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/641201/ft1_4FGL_J2139.4-4235_daily_bin1210.fits outfile=/scratch/kocevski/641201/ft1_filteredMKT_4FGL_J2139.4-4235_daily_bin1210.fits ra=324.855 dec=-42.5895 rad=12.0 tmin=552960001.0 tmax=553219201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 2.27
user 2.06
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/641201/ft2_4FGL_J2139.4-4235_daily_bin1210.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/641201/ft1_filteredMKT_4FGL_J2139.4-4235_daily_bin1210.fits evtable="EVENTS" outfile="/scratch/kocevski/641201/ft1_filtered_4FGL_J2139.4-4235_daily_bin1210.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.97
user 0.27
sys 0.66

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/641201/ft1_filtered_4FGL_J2139.4-4235_daily_bin1210.fits" evtable="EVENTS" scfile=/scratch/kocevski/641201/ft2_4FGL_J2139.4-4235_daily_bin1210.fits sctable="SC_DATA" outfile=/scratch/kocevski/641201/ltcube_552960001_553219201_4FGL_J2139.4-4235_daily_bin1210.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/641201/ft2_4FGL_J2139.4-4235_daily_bin1210.fits
.....................!
real 11.65
user 11.29
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/641201/ft1_filtered_4FGL_J2139.4-4235_daily_bin1210.fits evtable="EVENTS" scfile=/scratch/kocevski/641201/ft2_4FGL_J2139.4-4235_daily_bin1210.fits sctable="SC_DATA" expcube=/scratch/kocevski/641201/ltcube_552960001_553219201_4FGL_J2139.4-4235_daily_bin1210.fits outfile=/scratch/kocevski/641201/expmap_552960001_553219201_4FGL_J2139.4-4235_daily_bin1210.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/641201/ltcube_552960001_553219201_4FGL_J2139.4-4235_daily_bin1210.fits
.....................!
real 156.20
user 151.27
sys 4.60

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/641201/ft1_filtered_4FGL_J2139.4-4235_daily_bin1210.fits scfile=/scratch/kocevski/641201/ft2_4FGL_J2139.4-4235_daily_bin1210.fits outfile=/scratch/kocevski/641201/cmap_552960001_553219201_4FGL_J2139.4-4235_daily_bin1210.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.48
user 0.34
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/641201/ft1_filtered_4FGL_J2139.4-4235_daily_bin1210.fits scfile=/scratch/kocevski/641201/ft2_4FGL_J2139.4-4235_daily_bin1210.fits outfile=/scratch/kocevski/641201/cmap_HighResolution_552960001_553219201_4FGL_J2139.4-4235_daily_bin1210.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.48
user 0.33
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/641201/ft1_filtered_4FGL_J2139.4-4235_daily_bin1210.fits evtable="EVENTS" scfile=/scratch/kocevski/641201/ft2_4FGL_J2139.4-4235_daily_bin1210.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/641201/Model_4FGL_J2139.4-4235_daily_bin1210.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/641201/ft1_filtered_4FGL_J2139.4-4235_daily_bin1210.fits......................!
real 19.48
user 18.30
sys 1.02

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10186E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11483E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.4293       1.0000         .10000E-03   10000.    
     9 'Prefactor '    18.749       1.0000         .10000E-03   10000.    
    10 'norm      '    1.4365       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.8966       1.0000         .10000E-03   10000.    
    13 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10311E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .29474E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.707       1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.882       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10339E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0843       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .98995       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=   1782.325     FROM MIGRAD    STATUS=CONVERGED    491 CALLS     2473 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9415.0       -.18948E-02** at limit **
   2  Prefactor     .10000E-03    7850.6       -.18363E-02** at limit **
   3  norm          .10000E-03    65.968       -.26333E-04** at limit **
   4  Prefactor     .10000E-03    99.239        .24151E-04** at limit **
   5  Prefactor     .10001E-03    200.14        .12265E-04** at limit **
   6  Prefactor     .10000E-03    88.223       -.54799E-05** at limit **
   7  Prefactor     .10000E-03    59.322       -.49360E-05** at limit **
   8  Prefactor     5.2297        585.85       -.72001E-03    .64035E-04
   9  Prefactor     18.731        21.650        .20119E-04    .76746E-03
  10  norm          1.4398        9.9546        .30855E-05   -.25659E-03
  11  Prefactor     .10000E-03    11.590       -.14067E-06** at limit **
  12  Prefactor     3.9113        27.388       -.48800E-05   -.40469E-04
  13  norm          .10000E-03    10.157        .76466E-08** at limit **
  14  Prefactor     .10000E-03    42.774       -.75859E-05** at limit **
  15  Prefactor     .10000E-03    10.737       -.92734E-07** at limit **
  16  Prefactor     .10000E-03    235.43        .85965E-05** at limit **
  17  Prefactor     10.713        18.839       -.41239E-05    .16040E-05
  18  Prefactor     14.883        8.4042       -.22802E-05    .12171E-03
  19  Prefactor     .10000E-03    59.597       -.63157E-05** at limit **
  20  Prefactor     .10000E-03    2.7696       -.38718E-07** at limit **
  21  Prefactor     .10000E-03    51.398        .28906E-04** at limit **
  22  Normalizat    1.0846        .39729        .17063E-04    .13816E-03
  23  Prefactor     .98934        .28740        .24680E-05    .42963E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100011
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 5.22971
  Prefactor  = 18.7315
  norm       = 1.43982
  Prefactor  = 0.0001
  Prefactor  = 3.91135
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.7126
  Prefactor  = 14.8832
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Normalizat = 1.08458
  Prefactor  = 0.989342
 **********
 **   18 **HESSE 
 **********

 FCN=   1782.325     FROM HESSE     STATUS=OK           354 CALLS     2827 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9416.9        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    7854.8        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    66.085        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    99.243        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10001E-03    200.26        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    89.095        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    59.336        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.2297        601.41        .17245E-03   -1.5251    
   9  Prefactor     18.731        21.685        .92499E-04   -1.4842    
  10  norm          1.4398        9.8908        .25519E-03   -1.5468    
  11  Prefactor     .10000E-03    11.605        .14036E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.9113        27.421        .20440E-03   -1.5312    
  13  norm          .10000E-03    10.172        .13142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    42.796        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    10.765        .13506E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    235.95        .19847E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     10.713        19.136        .12244E-03   -1.5053    
  18  Prefactor     14.883        8.5714        .82628E-04   -1.4936    
  19  Prefactor     .10000E-03    59.653        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.7720        .68619E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    51.689        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0846        .46866        .28940E-03   -.90249    
  23  Prefactor     .98934        .33610        .23395E-03   -.93086    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.21892e-09
Minuit parameter uncertainties:
  1  0.00104202
  2  0.00343607
  3  0.000242143
  4  6.85405e-05
  5  0.00291803
  6  0.0010485
  7  0.000206194
  8  113.349
  9  21.6946
  10  7.54897
  11  6.29088e-05
  12  20.7258
  13  5.74322e-05
  14  0.000183048
  15  1.38217e-05
  16  0.000472582
  17  19.1466
  18  8.5721
  19  0.000203875
  20  9.10244e-06
  21  0.000633485
  22  0.470474
  23  0.336814
Done.

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

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  1.440e+00  7.549e+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.893e-01  3.368e-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.085e+00  4.705e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.04
Ra Dec: 324.855 -42.590
Photon Flux Upper Limit: 1.73e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.22e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/641201/likelihoodResults_552960001_553219201_4FGL_J2139.4-4235_daily_bin1210.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) = 1782.26801624
delta logL = 0.0568109803585

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1782.26084979
delta logL = 0.0639774368208

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.1512       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.3632       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0973       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97718       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=   1782.261     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      209 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.1512        6.3699        .70231E-02    .54040E-03
   2  alpha         1.3631        .94862        .48514       -.10314E-04
   3  Normalizat    1.0973        .35772        .65081E-01    .34007E-05
   4  Prefactor     .97716        .28059        .45981E-01    .19601E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.15123
  alpha      = 1.36305
  Normalizat = 1.09731
  Prefactor  = 0.977156
 **********
 **   18 **HESSE 
 **********

 FCN=   1782.261     FROM HESSE     STATUS=OK            33 CALLS      242 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.1512        6.2822        .16754E-03   -1.5415    
   2  alpha         1.3631        1.1680        .17096E-01   -.47212    
   3  Normalizat    1.0973        .40981        .28790E-03   -.89838    
   4  Prefactor     .97716        .32177        .23513E-03   -.93495    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.75469e-10
Minuit parameter uncertainties:
  1  6.2841
  2  1.22951
  3  0.411007
  4  0.322402
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/641201': 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) = 1782.26084978
delta logL = 0.0639774437643

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  2.151e+00  6.284e+00  1.000e-04  1.000e+04 ( 1.000e-12)
299        alpha:  1.363e+00  1.230e+00  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.772e-01  3.224e-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.097e+00  4.110e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.04
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/641201/cmap_HighResolution_552960001_553219201_4FGL_J2139.4-4235_daily_bin1210.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.22e-04', job_status='DONE', photon_flux_upper_limit='1.73e-07', time_completed='2021-09-26 22:03:58.270336', job_id='641201', GAL2='0.98', fit_tolerance='1e-08', EG2='1.10', EG='1.08', time_epoch_completed='1632719038.27', return_code2='0', ts='0.04', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='6.40e-02', ts2='0.17', photon_index_error='0.00', photon_index='1.93' WHERE bin_id='1210' AND source_name='4FGL J2139.4-4235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 22:03:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0189>
Subject: Job 641201: <4FGL_J2139.4-4235_daily_bin1210> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2139.4-4235_daily_bin1210 324.855 -42.5895 552960001 553219201 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 :                                   333.33 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             203.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   660 sec.
    Turnaround time :                            802 sec.

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

