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


Performing analysis on: 4FGL_J2139.4-4235_daily_bin1266
RA = 324.855, Dec = -42.5895
tmin = 567475201, tmax = 567734401
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='641285', job_status='RUN', time_executed='2021-09-26 21:54:46.674753', time_epoch_executed='1632718486.67' WHERE source_name='4FGL J2139.4-4235' and cadence='daily' and bin_id='1266'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/641285

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

Retrieving the FT1 file...

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

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

Retrieving 44 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/641285/ft1_4FGL_J2139.4-4235_daily_bin1266.fits


Retrieving the FT1 file...

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

Retrieving 44 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/641285/ft2_4FGL_J2139.4-4235_daily_bin1266.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/641285/ft1_4FGL_J2139.4-4235_daily_bin1266.fits outfile=/scratch/kocevski/641285/ft1_filteredMKT_4FGL_J2139.4-4235_daily_bin1266.fits ra=324.855 dec=-42.5895 rad=12.0 tmin=567475201.0 tmax=567734401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 2.49
user 2.29
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/641285/ft2_4FGL_J2139.4-4235_daily_bin1266.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/641285/ft1_filteredMKT_4FGL_J2139.4-4235_daily_bin1266.fits evtable="EVENTS" outfile="/scratch/kocevski/641285/ft1_filtered_4FGL_J2139.4-4235_daily_bin1266.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/641285/ft1_filtered_4FGL_J2139.4-4235_daily_bin1266.fits" evtable="EVENTS" scfile=/scratch/kocevski/641285/ft2_4FGL_J2139.4-4235_daily_bin1266.fits sctable="SC_DATA" outfile=/scratch/kocevski/641285/ltcube_567475201_567734401_4FGL_J2139.4-4235_daily_bin1266.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/641285/ft2_4FGL_J2139.4-4235_daily_bin1266.fits
.....................!
real 12.89
user 12.48
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/641285/ft1_filtered_4FGL_J2139.4-4235_daily_bin1266.fits evtable="EVENTS" scfile=/scratch/kocevski/641285/ft2_4FGL_J2139.4-4235_daily_bin1266.fits sctable="SC_DATA" expcube=/scratch/kocevski/641285/ltcube_567475201_567734401_4FGL_J2139.4-4235_daily_bin1266.fits outfile=/scratch/kocevski/641285/expmap_567475201_567734401_4FGL_J2139.4-4235_daily_bin1266.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/641285/ltcube_567475201_567734401_4FGL_J2139.4-4235_daily_bin1266.fits
.....................!
real 191.86
user 185.62
sys 5.10

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/641285/ft1_filtered_4FGL_J2139.4-4235_daily_bin1266.fits scfile=/scratch/kocevski/641285/ft2_4FGL_J2139.4-4235_daily_bin1266.fits outfile=/scratch/kocevski/641285/cmap_567475201_567734401_4FGL_J2139.4-4235_daily_bin1266.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/641285/ft1_filtered_4FGL_J2139.4-4235_daily_bin1266.fits scfile=/scratch/kocevski/641285/ft2_4FGL_J2139.4-4235_daily_bin1266.fits outfile=/scratch/kocevski/641285/cmap_HighResolution_567475201_567734401_4FGL_J2139.4-4235_daily_bin1266.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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/641285/ft1_filtered_4FGL_J2139.4-4235_daily_bin1266.fits evtable="EVENTS" scfile=/scratch/kocevski/641285/ft2_4FGL_J2139.4-4235_daily_bin1266.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/641285/Model_4FGL_J2139.4-4235_daily_bin1266.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/641285/ft1_filtered_4FGL_J2139.4-4235_daily_bin1266.fits.....................!
real 52.61
user 51.00
sys 1.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    4.1646       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.5995       1.0000         .10000E-03   10000.    
     7 'Prefactor '    41.671       1.0000         .10000E-03   10000.    
     8 'Prefactor '    51.693       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.3223       1.0000         .10000E-03   10000.    
    10 'norm      '    3.7156       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.9499       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.0389       1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    18.613       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10391E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    27.209       1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.0156       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .98703       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.2698       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=   6460.920     FROM MIGRAD    STATUS=CONVERGED    480 CALLS     2478 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    21.260        .35141E-06** at limit **
   2  Prefactor     .10000E-03    29.945       -.69254E-05** at limit **
   3  norm          4.1646        2.3442        .24429E-07   -.88256E-04
   4  Prefactor     .10000E-03    22.411        .40052E-05** at limit **
   5  Prefactor     .10000E-03    25.729        .69336E-05** at limit **
   6  Prefactor     4.5975        9.3338        .53966E-06   -.79933E-04
   7  Prefactor     41.668        33.530       -.32170E-05   -.69545E-04
   8  Prefactor     51.686        47.626       -.65067E-05   -.11289E-03
   9  Prefactor     2.3217        5.9893        .63677E-05    .10042E-03
  10  norm          3.7156        4.2789        .20033E-05    .14863E-03
  11  Prefactor     1.9482        3.6823        .15781E-05   -.22820E-02
  12  Prefactor     6.0381        6.3003        .19997E-05    .17330E-03
  13  norm          .10000E-03    4.4609       -.27832E-06** at limit **
  14  Prefactor     18.605        34.313       -.97683E-05   -.10202E-03
  15  Prefactor     .10000E-03    2.3680        .49533E-07** at limit **
  16  Prefactor     .10000E-03    29.771       -.59342E-05** at limit **
  17  Prefactor     .10000E-03    18.712       -.55959E-05** at limit **
  18  Prefactor     .10000E-03    1.4936        .81671E-07** at limit **
  19  Prefactor     27.211        26.828        .20787E-05    .36103E-04
  20  Prefactor     6.0130        7.7067       -.53186E-07   -.58837E-04
  21  Prefactor     .10000E-03    24.383        .72601E-05** at limit **
  22  Normalizat    .98735        .22594       -.65428E-06   -.55713E-04
  23  Prefactor     1.2696        .15109       -.20132E-06   -.99430E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.1646
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.59749
  Prefactor  = 41.6676
  Prefactor  = 51.6856
  Prefactor  = 2.32173
  norm       = 3.71558
  Prefactor  = 1.94823
  Prefactor  = 6.03807
  norm       = 0.0001
  Prefactor  = 18.6048
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.2111
  Prefactor  = 6.01301
  Prefactor  = 0.0001
  Normalizat = 0.987353
  Prefactor  = 1.26956
 **********
 **   18 **HESSE 
 **********

 FCN=   6460.920     FROM HESSE     STATUS=OK           362 CALLS     2840 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    21.265        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    29.953        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.1646        2.3425        .88946E-04   -1.5300    
   4  Prefactor     .10000E-03    22.469        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    25.746        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.5975        9.3017        .18768E-03   -1.5279    
   7  Prefactor     41.668        33.496        .62098E-04   -1.4416    
   8  Prefactor     51.686        47.792        .55782E-04   -1.4269    
   9  Prefactor     2.3217        5.9939        .26916E-03   -1.5403    
  10  norm          3.7156        4.2674        .16860E-03   -1.5322    
  11  Prefactor     1.9482        8.0035        .14860E-02   -1.5429    
  12  Prefactor     6.0381        6.3569        .16339E-03   -1.5216    
  13  norm          .10000E-03    4.4912        .16577E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     18.605        34.511        .92837E-04   -1.4845    
  15  Prefactor     .10000E-03    2.3719        .12078E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    29.770        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    19.385        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.5062        .95884E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     27.211        26.836        .76802E-04   -1.4664    
  20  Prefactor     6.0130        7.7577        .16371E-03   -1.5217    
  21  Prefactor     .10000E-03    24.804        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .98735        .25778        .32834E-03   -.93455    
  23  Prefactor     1.2696        .17130        .20733E-03   -.84217    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.68216e-08
Minuit parameter uncertainties:
  1  1.03706e-05
  2  0.000203527
  3  2.34254
  4  0.000104781
  5  0.000195577
  6  9.30462
  7  33.5107
  8  47.827
  9  5.99547
  10  4.26775
  11  7.89913
  12  6.35756
  13  1.33034e-06
  14  34.5477
  15  3.87844e-06
  16  0.000163674
  17  1.49197e-05
  18  8.55639e-07
  19  26.8479
  20  7.75899
  21  0.00012769
  22  0.2581
  23  0.171377
Done.

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

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  3.716e+00  4.268e+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.270e+00  1.714e-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.874e-01  2.581e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.20
Ra Dec: 324.855 -42.590
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 2.25e-08 +/- 2.59e-08
Energy Flux (Fixed Index): 1.59e-05 +/- 1.82e-05

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

Saving results to:
/scratch/kocevski/641285/likelihoodResults_567475201_567734401_4FGL_J2139.4-4235_daily_bin1266.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) = 6460.88081171
delta logL = 0.038722708945

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6460.88019727
delta logL = 0.0393371476557

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.6116       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1208       1.0000          .0000       5.0000    
     3 'Normalizat'    .98364       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2704       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=   6460.880     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      202 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.6141        158.56        .53152E-02    .35252E-03
   2  alpha         2.1213        2.6189        .41766        .22938E-04
   3  Normalizat    .98352        .98527E-01    .74323E-01    .38555E-04
   4  Prefactor     1.2706        .65638E-01    .33146E-01   -.66551E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.61406
  alpha      = 2.12126
  Normalizat = 0.983517
  Prefactor  = 1.27056
 **********
 **   18 **HESSE 
 **********

 FCN=   6460.880     FROM HESSE     STATUS=OK            31 CALLS      233 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.6141        4.1024        .15974E-03   -1.5328    
   2  alpha         2.1213        .69616        .17312E-01   -.15208    
   3  Normalizat    .98352        .23883        .32888E-03   -.93585    
   4  Prefactor     1.2706        .16945        .20724E-03   -.84187    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.77869e-11
Minuit parameter uncertainties:
  1  4.1027
  2  0.705718
  3  0.239091
  4  0.169522
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/641285': 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) = 6460.8801964
delta logL = 0.0393380156011

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  3.614e+00  4.103e+00  1.000e-04  1.000e+04 ( 1.000e-12)
299        alpha:  2.121e+00  7.057e-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.271e+00  1.695e-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.835e-01  2.391e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.28
Ra Dec: 324.855 -42.590
Photon Index (Free Index): 2.12 +/- 0.71
Photon Flux (Free Index): 2.73e-08 +/- 3.25e-08
Energy Flux (Free Index): 1.32e-05 +/- 1.70e-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/641285/cmap_HighResolution_567475201_567734401_4FGL_J2139.4-4235_daily_bin1266.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.06e-05', comment='SUCCESS', photon_flux='2.25e-08', energy_flux2='1.32e-05', photon_flux_error='2.59e-08', dlogl='3.93e-02', energy_flux='1.59e-05', photon_flux2='2.73e-08', job_status='DONE', time_completed='2021-09-26 22:06:03.445855', photon_index_error2='0.71', photon_index2='2.12', ts='1.20', fit_tolerance='1e-08', GAL='1.27', photon_index_error='0.00', photon_flux_upper_limit='8.60e-08', energy_flux_error2='1.70e-05', EG='0.99', time_epoch_completed='1632719163.45', return_code='0', job_id='641285', GAL2='1.27', EG2='0.98', return_code2='0', energy_flux_error='1.82e-05', photon_flux_error2='3.25e-08', ts2='1.28', photon_index='1.93' WHERE bin_id='1266' AND source_name='4FGL J2139.4-4235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 22:06:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0048>
Subject: Job 641285: <4FGL_J2139.4-4235_daily_bin1266> in cluster <slac> Done

Job <4FGL_J2139.4-4235_daily_bin1266> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep 26 21:50:43 2021
Job was executed on host(s) <bullet0048>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 21:54:21 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 26 21:54:21 2021
Terminated at Sun Sep 26 22:06:04 2021
Results reported at Sun Sep 26 22:06:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2139.4-4235_daily_bin1266 324.855 -42.5895 567475201 567734401 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 :                                   658.12 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             328.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   702 sec.
    Turnaround time :                            921 sec.

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

