/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 0 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 = 7474
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2139.4-4235_daily_bin438
RA = 324.855, Dec = -42.5895
tmin = 352857601, tmax = 353116801
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='632093', job_status='RUN', time_executed='2021-09-26 21:34:30.700528', time_epoch_executed='1632717270.7' WHERE source_name='4FGL J2139.4-4235' and cadence='daily' and bin_id='438'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/632093

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/632093/ft1_4FGL_J2139.4-4235_daily_bin438.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/632093/ft2_4FGL_J2139.4-4235_daily_bin438.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/632093/ft1_4FGL_J2139.4-4235_daily_bin438.fits outfile=/scratch/kocevski/632093/ft1_filteredMKT_4FGL_J2139.4-4235_daily_bin438.fits ra=324.855 dec=-42.5895 rad=12.0 tmin=352857601.0 tmax=353116801.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.43
user 3.21
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/632093/ft1_filtered_4FGL_J2139.4-4235_daily_bin438.fits" evtable="EVENTS" scfile=/scratch/kocevski/632093/ft2_4FGL_J2139.4-4235_daily_bin438.fits sctable="SC_DATA" outfile=/scratch/kocevski/632093/ltcube_352857601_353116801_4FGL_J2139.4-4235_daily_bin438.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/632093/ft2_4FGL_J2139.4-4235_daily_bin438.fits
.....................!
real 14.20
user 13.80
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/632093/ft1_filtered_4FGL_J2139.4-4235_daily_bin438.fits evtable="EVENTS" scfile=/scratch/kocevski/632093/ft2_4FGL_J2139.4-4235_daily_bin438.fits sctable="SC_DATA" expcube=/scratch/kocevski/632093/ltcube_352857601_353116801_4FGL_J2139.4-4235_daily_bin438.fits outfile=/scratch/kocevski/632093/expmap_352857601_353116801_4FGL_J2139.4-4235_daily_bin438.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/632093/ltcube_352857601_353116801_4FGL_J2139.4-4235_daily_bin438.fits
.....................!
real 191.85
user 185.91
sys 5.36

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/632093/ft1_filtered_4FGL_J2139.4-4235_daily_bin438.fits scfile=/scratch/kocevski/632093/ft2_4FGL_J2139.4-4235_daily_bin438.fits outfile=/scratch/kocevski/632093/cmap_352857601_353116801_4FGL_J2139.4-4235_daily_bin438.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.55
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/632093/ft1_filtered_4FGL_J2139.4-4235_daily_bin438.fits scfile=/scratch/kocevski/632093/ft2_4FGL_J2139.4-4235_daily_bin438.fits outfile=/scratch/kocevski/632093/cmap_HighResolution_352857601_353116801_4FGL_J2139.4-4235_daily_bin438.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=324.855 yref=-42.5895 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/632093/ft1_filtered_4FGL_J2139.4-4235_daily_bin438.fits evtable="EVENTS" scfile=/scratch/kocevski/632093/ft2_4FGL_J2139.4-4235_daily_bin438.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/632093/Model_4FGL_J2139.4-4235_daily_bin438.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/632093/ft1_filtered_4FGL_J2139.4-4235_daily_bin438.fits......................!
real 26.71
user 25.36
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    86.706       1.0000         .10000E-03   10000.    
     2 'Prefactor '    125.19       1.0000         .10000E-03   10000.    
     3 'norm      '    3.6611       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .13544E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10196E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    93.076       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    18.266       1.0000         .10000E-03   10000.    
    10 'norm      '    .10250E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .28041E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .15082E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    184.07       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.0868       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    113.75       1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.2145       1.0000         .10000E-03   10000.    
    21 'Prefactor '    16.935       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .37703       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.4073       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=   2164.832     FROM MIGRAD    STATUS=CONVERGED    500 CALLS     2992 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     86.754        90.648        .88035E-06    .74015E-04
   2  Prefactor     125.19        149.66        .30981E-06    .53232E-05
   3  norm          3.6599        4.1032        .13809E-06   -.25043E-04
   4  Prefactor     .10000E-03    237.18       -.18698E-05** at limit **
   5  Prefactor     .10000E-03    50.255       -.11622E-05** at limit **
   6  Prefactor     .10000E-03    20.882        .57783E-06** at limit **
   7  Prefactor     93.118        69.660        .58080E-06    .78420E-04
   8  Prefactor     .10000E-03    74.790        .92401E-06** at limit **
   9  Prefactor     18.262        12.048        .28839E-06   -.17631E-04
  10  norm          .10000E-03    6.6669        .88229E-06** at limit **
  11  Prefactor     .10000E-03    5.1693       -.11688E-07** at limit **
  12  Prefactor     .10000E-03    5.6887        .42166E-07** at limit **
  13  norm          .10000E-03    27.742       -.10082E-05** at limit **
  14  Prefactor     .10000E-03    195.82       -.35735E-06** at limit **
  15  Prefactor     .10000E-03    35.459       -.49065E-06** at limit **
  16  Prefactor     184.05        299.04        .38778E-05   -.90136E-05
  17  Prefactor     5.0871        17.246        .67591E-05   -.10534E-04
  18  Prefactor     .10000E-03    5.6564       -.11627E-06** at limit **
  19  Prefactor     113.77        113.49        .71280E-07    .11646E-04
  20  Prefactor     6.2114        18.007        .52953E-05   -.10739E-04
  21  Prefactor     16.942        48.663       -.47576E-06    .30974E-05
  22  Normalizat    .37707        .48741        .15836E-05   -.12829E-04
  23  Prefactor     1.4073        .30016       -.21811E-05    .14954E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 86.7537
  Prefactor  = 125.194
  norm       = 3.65988
  Prefactor  = 0.000100001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 93.1184
  Prefactor  = 0.000100003
  Prefactor  = 18.262
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 184.054
  Prefactor  = 5.08711
  Prefactor  = 0.0001
  Prefactor  = 113.766
  Prefactor  = 6.21143
  Prefactor  = 16.9423
  Normalizat = 0.37707
  Prefactor  = 1.40733
 **********
 **   18 **HESSE 
 **********

 FCN=   2164.832     FROM HESSE     STATUS=OK           366 CALLS     3358 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     86.754        90.620        .21573E-03   -1.3842    
   2  Prefactor     125.19        149.51        .17988E-03   -1.3465    
   3  norm          3.6599        4.0748        .94316E-04   -1.5325    
   4  Prefactor     .10000E-03    239.54        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    50.236        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    21.131        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     93.118        68.864        .20828E-03   -1.3775    
   8  Prefactor     .10000E-03    74.868        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     18.262        11.956        .93712E-04   -1.4853    
  10  norm          .10000E-03    6.6833        .11721E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.1722        .10332E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.6904        .10839E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    28.575        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    197.07        .21418E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    35.610        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     184.05        295.36        .14879E-03   -1.2986    
  17  Prefactor     5.0871        17.185        .89136E-03   -1.5257    
  18  Prefactor     .10000E-03    5.6985        .10802E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     113.77        113.13        .37719E-04   -1.3571    
  20  Prefactor     6.2114        17.959        .80517E-03   -1.5209    
  21  Prefactor     16.942        48.310        .97324E-04   -1.4885    
  22  Normalizat    .37707        .44987        .49465E-03   -1.1850    
  23  Prefactor     1.4073        .28442        .18491E-03   -.80169    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.26928e-10
Minuit parameter uncertainties:
  1  90.7653
  2  149.96
  3  4.07509
  4  0.00104329
  5  0.000796731
  6  2.68592e-05
  7  68.9236
  8  0.000922621
  9  11.9572
  10  1.01021e-06
  11  8.89658e-07
  12  1.4399e-06
  13  6.0661e-05
  14  0.000395466
  15  0.000227351
  16  297.794
  17  17.2012
  18  1.12812e-05
  19  113.348
  20  17.9743
  21  48.4216
  22  0.454279
  23  0.284734
Done.

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

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  1.000e-04  1.010e-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.407e+00  2.847e-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:  3.771e-01  4.543e-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: 1.52e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.07e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/632093/likelihoodResults_352857601_353116801_4FGL_J2139.4-4235_daily_bin438.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) = 2164.83261958
delta logL = -0.000699772325788

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2164.83192154
delta logL = -1.73592525243e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10102E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9438       1.0000          .0000       5.0000    
     3 'Normalizat'    .37781       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4069       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=   2164.832     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      238 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    58.158        .11817E-01** at limit **
   2  alpha         2.2947        3.2188        .50000        .20120E-06
   3  Normalizat    .37707        .25883E-01    .49467E-03   -.80702E-04
   4  Prefactor     1.4073        .17951E-01    .18491E-03   -.22503E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.29472
  Normalizat = 0.377071
  Prefactor  = 1.40732
 **********
 **   18 **HESSE 
 **********

 FCN=   2164.832     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      265 TOTAL
                     EDM=   .33E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    561.14        .12318E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2947        3.6430        .50000       -.82205E-01
   3  Normalizat    .37707        .87531E-01    .19787E-04   -1.1850    
   4  Prefactor     1.4073        .60726E-01    .36981E-04   -.80169    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.33471e-08
Minuit parameter uncertainties:
  1  0.00036379
  2  1960.78
  3  0.0875624
  4  0.0607288
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/632093': 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): 102
logL (Free Index) = 2164.831919
delta logL = 8.08265212981e-07

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  1.000e-04  3.638e-04  1.000e-04  1.000e+04 ( 1.000e-12)
299        alpha:  2.295e+00  1.961e+03  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.407e+00  6.073e-02  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:  3.771e-01  8.756e-02  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/632093/cmap_HighResolution_352857601_353116801_4FGL_J2139.4-4235_daily_bin438.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.07e-04', job_status='DONE', photon_flux_upper_limit='1.52e-07', time_completed='2021-09-26 21:42:06.464211', job_id='632093', GAL2='1.41', fit_tolerance='1e-08', EG2='0.38', EG='0.38', time_epoch_completed='1632717726.46', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.41', dlogl='8.08e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.93' WHERE bin_id='438' AND source_name='4FGL J2139.4-4235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 21:42:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0186>
Subject: Job 632093: <4FGL_J2139.4-4235_daily_bin438> in cluster <slac> Done

Job <4FGL_J2139.4-4235_daily_bin438> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Sep 26 21:25:30 2021
Job was executed on host(s) <bullet0186>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 21:34:23 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:34:23 2021
Terminated at Sun Sep 26 21:42:07 2021
Results reported at Sun Sep 26 21:42:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2139.4-4235_daily_bin438 324.855 -42.5895 352857601 353116801 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 :                                   450.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             275.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   463 sec.
    Turnaround time :                            997 sec.

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

