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


Performing analysis on: 4FGL_J2139.4-4235_daily_bin1140
RA = 324.855, Dec = -42.5895
tmin = 534816001, tmax = 535075201
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='641091', job_status='RUN', time_executed='2021-09-26 21:52:21.752729', time_epoch_executed='1632718341.75' WHERE source_name='4FGL J2139.4-4235' and cadence='daily' and bin_id='1140'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/641091

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/641091/ft1_4FGL_J2139.4-4235_daily_bin1140.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/641091/ft2_4FGL_J2139.4-4235_daily_bin1140.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/641091/ft1_4FGL_J2139.4-4235_daily_bin1140.fits outfile=/scratch/kocevski/641091/ft1_filteredMKT_4FGL_J2139.4-4235_daily_bin1140.fits ra=324.855 dec=-42.5895 rad=12.0 tmin=534816001.0 tmax=535075201.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.62
user 3.33
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/641091/ft1_filtered_4FGL_J2139.4-4235_daily_bin1140.fits" evtable="EVENTS" scfile=/scratch/kocevski/641091/ft2_4FGL_J2139.4-4235_daily_bin1140.fits sctable="SC_DATA" outfile=/scratch/kocevski/641091/ltcube_534816001_535075201_4FGL_J2139.4-4235_daily_bin1140.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/641091/ft2_4FGL_J2139.4-4235_daily_bin1140.fits
.....................!
real 13.49
user 13.07
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/641091/ft1_filtered_4FGL_J2139.4-4235_daily_bin1140.fits evtable="EVENTS" scfile=/scratch/kocevski/641091/ft2_4FGL_J2139.4-4235_daily_bin1140.fits sctable="SC_DATA" expcube=/scratch/kocevski/641091/ltcube_534816001_535075201_4FGL_J2139.4-4235_daily_bin1140.fits outfile=/scratch/kocevski/641091/expmap_534816001_535075201_4FGL_J2139.4-4235_daily_bin1140.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/641091/ltcube_534816001_535075201_4FGL_J2139.4-4235_daily_bin1140.fits
.....................!
real 191.13
user 184.89
sys 5.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/641091/ft1_filtered_4FGL_J2139.4-4235_daily_bin1140.fits scfile=/scratch/kocevski/641091/ft2_4FGL_J2139.4-4235_daily_bin1140.fits outfile=/scratch/kocevski/641091/cmap_534816001_535075201_4FGL_J2139.4-4235_daily_bin1140.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.35
sys 0.19

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/641091/ft1_filtered_4FGL_J2139.4-4235_daily_bin1140.fits scfile=/scratch/kocevski/641091/ft2_4FGL_J2139.4-4235_daily_bin1140.fits outfile=/scratch/kocevski/641091/cmap_HighResolution_534816001_535075201_4FGL_J2139.4-4235_daily_bin1140.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.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    36.527       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11902E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.8338       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10139E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10714E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.6076       1.0000         .10000E-03   10000.    
     7 'Prefactor '    20.028       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10261E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.2072       1.0000         .10000E-03   10000.    
    10 'norm      '    75.288       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .66301E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    5.7610       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .88098       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.4618       1.0000         .10000E-03   10000.    
    19 'Prefactor '    16.131       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10203E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .35216       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .79302       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.2092       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=   8858.602     FROM MIGRAD    STATUS=CONVERGED    939 CALLS     2969 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     36.515        26.106        .66312E-04    .99437E-05
   2  Prefactor     .10000E-03    37.146        .18142E-02** at limit **
   3  norm          2.8330        1.8427        .98282E-04   -.14806E-04
   4  Prefactor     .10000E-03    9.1668        .18142E-02** at limit **
   5  Prefactor     .10000E-03    52.433        .18142E-02** at limit **
   6  Prefactor     7.6073        7.8091        .72697E-03   -.14175E-03
   7  Prefactor     20.045        28.594        .89498E-04    .71135E-05
   8  Prefactor     .10000E-03    22.164        .18142E-02** at limit **
   9  Prefactor     1.2019        3.7747        .30709E-03   -.27247E-04
  10  norm          75.283        10.240        .46275E-04    .14741E-05
  11  Prefactor     .10000E-03    14.383        .35902E-02** at limit **
  12  Prefactor     .10000E-03    2.0388        .13114E-02** at limit **
  13  norm          5.7581        5.6840        .16734E-03    .20382E-05
  14  Prefactor     .10000E-03    12.028        .18142E-02** at limit **
  15  Prefactor     .88229        11.148        .50954E-02    .29403E-03
  16  Prefactor     .10000E-03    77.168        .18142E-02** at limit **
  17  Prefactor     .10000E-03    2.0856        .13242E-02** at limit **
  18  Prefactor     3.4627        2.5024        .12209E-03    .27936E-05
  19  Prefactor     16.136        17.313        .99721E-04    .11400E-05
  20  Prefactor     .10000E-03    4.5200        .18142E-02** at limit **
  21  Prefactor     .20860        16.911        .10718        .19164E-03
  22  Normalizat    .79343        .20946        .34721E-03   -.31367E-04
  23  Prefactor     1.2093        .14150        .20061E-03   -.33140E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 36.5149
  Prefactor  = 0.0001
  norm       = 2.83301
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.60729
  Prefactor  = 20.0454
  Prefactor  = 0.0001
  Prefactor  = 1.20191
  norm       = 75.2834
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.75807
  Prefactor  = 0.0001
  Prefactor  = 0.882292
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.46266
  Prefactor  = 16.1355
  Prefactor  = 0.0001
  Prefactor  = 0.208595
  Normalizat = 0.793427
  Prefactor  = 1.20926
 **********
 **   18 **HESSE 
 **********

 FCN=   8858.602     FROM HESSE     STATUS=OK           358 CALLS     3327 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     36.515        26.106        .13262E-04   -1.4499    
   2  Prefactor     .10000E-03    37.148        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.8330        1.8423        .39313E-05   -1.5371    
   4  Prefactor     .10000E-03    9.1676        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    52.440        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.6073        7.8062        .29079E-04   -1.5156    
   7  Prefactor     20.045        28.603        .35799E-05   -1.4812    
   8  Prefactor     .10000E-03    22.166        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.2019        3.7730        .12283E-04   -1.5489    
  10  norm          75.283        10.240        .18510E-05   -1.3970    
  11  Prefactor     .10000E-03    14.560        .71805E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.0388        .26229E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          5.7581        5.6832        .66935E-05   -1.5228    
  14  Prefactor     .10000E-03    12.029        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .88229        11.104        .20381E-03   -1.5520    
  16  Prefactor     .10000E-03    77.170        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.0858        .26485E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.4627        2.5024        .48834E-05   -1.5336    
  19  Prefactor     16.136        17.316        .39888E-05   -1.4904    
  20  Prefactor     .10000E-03    4.5226        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .20860        16.041        .11131       -1.5617    
  22  Normalizat    .79343        .20893        .13889E-04   -1.0031    
  23  Prefactor     1.2093        .14156        .40123E-04   -.86047    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.58049e-10
Minuit parameter uncertainties:
  1  26.1144
  2  1.43561e-05
  3  1.84236
  4  3.7172e-07
  5  1.4521e-05
  6  7.80723
  7  28.6222
  8  2.4219e-05
  9  3.77379
  10  10.2405
  11  2.7866e-06
  12  1.04205e-07
  13  5.68372
  14  1.01647e-05
  15  6.26106
  16  7.70079e-05
  17  8.4889e-08
  18  2.50244
  19  17.321
  20  1.6788e-06
  21  3.65865
  22  0.209142
  23  0.141606
Done.

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

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  7.528e+01  1.024e+01  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.209e+00  1.416e-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:  7.934e-01  2.091e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 242.09
Ra Dec: 324.855 -42.590
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 4.56e-07 +/- 6.21e-08
Energy Flux (Fixed Index): 3.22e-04 +/- 4.37e-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) = 8858.5178479
delta logL = 0.0837519508896

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8858.50625075
delta logL = 0.0953490967895

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    76.748       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8813       1.0000          .0000       5.0000    
     3 'Normalizat'    .80717       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2038       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=   8858.506     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      202 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          76.748        11.604        .11459E-02   -.14746E-02
   2  alpha         1.8813        .11985        .87372E-01    .43045E-04
   3  Normalizat    .80717        .17988        .77866E-01    .66993E-05
   4  Prefactor     1.2038        .12463        .34543E-01    .19619E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 76.7477
  alpha      = 1.88126
  Normalizat = 0.807167
  Prefactor  = 1.20376
 **********
 **   18 **HESSE 
 **********

 FCN=   8858.506     FROM HESSE     STATUS=OK            29 CALLS      231 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          76.748        10.469        .45836E-04   -1.3954    
   2  alpha         1.8813        .10911        .38290E-03   -.25010    
   3  Normalizat    .80717        .20249        .34469E-03   -.99803    
   4  Prefactor     1.2038        .14065        .20105E-03   -.86216    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.22013e-10
Minuit parameter uncertainties:
  1  10.4692
  2  0.109146
  3  0.20268
  4  0.140698
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/641091': 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) = 8858.50625075
delta logL = 0.0953491018081

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  7.675e+01  1.047e+01  1.000e-04  1.000e+04 ( 1.000e-12)
299        alpha:  1.881e+00  1.091e-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.204e+00  1.407e-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:  8.072e-01  2.027e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 242.82
Ra Dec: 324.855 -42.590
Photon Index (Free Index): 1.88 +/- 0.11
Photon Flux (Free Index): 4.43e-07 +/- 6.58e-08
Energy Flux (Free Index): 3.47e-04 +/- 7.68e-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/641091/cmap_HighResolution_534816001_535075201_4FGL_J2139.4-4235_daily_bin1140.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.56e-07', energy_flux2='3.47e-04', photon_flux_error='6.21e-08', dlogl='9.53e-02', energy_flux='3.22e-04', photon_flux2='4.43e-07', job_status='DONE', time_completed='2021-09-26 22:05:20.046627', photon_index_error2='0.11', photon_index2='1.88', ts='242.09', fit_tolerance='1e-08', GAL='1.21', photon_index_error='0.00', energy_flux_error2='7.68e-05', EG='0.79', time_epoch_completed='1632719120.05', return_code='0', job_id='641091', GAL2='1.20', EG2='0.81', return_code2='0', energy_flux_error='4.37e-05', photon_flux_error2='6.58e-08', ts2='242.82', photon_index='1.93' WHERE bin_id='1140' AND source_name='4FGL J2139.4-4235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 22:05:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 641091: <4FGL_J2139.4-4235_daily_bin1140> in cluster <slac> Done

Job <4FGL_J2139.4-4235_daily_bin1140> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep 26 21:50:28 2021
Job was executed on host(s) <bullet0231>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 21:51:52 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 26 21:51:52 2021
Terminated at Sun Sep 26 22:05:20 2021
Results reported at Sun Sep 26 22:05:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2139.4-4235_daily_bin1140 324.855 -42.5895 534816001 535075201 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 :                                   774.10 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             372.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   808 sec.
    Turnaround time :                            892 sec.

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

