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


Performing analysis on: 4FGL_J2139.4-4235_daily_bin1214
RA = 324.855, Dec = -42.5895
tmin = 553996801, tmax = 554256001
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='641207', job_status='RUN', time_executed='2021-09-26 21:55:48.625649', time_epoch_executed='1632718548.63' WHERE source_name='4FGL J2139.4-4235' and cadence='daily' and bin_id='1214'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/641207

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/641207/ft1_4FGL_J2139.4-4235_daily_bin1214.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/641207/ft2_4FGL_J2139.4-4235_daily_bin1214.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/641207/ft1_4FGL_J2139.4-4235_daily_bin1214.fits outfile=/scratch/kocevski/641207/ft1_filteredMKT_4FGL_J2139.4-4235_daily_bin1214.fits ra=324.855 dec=-42.5895 rad=12.0 tmin=553996801.0 tmax=554256001.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.66
user 2.42
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/641207/ft1_filtered_4FGL_J2139.4-4235_daily_bin1214.fits" evtable="EVENTS" scfile=/scratch/kocevski/641207/ft2_4FGL_J2139.4-4235_daily_bin1214.fits sctable="SC_DATA" outfile=/scratch/kocevski/641207/ltcube_553996801_554256001_4FGL_J2139.4-4235_daily_bin1214.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/641207/ft2_4FGL_J2139.4-4235_daily_bin1214.fits
.....................!
real 12.95
user 12.26
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/641207/ft1_filtered_4FGL_J2139.4-4235_daily_bin1214.fits evtable="EVENTS" scfile=/scratch/kocevski/641207/ft2_4FGL_J2139.4-4235_daily_bin1214.fits sctable="SC_DATA" expcube=/scratch/kocevski/641207/ltcube_553996801_554256001_4FGL_J2139.4-4235_daily_bin1214.fits outfile=/scratch/kocevski/641207/expmap_553996801_554256001_4FGL_J2139.4-4235_daily_bin1214.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/641207/ltcube_553996801_554256001_4FGL_J2139.4-4235_daily_bin1214.fits
.....................!
real 190.76
user 185.78
sys 4.64

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/641207/ft1_filtered_4FGL_J2139.4-4235_daily_bin1214.fits scfile=/scratch/kocevski/641207/ft2_4FGL_J2139.4-4235_daily_bin1214.fits outfile=/scratch/kocevski/641207/cmap_553996801_554256001_4FGL_J2139.4-4235_daily_bin1214.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.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/641207/ft1_filtered_4FGL_J2139.4-4235_daily_bin1214.fits scfile=/scratch/kocevski/641207/ft2_4FGL_J2139.4-4235_daily_bin1214.fits outfile=/scratch/kocevski/641207/cmap_HighResolution_553996801_554256001_4FGL_J2139.4-4235_daily_bin1214.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.54
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/641207/ft1_filtered_4FGL_J2139.4-4235_daily_bin1214.fits evtable="EVENTS" scfile=/scratch/kocevski/641207/ft2_4FGL_J2139.4-4235_daily_bin1214.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/641207/Model_4FGL_J2139.4-4235_daily_bin1214.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/641207/ft1_filtered_4FGL_J2139.4-4235_daily_bin1214.fits.........................!
real 17.41
user 16.12
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .23678E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .14909E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10514E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10391E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    44.070       1.0000         .10000E-03   10000.    
     9 'Prefactor '    53.005       1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10515E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    80.006       1.0000         .10000E-03   10000.    
    14 'Prefactor '    110.29       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    17.185       1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.771       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10889E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    40.526       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10135E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .85699       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .69979       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=   582.6343     FROM MIGRAD    STATUS=CONVERGED    493 CALLS     2945 TOTAL
                     EDM=   .49E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10016E-03    1859.0       -.78894E-05** at limit **
   2  Prefactor     .10002E-03    899.00       -.27792E-05** at limit **
   3  norm          .10000E-03    10.263        .21431E-06** at limit **
   4  Prefactor     .10000E-03    533.26        .47861E-06** at limit **
   5  Prefactor     .10001E-03    221.54        .85656E-05** at limit **
   6  Prefactor     .10000E-03    45.111       -.51152E-06** at limit **
   7  Prefactor     .10000E-03    370.61       -.12380E-05** at limit **
   8  Prefactor     44.584        170.38        .22357E-04    .59548E-04
   9  Prefactor     52.992        35.628       -.11573E-06    .57820E-04
  10  norm          .10000E-03    12.930       -.42530E-06** at limit **
  11  Prefactor     .10001E-03    221.23       -.78546E-05** at limit **
  12  Prefactor     .10003E-03    150.08       -.76970E-05** at limit **
  13  norm          80.019        78.982       -.76477E-06    .19390E-04
  14  Prefactor     110.57        195.62        .14898E-04    .64801E-04
  15  Prefactor     .10001E-03    58.047        .65072E-05** at limit **
  16  Prefactor     .10000E-03    525.12        .19357E-05** at limit **
  17  Prefactor     17.239        39.985        .55859E-05    .11614E-04
  18  Prefactor     12.796        16.822        .36723E-05    .41633E-04
  19  Prefactor     .10000E-03    84.046       -.47839E-06** at limit **
  20  Prefactor     40.547        32.407        .44375E-05    .35498E-04
  21  Prefactor     .10000E-03    63.670       -.29857E-05** at limit **
  22  Normalizat    .85192        .97482       -.91863E-04    .57066E-04
  23  Prefactor     .70251        .59690        .58394E-04    .15985E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100157
  Prefactor  = 0.000100019
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100015
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 44.5837
  Prefactor  = 52.9917
  norm       = 0.0001
  Prefactor  = 0.000100014
  Prefactor  = 0.000100025
  norm       = 80.0192
  Prefactor  = 110.568
  Prefactor  = 0.000100011
  Prefactor  = 0.000100004
  Prefactor  = 17.2389
  Prefactor  = 12.7963
  Prefactor  = 0.0001
  Prefactor  = 40.5473
  Prefactor  = 0.000100002
  Normalizat = 0.851917
  Prefactor  = 0.702513
 **********
 **   18 **HESSE 
 **********

 FCN=   582.6343     FROM HESSE     STATUS=OK           354 CALLS     3299 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10016E-03    1865.3        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10002E-03    899.84        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    10.265        .75563E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    533.31        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10001E-03    221.88        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    45.149        .15850E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    371.39        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     44.584        170.35        .30196E-03   -1.4372    
   9  Prefactor     52.992        35.646        .55090E-04   -1.4251    
  10  norm          .10000E-03    12.937        .84821E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10001E-03    223.27        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10003E-03    151.85        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          80.019        78.988        .44900E-04   -1.3917    
  14  Prefactor     110.57        195.46        .19150E-03   -1.3601    
  15  Prefactor     .10001E-03    58.525        .18029E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    525.28        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     17.239        40.004        .96614E-04   -1.4877    
  18  Prefactor     12.796        16.823        .99876E-04   -1.4992    
  19  Prefactor     .10000E-03    84.091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     40.547        32.355        .62967E-04   -1.4434    
  21  Prefactor     .10000E-03    63.795        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .85192        .97336        .33812E-03   -.98171    
  23  Prefactor     .70251        .59813        .26275E-03   -1.0343    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01425e-09
Minuit parameter uncertainties:
  1  0.0353634
  2  0.00848803
  3  2.12469e-05
  4  0.00132294
  5  0.00364652
  6  0.000176658
  7  0.000709892
  8  172.259
  9  35.6607
  10  5.29992e-05
  11  0.00352593
  12  0.00393326
  13  79.0921
  14  196.62
  15  0.00164195
  16  0.00275459
  17  40.066
  18  16.8291
  19  0.000236413
  20  32.3687
  21  0.000662249
  22  0.994506
  23  0.603732
Done.

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

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  1.000e-04  5.300e-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:  7.025e-01  6.037e-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.519e-01  9.945e-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: 4.13e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.91e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/641207/likelihoodResults_553996801_554256001_4FGL_J2139.4-4235_daily_bin1214.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) = 582.634649909
delta logL = -0.000332023435135

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 582.634322318
delta logL = -4.43222245394e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10184E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9252       1.0000          .0000       5.0000    
     3 'Normalizat'    .85414       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70084       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=   582.6343     FROM MIGRAD    STATUS=FAILED        85 CALLS      229 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10029E-03    120.69        .84890E-03** at limit **
   2  alpha         1.8621        3.3407        .17047        .92741E-06
   3  Normalizat    .85191        .79229        .33829E-03   -.65953E-06
   4  Prefactor     .70252        .57062        .26269E-03    .22775E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   582.6343     FROM SIMPLEX   STATUS=UNCHANGED    138 CALLS      367 TOTAL
                     EDM=   .94E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10029E-03    120.69        .50479E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8621        3.3407        .81290E-04   -.25803    
   3  Normalizat    .85191        .79229        .40640E-04   -.98171    
   4  Prefactor     .70252        .57062        .13484E-04   -1.0343    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   582.6343     FROM MIGRAD    STATUS=CONVERGED     30 CALLS      397 TOTAL
                     EDM=   .49E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    13.110        .16978E-03** at limit **
   2  alpha         1.7920        3.9384        .68189E-02   -.23341E-08
   3  Normalizat    .85191        .79297        .13531E-04    .14073E-05
   4  Prefactor     .70252        .57110        .10508E-04   -.73032E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.79205
  Normalizat = 0.851907
  Prefactor  = 0.702519
 **********
 **   18 **HESSE 
 **********

 FCN=   582.6343     FROM HESSE     STATUS=OK            23 CALLS      420 TOTAL
                     EDM=   .46E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    13.109        .33956E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.7920        3.8605        .13638E-02   -.28711    
   3  Normalizat    .85191        .79263        .27063E-05   -.98171    
   4  Prefactor     .70252        .57106        .21015E-05   -1.0343    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.56573e-13
Minuit parameter uncertainties:
  1  2.83841e-06
  2  418.887
  3  0.80382
  4  0.575917
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/641207': 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) = 582.634317835
delta logL = 5.09887740918e-08

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  1.000e-04  2.838e-06  1.000e-04  1.000e+04 ( 1.000e-12)
299        alpha:  1.792e+00  4.189e+02  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:  7.025e-01  5.759e-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.519e-01  8.038e-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/641207/cmap_HighResolution_553996801_554256001_4FGL_J2139.4-4235_daily_bin1214.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.91e-04', job_status='DONE', photon_flux_upper_limit='4.13e-07', time_completed='2021-09-26 22:04:50.484023', job_id='641207', GAL2='0.70', fit_tolerance='1e-08', EG2='0.85', EG='0.85', time_epoch_completed='1632719090.48', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.70', dlogl='5.10e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.93' WHERE bin_id='1214' AND source_name='4FGL J2139.4-4235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 22:04:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0227>
Subject: Job 641207: <4FGL_J2139.4-4235_daily_bin1214> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2139.4-4235_daily_bin1214 324.855 -42.5895 553996801 554256001 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 :                                   350.12 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             191.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   709 sec.
    Turnaround time :                            854 sec.

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

