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


Performing analysis on: 4FGL_J2139.4-4235_daily_bin1035
RA = 324.855, Dec = -42.5895
tmin = 507600001, tmax = 507859201
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='640925', job_status='RUN', time_executed='2021-09-26 21:52:59.764430', time_epoch_executed='1632718379.76' WHERE source_name='4FGL J2139.4-4235' and cadence='daily' and bin_id='1035'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/640925

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/640925/ft1_4FGL_J2139.4-4235_daily_bin1035.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/640925/ft2_4FGL_J2139.4-4235_daily_bin1035.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/640925/ft1_4FGL_J2139.4-4235_daily_bin1035.fits outfile=/scratch/kocevski/640925/ft1_filteredMKT_4FGL_J2139.4-4235_daily_bin1035.fits ra=324.855 dec=-42.5895 rad=12.0 tmin=507600001.0 tmax=507859201.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.63
user 3.38
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/640925/ft1_filtered_4FGL_J2139.4-4235_daily_bin1035.fits" evtable="EVENTS" scfile=/scratch/kocevski/640925/ft2_4FGL_J2139.4-4235_daily_bin1035.fits sctable="SC_DATA" outfile=/scratch/kocevski/640925/ltcube_507600001_507859201_4FGL_J2139.4-4235_daily_bin1035.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/640925/ft2_4FGL_J2139.4-4235_daily_bin1035.fits
.....................!
real 14.19
user 13.77
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/640925/ft1_filtered_4FGL_J2139.4-4235_daily_bin1035.fits evtable="EVENTS" scfile=/scratch/kocevski/640925/ft2_4FGL_J2139.4-4235_daily_bin1035.fits sctable="SC_DATA" expcube=/scratch/kocevski/640925/ltcube_507600001_507859201_4FGL_J2139.4-4235_daily_bin1035.fits outfile=/scratch/kocevski/640925/expmap_507600001_507859201_4FGL_J2139.4-4235_daily_bin1035.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/640925/ltcube_507600001_507859201_4FGL_J2139.4-4235_daily_bin1035.fits
.....................!
real 193.06
user 187.89
sys 4.75

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/640925/ft1_filtered_4FGL_J2139.4-4235_daily_bin1035.fits scfile=/scratch/kocevski/640925/ft2_4FGL_J2139.4-4235_daily_bin1035.fits outfile=/scratch/kocevski/640925/cmap_507600001_507859201_4FGL_J2139.4-4235_daily_bin1035.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/640925/ft1_filtered_4FGL_J2139.4-4235_daily_bin1035.fits scfile=/scratch/kocevski/640925/ft2_4FGL_J2139.4-4235_daily_bin1035.fits outfile=/scratch/kocevski/640925/cmap_HighResolution_507600001_507859201_4FGL_J2139.4-4235_daily_bin1035.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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/640925/ft1_filtered_4FGL_J2139.4-4235_daily_bin1035.fits evtable="EVENTS" scfile=/scratch/kocevski/640925/ft2_4FGL_J2139.4-4235_daily_bin1035.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/640925/Model_4FGL_J2139.4-4235_daily_bin1035.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/640925/ft1_filtered_4FGL_J2139.4-4235_daily_bin1035.fits.....................!
real 65.65
user 64.33
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    145.38       1.0000         .10000E-03   10000.    
     3 'norm      '    2.1375       1.0000         .10000E-03   10000.    
     4 'Prefactor '    38.819       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.5849       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .92455       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .69479       1.0000         .10000E-03   10000.    
    10 'norm      '    11.618       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.9061       1.0000         .10000E-03   10000.    
    13 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .29350E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.6221       1.0000         .10000E-03   10000.    
    21 'Prefactor '    14.617       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .63548       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1888       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5810E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8947.628     FROM MIGRAD    STATUS=CONVERGED    498 CALLS     2518 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.432        .90712E-02** at limit **
   2  Prefactor     145.38        73.687        .83548E-03   -.39589E-03
   3  norm          2.1377        1.5516        .70485E-02   -.11571E-03
   4  Prefactor     38.820        19.795        .16083E-02   -.15636E-03
   5  Prefactor     .10000E-03    23.498        .90712E-02** at limit **
   6  Prefactor     6.5857        6.1934        .39096E-02    .45783E-03
   7  Prefactor     .10000E-03    13.297        .90712E-02** at limit **
   8  Prefactor     .91068        11.635        .12896        .40953E-03
   9  Prefactor     .69428        2.3868        .12042E-01    .20044E-02
  10  norm          11.617        4.4077        .29383E-02    .62142E-02
  11  Prefactor     .10000E-03    2.1878        .90712E-02** at limit **
  12  Prefactor     9.9073        7.7406        .31829E-02    .46081E-03
  13  norm          .10000E-03    3.7310        .90712E-02** at limit **
  14  Prefactor     .10000E-03    9.0157        .90712E-02** at limit **
  15  Prefactor     .10000E-03    2.6842        .90712E-02** at limit **
  16  Prefactor     .10000E-03    38.584        .90712E-02** at limit **
  17  Prefactor     .10000E-03    4.7049        .69187E-01** at limit **
  18  Prefactor     .10000E-03    1.5081        .90712E-02** at limit **
  19  Prefactor     .10000E-03    11.660        .90712E-02** at limit **
  20  Prefactor     6.6223        5.1476        .38985E-02    .16716E-02
  21  Prefactor     14.616        20.412        .26191E-02    .38855E-03
  22  Normalizat    .63541        .16618        .77077E-01    .24891E-03
  23  Prefactor     1.1889        .11266        .34900E-01    .37564E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 145.377
  norm       = 2.13771
  Prefactor  = 38.8197
  Prefactor  = 0.000100001
  Prefactor  = 6.58572
  Prefactor  = 0.000100005
  Prefactor  = 0.910684
  Prefactor  = 0.694279
  norm       = 11.6175
  Prefactor  = 0.0001
  Prefactor  = 9.90731
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 6.62233
  Prefactor  = 14.6156
  Normalizat = 0.635406
  Prefactor  = 1.18886
 **********
 **   18 **HESSE 
 **********

 FCN=   8947.628     FROM HESSE     STATUS=OK           364 CALLS     2882 TOTAL
                     EDM=   .73E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.437        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     145.38        73.663        .33419E-04   -1.3291    
   3  norm          2.1377        1.5398        .95514E-04   -1.5416    
   4  Prefactor     38.820        19.809        .64331E-04   -1.4461    
   5  Prefactor     .10000E-03    23.554        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.5857        6.1774        .15638E-03   -1.5195    
   7  Prefactor     .10000E-03    13.356        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .91068        52.325        .62520E-02   -1.5517    
   9  Prefactor     .69428        2.3322        .25882E-03   -1.5541    
  10  norm          11.617        4.4042        .11753E-03   -1.5026    
  11  Prefactor     .10000E-03    2.1982        .13655E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     9.9073        7.7299        .12732E-03   -1.5078    
  13  norm          .10000E-03    3.8216        .17839E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.0240        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.7085        .15131E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    38.629        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    17.216        .38936E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.5344        .11335E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    11.665        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     6.6223        5.1472        .15594E-03   -1.5193    
  21  Prefactor     14.616        20.443        .10476E-03   -1.4943    
  22  Normalizat    .63541        .17907        .34126E-03   -1.0650    
  23  Prefactor     1.1889        .12514        .18236E-03   -.86675    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.33683e-08
Minuit parameter uncertainties:
  1  0.000207666
  2  73.7093
  3  1.53985
  4  19.8123
  5  0.000298939
  6  6.17796
  7  0.000516902
  8  13.8179
  9  2.33247
  10  4.40433
  11  1.36395e-05
  12  7.73072
  13  2.72621e-05
  14  7.72798e-05
  15  2.89998e-05
  16  0.000636188
  17  6.64884e-05
  18  9.30385e-07
  19  0.000392547
  20  5.14754
  21  20.4526
  22  0.179238
  23  0.125172
Done.

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

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  1.162e+01  4.404e+00  1.000e-04  1.000e+04 ( 1.000e-12)
299        alpha:  1.929e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
300         beta:  4.914e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
301           Eb:  8.547e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
578    Prefactor:  1.189e+00  1.252e-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:  6.354e-01  1.792e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 17.51
Ra Dec: 324.855 -42.590
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 7.04e-08 +/- 2.67e-08
Energy Flux (Fixed Index): 4.96e-05 +/- 1.88e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8947.50175646
delta logL = 0.125981218736

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8947.50043991
delta logL = 0.127297766605

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.110       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1036       1.0000          .0000       5.0000    
     3 'Normalizat'    .62108       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1942       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5810E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8947.500     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      258 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.104        69.165        .30049E-02    .18210E-03
   2  alpha         2.1029        3.5367        .26777        .62412E-04
   3  Normalizat    .62122        .15550        .77864E-01    .62491E-04
   4  Prefactor     1.1942        .72141E-01    .34769E-01    .34823E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 11.104
  alpha      = 2.10295
  Normalizat = 0.621218
  Prefactor  = 1.19419
 **********
 **   18 **HESSE 
 **********

 FCN=   8947.500     FROM HESSE     STATUS=OK            33 CALLS      291 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.104        4.4636        .11166E-03   -1.5041    
   2  alpha         2.1029        .35561        .10354E-01   -.15950    
   3  Normalizat    .62122        .17466        .34477E-03   -1.0709    
   4  Prefactor     1.1942        .12358        .18199E-03   -.86510    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24499e-11
Minuit parameter uncertainties:
  1  4.46369
  2  0.356847
  3  0.174818
  4  0.123608
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/640925': 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) = 8947.50043532
delta logL = 0.127302357705

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  1.110e+01  4.464e+00  1.000e-04  1.000e+04 ( 1.000e-12)
299        alpha:  2.103e+00  3.568e-01  0.000e+00  5.000e+00 ( 1.000e+00)
300         beta:  4.914e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
301           Eb:  8.547e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
578    Prefactor:  1.194e+00  1.236e-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:  6.212e-01  1.748e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 17.74
Ra Dec: 324.855 -42.590
Photon Index (Free Index): 2.10 +/- 0.36
Photon Flux (Free Index): 8.20e-08 +/- 3.73e-08
Energy Flux (Free Index): 4.11e-05 +/- 2.11e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/640925/cmap_HighResolution_507600001_507859201_4FGL_J2139.4-4235_daily_bin1035.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.04e-08', energy_flux2='4.11e-05', photon_flux_error='2.67e-08', dlogl='1.27e-01', energy_flux='4.96e-05', photon_flux2='8.20e-08', job_status='DONE', time_completed='2021-09-26 22:05:25.771529', photon_index_error2='0.36', photon_index2='2.10', ts='17.51', fit_tolerance='1e-08', GAL='1.19', photon_index_error='0.00', energy_flux_error2='2.11e-05', EG='0.64', time_epoch_completed='1632719125.77', return_code='0', job_id='640925', GAL2='1.19', EG2='0.62', return_code2='0', energy_flux_error='1.88e-05', photon_flux_error2='3.73e-08', ts2='17.74', photon_index='1.93' WHERE bin_id='1035' AND source_name='4FGL J2139.4-4235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 22:05:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0304>
Subject: Job 640925: <4FGL_J2139.4-4235_daily_bin1035> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2139.4-4235_daily_bin1035 324.855 -42.5895 507600001 507859201 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 :                                   733.46 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             300.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   893 sec.
    Turnaround time :                            911 sec.

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

