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


Performing analysis on: 4FGL_J2139.4-4235_daily_bin1090
RA = 324.855, Dec = -42.5895
tmin = 521856001, tmax = 522115201
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='641015', job_status='RUN', time_executed='2021-09-26 21:52:54.652047', time_epoch_executed='1632718374.65' WHERE source_name='4FGL J2139.4-4235' and cadence='daily' and bin_id='1090'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/641015

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/641015/ft1_4FGL_J2139.4-4235_daily_bin1090.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/641015/ft2_4FGL_J2139.4-4235_daily_bin1090.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/641015/ft1_4FGL_J2139.4-4235_daily_bin1090.fits outfile=/scratch/kocevski/641015/ft1_filteredMKT_4FGL_J2139.4-4235_daily_bin1090.fits ra=324.855 dec=-42.5895 rad=12.0 tmin=521856001.0 tmax=522115201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.77
user 3.55
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/641015/ft2_4FGL_J2139.4-4235_daily_bin1090.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/641015/ft1_filteredMKT_4FGL_J2139.4-4235_daily_bin1090.fits evtable="EVENTS" outfile="/scratch/kocevski/641015/ft1_filtered_4FGL_J2139.4-4235_daily_bin1090.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/641015/ft1_filtered_4FGL_J2139.4-4235_daily_bin1090.fits" evtable="EVENTS" scfile=/scratch/kocevski/641015/ft2_4FGL_J2139.4-4235_daily_bin1090.fits sctable="SC_DATA" outfile=/scratch/kocevski/641015/ltcube_521856001_522115201_4FGL_J2139.4-4235_daily_bin1090.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/641015/ft2_4FGL_J2139.4-4235_daily_bin1090.fits
.....................!
real 14.86
user 14.49
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/641015/ft1_filtered_4FGL_J2139.4-4235_daily_bin1090.fits evtable="EVENTS" scfile=/scratch/kocevski/641015/ft2_4FGL_J2139.4-4235_daily_bin1090.fits sctable="SC_DATA" expcube=/scratch/kocevski/641015/ltcube_521856001_522115201_4FGL_J2139.4-4235_daily_bin1090.fits outfile=/scratch/kocevski/641015/expmap_521856001_522115201_4FGL_J2139.4-4235_daily_bin1090.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/641015/ltcube_521856001_522115201_4FGL_J2139.4-4235_daily_bin1090.fits
.....................!
real 192.15
user 186.76
sys 4.86

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/641015/ft1_filtered_4FGL_J2139.4-4235_daily_bin1090.fits scfile=/scratch/kocevski/641015/ft2_4FGL_J2139.4-4235_daily_bin1090.fits outfile=/scratch/kocevski/641015/cmap_521856001_522115201_4FGL_J2139.4-4235_daily_bin1090.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/641015/ft1_filtered_4FGL_J2139.4-4235_daily_bin1090.fits scfile=/scratch/kocevski/641015/ft2_4FGL_J2139.4-4235_daily_bin1090.fits outfile=/scratch/kocevski/641015/cmap_HighResolution_521856001_522115201_4FGL_J2139.4-4235_daily_bin1090.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.57
user 0.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/641015/ft1_filtered_4FGL_J2139.4-4235_daily_bin1090.fits evtable="EVENTS" scfile=/scratch/kocevski/641015/ft2_4FGL_J2139.4-4235_daily_bin1090.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/641015/Model_4FGL_J2139.4-4235_daily_bin1090.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/641015/ft1_filtered_4FGL_J2139.4-4235_daily_bin1090.fits.....................!
real 60.49
user 59.15
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10127E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10052E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    25.012       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.6116       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.1342       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.8161       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.2472       1.0000         .10000E-03   10000.    
    10 'norm      '    .36501       1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.086       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .46377E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    5.9982       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.2265       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10154E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.3176       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.6546       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .43892E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.9810       1.0000         .10000E-03   10000.    
    21 'Prefactor '    17.090       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0985       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0265       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=   7886.063     FROM MIGRAD    STATUS=CONVERGED    522 CALLS     2552 TOTAL
                     EDM=   .49E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.392        .56759E-06** at limit **
   2  Prefactor     .10000E-03    81.343        .57408E-04** at limit **
   3  norm          .10000E-03    .49132        .52776E-09** at limit **
   4  Prefactor     .10000E-03    10.427       -.64456E-06** at limit **
   5  Prefactor     25.011        36.756       -.62363E-06    .12111E-04
   6  Prefactor     8.6110        6.9372       -.42228E-06    .17467E-04
   7  Prefactor     1.1346        36.345       -.37034E-05   -.48168E-03
   8  Prefactor     2.8096        76.899       -.91266E-05    .75167E-06
   9  Prefactor     4.2472        3.9721        .19596E-07    .58607E-04
  10  norm          .35553        2.3271       -.25398E-06    .30558E-03
  11  Prefactor     15.093        8.5831       -.19299E-05   -.41961E-03
  12  Prefactor     .10000E-03    5.0912        .17811E-05** at limit **
  13  norm          5.9983        5.3159        .11022E-05   -.11146E-04
  14  Prefactor     .10000E-03    42.978       -.65335E-05** at limit **
  15  Prefactor     1.2211        3.4688        .12846E-05   -.17642E-02
  16  Prefactor     .10000E-03    103.54       -.64872E-04** at limit **
  17  Prefactor     4.3169        8.0625        .75910E-06   -.21639E-04
  18  Prefactor     2.6521        3.1957       -.26870E-07   -.42566E-04
  19  Prefactor     .10000E-03    121.69        .38868E-06** at limit **
  20  Prefactor     4.9806        4.7730        .35020E-06    .53093E-04
  21  Prefactor     17.078        19.232        .88278E-06   -.11393E-07
  22  Normalizat    1.0986        .18567        .55753E-06   -.10944E-03
  23  Prefactor     1.0264        .11763        .31401E-07   -.15795E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.0109
  Prefactor  = 8.61099
  Prefactor  = 1.13457
  Prefactor  = 2.80957
  Prefactor  = 4.24724
  norm       = 0.35553
  Prefactor  = 15.0933
  Prefactor  = 0.000100003
  norm       = 5.99829
  Prefactor  = 0.0001
  Prefactor  = 1.22114
  Prefactor  = 0.0001
  Prefactor  = 4.31694
  Prefactor  = 2.65212
  Prefactor  = 0.0001
  Prefactor  = 4.98058
  Prefactor  = 17.0783
  Normalizat = 1.0986
  Prefactor  = 1.02645
 **********
 **   18 **HESSE 
 **********

 FCN=   7886.063     FROM HESSE     STATUS=OK           380 CALLS     2932 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.430        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    81.281        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    .73939        .12060E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     25.011        36.684        .80096E-04   -1.4707    
   6  Prefactor     8.6110        6.9346        .13660E-03   -1.5121    
   7  Prefactor     1.1346        48.395        .21893E-02   -1.5495    
   8  Prefactor     2.8096        76.679        .24238E-03   -1.5373    
   9  Prefactor     4.2472        3.9659        .16233E-03   -1.5296    
  10  norm          .35553        14.615        .24955E-02   -1.5589    
  11  Prefactor     15.093        8.4878        .10312E-03   -1.4931    
  12  Prefactor     .10000E-03    14.480        .37714E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          5.9983        5.3151        .16395E-03   -1.5218    
  14  Prefactor     .10000E-03    43.243        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.2211        9.7690        .20327E-02   -1.5487    
  16  Prefactor     .10000E-03    103.69        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.3169        8.0997        .19387E-03   -1.5292    
  18  Prefactor     2.6521        3.1917        .16729E-03   -1.5382    
  19  Prefactor     .10000E-03    126.07        .42441E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.9806        4.7787        .18019E-03   -1.5262    
  21  Prefactor     17.078        19.272        .96884E-04   -1.4881    
  22  Normalizat    1.0986        .21992        .28760E-03   -.89797    
  23  Prefactor     1.0264        .13730        .19941E-03   -.91853    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.78544e-08
Minuit parameter uncertainties:
  1  1.47705e-05
  2  2.63755e-05
  3  2.58421e-06
  4  2.40495e-06
  5  36.7166
  6  6.9352
  7  14.8321
  8  29.3967
  9  3.96612
  10  4.55948
  11  8.48848
  12  0.00041012
  13  5.31548
  14  2.06355e-05
  15  6.90903
  16  0.000175136
  17  8.10178
  18  3.19193
  19  0.000198347
  20  4.77908
  21  19.2787
  22  0.220102
  23  0.137349
Done.

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

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  3.555e-01  4.559e+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

GAL_V02
   Spectrum: PowerLaw
578    Prefactor:  1.026e+00  1.373e-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.099e+00  2.201e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.01
Ra Dec: 324.855 -42.590
Photon Flux Upper Limit: 6.83e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.81e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/641015/likelihoodResults_521856001_522115201_4FGL_J2139.4-4235_daily_bin1090.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) = 7885.9783458
delta logL = 0.08476304139

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7885.92607591
delta logL = 0.1370329273

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2161       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6892       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0818       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0293       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7885.926     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      265 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2176        3.3374        .18417E-03   -.58958E-03
   2  alpha         2.6892        1.3808        .82603E-02   -.31896E-04
   3  Normalizat    1.0819        .20257        .28954E-03   -.41841E-03
   4  Prefactor     1.0292        .13526        .19916E-03   -.85056E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.21762
  alpha      = 2.68915
  Normalizat = 1.08186
  Prefactor  = 1.02921
 **********
 **   18 **HESSE 
 **********

 FCN=   7885.926     FROM HESSE     STATUS=OK            23 CALLS      288 TOTAL
                     EDM=   .81E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2176        3.1498        .73667E-05   -1.5487    
   2  alpha         2.6892        1.3111        .33041E-03    .75734E-01
   3  Normalizat    1.0819        .20276        .57908E-04   -.90337    
   4  Prefactor     1.0292        .13532        .79662E-05   -.91762    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.08826e-10
Minuit parameter uncertainties:
  1  3.15018
  2  1.38065
  3  0.202903
  4  0.13536
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/641015': 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) = 7885.92607562
delta logL = 0.137033222389

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  1.218e+00  3.150e+00  1.000e-04  1.000e+04 ( 1.000e-12)
299        alpha:  2.689e+00  1.381e+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.029e+00  1.354e-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.082e+00  2.029e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
Ra Dec: 324.855 -42.590

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/641015/cmap_HighResolution_521856001_522115201_4FGL_J2139.4-4235_daily_bin1090.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.81e-05', job_status='DONE', photon_flux_upper_limit='6.83e-08', time_completed='2021-09-26 22:05:54.241575', job_id='641015', GAL2='1.03', fit_tolerance='1e-08', EG2='1.08', EG='1.10', time_epoch_completed='1632719154.24', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='1.37e-01', ts2='0.30', photon_index_error='0.00', photon_index='1.93' WHERE bin_id='1090' AND source_name='4FGL J2139.4-4235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 22:05:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0134>
Subject: Job 641015: <4FGL_J2139.4-4235_daily_bin1090> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2139.4-4235_daily_bin1090 324.855 -42.5895 521856001 522115201 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 :                                   770.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             291.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   881 sec.
    Turnaround time :                            932 sec.

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

