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


Performing analysis on: 4FGL_J2139.4-4235_daily_bin1554
RA = 324.855, Dec = -42.5895
tmin = 642124801, tmax = 642384001
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='642858', job_status='RUN', time_executed='2021-09-26 21:58:21.924833', time_epoch_executed='1632718701.92' WHERE source_name='4FGL J2139.4-4235' and cadence='daily' and bin_id='1554'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/642858

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/642858/ft1_4FGL_J2139.4-4235_daily_bin1554.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/642858/ft2_4FGL_J2139.4-4235_daily_bin1554.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/642858/ft1_4FGL_J2139.4-4235_daily_bin1554.fits outfile=/scratch/kocevski/642858/ft1_filteredMKT_4FGL_J2139.4-4235_daily_bin1554.fits ra=324.855 dec=-42.5895 rad=12.0 tmin=642124801.0 tmax=642384001.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 4.33
user 4.09
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/642858/ft1_filtered_4FGL_J2139.4-4235_daily_bin1554.fits" evtable="EVENTS" scfile=/scratch/kocevski/642858/ft2_4FGL_J2139.4-4235_daily_bin1554.fits sctable="SC_DATA" outfile=/scratch/kocevski/642858/ltcube_642124801_642384001_4FGL_J2139.4-4235_daily_bin1554.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/642858/ft2_4FGL_J2139.4-4235_daily_bin1554.fits
.....................!
real 13.41
user 13.03
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/642858/ft1_filtered_4FGL_J2139.4-4235_daily_bin1554.fits evtable="EVENTS" scfile=/scratch/kocevski/642858/ft2_4FGL_J2139.4-4235_daily_bin1554.fits sctable="SC_DATA" expcube=/scratch/kocevski/642858/ltcube_642124801_642384001_4FGL_J2139.4-4235_daily_bin1554.fits outfile=/scratch/kocevski/642858/expmap_642124801_642384001_4FGL_J2139.4-4235_daily_bin1554.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/642858/ltcube_642124801_642384001_4FGL_J2139.4-4235_daily_bin1554.fits
.....................!
real 191.18
user 186.48
sys 4.26

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/642858/ft1_filtered_4FGL_J2139.4-4235_daily_bin1554.fits scfile=/scratch/kocevski/642858/ft2_4FGL_J2139.4-4235_daily_bin1554.fits outfile=/scratch/kocevski/642858/cmap_642124801_642384001_4FGL_J2139.4-4235_daily_bin1554.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.37
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/642858/ft1_filtered_4FGL_J2139.4-4235_daily_bin1554.fits evtable="EVENTS" scfile=/scratch/kocevski/642858/ft2_4FGL_J2139.4-4235_daily_bin1554.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/642858/Model_4FGL_J2139.4-4235_daily_bin1554.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/642858/ft1_filtered_4FGL_J2139.4-4235_daily_bin1554.fits.....................!
real 49.75
user 48.37
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10209E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    5.1008       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    42.922       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.4409       1.0000         .10000E-03   10000.    
    10 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    28.017       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10590E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .19487E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.7863       1.0000         .10000E-03   10000.    
    19 'Prefactor '    19.020       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.3444       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0532       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1248       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=   5925.452     FROM MIGRAD    STATUS=CONVERGED    542 CALLS     2558 TOTAL
                     EDM=   .42E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.498        .79052E-07** at limit **
   2  Prefactor     .10000E-03    144.32        .36502E-06** at limit **
   3  norm          5.1017        2.4471        .13990E-06   -.63528E-04
   4  Prefactor     .10000E-03    37.770        .38843E-06** at limit **
   5  Prefactor     .10000E-03    38.498        .13917E-06** at limit **
   6  Prefactor     .10000E-03    7.2196        .14210E-06** at limit **
   7  Prefactor     42.934        32.367        .54743E-06   -.25029E-04
   8  Prefactor     .10000E-03    39.776        .33276E-06** at limit **
   9  Prefactor     1.4403        5.0582        .23221E-05    .86859E-04
  10  norm          .10000E-03    2.1165        .49674E-08** at limit **
  11  Prefactor     .10000E-03    3.5511        .16372E-06** at limit **
  12  Prefactor     .10000E-03    2.5884        .63555E-07** at limit **
  13  norm          .10000E-03    2.4012        .69627E-07** at limit **
  14  Prefactor     28.026        40.245       -.27082E-05   -.32569E-05
  15  Prefactor     .10000E-03    6.5315       -.10384E-05** at limit **
  16  Prefactor     .10000E-03    1166.9       -.50004E-04** at limit **
  17  Prefactor     .10000E-03    6.5224        .18518E-06** at limit **
  18  Prefactor     5.7826        4.5664        .12053E-05    .58563E-04
  19  Prefactor     19.184        37.540       -.41018E-06   -.48751E-04
  20  Prefactor     .10000E-03    9.3896        .10412E-06** at limit **
  21  Prefactor     4.3334        29.537        .75754E-06   -.30323E-05
  22  Normalizat    1.0532        .22061       -.24964E-05   -.38639E-04
  23  Prefactor     1.1247        .14125       -.80366E-06   -.13520E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.10169
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 42.9339
  Prefactor  = 0.0001
  Prefactor  = 1.44029
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 28.0265
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 5.7826
  Prefactor  = 19.1841
  Prefactor  = 0.0001
  Prefactor  = 4.33342
  Normalizat = 1.05322
  Prefactor  = 1.1247
 **********
 **   18 **HESSE 
 **********

 FCN=   5925.452     FROM HESSE     STATUS=OK           362 CALLS     2920 TOTAL
                     EDM=   .84E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    20.507        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    144.82        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          5.1017        2.4453        .79741E-04   -1.5256    
   4  Prefactor     .10000E-03    38.095        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    38.559        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.2928        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     42.934        32.398        .61190E-04   -1.4397    
   8  Prefactor     .10000E-03    39.930        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.4403        5.1044        .30668E-03   -1.5468    
  10  norm          .10000E-03    2.1326        .10929E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.5668        .14170E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.5927        .12096E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.4037        .11650E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     28.026        40.327        .75688E-04   -1.4649    
  15  Prefactor     .10000E-03    6.5602        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1172.9        .36480E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.5681        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.7826        4.5900        .69755E-03   -1.5227    
  19  Prefactor     19.184        37.719        .91838E-04   -1.4832    
  20  Prefactor     .10000E-03    9.6979        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     4.3334        29.607        .19325E-03   -1.5292    
  22  Normalizat    1.0532        .25094        .30768E-03   -.91268    
  23  Prefactor     1.1247        .16183        .20249E-03   -.88681    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.42189e-11
Minuit parameter uncertainties:
  1  1.39044e-05
  2  5.45841e-05
  3  2.44536
  4  8.86796e-05
  5  2.41009e-05
  6  2.03728e-05
  7  32.4111
  8  8.44233e-05
  9  5.10594
  10  4.15542e-06
  11  1.05709e-05
  12  3.95824e-06
  13  3.42055e-06
  14  40.3667
  15  4.24685e-05
  16  0.00237826
  17  1.66749e-05
  18  4.5903
  19  37.7655
  20  4.06314e-05
  21  22.6699
  22  0.25122
  23  0.161897
Done.

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

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  1.000e-04  4.155e-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:  1.125e+00  1.619e-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.053e+00  2.512e-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: 5.51e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.88e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/642858/likelihoodResults_642124801_642384001_4FGL_J2139.4-4235_daily_bin1554.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) = 5925.45434085
delta logL = -0.00221432136368

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5925.45212652
delta logL = 6.19274942437e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9355       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0532       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1247       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=   5925.452     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      237 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.3889        .10946E-02** at limit **
   2  alpha         2.1172        3.8997        .17025       -.15150E-06
   3  Normalizat    1.0532        .23512        .30768E-03   -.81289E-04
   4  Prefactor     1.1247        .16034        .20249E-03   -.13240E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.11718
  Normalizat = 1.05322
  Prefactor  = 1.1247
 **********
 **   18 **HESSE 
 **********

 FCN=   5925.452     FROM HESSE     STATUS=OK            25 CALLS      262 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.1839        .21891E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1172        3.9201        .34050E-01   -.15373    
   3  Normalizat    1.0532        .23529        .12307E-04   -.91268    
   4  Prefactor     1.1247        .16045        .40498E-04   -.88681    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.35037e-11
Minuit parameter uncertainties:
  1  1.74619e-06
  2  197.078
  3  0.235518
  4  0.160515
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/642858': 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) = 5925.452126
delta logL = 5.23777089256e-07

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  1.000e-04  1.746e-06  1.000e-04  1.000e+04 ( 1.000e-12)
299        alpha:  2.117e+00  1.971e+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.125e+00  1.605e-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.053e+00  2.355e-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/642858/cmap_HighResolution_642124801_642384001_4FGL_J2139.4-4235_daily_bin1554.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.88e-05', job_status='DONE', photon_flux_upper_limit='5.51e-08', time_completed='2021-09-26 22:09:15.731260', job_id='642858', GAL2='1.12', fit_tolerance='1e-08', EG2='1.05', EG='1.05', time_epoch_completed='1632719355.73', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='5.24e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.93' WHERE bin_id='1554' AND source_name='4FGL J2139.4-4235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 22:09:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0171>
Subject: Job 642858: <4FGL_J2139.4-4235_daily_bin1554> in cluster <slac> Done

Job <4FGL_J2139.4-4235_daily_bin1554> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep 26 21:55:16 2021
Job was executed on host(s) <bullet0171>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 21:56:38 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:56:38 2021
Terminated at Sun Sep 26 22:09:16 2021
Results reported at Sun Sep 26 22:09:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2139.4-4235_daily_bin1554 324.855 -42.5895 642124801 642384001 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 :                                   648.05 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             326.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   757 sec.
    Turnaround time :                            840 sec.

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

