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


Performing analysis on: 4FGL_J2139.4-4235_daily_bin737
RA = 324.855, Dec = -42.5895
tmin = 430358401, tmax = 430617601
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='636873', job_status='RUN', time_executed='2021-09-26 21:36:14.032906', time_epoch_executed='1632717374.03' WHERE source_name='4FGL J2139.4-4235' and cadence='daily' and bin_id='737'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/636873

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/636873/ft1_4FGL_J2139.4-4235_daily_bin737.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/636873/ft2_4FGL_J2139.4-4235_daily_bin737.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/636873/ft1_4FGL_J2139.4-4235_daily_bin737.fits outfile=/scratch/kocevski/636873/ft1_filteredMKT_4FGL_J2139.4-4235_daily_bin737.fits ra=324.855 dec=-42.5895 rad=12.0 tmin=430358401.0 tmax=430617601.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.91
user 4.63
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/636873/ft1_filtered_4FGL_J2139.4-4235_daily_bin737.fits" evtable="EVENTS" scfile=/scratch/kocevski/636873/ft2_4FGL_J2139.4-4235_daily_bin737.fits sctable="SC_DATA" outfile=/scratch/kocevski/636873/ltcube_430358401_430617601_4FGL_J2139.4-4235_daily_bin737.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/636873/ft2_4FGL_J2139.4-4235_daily_bin737.fits
.....................!
real 11.27
user 10.73
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/636873/ft1_filtered_4FGL_J2139.4-4235_daily_bin737.fits evtable="EVENTS" scfile=/scratch/kocevski/636873/ft2_4FGL_J2139.4-4235_daily_bin737.fits sctable="SC_DATA" expcube=/scratch/kocevski/636873/ltcube_430358401_430617601_4FGL_J2139.4-4235_daily_bin737.fits outfile=/scratch/kocevski/636873/expmap_430358401_430617601_4FGL_J2139.4-4235_daily_bin737.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/636873/ltcube_430358401_430617601_4FGL_J2139.4-4235_daily_bin737.fits
.....................!
real 156.88
user 152.04
sys 4.46

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/636873/ft1_filtered_4FGL_J2139.4-4235_daily_bin737.fits scfile=/scratch/kocevski/636873/ft2_4FGL_J2139.4-4235_daily_bin737.fits outfile=/scratch/kocevski/636873/cmap_430358401_430617601_4FGL_J2139.4-4235_daily_bin737.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.48
user 0.32
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/636873/ft1_filtered_4FGL_J2139.4-4235_daily_bin737.fits scfile=/scratch/kocevski/636873/ft2_4FGL_J2139.4-4235_daily_bin737.fits outfile=/scratch/kocevski/636873/cmap_HighResolution_430358401_430617601_4FGL_J2139.4-4235_daily_bin737.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.48
user 0.33
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/636873/ft1_filtered_4FGL_J2139.4-4235_daily_bin737.fits evtable="EVENTS" scfile=/scratch/kocevski/636873/ft2_4FGL_J2139.4-4235_daily_bin737.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/636873/Model_4FGL_J2139.4-4235_daily_bin737.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/636873/ft1_filtered_4FGL_J2139.4-4235_daily_bin737.fits.....................!
real 34.26
user 33.12
sys 1.05

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0440       1.0000         .10000E-03   10000.    
     2 'Prefactor '    68.710       1.0000         .10000E-03   10000.    
     3 'norm      '    3.6679       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10640E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    54.079       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.8635       1.0000         .10000E-03   10000.    
    10 'norm      '    .11328E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.3352       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    4.8296       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .29652E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .20850E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.9337       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    18.464       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .87380       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.2947       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=   4788.098     FROM MIGRAD    STATUS=CONVERGED    930 CALLS     3001 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .76534        67.046        .14961        .91427E-04
   2  Prefactor     68.860        101.64        .24212E-03    .90717E-04
   3  norm          3.6683        2.3319        .80978E-04   -.40152E-04
   4  Prefactor     .10000E-03    10.144        .18142E-02** at limit **
   5  Prefactor     .10000E-03    20.455        .18142E-02** at limit **
   6  Prefactor     .10000E-03    3.5712        .12746E-02** at limit **
   7  Prefactor     .10000E-03    109.34        .18142E-02** at limit **
   8  Prefactor     54.028        38.537        .54544E-04   -.17383E-04
   9  Prefactor     5.8563        7.3895        .16585E-03   -.18488E-03
  10  norm          .15975E-02    7.8360        .42859E-01** at limit **
  11  Prefactor     1.3316        20.251        .37970E-03   -.40750E-04
  12  Prefactor     .10000E-03    4.3076        .14014E-02** at limit **
  13  norm          4.8315        6.6847        .18305E-03   -.77943E-04
  14  Prefactor     .10001E-03    322.20        .39682E-03** at limit **
  15  Prefactor     .10000E-03    5.3892        .15657E-02** at limit **
  16  Prefactor     .10000E-03    151.69        .18142E-02** at limit **
  17  Prefactor     2.9452        15.704        .23715E-03   -.43144E-04
  18  Prefactor     .10000E-03    1.5492        .84017E-03** at limit **
  19  Prefactor     18.454        49.218        .93210E-04   -.10245E-04
  20  Prefactor     .10000E-03    5.0589        .15165E-02** at limit **
  21  Prefactor     .10000E-03    28.569        .18142E-02** at limit **
  22  Normalizat    .87324        .28928        .33788E-03   -.18418E-03
  23  Prefactor     1.2949        .18843        .19394E-03   -.53359E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.765335
  Prefactor  = 68.8596
  norm       = 3.66826
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 54.0275
  Prefactor  = 5.8563
  norm       = 0.00159748
  Prefactor  = 1.33161
  Prefactor  = 0.0001
  norm       = 4.83152
  Prefactor  = 0.000100015
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 2.94517
  Prefactor  = 0.0001
  Prefactor  = 18.4544
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.873235
  Prefactor  = 1.29486
 **********
 **   18 **HESSE 
 **********

 FCN=   4788.098     FROM HESSE     STATUS=OK           366 CALLS     3367 TOTAL
                     EDM=   .95E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .76534        65.053        .15276       -1.5533    
   2  Prefactor     68.860        101.59        .96847E-05   -1.4046    
   3  norm          3.6683        2.3317        .32391E-05   -1.5325    
   4  Prefactor     .10000E-03    10.145        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    20.455        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.5714        .25491E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    109.41        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     54.028        38.535        .10909E-04   -1.4237    
   9  Prefactor     5.8563        7.3882        .66339E-05   -1.5224    
  10  norm          .15975E-02    6.1483        .50246E-01   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.3316        20.228        .15188E-04   -1.5477    
  12  Prefactor     .10000E-03    4.3077        .28029E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.8315        6.6842        .73221E-05   -1.5268    
  14  Prefactor     .10001E-03    322.23        .79364E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.3897        .31315E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    151.70        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.9452        15.697        .94861E-05   -1.5365    
  18  Prefactor     .10000E-03    1.5492        .16803E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     18.454        49.194        .37284E-05   -1.4849    
  20  Prefactor     .10000E-03    5.0595        .30331E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    28.573        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .87324        .28935        .13515E-04   -.97407    
  23  Prefactor     1.2949        .18854        .38787E-04   -.83460    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.46176e-10
Minuit parameter uncertainties:
  1  14.127
  2  101.843
  3  2.33181
  4  2.22745e-05
  5  1.67707e-05
  6  1.82797e-05
  7  0.00102682
  8  38.5531
  9  7.38932
  10  0.191926
  11  10.3837
  12  3.15608e-06
  13  6.68519
  14  0.00438142
  15  3.39132e-05
  16  0.000606363
  17  13.6038
  18  9.99035e-06
  19  49.3022
  20  4.01543e-05
  21  0.000164506
  22  0.289865
  23  0.188635
Done.

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

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  1.597e-03  1.919e-01  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.295e+00  1.886e-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:  8.732e-01  2.899e-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: 9.07e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.39e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/636873/likelihoodResults_430358401_430617601_4FGL_J2139.4-4235_daily_bin737.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): 102
logL (Free Index) = 4788.09768578
delta logL = 4.2600731831e-09

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4787.95248056
delta logL = 0.1452052294

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3352       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8126       1.0000          .0000       5.0000    
     3 'Normalizat'    .84827       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2989       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=   4787.952     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      406 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3341        222.99        .94930E-02    .73157E-03
   2  alpha         2.8126        3.3023        .41566E-01    .19836E-04
   3  Normalizat    .84832        .13549        .77347E-01    .17063E-04
   4  Prefactor     1.2989        .92931E-01    .32628E-01   -.23528E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.33407
  alpha      = 2.81262
  Normalizat = 0.848322
  Prefactor  = 1.29892
 **********
 **   18 **HESSE 
 **********

 FCN=   4787.952     FROM HESSE     STATUS=OK            31 CALLS      437 TOTAL
                     EDM=   .23E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3341        3.5317        .15130E-03   -1.5477    
   2  alpha         2.8126        1.3327        .16626E-02    .12538    
   3  Normalizat    .84832        .27223        .34236E-03   -.98301    
   4  Prefactor     1.2989        .18478        .19366E-03   -.83339    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.27682e-13
Minuit parameter uncertainties:
  1  3.53227
  2  1.4069
  3  0.272668
  4  0.184873
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/636873': 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) = 4787.95248045
delta logL = 0.1452053352

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  1.334e+00  3.532e+00  1.000e-04  1.000e+04 ( 1.000e-12)
299        alpha:  2.813e+00  1.407e+00  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.299e+00  1.849e-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:  8.483e-01  2.727e-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/636873/cmap_HighResolution_430358401_430617601_4FGL_J2139.4-4235_daily_bin737.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.39e-05', job_status='DONE', photon_flux_upper_limit='9.07e-08', time_completed='2021-09-26 21:45:03.964496', job_id='636873', GAL2='1.30', fit_tolerance='1e-08', EG2='0.85', EG='0.87', time_epoch_completed='1632717903.96', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.29', dlogl='1.45e-01', ts2='0.30', photon_index_error='0.00', photon_index='1.93' WHERE bin_id='737' AND source_name='4FGL J2139.4-4235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 21:45:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0033>
Subject: Job 636873: <4FGL_J2139.4-4235_daily_bin737> in cluster <slac> Done

Job <4FGL_J2139.4-4235_daily_bin737> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Sep 26 21:35:22 2021
Job was executed on host(s) <bullet0033>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 21:36:01 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:36:01 2021
Terminated at Sun Sep 26 21:45:04 2021
Results reported at Sun Sep 26 21:45:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2139.4-4235_daily_bin737 324.855 -42.5895 430358401 430617601 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 :                                   521.52 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             301.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   543 sec.
    Turnaround time :                            582 sec.

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

