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


Performing analysis on: 4FGL_J2139.4-4235_daily_bin1275
RA = 324.855, Dec = -42.5895
tmin = 569808001, tmax = 570067201
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='641300', job_status='RUN', time_executed='2021-09-26 21:55:32.463634', time_epoch_executed='1632718532.46' WHERE source_name='4FGL J2139.4-4235' and cadence='daily' and bin_id='1275'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/641300

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/641300/ft1_4FGL_J2139.4-4235_daily_bin1275.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/641300/ft2_4FGL_J2139.4-4235_daily_bin1275.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/641300/ft1_4FGL_J2139.4-4235_daily_bin1275.fits outfile=/scratch/kocevski/641300/ft1_filteredMKT_4FGL_J2139.4-4235_daily_bin1275.fits ra=324.855 dec=-42.5895 rad=12.0 tmin=569808001.0 tmax=570067201.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.81
user 2.59
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/641300/ft1_filtered_4FGL_J2139.4-4235_daily_bin1275.fits" evtable="EVENTS" scfile=/scratch/kocevski/641300/ft2_4FGL_J2139.4-4235_daily_bin1275.fits sctable="SC_DATA" outfile=/scratch/kocevski/641300/ltcube_569808001_570067201_4FGL_J2139.4-4235_daily_bin1275.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/641300/ft2_4FGL_J2139.4-4235_daily_bin1275.fits
.....................!
real 12.18
user 11.89
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/641300/ft1_filtered_4FGL_J2139.4-4235_daily_bin1275.fits evtable="EVENTS" scfile=/scratch/kocevski/641300/ft2_4FGL_J2139.4-4235_daily_bin1275.fits sctable="SC_DATA" expcube=/scratch/kocevski/641300/ltcube_569808001_570067201_4FGL_J2139.4-4235_daily_bin1275.fits outfile=/scratch/kocevski/641300/expmap_569808001_570067201_4FGL_J2139.4-4235_daily_bin1275.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/641300/ltcube_569808001_570067201_4FGL_J2139.4-4235_daily_bin1275.fits
.....................!
real 149.02
user 144.99
sys 3.69

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/641300/ft1_filtered_4FGL_J2139.4-4235_daily_bin1275.fits scfile=/scratch/kocevski/641300/ft2_4FGL_J2139.4-4235_daily_bin1275.fits outfile=/scratch/kocevski/641300/cmap_569808001_570067201_4FGL_J2139.4-4235_daily_bin1275.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.58
user 0.32
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/641300/ft1_filtered_4FGL_J2139.4-4235_daily_bin1275.fits scfile=/scratch/kocevski/641300/ft2_4FGL_J2139.4-4235_daily_bin1275.fits outfile=/scratch/kocevski/641300/cmap_HighResolution_569808001_570067201_4FGL_J2139.4-4235_daily_bin1275.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.50
user 0.33
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.2962       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.2313       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .47002       1.0000         .10000E-03   10000.    
    10 'norm      '    .10422E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.8142       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .35937E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    24.394       1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.736       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.7264       1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.2495       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    26.786       1.0000         .10000E-03   10000.    
    21 'Prefactor '    18.414       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0919       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .92420       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=   6134.039     FROM MIGRAD    STATUS=CONVERGED    517 CALLS     2227 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    43.709        .50105E-05** at limit **
   2  Prefactor     .10003E-03    72.183       -.93384E-05** at limit **
   3  norm          2.2958        2.1833        .15814E-06   -.96162E-04
   4  Prefactor     .10002E-03    33.091       -.69730E-05** at limit **
   5  Prefactor     .10000E-03    21.221       -.30887E-05** at limit **
   6  Prefactor     2.2315        4.5094        .30296E-06   -.11016E-03
   7  Prefactor     .10001E-03    18.717        .37959E-05** at limit **
   8  Prefactor     .10000E-03    11.352       -.10991E-05** at limit **
   9  Prefactor     .45832        2.4514        .31055E-06   -.16508E-03
  10  norm          .10000E-03    2.2722       -.30957E-06** at limit **
  11  Prefactor     4.8152        6.3996        .33577E-05   -.13645E-02
  12  Prefactor     .10000E-03    9.2305        .60549E-06** at limit **
  13  norm          .10064E-03    4.6247        .11486E-05** at limit **
  14  Prefactor     24.385        29.592       -.15362E-05   -.18368E-03
  15  Prefactor     12.737        8.4682        .16791E-06   -.76186E-04
  16  Prefactor     .10002E-03    45.206        .64659E-05** at limit **
  17  Prefactor     6.7263        9.5939        .15298E-06   -.53306E-04
  18  Prefactor     7.2496        4.4490        .82947E-06   -.10888E-02
  19  Prefactor     .10000E-03    40.318        .47794E-06** at limit **
  20  Prefactor     26.786        9.2612       -.22931E-07   -.33162E-04
  21  Prefactor     18.415        22.525        .30046E-07   -.68556E-05
  22  Normalizat    1.0918        .20664       -.11258E-05   -.45753E-04
  23  Prefactor     .92432        .12786       -.18133E-06   -.83636E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100009
  Prefactor  = 0.000100031
  norm       = 2.2958
  Prefactor  = 0.000100017
  Prefactor  = 0.000100003
  Prefactor  = 2.23149
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.458316
  norm       = 0.000100002
  Prefactor  = 4.81524
  Prefactor  = 0.0001
  norm       = 0.000100639
  Prefactor  = 24.3849
  Prefactor  = 12.7374
  Prefactor  = 0.000100015
  Prefactor  = 6.72632
  Prefactor  = 7.24964
  Prefactor  = 0.0001
  Prefactor  = 26.7858
  Prefactor  = 18.4146
  Normalizat = 1.09178
  Prefactor  = 0.924319
 **********
 **   18 **HESSE 
 **********

 FCN=   6134.039     FROM HESSE     STATUS=OK           382 CALLS     2609 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    44.547        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10003E-03    74.889        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.2958        2.1746        .10659E-03   -1.5405    
   4  Prefactor     .10002E-03    34.647        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    21.519        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.2315        4.4794        .22828E-03   -1.5409    
   7  Prefactor     .10001E-03    19.210        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    11.396        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .45832        9.7277        .22890E-02   -1.5573    
  10  norm          .10000E-03    8.5058        .22748E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.8152        6.9565        .91676E-03   -1.5269    
  12  Prefactor     .10000E-03    9.4088        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10064E-03    4.5807        .55188E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     24.385        29.785        .81104E-04   -1.4720    
  15  Prefactor     12.737        8.4738        .11224E-03   -1.4994    
  16  Prefactor     .10002E-03    46.487        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.7263        9.6477        .15471E-03   -1.5189    
  18  Prefactor     7.2496        4.5446        .62087E-03   -1.5169    
  19  Prefactor     .10000E-03    40.450        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     26.786        9.2858        .77405E-04   -1.4672    
  21  Prefactor     18.415        22.595        .93336E-04   -1.4849    
  22  Normalizat    1.0918        .24283        .28084E-03   -.90016    
  23  Prefactor     .92432        .14996        .20307E-03   -.95296    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.26427e-09
Minuit parameter uncertainties:
  1  0.001256
  2  0.00306715
  3  2.17471
  4  0.00152475
  5  0.000542821
  6  4.48003
  7  0.00062168
  8  0.000140418
  9  4.22328
  10  0.000227045
  11  6.95764
  12  5.91559e-05
  13  0.00342249
  14  29.8035
  15  8.47457
  16  0.00167358
  17  9.64997
  18  4.54485
  19  0.000106913
  20  9.28629
  21  22.6054
  22  0.243074
  23  0.150027
Done.

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

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  1.000e-04  2.270e-04  1.000e-04  1.000e+04 ( 1.000e-12)
299        alpha:  1.929e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
300         beta:  4.914e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
301           Eb:  8.547e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
578    Prefactor:  9.243e-01  1.500e-01  0.000e+00  1.000e+01 ( 1.000e+00)
579        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
580        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
577   Normalization:  1.092e+00  2.431e-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: 6.07e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.28e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/641300/likelihoodResults_569808001_570067201_4FGL_J2139.4-4235_daily_bin1275.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) = 6134.03980913
delta logL = -0.000559480148695

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6134.03924659
delta logL = 3.05978755932e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11809E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8222       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0918       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92434       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=   6133.069     FROM MIGRAD    STATUS=FAILED       170 CALLS      340 TOTAL
                     EDM=   .80E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .11723        10.397        .35748E-03   -.57180E-03
   2  alpha         .19350        2.5082        .36193E-01   -.16877E-03
   3  Normalizat    1.0982        .20368        .27999E-03    .44543E-03
   4  Prefactor     .91679        .13755        .20358E-03    .56602E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6133.069     FROM SIMPLEX   STATUS=UNCHANGED     91 CALLS      431 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .11723        10.397        .49117E-04   -.57180E-03
   2  alpha         .19350        2.5082        .40291E-02   -.16877E-03
   3  Normalizat    1.0982        .20368        .15164E-03    .44543E-03
   4  Prefactor     .91679        .13755        .64718E-04    .56602E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6133.069     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      462 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .11723        .45043        .14299E-04   -.40548E-04
   2  alpha         .19351        3.5869        .72387E-02   -.41023E-05
   3  Normalizat    1.0982        .21611        .55999E-04    .42292E-03
   4  Prefactor     .91679        .14587        .40717E-04    .53760E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.117233
  alpha      = 0.193508
  Normalizat = 1.09817
  Prefactor  = 0.916785
 **********
 **   18 **HESSE 
 **********

 FCN=   6133.069     FROM HESSE     STATUS=OK            25 CALLS      487 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .11723        .41551        .57197E-06   -1.5640    
   2  alpha         .19351        3.4786        .28955E-03   -1.9668    
   3  Normalizat    1.0982        .21614        .11200E-04   -.89811    
   4  Prefactor     .91679        .14588        .81434E-05   -.95557    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.55423e-10
Minuit parameter uncertainties:
  1  0.415523
  2  0.997789
  3  0.216312
  4  0.145944
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/641300': 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) = 6133.06908343
delta logL = 0.970166213741

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  1.172e-01  4.155e-01  1.000e-04  1.000e+04 ( 1.000e-12)
299        alpha:  1.935e-01  9.978e-01  0.000e+00  5.000e+00 ( 1.000e+00)
300         beta:  4.914e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
301           Eb:  8.547e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
578    Prefactor:  9.168e-01  1.459e-01  0.000e+00  1.000e+01 ( 1.000e+00)
579        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
580        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
577   Normalization:  1.098e+00  2.163e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.94
Ra Dec: 324.855 -42.590
Photon Index (Free Index): 0.19 +/- 1.00
Photon Flux (Free Index): 3.06e-09 +/- 2.02e-08
Energy Flux (Free Index): 1.09e-04 +/- 8.17e-04

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/641300/cmap_HighResolution_569808001_570067201_4FGL_J2139.4-4235_daily_bin1275.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.28e-05', comment='SUCCESS', energy_flux2='1.09e-04', dlogl='9.70e-01', photon_flux2='3.06e-09', job_status='DONE', time_completed='2021-09-26 22:06:19.357689', photon_index_error2='1.00', photon_index2='0.19', ts='-0.00', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='6.07e-08', energy_flux_error2='8.17e-04', EG='1.09', time_epoch_completed='1632719179.36', return_code='0', job_id='641300', GAL2='0.92', EG2='1.10', return_code2='0', photon_flux_error2='2.02e-08', ts2='1.94', photon_index='1.93' WHERE bin_id='1275' AND source_name='4FGL J2139.4-4235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 22:06:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0095>
Subject: Job 641300: <4FGL_J2139.4-4235_daily_bin1275> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2139.4-4235_daily_bin1275 324.855 -42.5895 569808001 570067201 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 :                                   523.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             285.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   718 sec.
    Turnaround time :                            936 sec.

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

