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


Performing analysis on: 4FGL_J2139.4-4235_daily_bin1091
RA = 324.855, Dec = -42.5895
tmin = 522115201, tmax = 522374401
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='641016', job_status='RUN', time_executed='2021-09-26 21:51:48.743661', time_epoch_executed='1632718308.74' WHERE source_name='4FGL J2139.4-4235' and cadence='daily' and bin_id='1091'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/641016

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/641016/ft1_4FGL_J2139.4-4235_daily_bin1091.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/641016/ft2_4FGL_J2139.4-4235_daily_bin1091.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/641016/ft1_4FGL_J2139.4-4235_daily_bin1091.fits outfile=/scratch/kocevski/641016/ft1_filteredMKT_4FGL_J2139.4-4235_daily_bin1091.fits ra=324.855 dec=-42.5895 rad=12.0 tmin=522115201.0 tmax=522374401.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.78
user 3.55
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/641016/ft1_filtered_4FGL_J2139.4-4235_daily_bin1091.fits" evtable="EVENTS" scfile=/scratch/kocevski/641016/ft2_4FGL_J2139.4-4235_daily_bin1091.fits sctable="SC_DATA" outfile=/scratch/kocevski/641016/ltcube_522115201_522374401_4FGL_J2139.4-4235_daily_bin1091.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/641016/ft2_4FGL_J2139.4-4235_daily_bin1091.fits
.....................!
real 13.30
user 12.94
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/641016/ft1_filtered_4FGL_J2139.4-4235_daily_bin1091.fits evtable="EVENTS" scfile=/scratch/kocevski/641016/ft2_4FGL_J2139.4-4235_daily_bin1091.fits sctable="SC_DATA" expcube=/scratch/kocevski/641016/ltcube_522115201_522374401_4FGL_J2139.4-4235_daily_bin1091.fits outfile=/scratch/kocevski/641016/expmap_522115201_522374401_4FGL_J2139.4-4235_daily_bin1091.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/641016/ltcube_522115201_522374401_4FGL_J2139.4-4235_daily_bin1091.fits
.....................!
real 191.65
user 186.15
sys 5.16

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/641016/ft1_filtered_4FGL_J2139.4-4235_daily_bin1091.fits scfile=/scratch/kocevski/641016/ft2_4FGL_J2139.4-4235_daily_bin1091.fits outfile=/scratch/kocevski/641016/cmap_522115201_522374401_4FGL_J2139.4-4235_daily_bin1091.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/641016/ft1_filtered_4FGL_J2139.4-4235_daily_bin1091.fits scfile=/scratch/kocevski/641016/ft2_4FGL_J2139.4-4235_daily_bin1091.fits outfile=/scratch/kocevski/641016/cmap_HighResolution_522115201_522374401_4FGL_J2139.4-4235_daily_bin1091.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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/641016/ft1_filtered_4FGL_J2139.4-4235_daily_bin1091.fits evtable="EVENTS" scfile=/scratch/kocevski/641016/ft2_4FGL_J2139.4-4235_daily_bin1091.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/641016/Model_4FGL_J2139.4-4235_daily_bin1091.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/641016/ft1_filtered_4FGL_J2139.4-4235_daily_bin1091.fits.....................!
real 53.15
user 51.84
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.722       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .72711E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.7265       1.0000         .10000E-03   10000.    
     4 'Prefactor '    20.205       1.0000         .10000E-03   10000.    
     5 'Prefactor '    51.780       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.1010       1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.073       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.3733       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.5417       1.0000         .10000E-03   10000.    
    10 'norm      '    1.8352       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.3494       1.0000         .10000E-03   10000.    
    13 'norm      '    2.3909       1.0000         .10000E-03   10000.    
    14 'Prefactor '    64.821       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.695       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.4389       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11468E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1692       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .87239       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=   6522.149     FROM MIGRAD    STATUS=CONVERGED    506 CALLS     2933 TOTAL
                     EDM=   .17E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.650        54.224        .57891E-05   -.10195E-04
   2  Prefactor     .10000E-03    578.34        .83024E-05** at limit **
   3  norm          1.7265        1.5662        .59133E-07   -.22408E-04
   4  Prefactor     20.207        29.521        .20880E-06   -.37244E-05
   5  Prefactor     51.778        51.263        .53111E-06    .44518E-05
   6  Prefactor     3.1015        7.4789        .62149E-06   -.60336E-04
   7  Prefactor     13.074        25.408        .40477E-06   -.51527E-05
   8  Prefactor     1.4184        157.13       -.28013E-05    .57695E-06
   9  Prefactor     4.5414        3.9276        .76499E-07    .67471E-05
  10  norm          1.8356        3.0356        .38397E-07   -.88637E-05
  11  Prefactor     .10000E-03    6.2204       -.70038E-07** at limit **
  12  Prefactor     4.3494        7.9826        .27506E-06   -.12343E-05
  13  norm          2.3911        3.4901        .34256E-07   -.77843E-07
  14  Prefactor     64.832        45.269       -.99649E-06    .84531E-05
  15  Prefactor     .10000E-03    17.582       -.11308E-05** at limit **
  16  Prefactor     10.512        314.24        .18768E-04    .22150E-05
  17  Prefactor     .10000E-03    8.1574       -.66288E-07** at limit **
  18  Prefactor     .10000E-03    2.1192       -.23089E-07** at limit **
  19  Prefactor     .10000E-03    31.255        .62718E-07** at limit **
  20  Prefactor     6.4400        9.3138       -.18206E-06   -.36626E-05
  21  Prefactor     .10000E-03    100.62       -.16835E-05** at limit **
  22  Normalizat    1.1692        .19668       -.69471E-06    .91527E-05
  23  Prefactor     .87238        .12285       -.19231E-06   -.24185E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.6497
  Prefactor  = 0.000100004
  norm       = 1.72647
  Prefactor  = 20.2067
  Prefactor  = 51.7781
  Prefactor  = 3.10148
  Prefactor  = 13.0736
  Prefactor  = 1.41844
  Prefactor  = 4.54144
  norm       = 1.83559
  Prefactor  = 0.0001
  Prefactor  = 4.34939
  norm       = 2.39107
  Prefactor  = 64.8317
  Prefactor  = 0.0001
  Prefactor  = 10.5124
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.44003
  Prefactor  = 0.0001
  Normalizat = 1.16917
  Prefactor  = 0.872384
 **********
 **   18 **HESSE 
 **********

 FCN=   6522.149     FROM HESSE     STATUS=OK           374 CALLS     3307 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.650        53.405        .12236E-03   -1.5055    
   2  Prefactor     .10000E-03    579.90        .41916E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.7265        1.5555        .91849E-04   -1.5445    
   4  Prefactor     20.207        29.575        .89105E-04   -1.4809    
   5  Prefactor     51.778        50.936        .55735E-04   -1.4268    
   6  Prefactor     3.1015        7.4893        .11514E-02   -1.5356    
   7  Prefactor     13.074        25.347        .11078E-03   -1.4985    
   8  Prefactor     1.4184        157.12        .37187E-03   -1.5470    
   9  Prefactor     4.5414        3.9193        .14224E-03   -1.5282    
  10  norm          1.8356        2.9972        .17205E-03   -1.5437    
  11  Prefactor     .10000E-03    6.3131        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.3494        7.9666        .19314E-03   -1.5291    
  13  norm          2.3911        3.4753        .17766E-03   -1.5399    
  14  Prefactor     64.832        45.370        .49846E-04   -1.4096    
  15  Prefactor     .10000E-03    18.108        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     10.512        323.72        .12251E-03   -1.5059    
  17  Prefactor     .10000E-03    8.2743        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.1475        .11472E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    31.291        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     6.4400        9.3856        .15817E-03   -1.5200    
  21  Prefactor     .10000E-03    102.33        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1692        .22742        .27157E-03   -.87561    
  23  Prefactor     .87238        .14250        .20414E-03   -.97113    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.05143e-11
Minuit parameter uncertainties:
  1  47.7646
  2  0.00312095
  3  1.55556
  4  29.5964
  5  50.9789
  6  7.49153
  7  25.3682
  8  29.9372
  9  3.91957
  10  2.99741
  11  4.57304e-06
  12  7.96851
  13  3.47563
  14  45.3946
  15  0.000128089
  16  117.374
  17  8.52099e-06
  18  2.85218e-06
  19  1.08138e-05
  20  9.38772
  21  0.000165753
  22  0.227607
  23  0.142565
Done.

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

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  1.836e+00  2.997e+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:  8.724e-01  1.426e-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.169e+00  2.276e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/641016/likelihoodResults_522115201_522374401_4FGL_J2139.4-4235_daily_bin1091.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) = 6522.14607773
delta logL = 0.00247846240291

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6522.14606562
delta logL = 0.0024905707005

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8323       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8601       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1701       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87204       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=   6522.146     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      266 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8308        2.9418        .17192E-03   -.35710E-05
   2  alpha         1.8595        .95047        .25832E-01   -.41984E-04
   3  Normalizat    1.1700        .20617        .27149E-03   -.25921E-04
   4  Prefactor     .87214        .13678        .20416E-03   -.10302E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.83084
  alpha      = 1.85951
  Normalizat = 1.16999
  Prefactor  = 0.872136
 **********
 **   18 **HESSE 
 **********

 FCN=   6522.146     FROM HESSE     STATUS=OK            25 CALLS      291 TOTAL
                     EDM=   .19E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8308        2.9482        .68767E-05   -1.5437    
   2  alpha         1.8595        .95296        .51664E-02   -.25909    
   3  Normalizat    1.1700        .20632        .10859E-04   -.87535    
   4  Prefactor     .87214        .13688        .81664E-05   -.97122    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.88861e-12
Minuit parameter uncertainties:
  1  2.94845
  2  0.979568
  3  0.206459
  4  0.136937
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/641016': 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) = 6522.14606509
delta logL = 0.00249110060304

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  1.831e+00  2.948e+00  1.000e-04  1.000e+04 ( 1.000e-12)
299        alpha:  1.860e+00  9.796e-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:  8.721e-01  1.369e-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.170e+00  2.065e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.62
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/641016/cmap_HighResolution_522115201_522374401_4FGL_J2139.4-4235_daily_bin1091.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.61e-05', job_status='DONE', photon_flux_upper_limit='6.54e-08', time_completed='2021-09-26 22:03:49.233783', job_id='641016', GAL2='0.87', fit_tolerance='1e-08', EG2='1.17', EG='1.17', time_epoch_completed='1632719029.23', return_code2='0', ts='0.62', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='2.49e-03', ts2='0.62', photon_index_error='0.00', photon_index='1.93' WHERE bin_id='1091' AND source_name='4FGL J2139.4-4235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 22:03:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0143>
Subject: Job 641016: <4FGL_J2139.4-4235_daily_bin1091> in cluster <slac> Done

Job <4FGL_J2139.4-4235_daily_bin1091> 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) <bullet0143>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 21:51:13 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:13 2021
Terminated at Sun Sep 26 22:03:50 2021
Results reported at Sun Sep 26 22:03:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2139.4-4235_daily_bin1091 324.855 -42.5895 522115201 522374401 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 :                                   716.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             292.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   756 sec.
    Turnaround time :                            807 sec.

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

