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


Performing analysis on: 4FGL_J2139.4-4235_daily_bin982
RA = 324.855, Dec = -42.5895
tmin = 493862401, tmax = 494121601
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='639627', job_status='RUN', time_executed='2021-09-26 21:49:09.765945', time_epoch_executed='1632718149.77' WHERE source_name='4FGL J2139.4-4235' and cadence='daily' and bin_id='982'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/639627

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/639627/ft1_4FGL_J2139.4-4235_daily_bin982.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/639627/ft2_4FGL_J2139.4-4235_daily_bin982.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/639627/ft1_4FGL_J2139.4-4235_daily_bin982.fits outfile=/scratch/kocevski/639627/ft1_filteredMKT_4FGL_J2139.4-4235_daily_bin982.fits ra=324.855 dec=-42.5895 rad=12.0 tmin=493862401.0 tmax=494121601.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.62
user 3.35
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/639627/ft1_filtered_4FGL_J2139.4-4235_daily_bin982.fits" evtable="EVENTS" scfile=/scratch/kocevski/639627/ft2_4FGL_J2139.4-4235_daily_bin982.fits sctable="SC_DATA" outfile=/scratch/kocevski/639627/ltcube_493862401_494121601_4FGL_J2139.4-4235_daily_bin982.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/639627/ft2_4FGL_J2139.4-4235_daily_bin982.fits
.....................!
real 14.25
user 13.83
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/639627/ft1_filtered_4FGL_J2139.4-4235_daily_bin982.fits evtable="EVENTS" scfile=/scratch/kocevski/639627/ft2_4FGL_J2139.4-4235_daily_bin982.fits sctable="SC_DATA" expcube=/scratch/kocevski/639627/ltcube_493862401_494121601_4FGL_J2139.4-4235_daily_bin982.fits outfile=/scratch/kocevski/639627/expmap_493862401_494121601_4FGL_J2139.4-4235_daily_bin982.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/639627/ltcube_493862401_494121601_4FGL_J2139.4-4235_daily_bin982.fits
.....................!
real 192.05
user 185.67
sys 5.65

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/639627/ft1_filtered_4FGL_J2139.4-4235_daily_bin982.fits scfile=/scratch/kocevski/639627/ft2_4FGL_J2139.4-4235_daily_bin982.fits outfile=/scratch/kocevski/639627/cmap_493862401_494121601_4FGL_J2139.4-4235_daily_bin982.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=324.855 yref=-42.5895 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/639627/ft1_filtered_4FGL_J2139.4-4235_daily_bin982.fits scfile=/scratch/kocevski/639627/ft2_4FGL_J2139.4-4235_daily_bin982.fits outfile=/scratch/kocevski/639627/cmap_HighResolution_493862401_494121601_4FGL_J2139.4-4235_daily_bin982.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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/639627/ft1_filtered_4FGL_J2139.4-4235_daily_bin982.fits evtable="EVENTS" scfile=/scratch/kocevski/639627/ft2_4FGL_J2139.4-4235_daily_bin982.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/639627/Model_4FGL_J2139.4-4235_daily_bin982.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/639627/ft1_filtered_4FGL_J2139.4-4235_daily_bin982.fits.....................!
real 69.36
user 67.78
sys 1.32

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.802       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10637E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    6.4100       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.1166       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .22558E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    19.495       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.4505       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    7.7244       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.4847       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.0829       1.0000         .10000E-03   10000.    
    14 'Prefactor '    21.600       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10134E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.9029       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.1851       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.5543       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11905E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .88138       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0715       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=   9325.378     FROM MIGRAD    STATUS=CONVERGED    544 CALLS     2552 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.792        28.930        .74037E-06    .48406E-04
   2  Prefactor     .10000E-03    38.208        .10524E-05** at limit **
   3  norm          6.4100        1.9313       -.12199E-07   -.52255E-04
   4  Prefactor     9.1112        15.072       -.15203E-06   -.17995E-04
   5  Prefactor     .10000E-03    47.323       -.16697E-05** at limit **
   6  Prefactor     .10000E-03    2.2485        .28641E-07** at limit **
   7  Prefactor     19.475        17.917        .16405E-05    .20728E-03
   8  Prefactor     3.4617        45.674       -.78873E-05   -.91681E-04
   9  Prefactor     .10000E-03    1.7799        .44238E-07** at limit **
  10  norm          7.7242        3.7476       -.13087E-06   -.29668E-04
  11  Prefactor     5.4857        4.6608        .15145E-05   -.20144E-02
  12  Prefactor     .10000E-03    1.3828       -.43369E-07** at limit **
  13  norm          2.0856        5.7886       -.13986E-06   -.22201E-03
  14  Prefactor     21.635        27.073       -.70126E-05   -.37417E-03
  15  Prefactor     .10000E-03    1.3490        .20826E-07** at limit **
  16  Prefactor     .10000E-03    13.914        .43273E-07** at limit **
  17  Prefactor     .10000E-03    3.0679       -.67231E-07** at limit **
  18  Prefactor     3.8968        3.9886        .12470E-06    .30513E-03
  19  Prefactor     1.0141        33.136       -.37259E-05    .23244E-03
  20  Prefactor     1.5543        2.5324        .60769E-07   -.68723E-04
  21  Prefactor     .10000E-03    10.920       -.22054E-07** at limit **
  22  Normalizat    .88150        .16317        .76258E-06    .12176E-03
  23  Prefactor     1.0714        .10788       -.26618E-06    .24160E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.7918
  Prefactor  = 0.0001
  norm       = 6.40996
  Prefactor  = 9.11124
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.4746
  Prefactor  = 3.4617
  Prefactor  = 0.0001
  norm       = 7.72421
  Prefactor  = 5.48571
  Prefactor  = 0.0001
  norm       = 2.08555
  Prefactor  = 21.6352
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.89682
  Prefactor  = 1.01406
  Prefactor  = 1.55431
  Prefactor  = 0.0001
  Normalizat = 0.881501
  Prefactor  = 1.07144
 **********
 **   18 **HESSE 
 **********

 FCN=   9325.378     FROM HESSE     STATUS=OK           378 CALLS     2930 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.792        28.933        .75980E-04   -1.4653    
   2  Prefactor     .10000E-03    38.261        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          6.4100        1.9336        .70156E-04   -1.5202    
   4  Prefactor     9.1112        15.096        .13274E-03   -1.5104    
   5  Prefactor     .10000E-03    47.531        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.2593        .14137E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     19.475        17.964        .90713E-04   -1.4825    
   8  Prefactor     3.4617        46.940        .21773E-03   -1.5336    
   9  Prefactor     .10000E-03    1.8037        .12574E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          7.7242        3.7468        .12403E-03   -1.5152    
  11  Prefactor     5.4857        6.6428        .85784E-03   -1.5239    
  12  Prefactor     .10000E-03    1.3843        .11090E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.0856        5.7796        .28611E-03   -1.5419    
  14  Prefactor     21.635        28.104        .86183E-04   -1.4777    
  15  Prefactor     .10000E-03    1.3506        .10954E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    13.915        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    21.066        .32522E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.8968        3.9989        .17652E-03   -1.5313    
  19  Prefactor     1.0141        32.086        .15616       -1.5507    
  20  Prefactor     1.5543        2.5004        .19112E-03   -1.5459    
  21  Prefactor     .10000E-03    10.984        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .88150        .18682        .30314E-03   -.97113    
  23  Prefactor     1.0714        .12354        .19200E-03   -.90385    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.41208e-09
Minuit parameter uncertainties:
  1  28.9478
  2  9.6456e-05
  3  1.93364
  4  15.102
  5  0.00013013
  6  6.88558e-07
  7  17.9692
  8  25.5187
  9  1.03467e-05
  10  3.74692
  11  6.64372
  12  2.04329e-06
  13  5.78118
  14  28.1216
  15  6.04934e-06
  16  1.02622e-05
  17  0.000138369
  18  3.99922
  19  11.4144
  20  2.50052
  21  2.11147e-06
  22  0.186954
  23  0.123573
Done.

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

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  7.724e+00  3.747e+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:  1.071e+00  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.815e-01  1.870e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.18
Ra Dec: 324.855 -42.590
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 4.68e-08 +/- 2.27e-08
Energy Flux (Fixed Index): 3.30e-05 +/- 1.60e-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) = 9325.33360421
delta logL = 0.0439321938302

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9325.33078985
delta logL = 0.0467465568763

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.4965       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0484       1.0000          .0000       5.0000    
     3 'Normalizat'    .87575       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0735       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9325.331     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      251 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.4958        3.7155        .59861E-03   -.39921E-04
   2  alpha         2.0486        .39891        .12233E-01    .11523E-03
   3  Normalizat    .87580        .17458        .30399E-03   -.11967E-05
   4  Prefactor     1.0735        .12084        .19183E-03    .62821E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 7.49581
  alpha      = 2.04856
  Normalizat = 0.875797
  Prefactor  = 1.07347
 **********
 **   18 **HESSE 
 **********

 FCN=   9325.331     FROM HESSE     STATUS=OK            27 CALLS      278 TOTAL
                     EDM=   .40E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.4958        3.6765        .23945E-04   -1.5160    
   2  alpha         2.0486        .39469        .24466E-02   -.18157    
   3  Normalizat    .87580        .17467        .12160E-04   -.97316    
   4  Prefactor     1.0735        .12091        .76731E-05   -.90319    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.02332e-13
Minuit parameter uncertainties:
  1  3.67657
  2  0.396406
  3  0.174788
  4  0.120937
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/639627': 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) = 9325.33078973
delta logL = 0.046746677499

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  7.496e+00  3.677e+00  1.000e-04  1.000e+04 ( 1.000e-12)
299        alpha:  2.049e+00  3.964e-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:  1.073e+00  1.209e-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  1.748e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.27
Ra Dec: 324.855 -42.590
Photon Index (Free Index): 2.05 +/- 0.40
Photon Flux (Free Index): 5.19e-08 +/- 2.92e-08
Energy Flux (Free Index): 2.87e-05 +/- 1.83e-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/639627/cmap_HighResolution_493862401_494121601_4FGL_J2139.4-4235_daily_bin982.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.68e-08', energy_flux2='2.87e-05', photon_flux_error='2.27e-08', dlogl='4.67e-02', energy_flux='3.30e-05', photon_flux2='5.19e-08', job_status='DONE', time_completed='2021-09-26 22:01:42.234156', photon_index_error2='0.40', photon_index2='2.05', ts='12.18', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', energy_flux_error2='1.83e-05', EG='0.88', time_epoch_completed='1632718902.23', return_code='0', job_id='639627', GAL2='1.07', EG2='0.88', return_code2='0', energy_flux_error='1.60e-05', photon_flux_error2='2.92e-08', ts2='12.27', photon_index='1.93' WHERE bin_id='982' AND source_name='4FGL J2139.4-4235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 22:01:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0013>
Subject: Job 639627: <4FGL_J2139.4-4235_daily_bin982> in cluster <slac> Done

Job <4FGL_J2139.4-4235_daily_bin982> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep 26 21:45:20 2021
Job was executed on host(s) <bullet0013>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 21:45:56 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:45:56 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_bin982 324.855 -42.5895 493862401 494121601 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 :                                   750.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             245.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   946 sec.
    Turnaround time :                            983 sec.

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

