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


Performing analysis on: 4FGL_J2139.4-4235_daily_bin1662
RA = 324.855, Dec = -42.5895
tmin = 670118401, tmax = 670377601
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='124855', job_status='RUN', time_executed='2022-03-31 00:36:28.910017', time_epoch_executed='1648712188.91' WHERE source_name='4FGL J2139.4-4235' and cadence='daily' and bin_id='1662'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/124855

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/124855/ft1_4FGL_J2139.4-4235_daily_bin1662.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/124855/ft2_4FGL_J2139.4-4235_daily_bin1662.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/124855/ft1_4FGL_J2139.4-4235_daily_bin1662.fits outfile=/scratch/kocevski/124855/ft1_filteredMKT_4FGL_J2139.4-4235_daily_bin1662.fits ra=324.855 dec=-42.5895 rad=12.0 tmin=670118401.0 tmax=670377601.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.42
user 3.19
sys 0.21

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

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

Number of photons that the gtmktime cut: 631

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/124855/ft1_filtered_4FGL_J2139.4-4235_daily_bin1662.fits" evtable="EVENTS" scfile=/scratch/kocevski/124855/ft2_4FGL_J2139.4-4235_daily_bin1662.fits sctable="SC_DATA" outfile=/scratch/kocevski/124855/ltcube_670118401_670377601_4FGL_J2139.4-4235_daily_bin1662.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/124855/ft2_4FGL_J2139.4-4235_daily_bin1662.fits
.....................!
real 11.79
user 11.44
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/124855/ft1_filtered_4FGL_J2139.4-4235_daily_bin1662.fits evtable="EVENTS" scfile=/scratch/kocevski/124855/ft2_4FGL_J2139.4-4235_daily_bin1662.fits sctable="SC_DATA" expcube=/scratch/kocevski/124855/ltcube_670118401_670377601_4FGL_J2139.4-4235_daily_bin1662.fits outfile=/scratch/kocevski/124855/expmap_670118401_670377601_4FGL_J2139.4-4235_daily_bin1662.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/124855/ltcube_670118401_670377601_4FGL_J2139.4-4235_daily_bin1662.fits
.....................!
real 190.36
user 185.15
sys 4.89

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/124855/ft1_filtered_4FGL_J2139.4-4235_daily_bin1662.fits scfile=/scratch/kocevski/124855/ft2_4FGL_J2139.4-4235_daily_bin1662.fits outfile=/scratch/kocevski/124855/cmap_670118401_670377601_4FGL_J2139.4-4235_daily_bin1662.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/124855/ft1_filtered_4FGL_J2139.4-4235_daily_bin1662.fits scfile=/scratch/kocevski/124855/ft2_4FGL_J2139.4-4235_daily_bin1662.fits outfile=/scratch/kocevski/124855/cmap_HighResolution_670118401_670377601_4FGL_J2139.4-4235_daily_bin1662.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.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/124855/ft1_filtered_4FGL_J2139.4-4235_daily_bin1662.fits evtable="EVENTS" scfile=/scratch/kocevski/124855/ft2_4FGL_J2139.4-4235_daily_bin1662.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/124855/Model_4FGL_J2139.4-4235_daily_bin1662.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/124855/ft1_filtered_4FGL_J2139.4-4235_daily_bin1662.fits.....................!
real 55.09
user 53.82
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13925E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    17.956       1.0000         .10000E-03   10000.    
     3 'norm      '    .24347E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10226E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    60.881       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.7111       1.0000         .10000E-03   10000.    
     7 'Prefactor '    36.536       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.6048       1.0000         .10000E-03   10000.    
    10 'norm      '    6.5033       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11007E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .13037E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    78.755       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .51938       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10832E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1229       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0670       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=   6836.348     FROM MIGRAD    STATUS=CONVERGED    538 CALLS     2565 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    114.44       -.85474E-05** at limit **
   2  Prefactor     17.720        93.394       -.41404E-05   -.36903E-04
   3  norm          .10000E-03    .76274        .17637E-07** at limit **
   4  Prefactor     .10000E-03    9.0876        .10653E-06** at limit **
   5  Prefactor     60.921        47.122       -.31151E-06    .65663E-05
   6  Prefactor     8.7113        8.0765       -.40504E-07   -.77295E-05
   7  Prefactor     36.485        34.235        .61001E-07   -.45525E-05
   8  Prefactor     .10000E-03    7.3278        .24867E-07** at limit **
   9  Prefactor     8.6022        5.0125        .18356E-05    .55975E-03
  10  norm          6.5047        5.1499        .34910E-07   -.27779E-06
  11  Prefactor     .10000E-03    3.5196        .27634E-06** at limit **
  12  Prefactor     .10000E-03    3.6752        .21123E-06** at limit **
  13  norm          .10000E-03    2.5283        .14874E-06** at limit **
  14  Prefactor     .10000E-03    31.269        .48006E-06** at limit **
  15  Prefactor     .10000E-03    10.092        .79022E-06** at limit **
  16  Prefactor     .10000E-03    150.34        .17761E-05** at limit **
  17  Prefactor     .10000E-03    4.8157        .22043E-06** at limit **
  18  Prefactor     .10000E-03    1.1751        .24482E-07** at limit **
  19  Prefactor     78.722        53.223        .13293E-06   -.32115E-04
  20  Prefactor     .51389        4.9456        .19371E-05   -.53933E-03
  21  Prefactor     .10000E-03    23.031        .18769E-07** at limit **
  22  Normalizat    1.1234        .20691       -.31357E-05    .16133E-04
  23  Prefactor     1.0667        .13801        .20609E-05   -.14856E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Prefactor  = 17.7197
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 60.9208
  Prefactor  = 8.71131
  Prefactor  = 36.4855
  Prefactor  = 0.0001
  Prefactor  = 8.60217
  norm       = 6.50471
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 78.7218
  Prefactor  = 0.513893
  Prefactor  = 0.0001
  Normalizat = 1.12343
  Prefactor  = 1.06666
 **********
 **   18 **HESSE 
 **********

 FCN=   6836.348     FROM HESSE     STATUS=OK           366 CALLS     2931 TOTAL
                     EDM=   .94E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    116.23        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     17.720        95.067        .94517E-04   -1.4866    
   3  norm          .10000E-03    15.210        .13762E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.0934        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     60.921        47.129        .25712E-03   -1.4145    
   6  Prefactor     8.7113        8.0696        .13581E-03   -1.5118    
   7  Prefactor     36.485        34.245        .66304E-04   -1.4499    
   8  Prefactor     .10000E-03    7.3289        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     8.6022        5.0997        .68326E-03   -1.5121    
  10  norm          6.5047        5.1426        .15592E-03   -1.5198    
  11  Prefactor     .10000E-03    3.5476        .15149E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.7271        .15480E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.5345        .12840E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    31.447        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    10.287        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    150.90        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.8583        .17721E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.1816        .87503E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     78.722        53.332        .22626E-03   -1.3931    
  20  Prefactor     .51389        10.531        .32964E-02   -1.5565    
  21  Prefactor     .10000E-03    23.109        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1234        .22820        .29650E-03   -.89003    
  23  Prefactor     1.0667        .15366        .20708E-03   -.90539    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.39397e-10
Minuit parameter uncertainties:
  1  0.00115306
  2  82.2908
  3  4.48721e-05
  4  3.9526e-06
  5  47.1583
  6  8.07061
  7  34.2632
  8  3.5093e-06
  9  5.09993
  10  5.14299
  11  7.39698e-06
  12  5.05592e-06
  13  2.7488e-06
  14  2.04005e-06
  15  9.01909e-06
  16  0.000795974
  17  1.12858e-05
  18  6.21977e-07
  19  53.364
  20  4.65309
  21  1.87855e-05
  22  0.228399
  23  0.153721
Done.

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

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  6.505e+00  5.143e+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.067e+00  1.537e-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.123e+00  2.284e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.98
Ra Dec: 324.855 -42.590
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 3.94e-08 +/- 3.12e-08
Energy Flux (Fixed Index): 2.78e-05 +/- 2.20e-05

TS (Fixed Index): 2.98
Ra Dec: 324.855 -42.590
Photon Flux Upper Limit: 1.09e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.65e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/124855/likelihoodResults_670118401_670377601_4FGL_J2139.4-4235_daily_bin1662.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) = 6836.34568394
delta logL = 0.00251391589791

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6836.34559818
delta logL = 0.00259968045339

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.4822       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8849       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1257       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0658       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=   6836.346     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      225 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.4580        184.07        .39408E-02    .17634E-03
   2  alpha         1.8808        2.6244        .42848       -.21815E-04
   3  Normalizat    1.1258        .22152        .66960E-01    .10856E-04
   4  Prefactor     1.0659        .11112        .39062E-01   -.85617E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 6.458
  alpha      = 1.88076
  Normalizat = 1.12584
  Prefactor  = 1.06586
 **********
 **   18 **HESSE 
 **********

 FCN=   6836.346     FROM HESSE     STATUS=OK            33 CALLS      258 TOTAL
                     EDM=   .14E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.4580        5.0217        .15652E-03   -1.5200    
   2  alpha         1.8808        .65129        .15622E-01   -.25030    
   3  Normalizat    1.1258        .22258        .29623E-03   -.88926    
   4  Prefactor     1.0659        .15171        .20714E-03   -.90565    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3965e-12
Minuit parameter uncertainties:
  1  5.02205
  2  0.659401
  3  0.222766
  4  0.151775
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/124855': 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) = 6836.34557147
delta logL = 0.00262639178527

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  6.458e+00  5.022e+00  1.000e-04  1.000e+04 ( 1.000e-12)
299        alpha:  1.881e+00  6.594e-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.066e+00  1.518e-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.126e+00  2.228e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.00
Ra Dec: 324.855 -42.590
Photon Index (Free Index): 1.88 +/- 0.66
Photon Flux (Free Index): 3.72e-08 +/- 4.05e-08
Energy Flux (Free Index): 2.92e-05 +/- 3.11e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -9.398e-02 [aplpy.core]
INFO: Auto-setting vmax to  1.043e+00 [aplpy.core]
Saving /scratch/kocevski/124855/cmap_HighResolution_670118401_670377601_4FGL_J2139.4-4235_daily_bin1662.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.65e-05', comment='SUCCESS', photon_flux='3.94e-08', energy_flux2='2.92e-05', photon_flux_error='3.12e-08', dlogl='2.63e-03', energy_flux='2.78e-05', photon_flux2='3.72e-08', job_status='DONE', time_completed='2022-03-31 00:47:56.894732', photon_index_error2='0.66', photon_index2='1.88', ts='2.98', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', photon_flux_upper_limit='1.09e-07', energy_flux_error2='3.11e-05', EG='1.12', time_epoch_completed='1648712876.89', return_code='0', job_id='124855', GAL2='1.07', EG2='1.13', return_code2='0', energy_flux_error='2.20e-05', photon_flux_error2='4.05e-08', ts2='3.00', photon_index='1.93' WHERE bin_id='1662' AND source_name='4FGL J2139.4-4235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Mar 31 00:47:56 PDT 2022


------------------------------------------------------------
Sender: LSF System <scs@bullet0014>
Subject: Job 124855: <4FGL_J2139.4-4235_daily_bin1662> in cluster <slac> Done

Job <4FGL_J2139.4-4235_daily_bin1662> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Thu Mar 31 00:35:20 2022
Job was executed on host(s) <bullet0014>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Mar 31 00:35:21 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Mar 31 00:35:21 2022
Terminated at Thu Mar 31 00:47:57 2022
Results reported at Thu Mar 31 00:47:57 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2139.4-4235_daily_bin1662 324.855 -42.5895 670118401 670377601 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 :                                   690.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             310.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   756 sec.
    Turnaround time :                            757 sec.

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

