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


Performing analysis on: 4FGL_J2139.4-4235_daily_bin1632
RA = 324.855, Dec = -42.5895
tmin = 662342401, tmax = 662601601
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='628482', job_status='RUN', time_executed='2021-12-31 00:36:48.277806', time_epoch_executed='1640939808.28' WHERE source_name='4FGL J2139.4-4235' and cadence='daily' and bin_id='1632'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/628482

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/628482/ft1_4FGL_J2139.4-4235_daily_bin1632.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/628482/ft2_4FGL_J2139.4-4235_daily_bin1632.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/628482/ft1_4FGL_J2139.4-4235_daily_bin1632.fits outfile=/scratch/kocevski/628482/ft1_filteredMKT_4FGL_J2139.4-4235_daily_bin1632.fits ra=324.855 dec=-42.5895 rad=12.0 tmin=662342401.0 tmax=662601601.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 2.92
user 2.70
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/628482/ft2_4FGL_J2139.4-4235_daily_bin1632.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/628482/ft1_filteredMKT_4FGL_J2139.4-4235_daily_bin1632.fits evtable="EVENTS" outfile="/scratch/kocevski/628482/ft1_filtered_4FGL_J2139.4-4235_daily_bin1632.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/628482/ft1_filtered_4FGL_J2139.4-4235_daily_bin1632.fits" evtable="EVENTS" scfile=/scratch/kocevski/628482/ft2_4FGL_J2139.4-4235_daily_bin1632.fits sctable="SC_DATA" outfile=/scratch/kocevski/628482/ltcube_662342401_662601601_4FGL_J2139.4-4235_daily_bin1632.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/628482/ft2_4FGL_J2139.4-4235_daily_bin1632.fits
.....................!
real 14.81
user 14.47
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/628482/ft1_filtered_4FGL_J2139.4-4235_daily_bin1632.fits evtable="EVENTS" scfile=/scratch/kocevski/628482/ft2_4FGL_J2139.4-4235_daily_bin1632.fits sctable="SC_DATA" expcube=/scratch/kocevski/628482/ltcube_662342401_662601601_4FGL_J2139.4-4235_daily_bin1632.fits outfile=/scratch/kocevski/628482/expmap_662342401_662601601_4FGL_J2139.4-4235_daily_bin1632.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/628482/ltcube_662342401_662601601_4FGL_J2139.4-4235_daily_bin1632.fits
.....................!
real 193.78
user 187.72
sys 5.72

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/628482/ft1_filtered_4FGL_J2139.4-4235_daily_bin1632.fits scfile=/scratch/kocevski/628482/ft2_4FGL_J2139.4-4235_daily_bin1632.fits outfile=/scratch/kocevski/628482/cmap_662342401_662601601_4FGL_J2139.4-4235_daily_bin1632.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.56
user 0.39
sys 0.16

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

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/628482/ft1_filtered_4FGL_J2139.4-4235_daily_bin1632.fits', '/scratch/kocevski/628482/ft2_4FGL_J2139.4-4235_daily_bin1632.fits', expMap='/scratch/kocevski/628482/expmap_662342401_662601601_4FGL_J2139.4-4235_daily_bin1632.fits', expCube='/scratch/kocevski/628482/ltcube_662342401_662601601_4FGL_J2139.4-4235_daily_bin1632.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/628482/Model_4FGL_J2139.4-4235_daily_bin1632.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/628482/ft1_filtered_4FGL_J2139.4-4235_daily_bin1632.fits
Spacecraft file(s): /scratch/kocevski/628482/ft2_4FGL_J2139.4-4235_daily_bin1632.fits
Exposure map: /scratch/kocevski/628482/expmap_662342401_662601601_4FGL_J2139.4-4235_daily_bin1632.fits
Exposure cube: /scratch/kocevski/628482/ltcube_662342401_662601601_4FGL_J2139.4-4235_daily_bin1632.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/628482/Model_4FGL_J2139.4-4235_daily_bin1632.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 2889.63049235

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    460.36       1.0000         .10000E-03   10000.    
     2 'Prefactor '    242.64       1.0000         .10000E-03   10000.    
     3 'norm      '    6.1646       1.0000         .10000E-03   10000.    
     4 'Prefactor '    42.228       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    20.959       1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.395       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.0195       1.0000         .10000E-03   10000.    
    10 'norm      '    17.791       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.6786       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.2034       1.0000         .10000E-03   10000.    
    13 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.3457       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.6653       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.7488       1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.7289       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .87594       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .72910       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=   2889.516     FROM MIGRAD    STATUS=CONVERGED    866 CALLS     3241 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     460.48        367.32        .95437E-04   -.60753E-06
   2  Prefactor     242.21        302.83        .12998E-03   -.74344E-05
   3  norm          6.1625        8.0432        .16169E-03    .42186E-06
   4  Prefactor     42.115        55.826        .30845E-03   -.27478E-04
   5  Prefactor     .10000E-03    79.053        .18142E-02** at limit **
   6  Prefactor     20.958        14.727        .87489E-04    .25014E-04
   7  Prefactor     11.384        73.034        .11868E-03   -.15327E-05
   8  Prefactor     .10000E-03    49.459        .18142E-02** at limit **
   9  Prefactor     7.0151        9.3553        .75708E-03    .53099E-03
  10  norm          17.790        9.9857        .94956E-04   -.11194E-04
  11  Prefactor     4.6814        14.226        .18605E-03   -.20990E-04
  12  Prefactor     4.2011        12.149        .19656E-03   -.54946E-06
  13  norm          .10000E-03    12.097        .18092E-02** at limit **
  14  Prefactor     .10000E-03    75.998        .18142E-02** at limit **
  15  Prefactor     6.4510        28.713        .15934E-03    .89793E-03
  16  Prefactor     2.9798        8252.7        .18632E-02    .51623E-04
  17  Prefactor     .10000E-03    2.8235        .88105E-03** at limit **
  18  Prefactor     .10000E-03    2.5841        .16671E-03** at limit **
  19  Prefactor     .10000E-03    10.425        .16953E-02** at limit **
  20  Prefactor     7.7520        6.6505        .12142E-03    .13769E-03
  21  Prefactor     8.7291        13.795        .13567E-03    .54048E-05
  22  Normalizat    .87578        .26634        .25017E-03    .24111E-03
  23  Prefactor     .72930        .19438        .20914E-03    .35960E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 460.477
  Prefactor  = 242.214
  norm       = 6.16253
  Prefactor  = 42.1148
  Prefactor  = 0.0001
  Prefactor  = 20.9578
  Prefactor  = 11.3842
  Prefactor  = 0.0001
  Prefactor  = 7.01506
  norm       = 17.7904
  Prefactor  = 4.68141
  Prefactor  = 4.2011
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 6.45097
  Prefactor  = 2.97977
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.75197
  Prefactor  = 8.72911
  Normalizat = 0.875775
  Prefactor  = 0.729298
 **********
 **   18 **HESSE 
 **********

 FCN=   2889.516     FROM HESSE     STATUS=OK           346 CALLS     3587 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     460.48        367.31        .19087E-04   -1.1383    
   2  Prefactor     242.21        302.83        .25996E-04   -1.2583    
   3  norm          6.1625        8.0430        .64677E-05   -1.5211    
   4  Prefactor     42.115        55.824        .12338E-04   -1.4409    
   5  Prefactor     .10000E-03    79.053        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     20.958        14.725        .34996E-05   -1.4792    
   7  Prefactor     11.384        72.969        .47472E-05   -1.5033    
   8  Prefactor     .10000E-03    49.460        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.0151        9.3310        .30283E-04   -1.5178    
  10  norm          17.790        9.9840        .37983E-05   -1.4864    
  11  Prefactor     4.6814        14.217        .74421E-05   -1.5275    
  12  Prefactor     4.2011        12.144        .78624E-05   -1.5298    
  13  norm          .10000E-03    12.105        .36183E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    76.025        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.4510        23.779        .63735E-05   -1.5200    
  16  Prefactor     2.9798        7656.5        .74529E-04   -1.5363    
  17  Prefactor     .10000E-03    2.8236        .17621E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.5841        .33342E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    10.425        .33907E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     7.7520        6.6452        .48567E-05   -1.5151    
  21  Prefactor     8.7291        13.795        .54269E-05   -1.5117    
  22  Normalizat    .87578        .26634        .50033E-04   -.97317    
  23  Prefactor     .72930        .19450        .41828E-04   -1.0239    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.65166e-09
Minuit parameter uncertainties:
  1  369.22
  2  304.82
  3  8.04444
  4  55.8937
  5  1.05647e-05
  6  14.7278
  7  57.7468
  8  4.99817e-05
  9  9.33298
  10  9.9849
  11  14.227
  12  12.1507
  13  5.16106e-05
  14  0.000440697
  15  23.8143
  16  287.981
  17  6.87636e-06
  18  2.00559e-05
  19  5.30843e-06
  20  6.64579
  21  13.7996
  22  0.26674
  23  0.194681
Done.

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

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  1.779e+01  9.985e+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:  7.293e-01  1.947e-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:  8.758e-01  2.667e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.50
Ra Dec: 324.855 -42.590
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 1.08e-07 +/- 6.05e-08
Energy Flux (Fixed Index): 7.60e-05 +/- 4.27e-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) = 2889.45366975
delta logL = 0.0618596409172

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2889.44951728
delta logL = 0.0660121151195

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    17.191       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0936       1.0000          .0000       5.0000    
     3 'Normalizat'    .86005       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73491       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=   2889.450     FROM MIGRAD    STATUS=CONVERGED     77 CALLS      227 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          17.190        8.8625        .96599E-04    .29990E-02
   2  alpha         2.0939        .46183        .82590E-02    .35778E-03
   3  Normalizat    .86008        .24952        .25196E-03   -.12761E-03
   4  Prefactor     .73482        .19064        .20831E-03   -.18681E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 17.1897
  alpha      = 2.09389
  Normalizat = 0.860083
  Prefactor  = 0.73482
 **********
 **   18 **HESSE 
 **********

 FCN=   2889.450     FROM HESSE     STATUS=OK            23 CALLS      250 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          17.190        8.7854        .19320E-04   -1.4879    
   2  alpha         2.0939        .45757        .33036E-03   -.16317    
   3  Normalizat    .86008        .24954        .50393E-04   -.97877    
   4  Prefactor     .73482        .19070        .41662E-04   -1.0218    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.95735e-09
Minuit parameter uncertainties:
  1  8.78608
  2  0.460232
  3  0.249874
  4  0.190866
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/628482': 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) = 2889.44951683
delta logL = 0.0660125591226

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  1.719e+01  8.786e+00  1.000e-04  1.000e+04 ( 1.000e-12)
299        alpha:  2.094e+00  4.602e-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:  7.348e-01  1.909e-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:  8.601e-01  2.499e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.60
Ra Dec: 324.855 -42.590
Photon Index (Free Index): 2.09 +/- 0.46
Photon Flux (Free Index): 1.26e-07 +/- 7.74e-08
Energy Flux (Free Index): 6.39e-05 +/- 4.15e-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/628482/cmap_HighResolution_662342401_662601601_4FGL_J2139.4-4235_daily_bin1632.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.08e-07', energy_flux2='6.39e-05', photon_flux_error='6.05e-08', dlogl='6.60e-02', energy_flux='7.60e-05', photon_flux2='1.26e-07', job_status='DONE', time_completed='2021-12-31 00:44:37.354739', photon_index_error2='0.46', photon_index2='2.09', ts='12.50', fit_tolerance='1e-08', GAL='0.73', photon_index_error='0.00', energy_flux_error2='4.15e-05', EG='0.88', time_epoch_completed='1640940277.35', return_code='0', job_id='628482', GAL2='0.73', EG2='0.86', return_code2='0', energy_flux_error='4.27e-05', photon_flux_error2='7.74e-08', ts2='12.60', photon_index='1.93' WHERE bin_id='1632' AND source_name='4FGL J2139.4-4235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Dec 31 00:44:37 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0240>
Subject: Job 628482: <4FGL_J2139.4-4235_daily_bin1632> in cluster <slac> Done

Job <4FGL_J2139.4-4235_daily_bin1632> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Dec 31 00:35:28 2021
Job was executed on host(s) <bullet0240>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Dec 31 00:35:29 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Dec 31 00:35:29 2021
Terminated at Fri Dec 31 00:44:38 2021
Results reported at Fri Dec 31 00:44:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2139.4-4235_daily_bin1632 324.855 -42.5895 662342401 662601601 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 :                                   472.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             339.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   548 sec.
    Turnaround time :                            550 sec.

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

