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


Performing analysis on: 4FGL_J2139.4-4235_daily_bin1022
RA = 324.855, Dec = -42.5895
tmin = 504230401, tmax = 504489601
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='640906', job_status='RUN', time_executed='2021-09-26 21:50:41.713308', time_epoch_executed='1632718241.71' WHERE source_name='4FGL J2139.4-4235' and cadence='daily' and bin_id='1022'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/640906

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/640906/ft1_4FGL_J2139.4-4235_daily_bin1022.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/640906/ft2_4FGL_J2139.4-4235_daily_bin1022.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/640906/ft1_4FGL_J2139.4-4235_daily_bin1022.fits outfile=/scratch/kocevski/640906/ft1_filteredMKT_4FGL_J2139.4-4235_daily_bin1022.fits ra=324.855 dec=-42.5895 rad=12.0 tmin=504230401.0 tmax=504489601.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.59
user 3.37
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/640906/ft1_filtered_4FGL_J2139.4-4235_daily_bin1022.fits" evtable="EVENTS" scfile=/scratch/kocevski/640906/ft2_4FGL_J2139.4-4235_daily_bin1022.fits sctable="SC_DATA" outfile=/scratch/kocevski/640906/ltcube_504230401_504489601_4FGL_J2139.4-4235_daily_bin1022.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/640906/ft2_4FGL_J2139.4-4235_daily_bin1022.fits
.....................!
real 15.49
user 15.13
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/640906/ft1_filtered_4FGL_J2139.4-4235_daily_bin1022.fits evtable="EVENTS" scfile=/scratch/kocevski/640906/ft2_4FGL_J2139.4-4235_daily_bin1022.fits sctable="SC_DATA" expcube=/scratch/kocevski/640906/ltcube_504230401_504489601_4FGL_J2139.4-4235_daily_bin1022.fits outfile=/scratch/kocevski/640906/expmap_504230401_504489601_4FGL_J2139.4-4235_daily_bin1022.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/640906/ltcube_504230401_504489601_4FGL_J2139.4-4235_daily_bin1022.fits
.....................!
real 192.71
user 187.96
sys 4.21

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/640906/ft1_filtered_4FGL_J2139.4-4235_daily_bin1022.fits scfile=/scratch/kocevski/640906/ft2_4FGL_J2139.4-4235_daily_bin1022.fits outfile=/scratch/kocevski/640906/cmap_504230401_504489601_4FGL_J2139.4-4235_daily_bin1022.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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/640906/ft1_filtered_4FGL_J2139.4-4235_daily_bin1022.fits scfile=/scratch/kocevski/640906/ft2_4FGL_J2139.4-4235_daily_bin1022.fits outfile=/scratch/kocevski/640906/cmap_HighResolution_504230401_504489601_4FGL_J2139.4-4235_daily_bin1022.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.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/640906/ft1_filtered_4FGL_J2139.4-4235_daily_bin1022.fits evtable="EVENTS" scfile=/scratch/kocevski/640906/ft2_4FGL_J2139.4-4235_daily_bin1022.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/640906/Model_4FGL_J2139.4-4235_daily_bin1022.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/640906/ft1_filtered_4FGL_J2139.4-4235_daily_bin1022.fits.....................!
real 53.08
user 51.77
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.6111       1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.867       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.2853       1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.267       1.0000         .10000E-03   10000.    
     7 'Prefactor '    33.629       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.6353       1.0000         .10000E-03   10000.    
    10 'norm      '    3.0176       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10266E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.2143       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10160E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.6310       1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.4892       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.6678       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10448E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2726       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .97358       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=   6588.295     FROM MIGRAD    STATUS=CONVERGED    496 CALLS     2513 TOTAL
                     EDM=   .52E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    51.556       -.14246E-04** at limit **
   2  Prefactor     .10000E-03    70.219        .66560E-04** at limit **
   3  norm          1.6111        1.2528       -.76784E-07   -.16630E-03
   4  Prefactor     12.837        31.637       -.28609E-04    .85259E-05
   5  Prefactor     7.2848        27.308       -.28093E-05    .29500E-05
   6  Prefactor     10.265        10.776       -.83621E-06    .15968E-03
   7  Prefactor     33.623        32.398       -.52874E-05    .53655E-04
   8  Prefactor     .10000E-03    51.665       -.13479E-04** at limit **
   9  Prefactor     4.6341        5.0819       -.18456E-05   -.13774E-04
  10  norm          3.0175        2.9775        .47963E-07    .26594E-03
  11  Prefactor     .10000E-03    7.9512       -.88824E-06** at limit **
  12  Prefactor     .10000E-03    16.852        .57003E-05** at limit **
  13  norm          .10000E-03    5.6042       -.13343E-06** at limit **
  14  Prefactor     2.1225        107.74       -.14780E-03    .16538E-04
  15  Prefactor     .10000E-03    6.7511        .63034E-06** at limit **
  16  Prefactor     .10000E-03    53.339       -.34915E-05** at limit **
  17  Prefactor     7.6305        7.3162       -.66463E-06    .27171E-04
  18  Prefactor     7.4888        5.3302       -.18365E-05    .78135E-04
  19  Prefactor     .10000E-03    16.556       -.54917E-05** at limit **
  20  Prefactor     9.6655        9.5334       -.15266E-07    .18744E-03
  21  Prefactor     .10000E-03    52.804       -.75555E-07** at limit **
  22  Normalizat    1.2727        .21391        .94771E-05    .13987E-03
  23  Prefactor     .97350        .13097        .14516E-05    .60913E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 1.61107
  Prefactor  = 12.8374
  Prefactor  = 7.28477
  Prefactor  = 10.265
  Prefactor  = 33.6228
  Prefactor  = 0.0001
  Prefactor  = 4.63408
  norm       = 3.01754
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 2.12252
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 7.63051
  Prefactor  = 7.48878
  Prefactor  = 0.0001
  Prefactor  = 9.66552
  Prefactor  = 0.000100001
  Normalizat = 1.27272
  Prefactor  = 0.973504
 **********
 **   18 **HESSE 
 **********

 FCN=   6588.295     FROM HESSE     STATUS=OK           370 CALLS     2883 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    52.087        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    70.190        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.6111        1.2484        .77625E-04   -1.5454    
   4  Prefactor     12.837        31.710        .11167E-03   -1.4991    
   5  Prefactor     7.2848        27.312        .14860E-03   -1.5168    
   6  Prefactor     10.265        10.789        .12505E-03   -1.5067    
   7  Prefactor     33.623        32.383        .69101E-04   -1.4548    
   8  Prefactor     .10000E-03    52.165        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.6341        5.0803        .18004E-03   -1.5277    
  10  norm          3.0175        2.9815        .13375E-03   -1.5361    
  11  Prefactor     .10000E-03    8.0367        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    17.396        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    5.6563        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.1225        109.44        .27640E-03   -1.5417    
  15  Prefactor     .10000E-03    6.8133        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    53.357        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     7.6305        7.3247        .14517E-03   -1.5155    
  18  Prefactor     7.4888        5.3506        .14655E-03   -1.5161    
  19  Prefactor     .10000E-03    16.559        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     9.6655        9.5782        .12888E-03   -1.5086    
  21  Prefactor     .10000E-03    53.876        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.2727        .24867        .28897E-03   -.84384    
  23  Prefactor     .97350        .15213        .21188E-03   -.93618    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19019e-09
Minuit parameter uncertainties:
  1  0.000180045
  2  0.000446708
  3  1.24847
  4  31.7512
  5  27.3589
  6  10.7912
  7  32.4003
  8  0.000121083
  9  5.08075
  10  2.98165
  11  0.000109305
  12  0.000320561
  13  5.91398e-05
  14  30.5408
  15  0.000248087
  16  0.000248062
  17  7.32558
  18  5.3509
  19  3.81027e-06
  20  9.57969
  21  0.000478117
  22  0.248906
  23  0.152196
Done.

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

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  3.018e+00  2.982e+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:  9.735e-01  1.522e-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.273e+00  2.489e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.36
Ra Dec: 324.855 -42.590
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 1.83e-08 +/- 1.81e-08
Energy Flux (Fixed Index): 1.29e-05 +/- 1.27e-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) = 6587.90500714
delta logL = 0.390325881553

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6587.81262265
delta logL = 0.482710369826

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7355       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.2110       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2817       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97214       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=   6587.813     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      210 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7359        1.7730        .79641E-02   -.34858E-03
   2  alpha         1.2110        .44059        .40528       -.40294E-04
   3  Normalizat    1.2818        .19748        .65124E-01    .98373E-05
   4  Prefactor     .97210        .12934        .45918E-01    .74850E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 1.73595
  alpha      = 1.21098
  Normalizat = 1.2818
  Prefactor  = 0.972104
 **********
 **   18 **HESSE 
 **********

 FCN=   6587.813     FROM HESSE     STATUS=OK            33 CALLS      243 TOTAL
                     EDM=   .57E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7359        2.3963        .10349E-03   -1.5444    
   2  alpha         1.2110        .65756        .15931E-01   -.54172    
   3  Normalizat    1.2818        .22717        .28808E-03   -.84111    
   4  Prefactor     .97210        .14891        .21203E-03   -.93665    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.69887e-12
Minuit parameter uncertainties:
  1  2.39645
  2  0.668352
  3  0.227344
  4  0.14897
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/640906': 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) = 6587.81262248
delta logL = 0.48271054534

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  1.736e+00  2.396e+00  1.000e-04  1.000e+04 ( 1.000e-12)
299        alpha:  1.211e+00  6.684e-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:  9.721e-01  1.490e-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.282e+00  2.273e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.32
Ra Dec: 324.855 -42.590
Photon Index (Free Index): 1.21 +/- 0.67
Photon Flux (Free Index): 7.21e-09 +/- 9.24e-09
Energy Flux (Free Index): 3.66e-05 +/- 5.57e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/640906/cmap_HighResolution_504230401_504489601_4FGL_J2139.4-4235_daily_bin1022.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.83e-08', energy_flux2='3.66e-05', photon_flux_error='1.81e-08', dlogl='4.83e-01', energy_flux='1.29e-05', photon_flux2='7.21e-09', job_status='DONE', time_completed='2021-09-26 22:01:00.321458', photon_index_error2='0.67', photon_index2='1.21', ts='6.36', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', energy_flux_error2='5.57e-05', EG='1.27', time_epoch_completed='1632718860.32', return_code='0', job_id='640906', GAL2='0.97', EG2='1.28', return_code2='0', energy_flux_error='1.27e-05', photon_flux_error2='9.24e-09', ts2='7.32', photon_index='1.93' WHERE bin_id='1022' AND source_name='4FGL J2139.4-4235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 22:01:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0172>
Subject: Job 640906: <4FGL_J2139.4-4235_daily_bin1022> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2139.4-4235_daily_bin1022 324.855 -42.5895 504230401 504489601 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 :                                   615.34 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             353.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   631 sec.
    Turnaround time :                            647 sec.

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

