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


Performing analysis on: 4FGL_J2139.4-4235_daily_bin745
RA = 324.855, Dec = -42.5895
tmin = 432432001, tmax = 432691201
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='636884', job_status='RUN', time_executed='2021-09-26 21:38:11.320302', time_epoch_executed='1632717491.32' WHERE source_name='4FGL J2139.4-4235' and cadence='daily' and bin_id='745'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/636884

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/636884/ft1_4FGL_J2139.4-4235_daily_bin745.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/636884/ft2_4FGL_J2139.4-4235_daily_bin745.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/636884/ft1_4FGL_J2139.4-4235_daily_bin745.fits outfile=/scratch/kocevski/636884/ft1_filteredMKT_4FGL_J2139.4-4235_daily_bin745.fits ra=324.855 dec=-42.5895 rad=12.0 tmin=432432001.0 tmax=432691201.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.16
user 4.85
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/636884/ft1_filtered_4FGL_J2139.4-4235_daily_bin745.fits" evtable="EVENTS" scfile=/scratch/kocevski/636884/ft2_4FGL_J2139.4-4235_daily_bin745.fits sctable="SC_DATA" outfile=/scratch/kocevski/636884/ltcube_432432001_432691201_4FGL_J2139.4-4235_daily_bin745.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/636884/ft2_4FGL_J2139.4-4235_daily_bin745.fits
.....................!
real 14.48
user 14.13
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/636884/ft1_filtered_4FGL_J2139.4-4235_daily_bin745.fits evtable="EVENTS" scfile=/scratch/kocevski/636884/ft2_4FGL_J2139.4-4235_daily_bin745.fits sctable="SC_DATA" expcube=/scratch/kocevski/636884/ltcube_432432001_432691201_4FGL_J2139.4-4235_daily_bin745.fits outfile=/scratch/kocevski/636884/expmap_432432001_432691201_4FGL_J2139.4-4235_daily_bin745.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/636884/ltcube_432432001_432691201_4FGL_J2139.4-4235_daily_bin745.fits
.....................!
real 194.63
user 188.57
sys 5.36

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/636884/ft1_filtered_4FGL_J2139.4-4235_daily_bin745.fits scfile=/scratch/kocevski/636884/ft2_4FGL_J2139.4-4235_daily_bin745.fits outfile=/scratch/kocevski/636884/cmap_432432001_432691201_4FGL_J2139.4-4235_daily_bin745.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.57
user 0.39
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/636884/ft1_filtered_4FGL_J2139.4-4235_daily_bin745.fits evtable="EVENTS" scfile=/scratch/kocevski/636884/ft2_4FGL_J2139.4-4235_daily_bin745.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/636884/Model_4FGL_J2139.4-4235_daily_bin745.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/636884/ft1_filtered_4FGL_J2139.4-4235_daily_bin745.fits.....................!
real 63.67
user 62.23
sys 1.30

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .97100       1.0000         .10000E-03   10000.    
     3 'norm      '    2.7677       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.7645       1.0000         .10000E-03   10000.    
     5 'Prefactor '    106.17       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10585E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    21.406       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.3355       1.0000         .10000E-03   10000.    
    10 'norm      '    6.9254       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.0640       1.0000         .10000E-03   10000.    
    13 'norm      '    6.5117       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.4631       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .15558E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    43.525       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    18.715       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .88409       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .95146       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=   8036.680     FROM MIGRAD    STATUS=CONVERGED    894 CALLS     2916 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.938        .18142E-02** at limit **
   2  Prefactor     .88497        43.957        .16021        .16068E-03
   3  norm          2.7679        1.5101        .77306E-04    .26368E-03
   4  Prefactor     3.7630        19.006        .20808E-03    .25187E-04
   5  Prefactor     106.16        55.758        .39028E-04    .26391E-04
   6  Prefactor     .10003E-03    14.439        .33050E-02** at limit **
   7  Prefactor     21.400        24.097        .86573E-04    .36638E-04
   8  Prefactor     .10000E-03    14.977        .18142E-02** at limit **
   9  Prefactor     4.3358        3.3611        .13894E-03    .63412E-04
  10  norm          6.9258        4.1966        .13369E-03    .11650E-03
  11  Prefactor     .10000E-03    17.562        .36285E-03** at limit **
  12  Prefactor     7.0587        10.106        .15093E-03   -.32389E-04
  13  norm          6.5105        6.1566        .15727E-03    .81829E-04
  14  Prefactor     .10000E-03    14.015        .18142E-02** at limit **
  15  Prefactor     8.4789        8.5415        .13780E-03    .10263E-03
  16  Prefactor     .10000E-03    107.00        .18142E-02** at limit **
  17  Prefactor     43.523        18.654        .60767E-04   -.13096E-05
  18  Prefactor     .10000E-03    1.7134        .11400E-02** at limit **
  19  Prefactor     .10000E-03    17.494        .18142E-02** at limit **
  20  Prefactor     .10000E-03    3.7202        .16837E-02** at limit **
  21  Prefactor     18.715        22.734        .92584E-04    .69992E-05
  22  Normalizat    .88413        .21186        .31588E-03    .39931E-03
  23  Prefactor     .95150        .12575        .19094E-03    .53526E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.884966
  norm       = 2.76785
  Prefactor  = 3.76304
  Prefactor  = 106.155
  Prefactor  = 0.000100026
  Prefactor  = 21.3996
  Prefactor  = 0.0001
  Prefactor  = 4.33577
  norm       = 6.92577
  Prefactor  = 0.0001
  Prefactor  = 7.05871
  norm       = 6.51048
  Prefactor  = 0.0001
  Prefactor  = 8.47894
  Prefactor  = 0.0001
  Prefactor  = 43.5228
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.7145
  Normalizat = 0.884127
  Prefactor  = 0.951501
 **********
 **   18 **HESSE 
 **********

 FCN=   8036.680     FROM HESSE     STATUS=OK           356 CALLS     3272 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.939        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .88497        42.641        .16363       -1.5520    
   3  norm          2.7679        1.5101        .30923E-05   -1.5375    
   4  Prefactor     3.7630        19.001        .83232E-05   -1.5320    
   5  Prefactor     106.16        55.756        .78056E-05   -1.3644    
   6  Prefactor     .10003E-03    14.616        .66099E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     21.400        24.094        .34629E-05   -1.4782    
   8  Prefactor     .10000E-03    14.978        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.3358        3.3610        .55578E-05   -1.5291    
  10  norm          6.9258        4.1965        .53476E-05   -1.5182    
  11  Prefactor     .10000E-03    17.563        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.0587        10.105        .60373E-05   -1.5177    
  13  norm          6.5105        6.1565        .62908E-05   -1.5198    
  14  Prefactor     .10000E-03    14.016        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     8.4789        8.5411        .55119E-05   -1.5126    
  16  Prefactor     .10000E-03    107.00        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     43.523        18.655        .24307E-05   -1.4388    
  18  Prefactor     .10000E-03    1.7137        .22800E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    17.495        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.7209        .33674E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     18.715        22.736        .37033E-05   -1.4842    
  22  Normalizat    .88413        .21199        .12635E-04   -.97020    
  23  Prefactor     .95150        .12583        .76377E-05   -.94364    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.88431e-09
Minuit parameter uncertainties:
  1  1.76653e-05
  2  12.2946
  3  1.51011
  4  16.92
  5  55.7836
  6  0.00122415
  7  24.1054
  8  5.49314e-05
  9  3.3611
  10  4.19663
  11  0.000138376
  12  10.1076
  13  6.15708
  14  2.88332e-05
  15  8.5423
  16  8.36665e-05
  17  18.6578
  18  1.43881e-06
  19  1.26003e-05
  20  5.46007e-07
  21  22.746
  22  0.212186
  23  0.12587
Done.

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

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  6.926e+00  4.197e+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.515e-01  1.259e-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.841e-01  2.122e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.27
Ra Dec: 324.855 -42.590
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 4.20e-08 +/- 2.54e-08
Energy Flux (Fixed Index): 2.96e-05 +/- 1.79e-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) = 8036.125972
delta logL = 0.553627665644

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8036.12223767
delta logL = 0.557362003094

Fit tolerance = 1e-08

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

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

 FCN=   8036.122     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      267 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.9854        60.274        .41037E-02    .20291E-03
   2  alpha         2.4524        3.7059        .32915        .47505E-04
   3  Normalizat    .85156        .10696        .72582E-01    .34527E-04
   4  Prefactor     .96245        .46697E-01    .45796E-01    .15179E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.98536
  alpha      = 2.45236
  Normalizat = 0.851564
  Prefactor  = 0.962454
 **********
 **   18 **HESSE 
 **********

 FCN=   8036.122     FROM HESSE     STATUS=OK            33 CALLS      300 TOTAL
                     EDM=   .23E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.9854        4.0235        .11113E-03   -1.5219    
   2  alpha         2.4524        .54310        .12286E-01   -.19056E-01
   3  Normalizat    .85156        .19957        .32120E-03   -.98184    
   4  Prefactor     .96245        .12360        .18991E-03   -.93992    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.33727e-12
Minuit parameter uncertainties:
  1  4.02369
  2  0.547467
  3  0.199743
  4  0.123636
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/636884': 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) = 8036.12223691
delta logL = 0.557362760516

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  5.985e+00  4.024e+00  1.000e-04  1.000e+04 ( 1.000e-12)
299        alpha:  2.452e+00  5.475e-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.625e-01  1.236e-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.516e-01  1.997e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.42
Ra Dec: 324.855 -42.590
Photon Index (Free Index): 2.45 +/- 0.55
Photon Flux (Free Index): 7.02e-08 +/- 4.50e-08
Energy Flux (Free Index): 2.17e-05 +/- 1.24e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/636884/cmap_HighResolution_432432001_432691201_4FGL_J2139.4-4235_daily_bin745.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.20e-08', energy_flux2='2.17e-05', photon_flux_error='2.54e-08', dlogl='5.57e-01', energy_flux='2.96e-05', photon_flux2='7.02e-08', job_status='DONE', time_completed='2021-09-26 21:50:35.101784', photon_index_error2='0.55', photon_index2='2.45', ts='6.27', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='1.24e-05', EG='0.88', time_epoch_completed='1632718235.1', return_code='0', job_id='636884', GAL2='0.96', EG2='0.85', return_code2='0', energy_flux_error='1.79e-05', photon_flux_error2='4.50e-08', ts2='7.42', photon_index='1.93' WHERE bin_id='745' AND source_name='4FGL J2139.4-4235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 21:50:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0199>
Subject: Job 636884: <4FGL_J2139.4-4235_daily_bin745> in cluster <slac> Done

Job <4FGL_J2139.4-4235_daily_bin745> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Sep 26 21:35:23 2021
Job was executed on host(s) <bullet0199>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 21:36:02 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:36:02 2021
Terminated at Sun Sep 26 21:50:35 2021
Results reported at Sun Sep 26 21:50:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2139.4-4235_daily_bin745 324.855 -42.5895 432432001 432691201 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 :                                   721.37 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             310.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   873 sec.
    Turnaround time :                            912 sec.

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

