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


Performing analysis on: 4FGL_J2139.4-4235_daily_bin650
RA = 324.855, Dec = -42.5895
tmin = 407808001, tmax = 408067201
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='636743', job_status='RUN', time_executed='2021-09-26 21:38:02.619699', time_epoch_executed='1632717482.62' WHERE source_name='4FGL J2139.4-4235' and cadence='daily' and bin_id='650'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/636743

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/636743/ft1_4FGL_J2139.4-4235_daily_bin650.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/636743/ft2_4FGL_J2139.4-4235_daily_bin650.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/636743/ft1_4FGL_J2139.4-4235_daily_bin650.fits outfile=/scratch/kocevski/636743/ft1_filteredMKT_4FGL_J2139.4-4235_daily_bin650.fits ra=324.855 dec=-42.5895 rad=12.0 tmin=407808001.0 tmax=408067201.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.16
user 3.90
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/636743/ft1_filtered_4FGL_J2139.4-4235_daily_bin650.fits" evtable="EVENTS" scfile=/scratch/kocevski/636743/ft2_4FGL_J2139.4-4235_daily_bin650.fits sctable="SC_DATA" outfile=/scratch/kocevski/636743/ltcube_407808001_408067201_4FGL_J2139.4-4235_daily_bin650.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/636743/ft2_4FGL_J2139.4-4235_daily_bin650.fits
.....................!
real 13.50
user 13.09
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/636743/ft1_filtered_4FGL_J2139.4-4235_daily_bin650.fits evtable="EVENTS" scfile=/scratch/kocevski/636743/ft2_4FGL_J2139.4-4235_daily_bin650.fits sctable="SC_DATA" expcube=/scratch/kocevski/636743/ltcube_407808001_408067201_4FGL_J2139.4-4235_daily_bin650.fits outfile=/scratch/kocevski/636743/expmap_407808001_408067201_4FGL_J2139.4-4235_daily_bin650.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/636743/ltcube_407808001_408067201_4FGL_J2139.4-4235_daily_bin650.fits
.....................!
real 190.69
user 185.36
sys 4.77

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/636743/ft1_filtered_4FGL_J2139.4-4235_daily_bin650.fits scfile=/scratch/kocevski/636743/ft2_4FGL_J2139.4-4235_daily_bin650.fits outfile=/scratch/kocevski/636743/cmap_407808001_408067201_4FGL_J2139.4-4235_daily_bin650.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.55
user 0.39
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/636743/ft1_filtered_4FGL_J2139.4-4235_daily_bin650.fits evtable="EVENTS" scfile=/scratch/kocevski/636743/ft2_4FGL_J2139.4-4235_daily_bin650.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/636743/Model_4FGL_J2139.4-4235_daily_bin650.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/636743/ft1_filtered_4FGL_J2139.4-4235_daily_bin650.fits.....................!
real 63.58
user 61.24
sys 1.41

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.7965       1.0000         .10000E-03   10000.    
     2 'Prefactor '    16.747       1.0000         .10000E-03   10000.    
     3 'norm      '    3.6373       1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.422       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .93536E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.7827       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .25575E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.5563       1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.011       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .36222E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.3869       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.092       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.397       1.0000         .10000E-03   10000.    
    21 'Prefactor '    30.052       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2601       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .93369       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=   8093.512     FROM MIGRAD    STATUS=CONVERGED    537 CALLS     2599 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.7017        36.872       -.22363E-04   -.39466E-04
   2  Prefactor     16.774        60.179        .55684E-04    .78387E-05
   3  norm          3.6378        2.1041       -.21023E-06   -.73216E-03
   4  Prefactor     11.426        16.122       -.18074E-05   -.25204E-04
   5  Prefactor     .10000E-03    12.112       -.11538E-06** at limit **
   6  Prefactor     .10011E-03    3.7593        .19242E-06** at limit **
   7  Prefactor     .10000E-03    9.0088        .93485E-07** at limit **
   8  Prefactor     4.7838        19.466       -.35107E-05   -.47494E-04
   9  Prefactor     .10000E-03    1.9770        .14987E-06** at limit **
  10  norm          1.5568        2.8046       -.24090E-06   -.66478E-03
  11  Prefactor     15.006        10.347        .15212E-05    .91165E-05
  12  Prefactor     .10000E-03    7.6564       -.27093E-06** at limit **
  13  norm          .97582E-01    4.2859       -.82884E-06    .12627E-03
  14  Prefactor     .10000E-03    33.973        .25232E-04** at limit **
  15  Prefactor     1.3858        8.1532        .36325E-05   -.81712E-03
  16  Prefactor     .10000E-03    37.035       -.24212E-04** at limit **
  17  Prefactor     10.091        8.3302       -.70447E-07   -.21747E-04
  18  Prefactor     .10000E-03    2.1723        .35422E-07** at limit **
  19  Prefactor     .10000E-03    26.294       -.26817E-05** at limit **
  20  Prefactor     10.397        7.1953        .46624E-06   -.13703E-03
  21  Prefactor     30.052        27.090       -.31569E-06   -.92551E-05
  22  Normalizat    1.2602        .19100       -.19707E-05   -.92955E-04
  23  Prefactor     .93352        .11721       -.34020E-06   -.17248E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.70165
  Prefactor  = 16.7739
  norm       = 3.63778
  Prefactor  = 11.4264
  Prefactor  = 0.0001
  Prefactor  = 0.000100113
  Prefactor  = 0.0001
  Prefactor  = 4.78383
  Prefactor  = 0.0001
  norm       = 1.55677
  Prefactor  = 15.0056
  Prefactor  = 0.0001
  norm       = 0.0975815
  Prefactor  = 0.0001
  Prefactor  = 1.38584
  Prefactor  = 0.0001
  Prefactor  = 10.0915
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.3971
  Prefactor  = 30.052
  Normalizat = 1.2602
  Prefactor  = 0.93352
 **********
 **   18 **HESSE 
 **********

 FCN=   8093.512     FROM HESSE     STATUS=OK           394 CALLS     2993 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.7017        37.120        .15390E-03   -1.5190    
   2  Prefactor     16.774        60.097        .97872E-04   -1.4889    
   3  norm          3.6378        2.1014        .93018E-04   -1.5326    
   4  Prefactor     11.426        16.142        .11854E-03   -1.5032    
   5  Prefactor     .10000E-03    12.116        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10011E-03    8.6445        .52615E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.0205        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.7838        19.477        .18397E-03   -1.5270    
   9  Prefactor     .10000E-03    7.0164        .24456E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.5568        2.7717        .19597E-03   -1.5458    
  11  Prefactor     15.006        10.372        .10338E-03   -1.4933    
  12  Prefactor     .10000E-03    7.7573        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .97582E-01    5.0637        .60570E-01   -1.5646    
  14  Prefactor     .10000E-03    34.036        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.3858        8.0648        .36923E-03   -1.5473    
  16  Prefactor     .10000E-03    37.009        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     10.091        8.3371        .12614E-03   -1.5073    
  18  Prefactor     .10000E-03    2.2065        .12942E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    26.311        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     10.397        7.2083        .12426E-03   -1.5063    
  21  Prefactor     30.052        27.175        .73087E-04   -1.4611    
  22  Normalizat    1.2602        .22367        .28474E-03   -.84762    
  23  Prefactor     .93352        .13726        .20897E-03   -.94979    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.06472e-09
Minuit parameter uncertainties:
  1  31.5744
  2  60.3154
  3  2.10145
  4  16.1482
  5  7.85511e-06
  6  0.0019753
  7  6.83616e-06
  8  19.3163
  9  3.4496e-05
  10  2.77194
  11  10.3734
  12  2.34338e-05
  13  1.40528
  14  6.02442e-05
  15  6.68739
  16  7.7929e-05
  17  8.3381
  18  6.48029e-06
  19  2.27575e-05
  20  7.20893
  21  27.1862
  22  0.223841
  23  0.137314
Done.

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

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  1.557e+00  2.772e+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:  9.335e-01  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.260e+00  2.238e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/636743/likelihoodResults_407808001_408067201_4FGL_J2139.4-4235_daily_bin650.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8093.34658597
delta logL = 0.165870732587

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8093.3397303
delta logL = 0.172726406135

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7836       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5626       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2451       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93720       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=   8093.340     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      239 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7837        2.7707        .15594E-03   -.19932E-03
   2  alpha         2.5626        1.0544        .24698E-01    .14178E-03
   3  Normalizat    1.2451        .20970        .28623E-03    .41983E-04
   4  Prefactor     .93720        .13381        .20858E-03    .62845E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.78366
  alpha      = 2.5626
  Normalizat = 1.24512
  Prefactor  = 0.937198
 **********
 **   18 **HESSE 
 **********

 FCN=   8093.340     FROM HESSE     STATUS=OK            25 CALLS      264 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7837        2.6619        .62376E-05   -1.5441    
   2  alpha         2.5626        1.0148        .49396E-02    .25043E-01
   3  Normalizat    1.2451        .20978        .11449E-04   -.85220    
   4  Prefactor     .93720        .13388        .83432E-05   -.94853    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.3912e-11
Minuit parameter uncertainties:
  1  2.66207
  2  1.04503
  3  0.209922
  4  0.133923
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/636743': 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) = 8093.3397303
delta logL = 0.17272640871

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  1.784e+00  2.662e+00  1.000e-04  1.000e+04 ( 1.000e-12)
299        alpha:  2.563e+00  1.045e+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:  9.372e-01  1.339e-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.245e+00  2.099e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.48
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/636743/cmap_HighResolution_407808001_408067201_4FGL_J2139.4-4235_daily_bin650.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.26e-05', job_status='DONE', photon_flux_upper_limit='6.05e-08', time_completed='2021-09-26 21:51:10.824930', job_id='636743', GAL2='0.94', fit_tolerance='1e-08', EG2='1.25', EG='1.26', time_epoch_completed='1632718270.83', return_code2='0', ts='0.48', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='1.73e-01', ts2='0.83', photon_index_error='0.00', photon_index='1.93' WHERE bin_id='650' AND source_name='4FGL J2139.4-4235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 21:51:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0185>
Subject: Job 636743: <4FGL_J2139.4-4235_daily_bin650> in cluster <slac> Done

Job <4FGL_J2139.4-4235_daily_bin650> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Sep 26 21:35:12 2021
Job was executed on host(s) <bullet0185>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 21:35:37 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:37 2021
Terminated at Sun Sep 26 21:51:11 2021
Results reported at Sun Sep 26 21:51:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2139.4-4235_daily_bin650 324.855 -42.5895 407808001 408067201 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 :                                   776.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             265.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   934 sec.
    Turnaround time :                            959 sec.

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

