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


Performing analysis on: 4FGL_J2139.4-4235_daily_bin1209
RA = 324.855, Dec = -42.5895
tmin = 552700801, tmax = 552960001
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='641200', job_status='RUN', time_executed='2021-09-26 21:53:53.292607', time_epoch_executed='1632718433.29' WHERE source_name='4FGL J2139.4-4235' and cadence='daily' and bin_id='1209'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/641200

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/641200/ft1_4FGL_J2139.4-4235_daily_bin1209.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/641200/ft2_4FGL_J2139.4-4235_daily_bin1209.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/641200/ft1_4FGL_J2139.4-4235_daily_bin1209.fits outfile=/scratch/kocevski/641200/ft1_filteredMKT_4FGL_J2139.4-4235_daily_bin1209.fits ra=324.855 dec=-42.5895 rad=12.0 tmin=552700801.0 tmax=552960001.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 2.95
user 2.70
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/641200/ft1_filtered_4FGL_J2139.4-4235_daily_bin1209.fits" evtable="EVENTS" scfile=/scratch/kocevski/641200/ft2_4FGL_J2139.4-4235_daily_bin1209.fits sctable="SC_DATA" outfile=/scratch/kocevski/641200/ltcube_552700801_552960001_4FGL_J2139.4-4235_daily_bin1209.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/641200/ft2_4FGL_J2139.4-4235_daily_bin1209.fits
.....................!
real 14.42
user 14.02
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/641200/ft1_filtered_4FGL_J2139.4-4235_daily_bin1209.fits evtable="EVENTS" scfile=/scratch/kocevski/641200/ft2_4FGL_J2139.4-4235_daily_bin1209.fits sctable="SC_DATA" expcube=/scratch/kocevski/641200/ltcube_552700801_552960001_4FGL_J2139.4-4235_daily_bin1209.fits outfile=/scratch/kocevski/641200/expmap_552700801_552960001_4FGL_J2139.4-4235_daily_bin1209.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/641200/ltcube_552700801_552960001_4FGL_J2139.4-4235_daily_bin1209.fits
.....................!
real 192.57
user 187.25
sys 4.91

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/641200/ft1_filtered_4FGL_J2139.4-4235_daily_bin1209.fits scfile=/scratch/kocevski/641200/ft2_4FGL_J2139.4-4235_daily_bin1209.fits outfile=/scratch/kocevski/641200/cmap_552700801_552960001_4FGL_J2139.4-4235_daily_bin1209.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/641200/ft1_filtered_4FGL_J2139.4-4235_daily_bin1209.fits scfile=/scratch/kocevski/641200/ft2_4FGL_J2139.4-4235_daily_bin1209.fits outfile=/scratch/kocevski/641200/cmap_HighResolution_552700801_552960001_4FGL_J2139.4-4235_daily_bin1209.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/641200/ft1_filtered_4FGL_J2139.4-4235_daily_bin1209.fits evtable="EVENTS" scfile=/scratch/kocevski/641200/ft2_4FGL_J2139.4-4235_daily_bin1209.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/641200/Model_4FGL_J2139.4-4235_daily_bin1209.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/641200/ft1_filtered_4FGL_J2139.4-4235_daily_bin1209.fits......................!
real 18.45
user 17.11
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9999.4       1.0000         .10000E-03   10000.    
     2 'Prefactor '    9999.4       1.0000         .10000E-03   10000.    
     3 'norm      '    10000.       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .64609E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .24351E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    51.287       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .44321E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    47.782       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    38.893       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.7452       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .87953E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.511       1.0000         .10000E-03   10000.    
    19 'Prefactor '    70.233       1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.8359       1.0000         .10000E-03   10000.    
    21 'Prefactor '    38.170       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0205       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .79972E-03   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=   739.4037     FROM MIGRAD    STATUS=CONVERGED    178 CALLS     3203 TOTAL
                     EDM=   .86E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9999.7        559.16        .20875E-04   -.38660E-03
   2  Prefactor     9999.8        1583.4        .36602E-04   -.51322E-03
   3  norm         10000.0        294.03       -.23122E-05** at limit **
   4  Prefactor     .12279E-03    21.073        .79846E-06** at limit **
   5  Prefactor    10000.0        54.863        .67577E-05** at limit **
   6  Prefactor     .15121E-03    189.04       -.21060E-04** at limit **
   7  Prefactor     49.491        205.72       -.13905E-04    .49255E-03
   8  Prefactor     .49491E-02    383.07       -.29115E-04   -.26493E-02
   9  Prefactor     .10000E-03    45.616       -.14353E-04** at limit **
  10  norm          .10000E-03    11.688        .28043E-06** at limit **
  11  Prefactor     47.565        23.434       -.16982E-05   -.83167E-02
  12  Prefactor     .10000E-03    17.741       -.35437E-06** at limit **
  13  norm          38.538        28.876        .16295E-06    .12526E-02
  14  Prefactor     .10000E-03    49.316        .84645E-05** at limit **
  15  Prefactor     8.7417        17.926        .43761E-06   -.86883E-03
  16  Prefactor     .10430E-03    12.804       -.30370E-06** at limit **
  17  Prefactor     .10000E-03    41.943        .55231E-05** at limit **
  18  Prefactor     14.590        10.552       -.26361E-06   -.55929E-04
  19  Prefactor     70.232        10.115       -.24516E-06   -.36529E-02
  20  Prefactor     6.8571        12.845        .50024E-05    .22163E-05
  21  Prefactor     38.855        50.176        .62613E-05   -.41846E-02
  22  Normalizat    .98421        .64814        .10160E-05   -.44211E-05
  23  Prefactor     .29608E-01    1.6257       -.26840E-04   -.42297E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9999.66
  Prefactor  = 9999.83
  norm       = 10000
  Prefactor  = 0.000122789
  Prefactor  = 10000
  Prefactor  = 0.000151212
  Prefactor  = 49.4909
  Prefactor  = 0.00494914
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 47.5653
  Prefactor  = 0.0001
  norm       = 38.5383
  Prefactor  = 0.0001
  Prefactor  = 8.74175
  Prefactor  = 0.000104302
  Prefactor  = 0.0001
  Prefactor  = 14.5901
  Prefactor  = 70.2321
  Prefactor  = 6.85707
  Prefactor  = 38.8548
  Normalizat = 0.984215
  Prefactor  = 0.0296077
 **********
 **   18 **HESSE 
 **********

 FCN=   739.4037     FROM HESSE     STATUS=NOT POSDEF   408 CALLS     3611 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9999.7        6274.7        .11775E-01    1.5591    
   2  Prefactor     9999.8        9449.9        .11637E-01    1.5625    
   3  norm         10000.0        375.89        .90712E-02    1.5711    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .12279E-03    488.29        .10512E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor    10000.0        9485.5        .90743E-02    1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .15121E-03    244.56        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     49.491        776.55        .14000E-02   -1.4300    
   8  Prefactor     .49491E-02    1132.3        .96820E-02   -1.5722    
   9  Prefactor     .10000E-03    40.951        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    10.511        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     47.565        58.778        .14502E-02   -1.4328    
  12  Prefactor     .10000E-03    15.918        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          38.538        63.401        .16067E-02   -1.4466    
  14  Prefactor     .10000E-03    44.216        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     8.7417        19.237        .33886E-02   -1.5117    
  16  Prefactor     .10430E-03    531.68        .10422E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    36.917        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     14.590        11.278        .26286E-02   -1.4944    
  19  Prefactor     70.232        96.705        .11975E-02   -1.4030    
  20  Prefactor     6.8571        15.315        .38364E-02   -1.5184    
  21  Prefactor     38.855        46.828        .16218E-02   -1.4460    
  22  Normalizat    .98421        5.2757        .43278E-01   -.93561    
  23  Prefactor     .29608E-01    9.6493        .20996       -1.4619    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.26708e-05
Minuit parameter uncertainties:
  1  305.497
  2  158.286
  3  0.62553
  4  0.212733
  5  9.12788
  6  0.22475
  7  398.388
  8  4.77972
  9  0.00030423
  10  5.19254e-06
  11  58.8502
  12  3.25459e-06
  13  63.5118
  14  0.000171473
  15  19.2504
  16  0.0965153
  17  0.000126016
  18  11.2795
  19  96.922
  20  15.3234
  21  46.8718
  22  3.09592
  23  2.05094
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 739.403661064

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  1.000e-04  5.193e-06  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:  2.961e-02  2.051e+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:  9.842e-01  3.096e+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: 3.60e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.54e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/641200/likelihoodResults_552700801_552960001_4FGL_J2139.4-4235_daily_bin1209.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) = 739.40402107
delta logL = -0.000360005877951

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 739.40366106
delta logL = 3.9351562009e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9341       1.0000          .0000       5.0000    
     3 'Normalizat'    .98421       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .29619E-01   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=   739.4037     FROM MIGRAD    STATUS=FAILED        91 CALLS      247 TOTAL
                     EDM=   .38E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10047E-03    1732.4        .91071E-03** at limit **
   2  alpha         2.0131        3.8947        .50000       -.13146E-05
   3  Normalizat    .98421        .18878        .23107E-03    .29397E-05
   4  Prefactor     .29609E-01    .16447        .73273E-02    .40115E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   739.4037     FROM SIMPLEX   STATUS=UNCHANGED    158 CALLS      405 TOTAL
                     EDM=   .83E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10047E-03    1732.4        .51200E-03** at limit **
   2  alpha         2.0131        3.8947        .10631E-04   -.13146E-05
   3  Normalizat    .98421        .18878        .20010E-05    .29397E-05
   4  Prefactor     .29609E-01    .16447        .45327E-05    .40115E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   739.4037     FROM MIGRAD    STATUS=CONVERGED     40 CALLS      445 TOTAL
                     EDM=   .69E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    18.558        .18214E-03** at limit **
   2  alpha         2.1180        3.3661        .50000        .65398E-08
   3  Normalizat    .98421        .57028        .92428E-05   -.10178E-04
   4  Prefactor     .29609E-01    1.4507        .29309E-03   -.23758E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.11799
  Normalizat = 0.984213
  Prefactor  = 0.0296088
 **********
 **   18 **HESSE 
 **********

 FCN=   739.4037     FROM HESSE     STATUS=OK            29 CALLS      474 TOTAL
                     EDM=   .36E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    12.155        .36429E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1180        3.1662        .50000       -.15340    
   3  Normalizat    .98421        .56786        .18486E-05   -.93561    
   4  Prefactor     .29609E-01    1.4384        .11724E-04   -1.4619    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.6316e-12
Minuit parameter uncertainties:
  1  3.09029e-05
  2  355.698
  3  0.57139
  4  0.424036
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/641200': 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) = 739.403660973
delta logL = 9.08530637389e-08

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  1.000e-04  3.090e-05  1.000e-04  1.000e+04 ( 1.000e-12)
299        alpha:  2.118e+00  3.557e+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:  2.961e-02  4.240e-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:  9.842e-01  5.714e-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/641200/cmap_HighResolution_552700801_552960001_4FGL_J2139.4-4235_daily_bin1209.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.54e-04', job_status='DONE', photon_flux_upper_limit='3.60e-07', time_completed='2021-09-26 22:02:42.458907', job_id='641200', GAL2='0.03', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1632718962.46', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='102', GAL='0.03', dlogl='9.09e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.93' WHERE bin_id='1209' AND source_name='4FGL J2139.4-4235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 22:02:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0115>
Subject: Job 641200: <4FGL_J2139.4-4235_daily_bin1209> in cluster <slac> Done

Job <4FGL_J2139.4-4235_daily_bin1209> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep 26 21:50:37 2021
Job was executed on host(s) <bullet0115>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 21:52:58 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:52:58 2021
Terminated at Sun Sep 26 22:02:43 2021
Results reported at Sun Sep 26 22:02:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2139.4-4235_daily_bin1209 324.855 -42.5895 552700801 552960001 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 :                                   376.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             267.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   584 sec.
    Turnaround time :                            726 sec.

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

