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


Performing analysis on: 4FGL_J2139.4-4235_daily_bin1577
RA = 324.855, Dec = -42.5895
tmin = 648086401, tmax = 648345601
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='642893', job_status='RUN', time_executed='2021-09-26 21:58:38.023675', time_epoch_executed='1632718718.02' WHERE source_name='4FGL J2139.4-4235' and cadence='daily' and bin_id='1577'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/642893

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/642893/ft1_4FGL_J2139.4-4235_daily_bin1577.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/642893/ft2_4FGL_J2139.4-4235_daily_bin1577.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/642893/ft1_4FGL_J2139.4-4235_daily_bin1577.fits outfile=/scratch/kocevski/642893/ft1_filteredMKT_4FGL_J2139.4-4235_daily_bin1577.fits ra=324.855 dec=-42.5895 rad=12.0 tmin=648086401.0 tmax=648345601.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 4.22
user 3.99
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/642893/ft2_4FGL_J2139.4-4235_daily_bin1577.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/642893/ft1_filteredMKT_4FGL_J2139.4-4235_daily_bin1577.fits evtable="EVENTS" outfile="/scratch/kocevski/642893/ft1_filtered_4FGL_J2139.4-4235_daily_bin1577.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/642893/ft1_filtered_4FGL_J2139.4-4235_daily_bin1577.fits" evtable="EVENTS" scfile=/scratch/kocevski/642893/ft2_4FGL_J2139.4-4235_daily_bin1577.fits sctable="SC_DATA" outfile=/scratch/kocevski/642893/ltcube_648086401_648345601_4FGL_J2139.4-4235_daily_bin1577.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/642893/ft2_4FGL_J2139.4-4235_daily_bin1577.fits
.....................!
real 12.51
user 12.13
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/642893/ft1_filtered_4FGL_J2139.4-4235_daily_bin1577.fits evtable="EVENTS" scfile=/scratch/kocevski/642893/ft2_4FGL_J2139.4-4235_daily_bin1577.fits sctable="SC_DATA" expcube=/scratch/kocevski/642893/ltcube_648086401_648345601_4FGL_J2139.4-4235_daily_bin1577.fits outfile=/scratch/kocevski/642893/expmap_648086401_648345601_4FGL_J2139.4-4235_daily_bin1577.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/642893/ltcube_648086401_648345601_4FGL_J2139.4-4235_daily_bin1577.fits
.....................!
real 191.30
user 185.55
sys 5.36

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/642893/ft1_filtered_4FGL_J2139.4-4235_daily_bin1577.fits scfile=/scratch/kocevski/642893/ft2_4FGL_J2139.4-4235_daily_bin1577.fits outfile=/scratch/kocevski/642893/cmap_648086401_648345601_4FGL_J2139.4-4235_daily_bin1577.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/642893/ft1_filtered_4FGL_J2139.4-4235_daily_bin1577.fits scfile=/scratch/kocevski/642893/ft2_4FGL_J2139.4-4235_daily_bin1577.fits outfile=/scratch/kocevski/642893/cmap_HighResolution_648086401_648345601_4FGL_J2139.4-4235_daily_bin1577.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.282       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.9228       1.0000         .10000E-03   10000.    
     4 'Prefactor '    48.091       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.4518       1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.219       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.6317       1.0000         .10000E-03   10000.    
    10 'norm      '    3.7650       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.0285       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .99347       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10132E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    14.232       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10295E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.9929       1.0000         .10000E-03   10000.    
    21 'Prefactor '    23.965       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .56559       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0589       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=   4929.592     FROM MIGRAD    STATUS=CONVERGED    523 CALLS     2608 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.283        57.117        .20401E-05    .12328E-04
   2  Prefactor     .10000E-03    38.437       -.92536E-05** at limit **
   3  norm          1.9229        2.0660        .20428E-06    .22450E-04
   4  Prefactor     48.107        30.449       -.65582E-05   -.14211E-03
   5  Prefactor     .10000E-03    36.752        .35185E-05** at limit **
   6  Prefactor     3.4515        7.4122        .80342E-06   -.13663E-02
   7  Prefactor     16.216        22.658        .33342E-05   -.95681E-06
   8  Prefactor     .10000E-03    9.2543        .55461E-06** at limit **
   9  Prefactor     5.6317        5.2704        .32148E-06   -.52928E-04
  10  norm          3.7652        3.6198        .21309E-07   -.82408E-04
  11  Prefactor     1.0284        10.626        .85458E-05   -.12907E-03
  12  Prefactor     .10000E-03    8.2214       -.31940E-07** at limit **
  13  norm          .99367        6.9036        .29471E-07   -.21968E-03
  14  Prefactor     .10000E-03    44.094        .70311E-05** at limit **
  15  Prefactor     14.227        10.525        .53576E-05    .22809E-03
  16  Prefactor     .10004E-03    338.48       -.13033E-04** at limit **
  17  Prefactor     .10000E-03    3.8705       -.17680E-06** at limit **
  18  Prefactor     .10000E-03    2.2710        .19951E-06** at limit **
  19  Prefactor     .10000E-03    11.263       -.20268E-06** at limit **
  20  Prefactor     1.9920        3.2873        .23717E-06   -.29082E-02
  21  Prefactor     23.963        22.722        .12504E-05   -.54269E-05
  22  Normalizat    .56564        .20567       -.77429E-05   -.92588E-04
  23  Prefactor     1.0588        .13875        .17660E-05   -.47051E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.283
  Prefactor  = 0.0001
  norm       = 1.92287
  Prefactor  = 48.1066
  Prefactor  = 0.0001
  Prefactor  = 3.45149
  Prefactor  = 16.216
  Prefactor  = 0.0001
  Prefactor  = 5.63166
  norm       = 3.76516
  Prefactor  = 1.02837
  Prefactor  = 0.0001
  norm       = 0.993669
  Prefactor  = 0.000100001
  Prefactor  = 14.2272
  Prefactor  = 0.000100042
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.99195
  Prefactor  = 23.9635
  Normalizat = 0.565639
  Prefactor  = 1.05882
 **********
 **   18 **HESSE 
 **********

 FCN=   4929.592     FROM HESSE     STATUS=OK           370 CALLS     2978 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.283        57.304        .96343E-04   -1.4876    
   2  Prefactor     .10000E-03    38.444        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.9229        2.0499        .98564E-04   -1.5431    
   4  Prefactor     48.107        30.472        .57823E-04   -1.4320    
   5  Prefactor     .10000E-03    36.858        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.4515        8.2608        .10884E-02   -1.5336    
   7  Prefactor     16.216        22.628        .99451E-04   -1.4902    
   8  Prefactor     .10000E-03    9.2575        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.6317        5.2549        .14622E-03   -1.5233    
  10  norm          3.7652        3.6196        .12572E-03   -1.5320    
  11  Prefactor     1.0284        10.855        .42652E-03   -1.5505    
  12  Prefactor     .10000E-03    8.2924        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .99367        6.9048        .35640E-03   -1.5509    
  14  Prefactor     .10000E-03    43.954        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     14.227        10.547        .10617E-03   -1.4953    
  16  Prefactor     .10004E-03    341.50        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.8885        .13486E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.3635        .20642E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    11.264        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.9920        5.5592        .13256E-02   -1.5426    
  21  Prefactor     23.963        22.770        .81825E-04   -1.4729    
  22  Normalizat    .56564        .23053        .32319E-03   -1.0946    
  23  Prefactor     1.0588        .15697        .17332E-03   -.90794    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.79367e-08
Minuit parameter uncertainties:
  1  57.487
  2  0.000196996
  3  2.04997
  4  30.4821
  5  0.000104407
  6  8.2635
  7  22.6395
  8  5.17711e-06
  9  5.25534
  10  3.61978
  11  6.68355
  12  9.37943e-05
  13  5.23933
  14  0.000339952
  15  10.5485
  16  0.00761425
  17  1.15454e-05
  18  1.59038e-05
  19  1.08411e-06
  20  5.56064
  21  22.7781
  22  0.23092
  23  0.157041
Done.

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

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  3.765e+00  3.620e+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.059e+00  1.570e-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:  5.656e-01  2.309e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.59
Ra Dec: 324.855 -42.590
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 2.28e-08 +/- 2.19e-08
Energy Flux (Fixed Index): 1.61e-05 +/- 1.55e-05

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) = 4929.54918962
delta logL = 0.0431424022809

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4929.49419413
delta logL = 0.0981378974566

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.2498       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.3860       1.0000          .0000       5.0000    
     3 'Normalizat'    .58041       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0554       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.

 FCN=   4929.494     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      215 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.2480        2.4108        .68486E-02   -.18108E-03
   2  alpha         1.3855        .55072        .43566       -.33032E-04
   3  Normalizat    .58040        .18618        .72124E-01    .29202E-04
   4  Prefactor     1.0554        .13395        .39606E-01   -.27507E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.24803
  alpha      = 1.38546
  Normalizat = 0.580403
  Prefactor  = 1.05537
 **********
 **   18 **HESSE 
 **********

 FCN=   4929.494     FROM HESSE     STATUS=OK            33 CALLS      248 TOTAL
                     EDM=   .46E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.2480        3.5212        .10482E-03   -1.5408    
   2  alpha         1.3855        .93355        .16177E-01   -.46208    
   3  Normalizat    .58040        .20918        .31928E-03   -1.0882    
   4  Prefactor     1.0554        .15088        .17359E-03   -.90906    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.60494e-12
Minuit parameter uncertainties:
  1  3.52152
  2  0.962998
  3  0.209464
  4  0.150939
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/642893': 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) = 4929.49419398
delta logL = 0.0981380466255

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  2.248e+00  3.522e+00  1.000e-04  1.000e+04 ( 1.000e-12)
299        alpha:  1.385e+00  9.630e-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:  1.055e+00  1.509e-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:  5.804e-01  2.095e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.79
Ra Dec: 324.855 -42.590
Photon Index (Free Index): 1.39 +/- 0.96
Photon Flux (Free Index): 9.34e-09 +/- 1.61e-08
Energy Flux (Free Index): 2.83e-05 +/- 5.10e-05

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/642893/cmap_HighResolution_648086401_648345601_4FGL_J2139.4-4235_daily_bin1577.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.28e-08', energy_flux2='2.83e-05', photon_flux_error='2.19e-08', dlogl='9.81e-02', energy_flux='1.61e-05', photon_flux2='9.34e-09', job_status='DONE', time_completed='2021-09-26 22:07:49.060461', photon_index_error2='0.96', photon_index2='1.39', ts='4.59', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='5.10e-05', EG='0.57', time_epoch_completed='1632719269.06', return_code='0', job_id='642893', GAL2='1.06', EG2='0.58', return_code2='0', energy_flux_error='1.55e-05', photon_flux_error2='1.61e-08', ts2='4.79', photon_index='1.93' WHERE bin_id='1577' AND source_name='4FGL J2139.4-4235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 22:07:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 642893: <4FGL_J2139.4-4235_daily_bin1577> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2139.4-4235_daily_bin1577 324.855 -42.5895 648086401 648345601 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 :                                   545.04 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             339.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   661 sec.
    Turnaround time :                            751 sec.

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

