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


Performing analysis on: 4FGL_J2139.4-4235_daily_bin1269
RA = 324.855, Dec = -42.5895
tmin = 568252801, tmax = 568512001
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='641290', job_status='RUN', time_executed='2021-09-26 21:55:13.835366', time_epoch_executed='1632718513.84' WHERE source_name='4FGL J2139.4-4235' and cadence='daily' and bin_id='1269'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/641290

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/641290/ft1_4FGL_J2139.4-4235_daily_bin1269.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/641290/ft2_4FGL_J2139.4-4235_daily_bin1269.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/641290/ft1_4FGL_J2139.4-4235_daily_bin1269.fits outfile=/scratch/kocevski/641290/ft1_filteredMKT_4FGL_J2139.4-4235_daily_bin1269.fits ra=324.855 dec=-42.5895 rad=12.0 tmin=568252801.0 tmax=568512001.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.68
user 3.41
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/641290/ft2_4FGL_J2139.4-4235_daily_bin1269.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/641290/ft1_filteredMKT_4FGL_J2139.4-4235_daily_bin1269.fits evtable="EVENTS" outfile="/scratch/kocevski/641290/ft1_filtered_4FGL_J2139.4-4235_daily_bin1269.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/641290/ft1_filtered_4FGL_J2139.4-4235_daily_bin1269.fits" evtable="EVENTS" scfile=/scratch/kocevski/641290/ft2_4FGL_J2139.4-4235_daily_bin1269.fits sctable="SC_DATA" outfile=/scratch/kocevski/641290/ltcube_568252801_568512001_4FGL_J2139.4-4235_daily_bin1269.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/641290/ft2_4FGL_J2139.4-4235_daily_bin1269.fits
.....................!
real 12.27
user 11.89
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/641290/ft1_filtered_4FGL_J2139.4-4235_daily_bin1269.fits evtable="EVENTS" scfile=/scratch/kocevski/641290/ft2_4FGL_J2139.4-4235_daily_bin1269.fits sctable="SC_DATA" expcube=/scratch/kocevski/641290/ltcube_568252801_568512001_4FGL_J2139.4-4235_daily_bin1269.fits outfile=/scratch/kocevski/641290/expmap_568252801_568512001_4FGL_J2139.4-4235_daily_bin1269.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/641290/ltcube_568252801_568512001_4FGL_J2139.4-4235_daily_bin1269.fits
.....................!
real 195.62
user 189.82
sys 4.62

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/641290/ft1_filtered_4FGL_J2139.4-4235_daily_bin1269.fits scfile=/scratch/kocevski/641290/ft2_4FGL_J2139.4-4235_daily_bin1269.fits outfile=/scratch/kocevski/641290/cmap_568252801_568512001_4FGL_J2139.4-4235_daily_bin1269.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.58
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/641290/ft1_filtered_4FGL_J2139.4-4235_daily_bin1269.fits scfile=/scratch/kocevski/641290/ft2_4FGL_J2139.4-4235_daily_bin1269.fits outfile=/scratch/kocevski/641290/cmap_HighResolution_568252801_568512001_4FGL_J2139.4-4235_daily_bin1269.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.63
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/641290/ft1_filtered_4FGL_J2139.4-4235_daily_bin1269.fits evtable="EVENTS" scfile=/scratch/kocevski/641290/ft2_4FGL_J2139.4-4235_daily_bin1269.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/641290/Model_4FGL_J2139.4-4235_daily_bin1269.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/641290/ft1_filtered_4FGL_J2139.4-4235_daily_bin1269.fits.....................!
real 18.86
user 17.51
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .71065       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.0420       1.0000         .10000E-03   10000.    
     3 'norm      '    1.5178       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.3768       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.2579       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .17387E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .41742E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.3281       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.8375       1.0000         .10000E-03   10000.    
    10 'norm      '    .69278E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.856       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10200E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    38.328       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.3461       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .17284E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.9927       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10684       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10277E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    260.56       1.0000         .10000E-03   10000.    
    20 'Prefactor '    93.831       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .50889E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .54264       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.3787       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=   785.0284     FROM MIGRAD    STATUS=CONVERGED    225 CALLS      473 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10032E-03    420.62       -.12694E-03** at limit **
   2  Prefactor     .86348E-03    715.57       -.38016E-04** at limit **
   3  norm          .10128E-03    230.01        .52117E-04** at limit **
   4  Prefactor     18.049        98.971       -.31592E-04   -.78769E-04
   5  Prefactor     5.2579        1.0046         .0000         .0000    
   6  Prefactor     .10000E-03    73.969        .14082E-06** at limit **
   7  Prefactor     .10000E-03    80.827        .47069E-05** at limit **
   8  Prefactor     6.3281        1.0032         .0000         .0000    
   9  Prefactor     .37354E-02    1510.1       -.12613E-03   -.18458E-02
  10  norm          .10000E-03    12.710        .16732E-06** at limit **
  11  Prefactor     15.318        43.282       -.54741E-05   -.23137E-02
  12  Prefactor     .10000E-03    23.793       -.71394E-06** at limit **
  13  norm          38.545        33.494       -.22544E-04    .77329E-03
  14  Prefactor     .28654        1482.9        .34036E-03    .38427E-02
  15  Prefactor     .27897E-03    253.47       -.13910E-03** at limit **
  16  Prefactor     .34364E-01    2189.9        .43681E-03    .19353E-02
  17  Prefactor     .10135E-03    471.27       -.33921E-03** at limit **
  18  Prefactor     .10000E-03    16.242        .46880E-06** at limit **
  19  Prefactor     253.45        133.76        .46259E-04   -.59260E-01
  20  Prefactor     96.355        41.351       -.87668E-06   -.91031E-03
  21  Prefactor     .10000E-03    33.039        .97699E-05** at limit **
  22  Normalizat    .56442        .88643        .11167E-03   -.44606E-05
  23  Prefactor     1.3578        .61000        .24058E-04    .33530E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100322
  Prefactor  = 0.000863484
  norm       = 0.000101276
  Prefactor  = 18.0489
  Prefactor  = 5.2579
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.32809
  Prefactor  = 0.00373538
  norm       = 0.0001
  Prefactor  = 15.3183
  Prefactor  = 0.0001
  norm       = 38.5454
  Prefactor  = 0.286543
  Prefactor  = 0.000278967
  Prefactor  = 0.0343636
  Prefactor  = 0.000101348
  Prefactor  = 0.0001
  Prefactor  = 253.449
  Prefactor  = 96.3546
  Prefactor  = 0.0001
  Normalizat = 0.564419
  Prefactor  = 1.35777
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   785.0284     FROM HESSE     STATUS=FAILED        27 CALLS      500 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10032E-03    422.32        .12103E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .86348E-03    810.82        .50141E-02   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10128E-03    229.92        .86726E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     18.049        88.659        .32719E-02   -1.4858    
   5  Prefactor     528.96        523.65         .0000       -1.5249    
   6  Prefactor     .10000E-03    .20746        .14082E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    .28206        .47069E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.3281        1.0032         .0000       -1.5205    
   9  Prefactor     .37354E-02    .14800       -.12613E-03   -1.5720    
  10  norm          .10000E-03    .27524        .16732E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     15.318        1.0160       -.54741E-05   -1.4925    
  12  Prefactor     .10000E-03    .20571       -.71394E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          38.545        1.0029       -.22544E-04   -1.4465    
  14  Prefactor     .28654        .21319        .34036E-03   -1.5601    
  15  Prefactor     .27897E-03    .20571       -.13910E-03   -1.5711    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .34364E-01    .70204E-01    .43681E-03   -1.5671    
  17  Prefactor     .10135E-03    .22771       -.33921E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    .20571        .46880E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     253.45        .98662        .46259E-04   -1.2510    
  20  Prefactor     96.355        1.0132       -.87668E-06   -1.3742    
  21  Prefactor     .10000E-03    .27954        .97699E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .56442        .89381        .11167E-03   -1.0952    
  23  Prefactor     1.3578        1.0568        .24058E-04   -.81605    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.60833e-09
Minuit parameter uncertainties:
  1  0.0235042
  2  1.59568
  3  0.0343839
  4  80.1963
  5  1.00459
  6  8.26564e-07
  7  6.54502e-06
  8  1.00315
  9  0.0463913
  10  3.86041e-08
  11  1.016
  12  1.36452e-06
  13  1.0029
  14  0.213187
  15  0.0121353
  16  0.0702045
  17  0.00110792
  18  2.13496e-08
  19  0.986622
  20  1.01324
  21  1.10669e-05
  22  0.918277
  23  1.07433
Done.

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

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  1.000e-04  3.860e-08  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.358e+00  1.074e+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:  5.644e-01  9.183e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/641290/likelihoodResults_568252801_568512001_4FGL_J2139.4-4235_daily_bin1269.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) = 785.028496876
delta logL = -0.000144732516333

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 785.028355522
delta logL = -3.37865594702e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10213E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9200       1.0000          .0000       5.0000    
     3 'Normalizat'    .56428       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3579       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.

 FCN=   785.0284     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      276 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    928.33        .73273E-02** at limit **
   2  alpha         1.8207        3.3782        .16764       -.49590E-08
   3  Normalizat    .56443        .18106        .51338E-03    .96512E-04
   4  Prefactor     1.3578        .11865        .22358E-03    .18538E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.82069
  Normalizat = 0.56443
  Prefactor  = 1.35777
 **********
 **   18 **HESSE 
 **********

 FCN=   785.0284     FROM HESSE     STATUS=OK            23 CALLS      299 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    12.811        .97941E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8207        2.8777        .67057E-02   -.27518    
   3  Normalizat    .56443        .86019        .20535E-04   -1.0952    
   4  Prefactor     1.3578        .57469        .44717E-04   -.81605    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.35816e-10
Minuit parameter uncertainties:
  1  7.3701e-05
  2  452.773
  3  0.881878
  4  0.577423
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/641290': 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) = 785.028352115
delta logL = 2.77682374872e-08

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  1.000e-04  7.370e-05  1.000e-04  1.000e+04 ( 1.000e-12)
299        alpha:  1.821e+00  4.528e+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.358e+00  5.774e-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:  5.644e-01  8.819e-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/641290/cmap_HighResolution_568252801_568512001_4FGL_J2139.4-4235_daily_bin1269.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.13e-04', job_status='DONE', photon_flux_upper_limit='4.44e-07', time_completed='2021-09-26 22:01:46.468845', job_id='641290', GAL2='1.36', fit_tolerance='1e-08', EG2='0.56', EG='0.56', time_epoch_completed='1632718906.47', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='101', GAL='1.36', dlogl='2.78e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.93' WHERE bin_id='1269' AND source_name='4FGL J2139.4-4235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 22:01:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0227>
Subject: Job 641290: <4FGL_J2139.4-4235_daily_bin1269> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2139.4-4235_daily_bin1269 324.855 -42.5895 568252801 568512001 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 :                                   336.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             231.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   445 sec.
    Turnaround time :                            664 sec.

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

