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


Performing analysis on: 4FGL_J2139.4-4235_daily_bin1268
RA = 324.855, Dec = -42.5895
tmin = 567993601, tmax = 568252801
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='641288', job_status='RUN', time_executed='2021-09-26 21:55:12.538356', time_epoch_executed='1632718512.54' WHERE source_name='4FGL J2139.4-4235' and cadence='daily' and bin_id='1268'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/641288

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/641288/ft1_4FGL_J2139.4-4235_daily_bin1268.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/641288/ft2_4FGL_J2139.4-4235_daily_bin1268.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/641288/ft1_4FGL_J2139.4-4235_daily_bin1268.fits outfile=/scratch/kocevski/641288/ft1_filteredMKT_4FGL_J2139.4-4235_daily_bin1268.fits ra=324.855 dec=-42.5895 rad=12.0 tmin=567993601.0 tmax=568252801.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.36
user 2.14
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/641288/ft1_filtered_4FGL_J2139.4-4235_daily_bin1268.fits" evtable="EVENTS" scfile=/scratch/kocevski/641288/ft2_4FGL_J2139.4-4235_daily_bin1268.fits sctable="SC_DATA" outfile=/scratch/kocevski/641288/ltcube_567993601_568252801_4FGL_J2139.4-4235_daily_bin1268.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/641288/ft2_4FGL_J2139.4-4235_daily_bin1268.fits
.....................!
real 14.27
user 13.73
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/641288/ft1_filtered_4FGL_J2139.4-4235_daily_bin1268.fits evtable="EVENTS" scfile=/scratch/kocevski/641288/ft2_4FGL_J2139.4-4235_daily_bin1268.fits sctable="SC_DATA" expcube=/scratch/kocevski/641288/ltcube_567993601_568252801_4FGL_J2139.4-4235_daily_bin1268.fits outfile=/scratch/kocevski/641288/expmap_567993601_568252801_4FGL_J2139.4-4235_daily_bin1268.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/641288/ltcube_567993601_568252801_4FGL_J2139.4-4235_daily_bin1268.fits
.....................!
real 194.31
user 187.63
sys 5.13

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/641288/ft1_filtered_4FGL_J2139.4-4235_daily_bin1268.fits scfile=/scratch/kocevski/641288/ft2_4FGL_J2139.4-4235_daily_bin1268.fits outfile=/scratch/kocevski/641288/cmap_567993601_568252801_4FGL_J2139.4-4235_daily_bin1268.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/641288/ft1_filtered_4FGL_J2139.4-4235_daily_bin1268.fits scfile=/scratch/kocevski/641288/ft2_4FGL_J2139.4-4235_daily_bin1268.fits outfile=/scratch/kocevski/641288/cmap_HighResolution_567993601_568252801_4FGL_J2139.4-4235_daily_bin1268.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.56
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/641288/ft1_filtered_4FGL_J2139.4-4235_daily_bin1268.fits evtable="EVENTS" scfile=/scratch/kocevski/641288/ft2_4FGL_J2139.4-4235_daily_bin1268.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/641288/Model_4FGL_J2139.4-4235_daily_bin1268.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/641288/ft1_filtered_4FGL_J2139.4-4235_daily_bin1268.fits.....................!
real 44.68
user 42.17
sys 1.36

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    97.254       1.0000         .10000E-03   10000.    
     3 'norm      '    .26360E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.1189       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.1279       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.938       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.1696       1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.968       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    6.3914       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    52.027       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.7694       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.9361       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.3311       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.5619       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .90880       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=   4901.649     FROM MIGRAD    STATUS=CONVERGED    490 CALLS     2495 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    39.736       -.30076E-05** at limit **
   2  Prefactor     97.461        186.59       -.21956E-04    .55599E-05
   3  norm          .10003E-03    2.4118       -.69584E-06** at limit **
   4  Prefactor     .10000E-03    10.451       -.23424E-06** at limit **
   5  Prefactor     5.1046        513.95        .10705E-04    .53461E-05
   6  Prefactor     6.1377        15.718       -.14547E-06   -.36700E-05
   7  Prefactor     .10000E-03    12.714       -.18982E-06** at limit **
   8  Prefactor     17.975        80.066       -.76622E-05   -.56607E-05
   9  Prefactor     5.1709        8.6234        .52161E-06    .16144E-04
  10  norm          .10000E-03    1.8660       -.28438E-07** at limit **
  11  Prefactor     13.971        12.391        .20774E-06    .10767E-04
  12  Prefactor     .10000E-03    4.6498       -.58908E-07** at limit **
  13  norm          6.3907        8.3842        .73786E-06    .32828E-04
  14  Prefactor     .10000E-03    47.293        .33476E-05** at limit **
  15  Prefactor     .10000E-03    6.2908       -.56751E-06** at limit **
  16  Prefactor     51.975        94.574        .81325E-05   -.30719E-05
  17  Prefactor     1.7703        11.044        .94233E-05    .85949E-04
  18  Prefactor     1.9365        3.3116        .43588E-07   -.38133E-05
  19  Prefactor     .10000E-03    14.765        .66099E-06** at limit **
  20  Prefactor     .10000E-03    12.452       -.92941E-06** at limit **
  21  Prefactor     9.3372        25.842       -.47911E-06    .21986E-05
  22  Normalizat    1.5613        .27620       -.27315E-05    .19100E-04
  23  Prefactor     .90918        .16816        .16385E-05   -.50443E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 97.4609
  norm       = 0.000100031
  Prefactor  = 0.0001
  Prefactor  = 5.10459
  Prefactor  = 6.1377
  Prefactor  = 0.0001
  Prefactor  = 17.9754
  Prefactor  = 5.17095
  norm       = 0.0001
  Prefactor  = 13.971
  Prefactor  = 0.0001
  norm       = 6.39072
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 51.9748
  Prefactor  = 1.77028
  Prefactor  = 1.93655
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.33718
  Normalizat = 1.56134
  Prefactor  = 0.909182
 **********
 **   18 **HESSE 
 **********

 FCN=   4901.649     FROM HESSE     STATUS=OK           374 CALLS     2869 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    39.618        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     97.461        186.25        .20380E-03   -1.3730    
   3  norm          .10003E-03    9.9059        .20013E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.454        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.1046        505.31        .17770E-03   -1.5256    
   6  Prefactor     6.1377        15.674        .16218E-03   -1.5212    
   7  Prefactor     .10000E-03    12.719        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     17.975        79.021        .94564E-04   -1.4860    
   9  Prefactor     5.1709        8.5812        .17681E-03   -1.5253    
  10  norm          .10000E-03    1.8717        .93390E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     13.971        12.429        .10717E-03   -1.4960    
  12  Prefactor     .10000E-03    4.6599        .14740E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          6.3907        8.3785        .79381E-03   -1.5202    
  14  Prefactor     .10000E-03    47.348        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.3110        .17149E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     51.975        94.675        .27802E-03   -1.4265    
  17  Prefactor     1.7703        11.121        .15742E-02   -1.5442    
  18  Prefactor     1.9365        3.2914        .16032E-03   -1.5430    
  19  Prefactor     .10000E-03    14.768        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    12.682        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     9.3372        25.937        .13120E-03   -1.5097    
  22  Normalizat    1.5613        .32178        .28484E-03   -.76069    
  23  Prefactor     .90918        .19480        .23718E-03   -.95821    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.23729e-09
Minuit parameter uncertainties:
  1  0.000195358
  2  187.383
  3  0.00111402
  4  2.53579e-06
  5  102.478
  6  15.6848
  7  1.05103e-06
  8  75.5451
  9  8.58328
  10  2.10101e-06
  11  12.4316
  12  4.48165e-06
  13  8.38009
  14  0.000178802
  15  3.82508e-05
  16  94.9505
  17  8.8761
  18  3.29171
  19  5.31916e-06
  20  5.39619e-05
  21  25.9683
  22  0.322206
  23  0.194948
Done.

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

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  1.000e-04  2.101e-06  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.092e-01  1.949e-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.561e+00  3.222e-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: 5.74e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.04e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/641288/likelihoodResults_567993601_568252801_4FGL_J2139.4-4235_daily_bin1268.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) = 4901.65106122
delta logL = -0.00246155273726

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4901.64859967
delta logL = -1.53340806719e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9257       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5613       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90920       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5810E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4901.649     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      241 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    326.83        .93438E-03** at limit **
   2  alpha         1.8250        3.9078        .50000       -.95838E-07
   3  Normalizat    1.5613        .12428        .28484E-03    .30453E-04
   4  Prefactor     .90918        .82260E-01    .23718E-03    .38921E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.825
  Normalizat = 1.56134
  Prefactor  = 0.909183
 **********
 **   18 **HESSE 
 **********

 FCN=   4901.649     FROM HESSE     STATUS=OK            29 CALLS      270 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.1875        .18688E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8250        4.0268        .50000       -.27339    
   3  Normalizat    1.5613        .28897        .11394E-04   -.76069    
   4  Prefactor     .90918        .19130        .94873E-05   -.95821    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.8412e-11
Minuit parameter uncertainties:
  1  1.33184e-06
  2  132.435
  3  0.289274
  4  0.191444
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/641288': 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) = 4901.64859946
delta logL = 2.05603100767e-07

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  1.000e-04  1.332e-06  1.000e-04  1.000e+04 ( 1.000e-12)
299        alpha:  1.825e+00  1.324e+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:  9.092e-01  1.914e-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.561e+00  2.893e-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/641288/cmap_HighResolution_567993601_568252801_4FGL_J2139.4-4235_daily_bin1268.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.04e-05', job_status='DONE', photon_flux_upper_limit='5.74e-08', time_completed='2021-09-26 22:05:42.060213', job_id='641288', GAL2='0.91', fit_tolerance='1e-08', EG2='1.56', EG='1.56', time_epoch_completed='1632719142.06', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='2.06e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.93' WHERE bin_id='1268' AND source_name='4FGL J2139.4-4235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 22:05:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0214>
Subject: Job 641288: <4FGL_J2139.4-4235_daily_bin1268> in cluster <slac> Done

Job <4FGL_J2139.4-4235_daily_bin1268> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep 26 21:50:43 2021
Job was executed on host(s) <bullet0214>, 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:05:42 2021
Results reported at Sun Sep 26 22:05:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2139.4-4235_daily_bin1268 324.855 -42.5895 567993601 568252801 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 :                                   571.29 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             352.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   681 sec.
    Turnaround time :                            899 sec.

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

