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


Performing analysis on: 4FGL_J2139.4-4235_daily_bin900
RA = 324.855, Dec = -42.5895
tmin = 472608001, tmax = 472867201
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='638332', job_status='RUN', time_executed='2021-09-26 21:43:51.628143', time_epoch_executed='1632717831.63' WHERE source_name='4FGL J2139.4-4235' and cadence='daily' and bin_id='900'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/638332

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/638332/ft1_4FGL_J2139.4-4235_daily_bin900.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/638332/ft2_4FGL_J2139.4-4235_daily_bin900.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/638332/ft1_4FGL_J2139.4-4235_daily_bin900.fits outfile=/scratch/kocevski/638332/ft1_filteredMKT_4FGL_J2139.4-4235_daily_bin900.fits ra=324.855 dec=-42.5895 rad=12.0 tmin=472608001.0 tmax=472867201.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.59
user 3.31
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/638332/ft1_filtered_4FGL_J2139.4-4235_daily_bin900.fits" evtable="EVENTS" scfile=/scratch/kocevski/638332/ft2_4FGL_J2139.4-4235_daily_bin900.fits sctable="SC_DATA" outfile=/scratch/kocevski/638332/ltcube_472608001_472867201_4FGL_J2139.4-4235_daily_bin900.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/638332/ft2_4FGL_J2139.4-4235_daily_bin900.fits
.....................!
real 13.91
user 13.52
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/638332/ft1_filtered_4FGL_J2139.4-4235_daily_bin900.fits evtable="EVENTS" scfile=/scratch/kocevski/638332/ft2_4FGL_J2139.4-4235_daily_bin900.fits sctable="SC_DATA" expcube=/scratch/kocevski/638332/ltcube_472608001_472867201_4FGL_J2139.4-4235_daily_bin900.fits outfile=/scratch/kocevski/638332/expmap_472608001_472867201_4FGL_J2139.4-4235_daily_bin900.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/638332/ltcube_472608001_472867201_4FGL_J2139.4-4235_daily_bin900.fits
.....................!
real 193.90
user 188.18
sys 5.31

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/638332/ft1_filtered_4FGL_J2139.4-4235_daily_bin900.fits scfile=/scratch/kocevski/638332/ft2_4FGL_J2139.4-4235_daily_bin900.fits outfile=/scratch/kocevski/638332/cmap_472608001_472867201_4FGL_J2139.4-4235_daily_bin900.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/638332/ft1_filtered_4FGL_J2139.4-4235_daily_bin900.fits scfile=/scratch/kocevski/638332/ft2_4FGL_J2139.4-4235_daily_bin900.fits outfile=/scratch/kocevski/638332/cmap_HighResolution_472608001_472867201_4FGL_J2139.4-4235_daily_bin900.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/638332/ft1_filtered_4FGL_J2139.4-4235_daily_bin900.fits evtable="EVENTS" scfile=/scratch/kocevski/638332/ft2_4FGL_J2139.4-4235_daily_bin900.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/638332/Model_4FGL_J2139.4-4235_daily_bin900.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/638332/ft1_filtered_4FGL_J2139.4-4235_daily_bin900.fits.....................!
real 49.18
user 47.81
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10344E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    130.69       1.0000         .10000E-03   10000.    
     3 'norm      '    4.9303       1.0000         .10000E-03   10000.    
     4 'Prefactor '    62.710       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.447       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.3344       1.0000         .10000E-03   10000.    
    10 'norm      '    21.124       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10324E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    7.1557       1.0000         .10000E-03   10000.    
    14 'Prefactor '    80.888       1.0000         .10000E-03   10000.    
    15 'Prefactor '    45.728       1.0000         .10000E-03   10000.    
    16 'Prefactor '    26.840       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.5492       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .13055E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .40862E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.5224       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .71422       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=   5853.761     FROM MIGRAD    STATUS=CONVERGED    510 CALLS     2994 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.758        .83488E-05** at limit **
   2  Prefactor     130.63        100.91       -.49659E-04    .58027E-06
   3  norm          4.9301        2.5012        .12909E-07   -.24552E-04
   4  Prefactor     62.703        44.325       -.60420E-05    .36064E-04
   5  Prefactor     .10000E-03    18.222       -.83764E-06** at limit **
   6  Prefactor     12.447        10.221       -.84063E-06    .21252E-04
   7  Prefactor     .10000E-03    12.613       -.72309E-05** at limit **
   8  Prefactor     .10000E-03    25.706       -.94712E-05** at limit **
   9  Prefactor     9.3345        6.0586       -.32980E-05   -.16826E-04
  10  norm          21.124        7.2727       -.19935E-06    .14592E-03
  11  Prefactor     .10000E-03    10.342       -.30275E-05** at limit **
  12  Prefactor     .10000E-03    3.8280       -.78810E-07** at limit **
  13  norm          7.1553        9.6520       -.86384E-06   -.50519E-04
  14  Prefactor     80.888        58.534       -.13587E-05    .27301E-04
  15  Prefactor     45.733        21.623        .10385E-06    .78082E-04
  16  Prefactor     26.834        241.75       -.12968E-04    .36209E-05
  17  Prefactor     .10013E-03    8.4173        .38254E-07** at limit **
  18  Prefactor     4.5464        5.0981       -.11729E-05   -.26232E-03
  19  Prefactor     .10000E-03    103.37       -.55255E-05** at limit **
  20  Prefactor     .10000E-03    6.5325       -.37545E-06** at limit **
  21  Prefactor     .10000E-03    11.446        .82317E-05** at limit **
  22  Normalizat    1.5222        .24702        .25925E-05    .15174E-03
  23  Prefactor     .71428        .14981        .54115E-05    .66095E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 130.631
  norm       = 4.93014
  Prefactor  = 62.7029
  Prefactor  = 0.0001
  Prefactor  = 12.4474
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.33446
  norm       = 21.1243
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.15534
  Prefactor  = 80.8877
  Prefactor  = 45.7325
  Prefactor  = 26.8338
  Prefactor  = 0.000100131
  Prefactor  = 4.54641
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Normalizat = 1.52219
  Prefactor  = 0.714277
 **********
 **   18 **HESSE 
 **********

 FCN=   5853.761     FROM HESSE     STATUS=OK           366 CALLS     3360 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.809        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     130.63        100.96        .17610E-03   -1.3417    
   3  norm          4.9301        2.4985        .81821E-04   -1.5264    
   4  Prefactor     62.703        44.381        .50672E-04   -1.4123    
   5  Prefactor     .10000E-03    18.225        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     12.447        10.218        .11354E-03   -1.5002    
   7  Prefactor     .10000E-03    12.632        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    25.860        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.3345        6.0614        .13117E-03   -1.5097    
  10  norm          21.124        7.2732        .87146E-04   -1.4788    
  11  Prefactor     .10000E-03    10.465        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.8331        .14619E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          7.1553        9.6533        .14995E-03   -1.5173    
  14  Prefactor     80.888        58.579        .44657E-04   -1.3907    
  15  Prefactor     45.733        21.657        .59291E-04   -1.4354    
  16  Prefactor     26.834        240.96        .77326E-04   -1.4671    
  17  Prefactor     .10013E-03    44.205        .42642E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.5464        5.1076        .17408E-03   -1.5281    
  19  Prefactor     .10000E-03    104.11        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    26.032        .37566E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    11.446        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.5222        .27776        .29056E-03   -.77157    
  23  Prefactor     .71428        .16938        .25341E-03   -1.0297    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.2836e-09
Minuit parameter uncertainties:
  1  0.000191747
  2  101.097
  3  2.49859
  4  44.404
  5  4.68854e-06
  6  10.2195
  7  1.49992e-05
  8  5.03498e-06
  9  6.06179
  10  7.27352
  11  7.21643e-05
  12  1.19847e-05
  13  9.65539
  14  58.6206
  15  21.6608
  16  161.696
  17  0.00481812
  18  5.10806
  19  0.00026479
  20  0.000702452
  21  1.57574e-05
  22  0.278043
  23  0.169504
Done.

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

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  2.112e+01  7.274e+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.143e-01  1.695e-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.522e+00  2.780e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 30.32
Ra Dec: 324.855 -42.590
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 1.28e-07 +/- 4.41e-08
Energy Flux (Fixed Index): 9.02e-05 +/- 3.11e-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) = 5853.39343385
delta logL = 0.367414324935

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5853.39325548
delta logL = 0.367592693355

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    21.256       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6945       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5465       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70635       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=   5853.393     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      204 TOTAL
                     EDM=   .24E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          21.273        7.5849        .21719E-02   -.25518E-04
   2  alpha         1.6961        .25619        .18535       -.12173E-04
   3  Normalizat    1.5463        .23111        .65284E-01    .61183E-05
   4  Prefactor     .70641        .14448        .42486E-01    .19850E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 21.2725
  alpha      = 1.69608
  Normalizat = 1.54627
  Prefactor  = 0.706406
 **********
 **   18 **HESSE 
 **********

 FCN=   5853.393     FROM HESSE     STATUS=OK            33 CALLS      237 TOTAL
                     EDM=   .50E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          21.273        7.5016        .86876E-04   -1.4785    
   2  alpha         1.6961        .26363        .78723E-02   -.32738    
   3  Normalizat    1.5463        .26122        .28876E-03   -.76486    
   4  Prefactor     .70641        .16327        .25468E-03   -1.0328    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.96359e-11
Minuit parameter uncertainties:
  1  7.50196
  2  0.264175
  3  0.261448
  4  0.163386
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/638332': 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) = 5853.39323657
delta logL = 0.367611600896

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  2.127e+01  7.502e+00  1.000e-04  1.000e+04 ( 1.000e-12)
299        alpha:  1.696e+00  2.642e-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.064e-01  1.634e-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.546e+00  2.614e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 30.98
Ra Dec: 324.855 -42.590
Photon Index (Free Index): 1.70 +/- 0.26
Photon Flux (Free Index): 1.04e-07 +/- 4.49e-08
Energy Flux (Free Index): 1.29e-04 +/- 7.36e-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/638332/cmap_HighResolution_472608001_472867201_4FGL_J2139.4-4235_daily_bin900.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.28e-07', energy_flux2='1.29e-04', photon_flux_error='4.41e-08', dlogl='3.68e-01', energy_flux='9.02e-05', photon_flux2='1.04e-07', job_status='DONE', time_completed='2021-09-26 21:54:12.040112', photon_index_error2='0.26', photon_index2='1.70', ts='30.32', fit_tolerance='1e-08', GAL='0.71', photon_index_error='0.00', energy_flux_error2='7.36e-05', EG='1.52', time_epoch_completed='1632718452.04', return_code='0', job_id='638332', GAL2='0.71', EG2='1.55', return_code2='0', energy_flux_error='3.11e-05', photon_flux_error2='4.49e-08', ts2='30.98', photon_index='1.93' WHERE bin_id='900' AND source_name='4FGL J2139.4-4235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 21:54:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0119>
Subject: Job 638332: <4FGL_J2139.4-4235_daily_bin900> in cluster <slac> Done

Job <4FGL_J2139.4-4235_daily_bin900> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep 26 21:40:28 2021
Job was executed on host(s) <bullet0119>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 21:41:44 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:41:44 2021
Terminated at Sun Sep 26 21:54:12 2021
Results reported at Sun Sep 26 21:54:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2139.4-4235_daily_bin900 324.855 -42.5895 472608001 472867201 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 :                                   620.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             293.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   748 sec.
    Turnaround time :                            824 sec.

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

