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


Performing analysis on: 4FGL_J2139.4-4235_daily_bin1567
RA = 324.855, Dec = -42.5895
tmin = 645494401, tmax = 645753601
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='642878', job_status='RUN', time_executed='2021-09-26 21:57:25.234014', time_epoch_executed='1632718645.23' WHERE source_name='4FGL J2139.4-4235' and cadence='daily' and bin_id='1567'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/642878

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/642878/ft1_4FGL_J2139.4-4235_daily_bin1567.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/642878/ft2_4FGL_J2139.4-4235_daily_bin1567.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/642878/ft1_4FGL_J2139.4-4235_daily_bin1567.fits outfile=/scratch/kocevski/642878/ft1_filteredMKT_4FGL_J2139.4-4235_daily_bin1567.fits ra=324.855 dec=-42.5895 rad=12.0 tmin=645494401.0 tmax=645753601.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 2.70
user 2.44
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/642878/ft1_filtered_4FGL_J2139.4-4235_daily_bin1567.fits" evtable="EVENTS" scfile=/scratch/kocevski/642878/ft2_4FGL_J2139.4-4235_daily_bin1567.fits sctable="SC_DATA" outfile=/scratch/kocevski/642878/ltcube_645494401_645753601_4FGL_J2139.4-4235_daily_bin1567.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/642878/ft2_4FGL_J2139.4-4235_daily_bin1567.fits
.....................!
real 18.22
user 17.82
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/642878/ft1_filtered_4FGL_J2139.4-4235_daily_bin1567.fits evtable="EVENTS" scfile=/scratch/kocevski/642878/ft2_4FGL_J2139.4-4235_daily_bin1567.fits sctable="SC_DATA" expcube=/scratch/kocevski/642878/ltcube_645494401_645753601_4FGL_J2139.4-4235_daily_bin1567.fits outfile=/scratch/kocevski/642878/expmap_645494401_645753601_4FGL_J2139.4-4235_daily_bin1567.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/642878/ltcube_645494401_645753601_4FGL_J2139.4-4235_daily_bin1567.fits
.....................!
real 193.08
user 187.49
sys 5.16

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/642878/ft1_filtered_4FGL_J2139.4-4235_daily_bin1567.fits scfile=/scratch/kocevski/642878/ft2_4FGL_J2139.4-4235_daily_bin1567.fits outfile=/scratch/kocevski/642878/cmap_645494401_645753601_4FGL_J2139.4-4235_daily_bin1567.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.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/642878/ft1_filtered_4FGL_J2139.4-4235_daily_bin1567.fits scfile=/scratch/kocevski/642878/ft2_4FGL_J2139.4-4235_daily_bin1567.fits outfile=/scratch/kocevski/642878/cmap_HighResolution_645494401_645753601_4FGL_J2139.4-4235_daily_bin1567.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.58
user 0.42
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/642878/ft1_filtered_4FGL_J2139.4-4235_daily_bin1567.fits evtable="EVENTS" scfile=/scratch/kocevski/642878/ft2_4FGL_J2139.4-4235_daily_bin1567.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/642878/Model_4FGL_J2139.4-4235_daily_bin1567.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/642878/ft1_filtered_4FGL_J2139.4-4235_daily_bin1567.fits.....................!
real 40.86
user 39.55
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10159E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    245.05       1.0000         .10000E-03   10000.    
     3 'norm      '    6.1040       1.0000         .10000E-03   10000.    
     4 'Prefactor '    59.947       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.3998       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    25.752       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .18519E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.3564       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10495E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    15.618       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    142.73       1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.6549       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .92240       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.2369       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=   4398.341     FROM MIGRAD    STATUS=CONVERGED    529 CALLS     2916 TOTAL
                     EDM=   .94E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    31.453        .75307E-06** at limit **
   2  Prefactor     244.95        164.06       -.40002E-06    .52100E-04
   3  norm          6.1038        3.5518       -.15583E-06    .21891E-03
   4  Prefactor     59.943        52.269       -.10047E-05    .21868E-04
   5  Prefactor     .10000E-03    172.76       -.64078E-05** at limit **
   6  Prefactor     2.3965        12.308       -.14461E-05    .94778E-04
   7  Prefactor     .10000E-03    86.762       -.42665E-05** at limit **
   8  Prefactor     25.774        47.022        .47799E-07    .84163E-04
   9  Prefactor     .10006E-03    6.1833       -.15649E-05** at limit **
  10  norm          .10000E-03    4.1069       -.82791E-06** at limit **
  11  Prefactor     .10000E-03    9.7455       -.16654E-05** at limit **
  12  Prefactor     .10000E-03    7.3996       -.94815E-06** at limit **
  13  norm          .10000E-03    3.4570       -.31461E-06** at limit **
  14  Prefactor     1.2414        363.81       -.39560E-05    .17775E-04
  15  Prefactor     .10002E-03    82.406       -.12473E-04** at limit **
  16  Prefactor     15.572        195.31        .22862E-05    .94234E-05
  17  Prefactor     .10000E-03    4.6126       -.59535E-06** at limit **
  18  Prefactor     .10000E-03    2.0992       -.67793E-06** at limit **
  19  Prefactor     142.74        78.457       -.42210E-06    .12597E-04
  20  Prefactor     5.6556        5.9188        .61035E-07    .11552E-03
  21  Prefactor     .10000E-03    14.301       -.75773E-06** at limit **
  22  Normalizat    .92260        .25733        .18872E-05    .44588E-03
  23  Prefactor     1.2368        .18200        .21804E-05    .55441E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 244.952
  norm       = 6.10384
  Prefactor  = 59.9425
  Prefactor  = 0.000100001
  Prefactor  = 2.39651
  Prefactor  = 0.000100001
  Prefactor  = 25.774
  Prefactor  = 0.000100057
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.24142
  Prefactor  = 0.000100017
  Prefactor  = 15.5721
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 142.743
  Prefactor  = 5.65564
  Prefactor  = 0.0001
  Normalizat = 0.922602
  Prefactor  = 1.23684
 **********
 **   18 **HESSE 
 **********

 FCN=   4398.341     FROM HESSE     STATUS=OK           366 CALLS     3282 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    31.450        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     244.95        164.27        .12936E-03   -1.2565    
   3  norm          6.1038        3.5506        .91081E-04   -1.5214    
   4  Prefactor     59.943        52.364        .51820E-04   -1.4158    
   5  Prefactor     .10000E-03    173.29        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.3965        12.161        .26433E-03   -1.5398    
   7  Prefactor     .10000E-03    87.502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     25.774        46.903        .78940E-04   -1.4692    
   9  Prefactor     .10006E-03    14.618        .28026E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    4.1579        .13147E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    9.8998        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.4591        .17639E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    3.4624        .12047E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.2414        378.05        .37528E-02   -1.5485    
  15  Prefactor     .10002E-03    83.124        .39633E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     15.572        198.34        .10135E-03   -1.4919    
  17  Prefactor     .10000E-03    4.6413        .13919E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.1237        .93940E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     142.74        78.683        .16862E-03   -1.3313    
  20  Prefactor     5.6556        5.9181        .15973E-03   -1.5232    
  21  Prefactor     .10000E-03    14.317        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .92260        .29183        .32963E-03   -.95670    
  23  Prefactor     1.2368        .20331        .20714E-03   -.85205    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.54843e-09
Minuit parameter uncertainties:
  1  6.16263e-06
  2  164.585
  3  3.5507
  4  52.4047
  5  0.000980961
  6  10.8002
  7  0.000603061
  8  46.97
  9  0.00182485
  10  2.26604e-05
  11  6.80347e-05
  12  3.29673e-05
  13  8.78594e-06
  14  43.6062
  15  0.00236707
  16  111.608
  17  1.47037e-05
  18  1.07733e-05
  19  78.7404
  20  5.91873
  21  2.22136e-05
  22  0.292336
  23  0.20344
Done.

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

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  1.000e-04  2.266e-05  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.237e+00  2.034e-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:  9.226e-01  2.923e-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: 8.79e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.19e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/642878/likelihoodResults_645494401_645753601_4FGL_J2139.4-4235_daily_bin1567.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) = 4398.34205811
delta logL = -0.00114394316097

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4398.34091429
delta logL = -1.25547558127e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9412       1.0000          .0000       5.0000    
     3 'Normalizat'    .92276       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2368       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4398.191     FROM MIGRAD    STATUS=FAILED       127 CALLS      272 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .51350E-01    4.8030        .59290E-02    .35425E-02
   2  alpha         5.0000        4.5325        .50000    ** at limit **
   3  Normalizat    .86624        .11272        .32963E-02    .83223E-05
   4  Prefactor     1.2579        .66598E-01    .20714E-03    .58727E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4398.191     FROM SIMPLEX   STATUS=UNCHANGED    202 CALLS      474 TOTAL
                     EDM=   .49E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .51350E-01    4.8030        .35919E-08    .35425E-02
   2  alpha         5.0000        4.5325        .84495E-02** at limit **
   3  Normalizat    .86624        .11272        .91759E-09    .83223E-05
   4  Prefactor     1.2579        .66598E-01    .10500E-09    .58727E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4398.191     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      508 TOTAL
                     EDM=   .12E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .51350E-01    .10108        .25986E-04    .39812E-04
   2  alpha         5.0000        4.1771        .99061E-01** at limit **
   3  Normalizat    .86624        .29255        .13185E-03    .60357E-05
   4  Prefactor     1.2579        .20183        .82854E-05    .60374E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0513503
  alpha      = 5
  Normalizat = 0.866243
  Prefactor  = 1.2579
 **********
 **   18 **HESSE 
 **********

 FCN=   4398.191     FROM HESSE     STATUS=OK            23 CALLS      531 TOTAL
                     EDM=   .13E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .51350E-01    .99351E-01    .10394E-05   -1.5663    
   2  alpha         5.0000        4.1783        .39624E-02    7.8540    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .86624        .29232        .52740E-05   -.97657    
   4  Prefactor     1.2579        .20171        .16571E-05   -.84568    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.31516e-13
Minuit parameter uncertainties:
  1  0.0993511
  2  3.05344e-07
  3  0.292854
  4  0.201836
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/642878': 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) = 4398.19096726
delta logL = 0.149946899897

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  5.135e-02  9.935e-02  1.000e-04  1.000e+04 ( 1.000e-12)
299        alpha:  5.000e+00  3.053e-07  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.258e+00  2.018e-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.662e-01  2.929e-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/642878/cmap_HighResolution_645494401_645753601_4FGL_J2139.4-4235_daily_bin1567.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.19e-05', job_status='DONE', photon_flux_upper_limit='8.79e-08', time_completed='2021-09-26 22:07:30.194284', job_id='642878', GAL2='1.26', fit_tolerance='1e-08', EG2='0.87', EG='0.92', time_epoch_completed='1632719250.19', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.24', dlogl='1.50e-01', ts2='0.33', photon_index_error='0.00', photon_index='1.93' WHERE bin_id='1567' AND source_name='4FGL J2139.4-4235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 22:07:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0094>
Subject: Job 642878: <4FGL_J2139.4-4235_daily_bin1567> in cluster <slac> Done

Job <4FGL_J2139.4-4235_daily_bin1567> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep 26 21:55:17 2021
Job was executed on host(s) <bullet0094>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 21:56:43 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 26 21:56:43 2021
Terminated at Sun Sep 26 22:07:30 2021
Results reported at Sun Sep 26 22:07:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2139.4-4235_daily_bin1567 324.855 -42.5895 645494401 645753601 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 :                                   599.24 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             341.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   647 sec.
    Turnaround time :                            733 sec.

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

