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


Performing analysis on: 4FGL_J2139.4-4235_daily_bin1119
RA = 324.855, Dec = -42.5895
tmin = 529372801, tmax = 529632001
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='641059', job_status='RUN', time_executed='2021-09-26 21:52:04.448916', time_epoch_executed='1632718324.45' WHERE source_name='4FGL J2139.4-4235' and cadence='daily' and bin_id='1119'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/641059

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/641059/ft1_4FGL_J2139.4-4235_daily_bin1119.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/641059/ft2_4FGL_J2139.4-4235_daily_bin1119.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/641059/ft1_4FGL_J2139.4-4235_daily_bin1119.fits outfile=/scratch/kocevski/641059/ft1_filteredMKT_4FGL_J2139.4-4235_daily_bin1119.fits ra=324.855 dec=-42.5895 rad=12.0 tmin=529372801.0 tmax=529632001.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.57
user 3.32
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/641059/ft2_4FGL_J2139.4-4235_daily_bin1119.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/641059/ft1_filteredMKT_4FGL_J2139.4-4235_daily_bin1119.fits evtable="EVENTS" outfile="/scratch/kocevski/641059/ft1_filtered_4FGL_J2139.4-4235_daily_bin1119.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/641059/ft1_filtered_4FGL_J2139.4-4235_daily_bin1119.fits" evtable="EVENTS" scfile=/scratch/kocevski/641059/ft2_4FGL_J2139.4-4235_daily_bin1119.fits sctable="SC_DATA" outfile=/scratch/kocevski/641059/ltcube_529372801_529632001_4FGL_J2139.4-4235_daily_bin1119.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/641059/ft2_4FGL_J2139.4-4235_daily_bin1119.fits
.....................!
real 15.85
user 15.51
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/641059/ft1_filtered_4FGL_J2139.4-4235_daily_bin1119.fits evtable="EVENTS" scfile=/scratch/kocevski/641059/ft2_4FGL_J2139.4-4235_daily_bin1119.fits sctable="SC_DATA" expcube=/scratch/kocevski/641059/ltcube_529372801_529632001_4FGL_J2139.4-4235_daily_bin1119.fits outfile=/scratch/kocevski/641059/expmap_529372801_529632001_4FGL_J2139.4-4235_daily_bin1119.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/641059/ltcube_529372801_529632001_4FGL_J2139.4-4235_daily_bin1119.fits
.....................!
real 192.61
user 188.53
sys 3.71

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/641059/ft1_filtered_4FGL_J2139.4-4235_daily_bin1119.fits scfile=/scratch/kocevski/641059/ft2_4FGL_J2139.4-4235_daily_bin1119.fits outfile=/scratch/kocevski/641059/cmap_529372801_529632001_4FGL_J2139.4-4235_daily_bin1119.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=324.855 yref=-42.5895 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/641059/ft1_filtered_4FGL_J2139.4-4235_daily_bin1119.fits scfile=/scratch/kocevski/641059/ft2_4FGL_J2139.4-4235_daily_bin1119.fits outfile=/scratch/kocevski/641059/cmap_HighResolution_529372801_529632001_4FGL_J2139.4-4235_daily_bin1119.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.54
user 0.40
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/641059/ft1_filtered_4FGL_J2139.4-4235_daily_bin1119.fits evtable="EVENTS" scfile=/scratch/kocevski/641059/ft2_4FGL_J2139.4-4235_daily_bin1119.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/641059/Model_4FGL_J2139.4-4235_daily_bin1119.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/641059/ft1_filtered_4FGL_J2139.4-4235_daily_bin1119.fits.....................!
real 61.77
user 60.38
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10191E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    45.205       1.0000         .10000E-03   10000.    
     3 'norm      '    3.2036       1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.325       1.0000         .10000E-03   10000.    
     5 'Prefactor '    51.524       1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.364       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.9630       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .92456       1.0000         .10000E-03   10000.    
    10 'norm      '    8.5567       1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.790       1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.9988       1.0000         .10000E-03   10000.    
    13 'norm      '    6.0409       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.4608       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.0335       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .89060       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .69902       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0304       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=   8087.403     FROM MIGRAD    STATUS=CONVERGED    502 CALLS     2505 TOTAL
                     EDM=   .84E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.121        .13151E-06** at limit **
   2  Prefactor     45.180        60.025       -.23811E-05   -.24621E-04
   3  norm          3.2037        1.5712        .30987E-07   -.77412E-04
   4  Prefactor     13.325        18.330        .29910E-06   -.31563E-05
   5  Prefactor     51.524        41.993       -.23346E-06   -.26123E-04
   6  Prefactor     13.363        8.0441       -.17658E-06   -.15482E-03
   7  Prefactor     .10000E-03    23.740       -.18973E-06** at limit **
   8  Prefactor     7.9632        18.746       -.18832E-06   -.25894E-04
   9  Prefactor     .92408        3.2030        .30598E-05    .12305E-03
  10  norm          8.5567        4.1577       -.91975E-08   -.44002E-04
  11  Prefactor     14.790        6.7655        .31081E-07   -.20963E-04
  12  Prefactor     9.9987        6.2991       -.22318E-07   -.21270E-04
  13  norm          6.0408        6.0986        .14274E-06   -.11085E-04
  14  Prefactor     .10000E-03    38.389        .29579E-05** at limit **
  15  Prefactor     4.4596        9.1670       -.42455E-05   -.58865E-04
  16  Prefactor     4.7501        600.80       -.18086E-04   -.22110E-05
  17  Prefactor     .10000E-03    1.9427        .12074E-06** at limit **
  18  Prefactor     .89010        2.6154        .13878E-05    .12419E-03
  19  Prefactor     .10000E-03    25.282        .54438E-07** at limit **
  20  Prefactor     .10000E-03    1.3788       -.15920E-06** at limit **
  21  Prefactor     .10000E-03    7.4309        .15771E-06** at limit **
  22  Normalizat    .69913        .16475       -.18069E-06   -.20495E-03
  23  Prefactor     1.0304        .10973       -.45445E-06   -.22919E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 45.18
  norm       = 3.20368
  Prefactor  = 13.3254
  Prefactor  = 51.5243
  Prefactor  = 13.3633
  Prefactor  = 0.0001
  Prefactor  = 7.96315
  Prefactor  = 0.924081
  norm       = 8.55668
  Prefactor  = 14.7902
  Prefactor  = 9.99872
  norm       = 6.04079
  Prefactor  = 0.000100001
  Prefactor  = 4.45958
  Prefactor  = 4.75009
  Prefactor  = 0.0001
  Prefactor  = 0.890096
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.699127
  Prefactor  = 1.0304
 **********
 **   18 **HESSE 
 **********

 FCN=   8087.403     FROM HESSE     STATUS=OK           374 CALLS     2879 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.168        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     45.180        60.017        .59632E-04   -1.4363    
   3  norm          3.2037        1.5694        .75619E-04   -1.5350    
   4  Prefactor     13.325        18.361        .10973E-03   -1.4978    
   5  Prefactor     51.524        41.968        .55872E-04   -1.4271    
   6  Prefactor     13.363        8.0318        .10957E-03   -1.4977    
   7  Prefactor     .10000E-03    23.918        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.9632        18.720        .14209E-03   -1.5144    
   9  Prefactor     .92408        3.2244        .28358E-03   -1.5516    
  10  norm          8.5567        4.1549        .12285E-03   -1.5123    
  11  Prefactor     14.790        6.7636        .10415E-03   -1.4939    
  12  Prefactor     9.9987        6.2960        .12672E-03   -1.5075    
  13  norm          6.0408        6.0933        .16336E-03   -1.5216    
  14  Prefactor     .10000E-03    38.933        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.4596        9.3480        .19065E-03   -1.5286    
  16  Prefactor     4.7501        648.12        .17923E-02   -1.5272    
  17  Prefactor     .10000E-03    1.9664        .12240E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .89010        2.5693        .23378E-03   -1.5519    
  19  Prefactor     .10000E-03    25.356        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    1.3808        .10309E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    7.4453        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .69913        .18465        .30968E-03   -1.0393    
  23  Prefactor     1.0304        .12514        .18390E-03   -.91723    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.55573e-10
Minuit parameter uncertainties:
  1  2.38388e-05
  2  60.0978
  3  1.56941
  4  18.3688
  5  41.9925
  6  8.0324
  7  1.63769e-05
  8  18.7337
  9  3.22505
  10  4.15506
  11  6.764
  12  6.29642
  13  6.09392
  14  0.000338414
  15  9.35106
  16  112.233
  17  5.32542e-07
  18  2.56958
  19  2.86883e-05
  20  2.67993e-06
  21  7.37903e-07
  22  0.184812
  23  0.12518
Done.

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

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  8.557e+00  4.155e+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:  1.030e+00  1.252e-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:  6.991e-01  1.848e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.55
Ra Dec: 324.855 -42.590
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 5.19e-08 +/- 2.52e-08
Energy Flux (Fixed Index): 3.66e-05 +/- 1.78e-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) = 8087.39723413
delta logL = 0.00561353040121

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8087.39696456
delta logL = 0.00588309989053

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.5333       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8795       1.0000          .0000       5.0000    
     3 'Normalizat'    .70211       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0294       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=   8087.397     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      210 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.5179        7.7292        .34307E-02    .59048E-04
   2  alpha         1.8772        .73954        .28541       -.18723E-05
   3  Normalizat    .70243        .15783        .69832E-01    .33424E-04
   4  Prefactor     1.0293        .10946        .41304E-01   -.27186E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 8.51787
  alpha      = 1.8772
  Normalizat = 0.702427
  Prefactor  = 1.02934
 **********
 **   18 **HESSE 
 **********

 FCN=   8087.397     FROM HESSE     STATUS=OK            33 CALLS      243 TOTAL
                     EDM=   .82E-14    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.5179        4.1975        .12438E-03   -1.5124    
   2  alpha         1.8772        .47490        .14209E-01   -.25177    
   3  Normalizat    .70243        .17412        .30904E-03   -1.0380    
   4  Prefactor     1.0293        .12274        .18400E-03   -.91758    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.24876e-15
Minuit parameter uncertainties:
  1  4.19761
  2  0.478004
  3  0.174256
  4  0.122778
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/641059': 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) = 8087.39694824
delta logL = 0.00589941573253

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  8.518e+00  4.198e+00  1.000e-04  1.000e+04 ( 1.000e-12)
299        alpha:  1.877e+00  4.780e-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:  1.029e+00  1.228e-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:  7.024e-01  1.743e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.55
Ra Dec: 324.855 -42.590
Photon Index (Free Index): 1.88 +/- 0.48
Photon Flux (Free Index): 4.89e-08 +/- 3.53e-08
Energy Flux (Free Index): 3.87e-05 +/- 2.90e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/641059/cmap_HighResolution_529372801_529632001_4FGL_J2139.4-4235_daily_bin1119.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.19e-08', energy_flux2='3.87e-05', photon_flux_error='2.52e-08', dlogl='5.90e-03', energy_flux='3.66e-05', photon_flux2='4.89e-08', job_status='DONE', time_completed='2021-09-26 22:03:36.866328', photon_index_error2='0.48', photon_index2='1.88', ts='11.55', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='2.90e-05', EG='0.70', time_epoch_completed='1632719016.87', return_code='0', job_id='641059', GAL2='1.03', EG2='0.70', return_code2='0', energy_flux_error='1.78e-05', photon_flux_error2='3.53e-08', ts2='11.55', photon_index='1.93' WHERE bin_id='1119' AND source_name='4FGL J2139.4-4235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 22:03:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0006>
Subject: Job 641059: <4FGL_J2139.4-4235_daily_bin1119> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2139.4-4235_daily_bin1119 324.855 -42.5895 529372801 529632001 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 :                                   687.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             324.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   719 sec.
    Turnaround time :                            791 sec.

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

