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


Performing analysis on: 4FGL_J2139.4-4235_daily_bin670
RA = 324.855, Dec = -42.5895
tmin = 412992001, tmax = 413251201
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='636772', job_status='RUN', time_executed='2021-09-26 21:39:49.130015', time_epoch_executed='1632717589.13' WHERE source_name='4FGL J2139.4-4235' and cadence='daily' and bin_id='670'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/636772

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/636772/ft1_4FGL_J2139.4-4235_daily_bin670.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/636772/ft2_4FGL_J2139.4-4235_daily_bin670.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/636772/ft1_4FGL_J2139.4-4235_daily_bin670.fits outfile=/scratch/kocevski/636772/ft1_filteredMKT_4FGL_J2139.4-4235_daily_bin670.fits ra=324.855 dec=-42.5895 rad=12.0 tmin=412992001.0 tmax=413251201.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.95
user 3.34
sys 0.59

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/636772/ft1_filtered_4FGL_J2139.4-4235_daily_bin670.fits" evtable="EVENTS" scfile=/scratch/kocevski/636772/ft2_4FGL_J2139.4-4235_daily_bin670.fits sctable="SC_DATA" outfile=/scratch/kocevski/636772/ltcube_412992001_413251201_4FGL_J2139.4-4235_daily_bin670.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/636772/ft2_4FGL_J2139.4-4235_daily_bin670.fits
.....................!
real 13.74
user 13.35
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/636772/ft1_filtered_4FGL_J2139.4-4235_daily_bin670.fits evtable="EVENTS" scfile=/scratch/kocevski/636772/ft2_4FGL_J2139.4-4235_daily_bin670.fits sctable="SC_DATA" expcube=/scratch/kocevski/636772/ltcube_412992001_413251201_4FGL_J2139.4-4235_daily_bin670.fits outfile=/scratch/kocevski/636772/expmap_412992001_413251201_4FGL_J2139.4-4235_daily_bin670.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/636772/ltcube_412992001_413251201_4FGL_J2139.4-4235_daily_bin670.fits
.....................!
real 193.22
user 187.40
sys 5.29

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

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

This is gtbin version HEAD
real 0.56
user 0.36
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/636772/ft1_filtered_4FGL_J2139.4-4235_daily_bin670.fits scfile=/scratch/kocevski/636772/ft2_4FGL_J2139.4-4235_daily_bin670.fits outfile=/scratch/kocevski/636772/cmap_HighResolution_412992001_413251201_4FGL_J2139.4-4235_daily_bin670.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/636772/ft1_filtered_4FGL_J2139.4-4235_daily_bin670.fits evtable="EVENTS" scfile=/scratch/kocevski/636772/ft2_4FGL_J2139.4-4235_daily_bin670.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/636772/Model_4FGL_J2139.4-4235_daily_bin670.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/636772/ft1_filtered_4FGL_J2139.4-4235_daily_bin670.fits.......................!
real 24.10
user 22.74
sys 1.24

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

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 1347.27470983

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 1344.50491401

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12750E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .38360       1.0000         .10000E-03   10000.    
     3 'norm      '    26.497       1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.820       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.7510       1.0000         .10000E-03   10000.    
     6 'Prefactor '    32.038       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .50284E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.3281       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11224E-01   1.0000         .10000E-03   10000.    
    10 'norm      '    .24092E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    19.266       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11243E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .17928E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.0564       1.0000         .10000E-03   10000.    
    15 'Prefactor '    52.189       1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.2202       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10367E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.9644       1.0000         .10000E-03   10000.    
    19 'Prefactor '    109.44       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .20014E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .18068E-01   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2666       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1239       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5810E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1344.495     FROM MIGRAD    STATUS=CONVERGED    232 CALLS      486 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    81.875       -.95305E-05** at limit **
   2  Prefactor     .10000E-03    171.45       -.56052E-05** at limit **
   3  norm          26.597        25.768        .88958E-05    .23945E-04
   4  Prefactor     13.581        88.162       -.18829E-03   -.59333E-03
   5  Prefactor     .14039        2026.9       -.31728E-03   -.49435E-02
   6  Prefactor     29.262        56.638       -.11797E-04   -.45376E-03
   7  Prefactor     .10000E-03    76.342       -.62996E-05** at limit **
   8  Prefactor     6.3281        1.0032         .0000         .0000    
   9  Prefactor     .10000E-03    44.211       -.30960E-05** at limit **
  10  norm          .10000E-03    9.3948        .86124E-08** at limit **
  11  Prefactor     19.131        35.690        .16710E-04   -.10869E-03
  12  Prefactor     .10000E-03    11.131       -.91544E-06** at limit **
  13  norm          .10001E-03    181.05        .10579E-03** at limit **
  14  Prefactor     .10001E-03    250.98        .78347E-05** at limit **
  15  Prefactor     49.927        98.431        .74456E-04   -.40999E-02
  16  Prefactor     .21819        1752.5       -.23700E-03    .53190E-02
  17  Prefactor     .10000E-03    18.252       -.21314E-05** at limit **
  18  Prefactor     3.9700        26.899        .32107E-04    .38152E-04
  19  Prefactor     113.80        127.88        .19507E-04   -.63686E-02
  20  Prefactor     .10000E-03    31.751       -.34994E-05** at limit **
  21  Prefactor     .10000E-03    112.69       -.12251E-04** at limit **
  22  Normalizat    1.2669        .68458       -.46054E-04    .93742E-05
  23  Prefactor     1.1237        .40567        .27804E-04    .20217E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 26.5967
  Prefactor  = 13.5812
  Prefactor  = 0.140394
  Prefactor  = 29.2619
  Prefactor  = 0.0001
  Prefactor  = 6.32809
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 19.1312
  Prefactor  = 0.0001
  norm       = 0.000100013
  Prefactor  = 0.000100006
  Prefactor  = 49.9275
  Prefactor  = 0.218193
  Prefactor  = 0.0001
  Prefactor  = 3.96999
  Prefactor  = 113.798
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.26694
  Prefactor  = 1.12375
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   1344.495     FROM HESSE     STATUS=FAILED        39 CALLS      525 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    81.891        .90867E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    171.47        .10786E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          26.597        25.608        .19456E-02   -1.4676    
   4  Prefactor     13.581        77.566        .29130E-02   -1.4971    
   5  Prefactor     .14039        6684.4        .46149E-02   -1.5783    
   6  Prefactor     29.262        55.724        .17698E-02   -1.4626    
   7  Prefactor     .10000E-03    76.309        .92715E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     519.04        512.67         .0000       -1.5205    
   9  Prefactor     .10000E-03    .20607       -.30960E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .25136        .86124E-08   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     19.131        .99685        .16710E-04   -1.4833    
  12  Prefactor     .10000E-03    .20571       -.91544E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10001E-03    .20759        .10579E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10001E-03    .12979        .78347E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     49.927        .97825        .74456E-04   -1.4294    
  16  Prefactor     .21819        .17428       -.23700E-03   -1.5615    
  17  Prefactor     .10000E-03    .20571       -.21314E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.9700        1.0089        .32107E-04   -1.5309    
  19  Prefactor     113.80        1.0195        .19507E-04   -1.3570    
  20  Prefactor     .10000E-03    .20806       -.34994E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    .20762       -.12251E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.2669        1.0871       -.46054E-04   -.84559    
  23  Prefactor     1.1237        1.1345        .27804E-04   -.88711    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.00782e-09
Minuit parameter uncertainties:
  1  1.43225e-05
  2  4.60618e-05
  3  25.619
  4  65.0421
  5  46.1081
  6  55.8231
  7  9.36457e-06
  8  1.00315
  9  8.65395e-07
  10  1.61734e-07
  11  0.996849
  12  1.80803e-07
  13  0.000102052
  14  5.47044e-05
  15  0.978252
  16  0.174281
  17  7.25634e-07
  18  1.00889
  19  1.01951
  20  9.21592e-07
  21  3.39545e-06
  22  1.10762
  23  1.16045
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 1344.4946283

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  1.000e-04  1.617e-07  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.124e+00  1.160e+00  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.267e+00  1.108e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 324.855 -42.590
Photon Flux Upper Limit: 2.37e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.67e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/636772/likelihoodResults_412992001_413251201_4FGL_J2139.4-4235_daily_bin670.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): 102
logL (Free Index) = 1344.49510835
delta logL = -0.000480055045728

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1344.49462829
delta logL = 1.17656782095e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9370       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2669       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1238       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   1344.495     FROM MIGRAD    STATUS=FAILED        87 CALLS      235 TOTAL
                     EDM=   .54E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10068E-03    1048.3        .11021E-02** at limit **
   2  alpha         2.0197        2.7743        .50000       -.22885E-05
   3  Normalizat    1.2669        .18375        .35875E-03    .21549E-05
   4  Prefactor     1.1237        .11198        .22890E-03    .33526E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   1344.495     FROM SIMPLEX   STATUS=UNCHANGED    142 CALLS      377 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10068E-03    1048.3        .59957E-03** at limit **
   2  alpha         2.0197        2.7743        .58419E-05   -.22885E-05
   3  Normalizat    1.2669        .18375        .99096E-06    .21549E-05
   4  Prefactor     1.1237        .11198        .55587E-06    .33526E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1344.495     FROM MIGRAD    STATUS=CONVERGED     38 CALLS      415 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    53.885        .22041E-03** at limit **
   2  alpha         2.1221        3.4590        .50000        .26847E-07
   3  Normalizat    1.2669        .63471        .14350E-04   -.71699E-05
   4  Prefactor     1.1237        .38810        .91558E-05   -.11361E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.12207
  Normalizat = 1.26694
  Prefactor  = 1.12375
 **********
 **   18 **HESSE 
 **********

 FCN=   1344.495     FROM HESSE     STATUS=OK            29 CALLS      444 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    10.087        .44083E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1221        2.7480        .50000       -.15175    
   3  Normalizat    1.2669        .63564        .28700E-05   -.84559    
   4  Prefactor     1.1237        .38868        .18312E-05   -.88711    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.51555e-11
Minuit parameter uncertainties:
  1  6.83793e-05
  2  270.473
  3  0.639607
  4  0.389667
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/636772': 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) = 1344.49462813
delta logL = 1.68557335201e-07

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  1.000e-04  6.838e-05  1.000e-04  1.000e+04 ( 1.000e-12)
299        alpha:  2.122e+00  2.705e+02  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.124e+00  3.897e-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.267e+00  6.396e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 324.855 -42.590

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/636772/cmap_HighResolution_412992001_413251201_4FGL_J2139.4-4235_daily_bin670.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.67e-04', job_status='DONE', photon_flux_upper_limit='2.37e-07', time_completed='2021-09-26 21:45:44.975007', job_id='636772', GAL2='1.12', fit_tolerance='1e-08', EG2='1.27', EG='1.27', time_epoch_completed='1632717944.98', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='101', GAL='1.12', dlogl='1.69e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.93' WHERE bin_id='670' AND source_name='4FGL J2139.4-4235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 21:45:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0130>
Subject: Job 636772: <4FGL_J2139.4-4235_daily_bin670> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2139.4-4235_daily_bin670 324.855 -42.5895 412992001 413251201 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 :                                   355.18 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             222.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   603 sec.
    Turnaround time :                            631 sec.

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

