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


Performing analysis on: 4FGL_J2139.4-4235_daily_bin1289
RA = 324.855, Dec = -42.5895
tmin = 573436801, tmax = 573696001
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='641321', job_status='RUN', time_executed='2021-09-26 21:55:16.384352', time_epoch_executed='1632718516.38' WHERE source_name='4FGL J2139.4-4235' and cadence='daily' and bin_id='1289'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/641321

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/641321/ft1_4FGL_J2139.4-4235_daily_bin1289.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/641321/ft2_4FGL_J2139.4-4235_daily_bin1289.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/641321/ft1_4FGL_J2139.4-4235_daily_bin1289.fits outfile=/scratch/kocevski/641321/ft1_filteredMKT_4FGL_J2139.4-4235_daily_bin1289.fits ra=324.855 dec=-42.5895 rad=12.0 tmin=573436801.0 tmax=573696001.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 5.38
user 5.11
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/641321/ft2_4FGL_J2139.4-4235_daily_bin1289.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/641321/ft1_filteredMKT_4FGL_J2139.4-4235_daily_bin1289.fits evtable="EVENTS" outfile="/scratch/kocevski/641321/ft1_filtered_4FGL_J2139.4-4235_daily_bin1289.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.49
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/641321/ft1_filtered_4FGL_J2139.4-4235_daily_bin1289.fits" evtable="EVENTS" scfile=/scratch/kocevski/641321/ft2_4FGL_J2139.4-4235_daily_bin1289.fits sctable="SC_DATA" outfile=/scratch/kocevski/641321/ltcube_573436801_573696001_4FGL_J2139.4-4235_daily_bin1289.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/641321/ft2_4FGL_J2139.4-4235_daily_bin1289.fits
.....................!
real 13.62
user 13.20
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/641321/ft1_filtered_4FGL_J2139.4-4235_daily_bin1289.fits evtable="EVENTS" scfile=/scratch/kocevski/641321/ft2_4FGL_J2139.4-4235_daily_bin1289.fits sctable="SC_DATA" expcube=/scratch/kocevski/641321/ltcube_573436801_573696001_4FGL_J2139.4-4235_daily_bin1289.fits outfile=/scratch/kocevski/641321/expmap_573436801_573696001_4FGL_J2139.4-4235_daily_bin1289.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/641321/ltcube_573436801_573696001_4FGL_J2139.4-4235_daily_bin1289.fits
.....................!
real 191.13
user 185.80
sys 4.85

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/641321/ft1_filtered_4FGL_J2139.4-4235_daily_bin1289.fits scfile=/scratch/kocevski/641321/ft2_4FGL_J2139.4-4235_daily_bin1289.fits outfile=/scratch/kocevski/641321/cmap_573436801_573696001_4FGL_J2139.4-4235_daily_bin1289.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/641321/ft1_filtered_4FGL_J2139.4-4235_daily_bin1289.fits scfile=/scratch/kocevski/641321/ft2_4FGL_J2139.4-4235_daily_bin1289.fits outfile=/scratch/kocevski/641321/cmap_HighResolution_573436801_573696001_4FGL_J2139.4-4235_daily_bin1289.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/641321/ft1_filtered_4FGL_J2139.4-4235_daily_bin1289.fits evtable="EVENTS" scfile=/scratch/kocevski/641321/ft2_4FGL_J2139.4-4235_daily_bin1289.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/641321/Model_4FGL_J2139.4-4235_daily_bin1289.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/641321/ft1_filtered_4FGL_J2139.4-4235_daily_bin1289.fits.....................!
real 46.85
user 45.30
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.7876       1.0000         .10000E-03   10000.    
     2 'Prefactor '    110.00       1.0000         .10000E-03   10000.    
     3 'norm      '    24.699       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.952       1.0000         .10000E-03   10000.    
     6 'Prefactor '    22.638       1.0000         .10000E-03   10000.    
     7 'Prefactor '    47.371       1.0000         .10000E-03   10000.    
     8 'Prefactor '    48.468       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.413       1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.4553       1.0000         .10000E-03   10000.    
    13 'norm      '    2.2959       1.0000         .10000E-03   10000.    
    14 'Prefactor '    103.56       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    22.979       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.8736       1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.954       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .45129       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.4193       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=   5327.032     FROM MIGRAD    STATUS=CONVERGED    492 CALLS     2518 TOTAL
                     EDM=   .55E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.7476        91.454        .14042E-04   -.12961E-04
   2  Prefactor     110.03        112.43       -.31212E-05   -.31032E-04
   3  norm          24.701        4.6873       -.64922E-07   -.32166E-03
   4  Prefactor     .10000E-03    19.624       -.10657E-06** at limit **
   5  Prefactor     15.958        71.022       -.18026E-05   -.92113E-05
   6  Prefactor     22.641        13.159       -.10268E-06   -.79873E-04
   7  Prefactor     47.379        36.976       -.11746E-05   -.38092E-04
   8  Prefactor     48.480        53.175       -.19321E-05   -.22956E-04
   9  Prefactor     .10000E-03    4.0621        .14588E-06** at limit **
  10  norm          .10000E-03    5.1335        .31125E-06** at limit **
  11  Prefactor     12.418        15.304       -.98530E-06   -.50415E-04
  12  Prefactor     9.4560        10.649        .67691E-07   -.30378E-04
  13  norm          2.2969        10.169        .61715E-05   -.40157E-04
  14  Prefactor     103.58        58.372       -.20175E-05   -.28497E-04
  15  Prefactor     .10000E-03    7.0908        .26234E-06** at limit **
  16  Prefactor     22.990        81.141       -.28621E-05   -.53272E-05
  17  Prefactor     4.8762        11.608        .13015E-05   -.18665E-04
  18  Prefactor     10.956        5.9483       -.11695E-06   -.36771E-04
  19  Prefactor     .10000E-03    27.509       -.87831E-07** at limit **
  20  Prefactor     .10000E-03    3.1579        .39742E-07** at limit **
  21  Prefactor     .10000E-03    8.0627        .77259E-07** at limit **
  22  Normalizat    .45101        .33338        .48958E-05    .13551E-04
  23  Prefactor     1.4194        .19793       -.16219E-05   -.13873E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.74765
  Prefactor  = 110.027
  norm       = 24.7009
  Prefactor  = 0.0001
  Prefactor  = 15.9581
  Prefactor  = 22.6409
  Prefactor  = 47.3789
  Prefactor  = 48.4798
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 12.4177
  Prefactor  = 9.45603
  norm       = 2.29688
  Prefactor  = 103.576
  Prefactor  = 0.0001
  Prefactor  = 22.9904
  Prefactor  = 4.87622
  Prefactor  = 10.9557
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.451012
  Prefactor  = 1.41942
 **********
 **   18 **HESSE 
 **********

 FCN=   5327.032     FROM HESSE     STATUS=OK           372 CALLS     2890 TOTAL
                     EDM=   .89E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.7476        90.050        .13521E-03   -1.5116    
   2  Prefactor     110.03        112.69        .38350E-04   -1.3606    
   3  norm          24.701        4.6711        .64174E-04   -1.4714    
   4  Prefactor     .10000E-03    19.671        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     15.958        70.754        .10028E-03   -1.4909    
   6  Prefactor     22.641        13.085        .84186E-04   -1.4756    
   7  Prefactor     47.379        36.899        .58258E-04   -1.4330    
   8  Prefactor     48.480        53.091        .57598E-04   -1.4314    
   9  Prefactor     .10000E-03    4.1601        .28706E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    5.2670        .32227E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     12.418        15.166        .11369E-03   -1.5003    
  12  Prefactor     9.4560        10.630        .13033E-03   -1.5093    
  13  norm          2.2969        10.187        .13543E-02   -1.5405    
  14  Prefactor     103.58        58.266        .19756E-03   -1.3669    
  15  Prefactor     .10000E-03    7.1536        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     22.990        81.040        .83560E-04   -1.4749    
  17  Prefactor     4.8762        11.582        .91104E-03   -1.5266    
  18  Prefactor     10.956        5.9269        .12105E-03   -1.5046    
  19  Prefactor     .10000E-03    27.525        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.1649        .12664E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    8.0629        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .45101        .33010        .50999E-03   -1.1474    
  23  Prefactor     1.4194        .20336        .20426E-03   -.79822    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.86244e-11
Minuit parameter uncertainties:
  1  56.242
  2  112.914
  3  4.6712
  4  2.08776e-05
  5  67.3378
  6  13.0865
  7  36.917
  8  53.1432
  9  9.4701e-06
  10  2.47235e-05
  11  15.1704
  12  10.6318
  13  9.67703
  14  58.2979
  15  3.40052e-05
  16  81.4315
  17  11.5874
  18  5.92718
  19  1.80907e-05
  20  3.33391e-06
  21  3.16897e-06
  22  0.331544
  23  0.203477
Done.

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

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  1.000e-04  2.472e-05  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.419e+00  2.035e-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:  4.510e-01  3.315e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 324.855 -42.590
Photon Flux Upper Limit: 7.80e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.49e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/641321/likelihoodResults_573436801_573696001_4FGL_J2139.4-4235_daily_bin1289.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): 102
logL (Free Index) = 5327.03310055
delta logL = -0.000903278411897

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5325.69199529
delta logL = 1.34020197641

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5325.692     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      361 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .15881        .11216        .19094E-04   -.35307E-03
   2  alpha         5.0000        .77759        .42917E-01** at limit **
   3  Normalizat    .28469        .30015        .63357E-03   -.15728E-03
   4  Prefactor     1.4844        .20003        .20001E-03   -.21992E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.158813
  alpha      = 5
  Normalizat = 0.284686
  Prefactor  = 1.48438
 **********
 **   18 **HESSE 
 **********

 FCN=   5325.692     FROM HESSE     STATUS=OK            23 CALLS      384 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .15881        .11163        .76377E-06   -1.5628    
   2  alpha         5.0000        .77766        .85834E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .28469        .29978        .25343E-04   -1.2376    
   4  Prefactor     1.4844        .19980        .40002E-04   -.77978    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.91144e-10
Minuit parameter uncertainties:
  1  0.111635
  2  8.33094e-06
  3  0.301485
  4  0.199904
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/641321': 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) = 5325.69199509
delta logL = 1.34020217909

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  1.588e-01  1.116e-01  1.000e-04  1.000e+04 ( 1.000e-12)
299        alpha:  5.000e+00  8.331e-06  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.484e+00  1.999e-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:  2.847e-01  3.015e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.00
Ra Dec: 324.855 -42.590
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 1.52e-07 +/- 1.06e-07
Energy Flux (Free Index): 2.05e-05 +/- 1.44e-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/641321/cmap_HighResolution_573436801_573696001_4FGL_J2139.4-4235_daily_bin1289.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.49e-05', comment='SUCCESS', energy_flux2='2.05e-05', dlogl='1.34e+00', photon_flux2='1.52e-07', job_status='DONE', time_completed='2021-09-26 22:06:41.785862', photon_index_error2='0.00', photon_index2='5.00', ts='-0.00', fit_tolerance='1e-08', GAL='1.42', photon_index_error='0.00', photon_flux_upper_limit='7.80e-08', energy_flux_error2='1.44e-05', EG='0.45', time_epoch_completed='1632719201.79', return_code='0', job_id='641321', GAL2='1.48', EG2='0.28', return_code2='0', photon_flux_error2='1.06e-07', ts2='3.00', photon_index='1.93' WHERE bin_id='1289' AND source_name='4FGL J2139.4-4235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 22:06:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 641321: <4FGL_J2139.4-4235_daily_bin1289> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2139.4-4235_daily_bin1289 324.855 -42.5895 573436801 573696001 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 :                                   629.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             303.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   723 sec.
    Turnaround time :                            957 sec.

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

