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


Performing analysis on: 4FGL_J2139.4-4235_daily_bin1094
RA = 324.855, Dec = -42.5895
tmin = 522892801, tmax = 523152001
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='641021', job_status='RUN', time_executed='2021-09-26 21:52:49.627118', time_epoch_executed='1632718369.63' WHERE source_name='4FGL J2139.4-4235' and cadence='daily' and bin_id='1094'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/641021

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/641021/ft1_4FGL_J2139.4-4235_daily_bin1094.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/641021/ft2_4FGL_J2139.4-4235_daily_bin1094.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/641021/ft1_4FGL_J2139.4-4235_daily_bin1094.fits outfile=/scratch/kocevski/641021/ft1_filteredMKT_4FGL_J2139.4-4235_daily_bin1094.fits ra=324.855 dec=-42.5895 rad=12.0 tmin=522892801.0 tmax=523152001.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.20
user 2.96
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/641021/ft2_4FGL_J2139.4-4235_daily_bin1094.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/641021/ft1_filteredMKT_4FGL_J2139.4-4235_daily_bin1094.fits evtable="EVENTS" outfile="/scratch/kocevski/641021/ft1_filtered_4FGL_J2139.4-4235_daily_bin1094.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.46
user 0.31
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/641021/ft1_filtered_4FGL_J2139.4-4235_daily_bin1094.fits" evtable="EVENTS" scfile=/scratch/kocevski/641021/ft2_4FGL_J2139.4-4235_daily_bin1094.fits sctable="SC_DATA" outfile=/scratch/kocevski/641021/ltcube_522892801_523152001_4FGL_J2139.4-4235_daily_bin1094.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/641021/ft2_4FGL_J2139.4-4235_daily_bin1094.fits
.....................!
real 15.70
user 15.38
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/641021/ft1_filtered_4FGL_J2139.4-4235_daily_bin1094.fits evtable="EVENTS" scfile=/scratch/kocevski/641021/ft2_4FGL_J2139.4-4235_daily_bin1094.fits sctable="SC_DATA" expcube=/scratch/kocevski/641021/ltcube_522892801_523152001_4FGL_J2139.4-4235_daily_bin1094.fits outfile=/scratch/kocevski/641021/expmap_522892801_523152001_4FGL_J2139.4-4235_daily_bin1094.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/641021/ltcube_522892801_523152001_4FGL_J2139.4-4235_daily_bin1094.fits
.....................!
real 155.49
user 151.42
sys 3.75

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/641021/ft1_filtered_4FGL_J2139.4-4235_daily_bin1094.fits scfile=/scratch/kocevski/641021/ft2_4FGL_J2139.4-4235_daily_bin1094.fits outfile=/scratch/kocevski/641021/cmap_522892801_523152001_4FGL_J2139.4-4235_daily_bin1094.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.52
user 0.35
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/641021/ft1_filtered_4FGL_J2139.4-4235_daily_bin1094.fits scfile=/scratch/kocevski/641021/ft2_4FGL_J2139.4-4235_daily_bin1094.fits outfile=/scratch/kocevski/641021/cmap_HighResolution_522892801_523152001_4FGL_J2139.4-4235_daily_bin1094.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.47
user 0.32
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/641021/ft1_filtered_4FGL_J2139.4-4235_daily_bin1094.fits evtable="EVENTS" scfile=/scratch/kocevski/641021/ft2_4FGL_J2139.4-4235_daily_bin1094.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/641021/Model_4FGL_J2139.4-4235_daily_bin1094.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/641021/ft1_filtered_4FGL_J2139.4-4235_daily_bin1094.fits.....................!
real 36.51
user 35.33
sys 1.09

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .55122E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10170E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.407       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .58050E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    73.078       1.0000         .10000E-03   10000.    
     8 'Prefactor '    45.368       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.4854       1.0000         .10000E-03   10000.    
    10 'norm      '    1.9642       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.5228       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10204E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    19.871       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11149E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    28.866       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.1858       1.0000         .10000E-03   10000.    
    21 'Prefactor '    20.143       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1065       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .99907       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=   5306.053     FROM MIGRAD    STATUS=CONVERGED    556 CALLS     3018 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11736E-03    39.783       -.15905E-05** at limit **
   2  Prefactor     .10000E-03    25.408       -.51056E-07** at limit **
   3  norm          .10000E-03    .82460       -.79368E-07** at limit **
   4  Prefactor     .10000E-03    24.451       -.10995E-06** at limit **
   5  Prefactor     15.377        71.631        .48065E-05    .83910E-04
   6  Prefactor     .10000E-03    5.6293       -.45043E-06** at limit **
   7  Prefactor     73.074        43.124        .75132E-06    .47735E-04
   8  Prefactor     45.366        55.404        .11595E-05    .15270E-03
   9  Prefactor     8.4835        7.3978        .25567E-05   -.18565E-03
  10  norm          1.9660        4.4121        .42858E-06   -.13708E-04
  11  Prefactor     .10000E-03    3.0706       -.86209E-08** at limit **
  12  Prefactor     8.5237        9.8313        .54654E-06    .94388E-04
  13  norm          .10000E-03    5.7140       -.73930E-07** at limit **
  14  Prefactor     .10000E-03    35.976       -.26467E-07** at limit **
  15  Prefactor     19.860        14.755        .20382E-06    .12071E-03
  16  Prefactor     .10000E-03    108.62        .14687E-06** at limit **
  17  Prefactor     .10000E-03    4.7026        .33608E-07** at limit **
  18  Prefactor     .10000E-03    2.4794       -.32621E-09** at limit **
  19  Prefactor     28.868        35.777       -.63235E-06   -.53859E-04
  20  Prefactor     3.1857        9.3440        .16797E-05    .42634E-04
  21  Prefactor     20.133        31.800        .43500E-05    .21818E-03
  22  Normalizat    1.1069        .25491       -.42988E-05    .17379E-03
  23  Prefactor     .99876        .14843        .14558E-05   -.57126E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000117364
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.3771
  Prefactor  = 0.000100002
  Prefactor  = 73.0743
  Prefactor  = 45.3664
  Prefactor  = 8.48346
  norm       = 1.966
  Prefactor  = 0.0001
  Prefactor  = 8.52369
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.8604
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.8677
  Prefactor  = 3.18572
  Prefactor  = 20.1334
  Normalizat = 1.10687
  Prefactor  = 0.998757
 **********
 **   18 **HESSE 
 **********

 FCN=   5306.053     FROM HESSE     STATUS=OK           374 CALLS     3392 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11736E-03    40.262        .14071       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    25.413        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    1.4379        .12844E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    24.518        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     15.377        73.331        .10204E-03   -1.4923    
   6  Prefactor     .10000E-03    62.792        .32450E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     73.074        42.719        .46965E-04   -1.3996    
   8  Prefactor     45.366        55.884        .59525E-04   -1.4360    
   9  Prefactor     8.4835        7.6647        .68808E-03   -1.5125    
  10  norm          1.9660        4.3780        .21494E-03   -1.5428    
  11  Prefactor     .10000E-03    3.0758        .12464E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.5237        9.8320        .13731E-03   -1.5124    
  13  norm          .10000E-03    5.7423        .17003E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    36.024        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     19.860        14.926        .89851E-04   -1.4816    
  16  Prefactor     .10000E-03    108.67        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.7100        .15426E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.5007        .11194E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     28.868        35.884        .74569E-04   -1.4633    
  20  Prefactor     3.1857        9.3399        .22703E-03   -1.5351    
  21  Prefactor     20.133        32.589        .89242E-04   -1.4810    
  22  Normalizat    1.1069        .28564        .30497E-03   -.89532    
  23  Prefactor     .99876        .17055        .20755E-03   -.92771    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10344e-09
Minuit parameter uncertainties:
  1  0.0529169
  2  3.44185e-06
  3  1.76829e-05
  4  2.59339e-05
  5  67.2944
  6  0.000729792
  7  42.7366
  8  55.9484
  9  7.66558
  10  4.37874
  11  2.44882e-06
  12  9.8339
  13  8.98439e-06
  14  5.08581e-05
  15  14.9292
  16  0.000132104
  17  3.15407e-06
  18  3.69275e-06
  19  35.9106
  20  9.34419
  21  32.6183
  22  0.286043
  23  0.170644
Done.

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

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  1.966e+00  4.379e+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.988e-01  1.706e-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.107e+00  2.860e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/641021/likelihoodResults_522892801_523152001_4FGL_J2139.4-4235_daily_bin1094.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) = 5306.00381532
delta logL = 0.0488224251822

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5306.00345414
delta logL = 0.0491836118035

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.0481       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6086       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1107       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99683       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=   5306.003     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      204 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 40.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.0478        3.2367       -.21866E-05    .11389E-02
   2  alpha         1.6082        .61302        .17929E-04    .17589E-03
   3  Normalizat    1.1106        .21881       -.25648E-06   -.37514E-04
   4  Prefactor     .99689        .14317        .31258E-06   -.67728E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.0478
  alpha      = 1.60822
  Normalizat = 1.11063
  Prefactor  = 0.996886
 **********
 **   18 **HESSE 
 **********

 FCN=   5306.003     FROM HESSE     STATUS=OK            31 CALLS      235 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.0478        4.0188        .19452E-03   -1.5422    
   2  alpha         1.6082        .91684        .21771E-01   -.36474    
   3  Normalizat    1.1106        .25094        .30453E-03   -.89411    
   4  Prefactor     .99689        .16448        .20770E-03   -.92833    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.90741e-09
Minuit parameter uncertainties:
  1  4.01932
  2  0.942188
  3  0.251212
  4  0.164559
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/641021': 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) = 5306.00345396
delta logL = 0.0491837929985

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  2.048e+00  4.019e+00  1.000e-04  1.000e+04 ( 1.000e-12)
299        alpha:  1.608e+00  9.422e-01  0.000e+00  5.000e+00 ( 1.000e+00)
300         beta:  4.914e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
301           Eb:  8.547e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
578    Prefactor:  9.969e-01  1.646e-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.111e+00  2.512e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.27
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/641021/cmap_HighResolution_522892801_523152001_4FGL_J2139.4-4235_daily_bin1094.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.03e-05', job_status='DONE', photon_flux_upper_limit='8.56e-08', time_completed='2021-09-26 22:01:43.089065', job_id='641021', GAL2='1.00', fit_tolerance='1e-08', EG2='1.11', EG='1.11', time_epoch_completed='1632718903.09', return_code2='0', ts='0.27', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='4.92e-02', ts2='0.37', photon_index_error='0.00', photon_index='1.93' WHERE bin_id='1094' AND source_name='4FGL J2139.4-4235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 22:01:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 641021: <4FGL_J2139.4-4235_daily_bin1094> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2139.4-4235_daily_bin1094 324.855 -42.5895 522892801 523152001 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 :                                   527.48 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             299.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   628 sec.
    Turnaround time :                            680 sec.

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

