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


Performing analysis on: 4FGL_J2139.4-4235_daily_bin720
RA = 324.855, Dec = -42.5895
tmin = 425952001, tmax = 426211201
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='636847', job_status='RUN', time_executed='2021-09-26 21:39:40.565606', time_epoch_executed='1632717580.57' WHERE source_name='4FGL J2139.4-4235' and cadence='daily' and bin_id='720'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/636847

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/636847/ft1_4FGL_J2139.4-4235_daily_bin720.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/636847/ft2_4FGL_J2139.4-4235_daily_bin720.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/636847/ft1_4FGL_J2139.4-4235_daily_bin720.fits outfile=/scratch/kocevski/636847/ft1_filteredMKT_4FGL_J2139.4-4235_daily_bin720.fits ra=324.855 dec=-42.5895 rad=12.0 tmin=425952001.0 tmax=426211201.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.65
user 3.42
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/636847/ft1_filtered_4FGL_J2139.4-4235_daily_bin720.fits" evtable="EVENTS" scfile=/scratch/kocevski/636847/ft2_4FGL_J2139.4-4235_daily_bin720.fits sctable="SC_DATA" outfile=/scratch/kocevski/636847/ltcube_425952001_426211201_4FGL_J2139.4-4235_daily_bin720.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/636847/ft2_4FGL_J2139.4-4235_daily_bin720.fits
.....................!
real 14.01
user 13.65
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/636847/ft1_filtered_4FGL_J2139.4-4235_daily_bin720.fits evtable="EVENTS" scfile=/scratch/kocevski/636847/ft2_4FGL_J2139.4-4235_daily_bin720.fits sctable="SC_DATA" expcube=/scratch/kocevski/636847/ltcube_425952001_426211201_4FGL_J2139.4-4235_daily_bin720.fits outfile=/scratch/kocevski/636847/expmap_425952001_426211201_4FGL_J2139.4-4235_daily_bin720.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/636847/ltcube_425952001_426211201_4FGL_J2139.4-4235_daily_bin720.fits
.....................!
real 191.08
user 186.50
sys 4.17

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/636847/ft1_filtered_4FGL_J2139.4-4235_daily_bin720.fits scfile=/scratch/kocevski/636847/ft2_4FGL_J2139.4-4235_daily_bin720.fits outfile=/scratch/kocevski/636847/cmap_425952001_426211201_4FGL_J2139.4-4235_daily_bin720.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.53
user 0.39
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/636847/ft1_filtered_4FGL_J2139.4-4235_daily_bin720.fits evtable="EVENTS" scfile=/scratch/kocevski/636847/ft2_4FGL_J2139.4-4235_daily_bin720.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/636847/Model_4FGL_J2139.4-4235_daily_bin720.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/636847/ft1_filtered_4FGL_J2139.4-4235_daily_bin720.fits.....................!
real 54.70
user 53.38
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.098       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    4.3058       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    91.313       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .39097E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.014       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.2550       1.0000         .10000E-03   10000.    
    10 'norm      '    5.4238       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.3265       1.0000         .10000E-03   10000.    
    13 'norm      '    3.2756       1.0000         .10000E-03   10000.    
    14 'Prefactor '    24.373       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    14.565       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.8472       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10370E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.8061       1.0000         .10000E-03   10000.    
    21 'Prefactor '    23.217       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .94696       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .89629       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=   7103.007     FROM MIGRAD    STATUS=CONVERGED    510 CALLS     2524 TOTAL
                     EDM=   .82E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.098        21.183       -.71924E-07   -.38633E-06
   2  Prefactor     .10000E-03    38.243        .12324E-05** at limit **
   3  norm          4.3059        1.7450       -.31373E-07   -.15603E-05
   4  Prefactor     .10000E-03    35.507       -.20860E-05** at limit **
   5  Prefactor     91.313        53.289       -.14317E-06    .24196E-05
   6  Prefactor     .10000E-03    4.0593       -.94625E-07** at limit **
   7  Prefactor     14.017        14.469       -.18290E-06    .64890E-05
   8  Prefactor     .10000E-03    7.9473       -.60112E-08** at limit **
   9  Prefactor     3.2562        4.4265       -.16161E-06   -.73634E-04
  10  norm          5.4240        3.1297        .83425E-08    .23474E-04
  11  Prefactor     .10000E-03    3.5848       -.16665E-08** at limit **
  12  Prefactor     6.3268        7.0090       -.65875E-06   -.29977E-04
  13  norm          3.2753        2.5420        .11677E-06   -.12354E-02
  14  Prefactor     24.368        27.637       -.24947E-05   -.70159E-05
  15  Prefactor     .10000E-03    3.2966        .27446E-07** at limit **
  16  Prefactor     .10000E-03    32.914        .75154E-06** at limit **
  17  Prefactor     14.563        10.233        .49326E-06    .13170E-04
  18  Prefactor     6.8442        4.1269        .57571E-07   -.89419E-03
  19  Prefactor     .10000E-03    73.193        .10523E-05** at limit **
  20  Prefactor     2.8058        4.4914       -.97221E-07   -.59990E-04
  21  Prefactor     23.204        26.338       -.49598E-05   -.24076E-04
  22  Normalizat    .94706        .18735        .11925E-05   -.87899E-05
  23  Prefactor     .89627        .11692       -.20342E-06    .88038E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.0975
  Prefactor  = 0.0001
  norm       = 4.3059
  Prefactor  = 0.0001
  Prefactor  = 91.3128
  Prefactor  = 0.0001
  Prefactor  = 14.0172
  Prefactor  = 0.0001
  Prefactor  = 3.25625
  norm       = 5.42397
  Prefactor  = 0.0001
  Prefactor  = 6.32684
  norm       = 3.27526
  Prefactor  = 24.3679
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.5632
  Prefactor  = 6.84419
  Prefactor  = 0.0001
  Prefactor  = 2.80582
  Prefactor  = 23.2042
  Normalizat = 0.947062
  Prefactor  = 0.896265
 **********
 **   18 **HESSE 
 **********

 FCN=   7103.007     FROM HESSE     STATUS=OK           376 CALLS     2900 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.098        21.187        .85208E-04   -1.4767    
   2  Prefactor     .10000E-03    38.282        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.3059        1.7453        .67953E-04   -1.5293    
   4  Prefactor     .10000E-03    36.236        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     91.313        53.281        .42053E-04   -1.3794    
   6  Prefactor     .10000E-03    11.485        .32564E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     14.017        14.454        .10700E-03   -1.4959    
   8  Prefactor     .10000E-03    7.9505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.2562        4.4337        .19423E-03   -1.5347    
  10  norm          5.4240        3.1297        .10990E-03   -1.5242    
  11  Prefactor     .10000E-03    3.6263        .15574E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.3268        7.0074        .15958E-03   -1.5205    
  13  norm          3.2753        4.9055        .11107E-02   -1.5346    
  14  Prefactor     24.368        27.675        .81139E-04   -1.4720    
  15  Prefactor     .10000E-03    3.3425        .14938E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    32.955        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     14.563        10.289        .10495E-03   -1.4945    
  18  Prefactor     6.8442        4.5583        .68908E-03   -1.5185    
  19  Prefactor     .10000E-03    73.631        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.8058        4.4828        .21858E-03   -1.5373    
  21  Prefactor     23.204        26.369        .83131E-04   -1.4744    
  22  Normalizat    .94706        .21657        .28639E-03   -.94826    
  23  Prefactor     .89627        .13486        .19583E-03   -.96272    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37291e-09
Minuit parameter uncertainties:
  1  21.1943
  2  1.84054e-06
  3  1.74534
  4  3.18528e-05
  5  53.3088
  6  8.88915e-06
  7  14.4575
  8  5.57969e-07
  9  4.43411
  10  3.12977
  11  4.21956e-07
  12  7.00828
  13  4.90609
  14  27.69
  15  4.44416e-06
  16  8.78795e-06
  17  10.2903
  18  4.55851
  19  0.000196092
  20  4.48334
  21  26.3817
  22  0.216771
  23  0.134907
Done.

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

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  5.424e+00  3.130e+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:  8.963e-01  1.349e-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:  9.471e-01  2.168e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.69
Ra Dec: 324.855 -42.590
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 3.29e-08 +/- 1.90e-08
Energy Flux (Fixed Index): 2.32e-05 +/- 1.34e-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) = 7101.44060183
delta logL = 1.56652931998

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7101.38115555
delta logL = 1.62597559084

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.3755       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.2450       1.0000          .0000       5.0000    
     3 'Normalizat'    .96179       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89176       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=   7101.381     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      211 TOTAL
                     EDM=   .37E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.3743        2.5648        .48137E-02   -.17422E-03
   2  alpha         1.2449        .28058        .24994       -.37686E-04
   3  Normalizat    .96181        .17194        .45686E-01    .31382E-04
   4  Prefactor     .89175        .11534        .44900E-01   -.21530E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 4.37432
  alpha      = 1.24488
  Normalizat = 0.961809
  Prefactor  = 0.891746
 **********
 **   18 **HESSE 
 **********

 FCN=   7101.381     FROM HESSE     STATUS=OK            33 CALLS      244 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.3743        3.0397        .98692E-04   -1.5290    
   2  alpha         1.2449        .35044        .10478E-01   -.52597    
   3  Normalizat    .96181        .19637        .28437E-03   -.94321    
   4  Prefactor     .89175        .13179        .19622E-03   -.96430    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.97307e-10
Minuit parameter uncertainties:
  1  3.03982
  2  0.351998
  3  0.19652
  4  0.13184
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/636847': 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) = 7101.38115543
delta logL = 1.62597571893

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  4.374e+00  3.040e+00  1.000e-04  1.000e+04 ( 1.000e-12)
299        alpha:  1.245e+00  3.520e-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:  8.917e-01  1.318e-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:  9.618e-01  1.965e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 16.96
Ra Dec: 324.855 -42.590
Photon Index (Free Index): 1.24 +/- 0.35
Photon Flux (Free Index): 1.81e-08 +/- 1.21e-08
Energy Flux (Free Index): 8.31e-05 +/- 7.45e-05

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/636847/cmap_HighResolution_425952001_426211201_4FGL_J2139.4-4235_daily_bin720.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.29e-08', energy_flux2='8.31e-05', photon_flux_error='1.90e-08', dlogl='1.63e+00', energy_flux='2.32e-05', photon_flux2='1.81e-08', job_status='DONE', time_completed='2021-09-26 21:50:32.045261', photon_index_error2='0.35', photon_index2='1.24', ts='13.69', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', energy_flux_error2='7.45e-05', EG='0.95', time_epoch_completed='1632718232.05', return_code='0', job_id='636847', GAL2='0.89', EG2='0.96', return_code2='0', energy_flux_error='1.34e-05', photon_flux_error2='1.21e-08', ts2='16.96', photon_index='1.93' WHERE bin_id='720' AND source_name='4FGL J2139.4-4235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 21:50:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0070>
Subject: Job 636847: <4FGL_J2139.4-4235_daily_bin720> in cluster <slac> Done

Job <4FGL_J2139.4-4235_daily_bin720> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Sep 26 21:35:19 2021
Job was executed on host(s) <bullet0070>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 21:35:57 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:35:57 2021
Terminated at Sun Sep 26 21:50:32 2021
Results reported at Sun Sep 26 21:50:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2139.4-4235_daily_bin720 324.855 -42.5895 425952001 426211201 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 :                                   648.28 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             264.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   875 sec.
    Turnaround time :                            913 sec.

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

