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


Performing analysis on: 4FGL_J2139.4-4235_daily_bin928
RA = 324.855, Dec = -42.5895
tmin = 479865601, tmax = 480124801
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='639548', job_status='RUN', time_executed='2021-09-26 21:49:01.848499', time_epoch_executed='1632718141.85' WHERE source_name='4FGL J2139.4-4235' and cadence='daily' and bin_id='928'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/639548

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/639548/ft1_4FGL_J2139.4-4235_daily_bin928.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/639548/ft2_4FGL_J2139.4-4235_daily_bin928.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/639548/ft1_4FGL_J2139.4-4235_daily_bin928.fits outfile=/scratch/kocevski/639548/ft1_filteredMKT_4FGL_J2139.4-4235_daily_bin928.fits ra=324.855 dec=-42.5895 rad=12.0 tmin=479865601.0 tmax=480124801.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.51
user 3.29
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/639548/ft1_filtered_4FGL_J2139.4-4235_daily_bin928.fits" evtable="EVENTS" scfile=/scratch/kocevski/639548/ft2_4FGL_J2139.4-4235_daily_bin928.fits sctable="SC_DATA" outfile=/scratch/kocevski/639548/ltcube_479865601_480124801_4FGL_J2139.4-4235_daily_bin928.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/639548/ft2_4FGL_J2139.4-4235_daily_bin928.fits
.....................!
real 14.53
user 14.13
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/639548/ft1_filtered_4FGL_J2139.4-4235_daily_bin928.fits evtable="EVENTS" scfile=/scratch/kocevski/639548/ft2_4FGL_J2139.4-4235_daily_bin928.fits sctable="SC_DATA" expcube=/scratch/kocevski/639548/ltcube_479865601_480124801_4FGL_J2139.4-4235_daily_bin928.fits outfile=/scratch/kocevski/639548/expmap_479865601_480124801_4FGL_J2139.4-4235_daily_bin928.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/639548/ltcube_479865601_480124801_4FGL_J2139.4-4235_daily_bin928.fits
.....................!
real 192.05
user 186.29
sys 5.31

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/639548/ft1_filtered_4FGL_J2139.4-4235_daily_bin928.fits scfile=/scratch/kocevski/639548/ft2_4FGL_J2139.4-4235_daily_bin928.fits outfile=/scratch/kocevski/639548/cmap_479865601_480124801_4FGL_J2139.4-4235_daily_bin928.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/639548/ft1_filtered_4FGL_J2139.4-4235_daily_bin928.fits scfile=/scratch/kocevski/639548/ft2_4FGL_J2139.4-4235_daily_bin928.fits outfile=/scratch/kocevski/639548/cmap_HighResolution_479865601_480124801_4FGL_J2139.4-4235_daily_bin928.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.56
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/639548/ft1_filtered_4FGL_J2139.4-4235_daily_bin928.fits evtable="EVENTS" scfile=/scratch/kocevski/639548/ft2_4FGL_J2139.4-4235_daily_bin928.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/639548/Model_4FGL_J2139.4-4235_daily_bin928.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/639548/ft1_filtered_4FGL_J2139.4-4235_daily_bin928.fits.....................!
real 66.34
user 64.94
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.1710       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.084       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    27.861       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.3983       1.0000         .10000E-03   10000.    
    10 'norm      '    21.819       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.7650       1.0000         .10000E-03   10000.    
    16 'Prefactor '    38.074       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .32582E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.7762       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.116       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .65863       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1202       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=   8992.233     FROM MIGRAD    STATUS=CONVERGED    498 CALLS     2516 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.9130       -.10495E-05** at limit **
   2  Prefactor     .10000E-03    19.415       -.65109E-05** at limit **
   3  norm          2.1711        1.5079       -.16590E-06   -.75546E-03
   4  Prefactor     .10000E-03    11.817        .58165E-05** at limit **
   5  Prefactor     .10000E-03    22.635        .10143E-04** at limit **
   6  Prefactor     10.084        6.7015       -.33892E-06   -.13249E-03
   7  Prefactor     .10000E-03    7.2779        .20903E-05** at limit **
   8  Prefactor     27.857        32.109       -.44770E-05   -.17006E-04
   9  Prefactor     7.3973        4.9099       -.18446E-05   -.39315E-03
  10  norm          21.819        5.4594        .42927E-07   -.11952E-04
  11  Prefactor     .10000E-03    2.2741       -.16419E-07** at limit **
  12  Prefactor     .10000E-03    7.5468       -.56475E-06** at limit **
  13  norm          .10000E-03    5.5439       -.32179E-06** at limit **
  14  Prefactor     .10000E-03    45.328       -.32923E-05** at limit **
  15  Prefactor     7.7605        8.3800        .34799E-05   -.19060E-04
  16  Prefactor     38.047        86.924       -.41097E-04    .69723E-06
  17  Prefactor     .10000E-03    2.9367       -.13403E-06** at limit **
  18  Prefactor     2.7762        3.1500       -.59940E-06   -.69230E-03
  19  Prefactor     .10000E-03    8.5611       -.19597E-05** at limit **
  20  Prefactor     10.116        5.9880        .25226E-06   -.43734E-04
  21  Prefactor     .10000E-03    14.486       -.54820E-05** at limit **
  22  Normalizat    .65862        .16440        .30393E-05   -.28949E-04
  23  Prefactor     1.1202        .10678       -.10862E-06    .11204E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.17111
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.0839
  Prefactor  = 0.0001
  Prefactor  = 27.8567
  Prefactor  = 7.39728
  norm       = 21.8192
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.76049
  Prefactor  = 38.047
  Prefactor  = 0.000100002
  Prefactor  = 2.77623
  Prefactor  = 0.0001
  Prefactor  = 10.1161
  Prefactor  = 0.0001
  Normalizat = 0.658615
  Prefactor  = 1.12016
 **********
 **   18 **HESSE 
 **********

 FCN=   8992.233     FROM HESSE     STATUS=OK           368 CALLS     2884 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.9162        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    19.426        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.1711        1.5005        .92640E-04   -1.5413    
   4  Prefactor     .10000E-03    11.832        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    22.675        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     10.084        6.6967        .12618E-03   -1.5073    
   7  Prefactor     .10000E-03    7.2833        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     27.857        32.090        .75900E-04   -1.4652    
   9  Prefactor     7.3973        4.9278        .14745E-03   -1.5164    
  10  norm          21.819        5.4586        .85749E-04   -1.4773    
  11  Prefactor     .10000E-03    2.2899        .13961E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.7867        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    5.7381        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    45.677        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.7605        8.3508        .14390E-03   -1.5151    
  16  Prefactor     38.047        86.467        .64955E-04   -1.4474    
  17  Prefactor     .10000E-03    16.583        .31509E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.7762        3.1619        .16946E-03   -1.5375    
  19  Prefactor     .10000E-03    8.5610        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     10.116        5.9915        .12598E-03   -1.5072    
  21  Prefactor     .10000E-03    14.598        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .65862        .18217        .33248E-03   -1.0555    
  23  Prefactor     1.1202        .11958        .18174E-03   -.88825    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.25286e-10
Minuit parameter uncertainties:
  1  2.92851e-06
  2  1.05517e-05
  3  1.50051
  4  3.65282e-05
  5  4.27411e-05
  6  6.6972
  7  8.24687e-06
  8  32.1096
  9  4.92804
  10  5.45872
  11  8.42177e-06
  12  3.34531e-05
  13  2.42062e-05
  14  5.1451e-05
  15  8.35204
  16  86.7538
  17  0.000337166
  18  3.1621
  19  2.9274e-07
  20  5.99185
  21  1.38621e-05
  22  0.182336
  23  0.119605
Done.

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

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  2.182e+01  5.459e+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.120e+00  1.196e-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.586e-01  1.823e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 71.83
Ra Dec: 324.855 -42.590
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 1.32e-07 +/- 3.31e-08
Energy Flux (Fixed Index): 9.32e-05 +/- 2.33e-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) = 8991.45948596
delta logL = 0.77341674544

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8991.45605954
delta logL = 0.776843165399

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    21.332       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6622       1.0000          .0000       5.0000    
     3 'Normalizat'    .69060       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1110       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=   8991.456     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      215 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          21.332        5.7718        .17314E-05   -.30050E-03
   2  alpha         1.6622        .18034       -.75572E-06   -.63704E-03
   3  Normalizat    .69063        .15245       -.68057E-06   -.25095E-04
   4  Prefactor     1.1110        .10546       -.57513E-08   -.76676E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 21.3324
  alpha      = 1.66219
  Normalizat = 0.690632
  Prefactor  = 1.11095
 **********
 **   18 **HESSE 
 **********

 FCN=   8991.456     FROM HESSE     STATUS=OK            31 CALLS      246 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          21.332        5.8858        .86723E-04   -1.4784    
   2  alpha         1.6622        .21207        .75375E-02   -.34174    
   3  Normalizat    .69063        .17000        .32550E-03   -1.0426    
   4  Prefactor     1.1110        .11806        .18251E-03   -.89117    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.46833e-09
Minuit parameter uncertainties:
  1  5.88595
  2  0.212358
  3  0.170134
  4  0.118084
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/639548': 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) = 8991.4560595
delta logL = 0.776843203699

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  2.133e+01  5.886e+00  1.000e-04  1.000e+04 ( 1.000e-12)
299        alpha:  1.662e+00  2.124e-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.111e+00  1.181e-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.906e-01  1.701e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 73.32
Ra Dec: 324.855 -42.590
Photon Index (Free Index): 1.66 +/- 0.21
Photon Flux (Free Index): 1.02e-07 +/- 3.59e-08
Energy Flux (Free Index): 1.38e-04 +/- 6.01e-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/639548/cmap_HighResolution_479865601_480124801_4FGL_J2139.4-4235_daily_bin928.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.32e-07', energy_flux2='1.38e-04', photon_flux_error='3.31e-08', dlogl='7.77e-01', energy_flux='9.32e-05', photon_flux2='1.02e-07', job_status='DONE', time_completed='2021-09-26 22:01:08.321069', photon_index_error2='0.21', photon_index2='1.66', ts='71.83', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', energy_flux_error2='6.01e-05', EG='0.66', time_epoch_completed='1632718868.32', return_code='0', job_id='639548', GAL2='1.11', EG2='0.69', return_code2='0', energy_flux_error='2.33e-05', photon_flux_error2='3.59e-08', ts2='73.32', photon_index='1.93' WHERE bin_id='928' AND source_name='4FGL J2139.4-4235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 22:01:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0140>
Subject: Job 639548: <4FGL_J2139.4-4235_daily_bin928> in cluster <slac> Done

Job <4FGL_J2139.4-4235_daily_bin928> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep 26 21:45:13 2021
Job was executed on host(s) <bullet0140>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 21:45:24 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:45:24 2021
Terminated at Sun Sep 26 22:01:08 2021
Results reported at Sun Sep 26 22:01:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2139.4-4235_daily_bin928 324.855 -42.5895 479865601 480124801 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 :                                   725.21 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             289.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   944 sec.
    Turnaround time :                            955 sec.

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

