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


Performing analysis on: 4FGL_J2139.4-4235_daily_bin1456
RA = 324.855, Dec = -42.5895
tmin = 616723201, tmax = 616982401
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='641556', job_status='RUN', time_executed='2021-09-26 21:56:23.818781', time_epoch_executed='1632718583.82' WHERE source_name='4FGL J2139.4-4235' and cadence='daily' and bin_id='1456'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/641556

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/641556/ft1_4FGL_J2139.4-4235_daily_bin1456.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/641556/ft2_4FGL_J2139.4-4235_daily_bin1456.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/641556/ft1_4FGL_J2139.4-4235_daily_bin1456.fits outfile=/scratch/kocevski/641556/ft1_filteredMKT_4FGL_J2139.4-4235_daily_bin1456.fits ra=324.855 dec=-42.5895 rad=12.0 tmin=616723201.0 tmax=616982401.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.54
user 2.35
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/641556/ft1_filtered_4FGL_J2139.4-4235_daily_bin1456.fits" evtable="EVENTS" scfile=/scratch/kocevski/641556/ft2_4FGL_J2139.4-4235_daily_bin1456.fits sctable="SC_DATA" outfile=/scratch/kocevski/641556/ltcube_616723201_616982401_4FGL_J2139.4-4235_daily_bin1456.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/641556/ft2_4FGL_J2139.4-4235_daily_bin1456.fits
.....................!
real 13.27
user 12.95
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/641556/ft1_filtered_4FGL_J2139.4-4235_daily_bin1456.fits evtable="EVENTS" scfile=/scratch/kocevski/641556/ft2_4FGL_J2139.4-4235_daily_bin1456.fits sctable="SC_DATA" expcube=/scratch/kocevski/641556/ltcube_616723201_616982401_4FGL_J2139.4-4235_daily_bin1456.fits outfile=/scratch/kocevski/641556/expmap_616723201_616982401_4FGL_J2139.4-4235_daily_bin1456.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/641556/ltcube_616723201_616982401_4FGL_J2139.4-4235_daily_bin1456.fits
.....................!
real 152.02
user 148.18
sys 3.56

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/641556/ft1_filtered_4FGL_J2139.4-4235_daily_bin1456.fits scfile=/scratch/kocevski/641556/ft2_4FGL_J2139.4-4235_daily_bin1456.fits outfile=/scratch/kocevski/641556/cmap_616723201_616982401_4FGL_J2139.4-4235_daily_bin1456.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.47
user 0.31
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/641556/ft1_filtered_4FGL_J2139.4-4235_daily_bin1456.fits scfile=/scratch/kocevski/641556/ft2_4FGL_J2139.4-4235_daily_bin1456.fits outfile=/scratch/kocevski/641556/cmap_HighResolution_616723201_616982401_4FGL_J2139.4-4235_daily_bin1456.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.50
user 0.34
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/641556/ft1_filtered_4FGL_J2139.4-4235_daily_bin1456.fits evtable="EVENTS" scfile=/scratch/kocevski/641556/ft2_4FGL_J2139.4-4235_daily_bin1456.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/641556/Model_4FGL_J2139.4-4235_daily_bin1456.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/641556/ft1_filtered_4FGL_J2139.4-4235_daily_bin1456.fits....................!
real 12.41
user 11.30
sys 1.09

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.0685       1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.455       1.0000         .10000E-03   10000.    
     3 'norm      '   10000.0       1.0000         .10000E-03   10000.    
     4 'Prefactor '    129.06       1.0000         .10000E-03   10000.    
     5 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     6 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .95010E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .62987E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .17658E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    26.824       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10222E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10186E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10683E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10458E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    20.068       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    42.547       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    44.703       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    23 'Prefactor '    .78517       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   250.2052     FROM MIGRAD    STATUS=FAILED      1176 CALLS     3609 TOTAL
                     EDM=   .31E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9546.3        5612.3        .11579E-01   -.67920E-04
   2  Prefactor    10000.0        5268.0        .56752E-02** at limit **
   3  norm         10000.0        7206.0        .20370E-02** at limit **
   4  Prefactor    10000.0        7804.3        .17720E-01** at limit **
   5  Prefactor    10000.0        8176.5        .20565E-02** at limit **
   6  Prefactor     10000.        1727.7        .19089E-02** at limit **
   7  Prefactor     .10001E-03    9828.4        .18975E-02** at limit **
   8  Prefactor     .10000E-03    7027.0        .21038E-02** at limit **
   9  Prefactor     .10000E-03    461.04        .18142E-02** at limit **
  10  norm          .10000E-03    75.533        .13457E-02** at limit **
  11  Prefactor     26.857        142.71        .77350E-04   -.33024E-05
  12  Prefactor     .10000E-03    264.77        .18142E-02** at limit **
  13  norm          .10000E-03    50.452        .10992E-02** at limit **
  14  Prefactor     .10000E-03    94.562        .15062E-02** at limit **
  15  Prefactor     .10000E-03    20.231        .69577E-03** at limit **
  16  Prefactor     .10000E-03    252.07        .18142E-02** at limit **
  17  Prefactor     20.075        31.255        .89410E-04   -.35921E-05
  18  Prefactor     .10000E-03    12.912        .55072E-03** at limit **
  19  Prefactor     42.313        107.75        .61459E-04   -.30811E-05
  20  Prefactor     .10000E-03    5.5472        .36417E-03** at limit **
  21  Prefactor     44.672        73.294        .59964E-04   -.52374E-05
  22  Normalizat    .10000E-01    .30094        .52006E-02** at limit **
  23  Prefactor     .78478        .36633        .17258E-03   -.80341E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   250.2052     FROM SIMPLEX   STATUS=PROGRESS    1211 CALLS     4820 TOTAL
                     EDM=   .19E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor    10000.0        5612.3        .18532E-05    1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor    10000.0        5268.0        .37981E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm         10000.0        7206.0        .10443E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor    10000.0        7804.3        .56154E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor    10000.0        8176.5        .31337E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     10000.        1727.7        .42319E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10001E-03    9828.4        .52926E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7027.0        .36437E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    461.04        .16405E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    75.533        .93630E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     26.857        142.71        .21137E-06   -1.4671    
  12  Prefactor     .10000E-03    264.77        .37897E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    50.452        .73412E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    94.562        .87087E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    20.231        .42234E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    252.07        .11564E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     20.075        31.255        .21343E-06   -1.4812    
  18  Prefactor     .10000E-03    12.912        .35615E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     42.313        107.75        .20759E-06   -1.4406    
  20  Prefactor     .10000E-03    5.5472        .22711E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     44.672        73.294        .20708E-06   -1.4370    
  22  Normalizat    .10000E-01    .30094        .13251E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .78478        .36633        .14452E-06   -1.0029    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   250.2052     FROM MIGRAD    STATUS=CONVERGED    351 CALLS     5171 TOTAL
                     EDM=   .10E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor    10000.0        9918.9        .23157E-01** at limit **
   2  Prefactor     10000.        5268.1        .11350E-02** at limit **
   3  norm          10000.        7206.0        .40739E-03** at limit **
   4  Prefactor     10000.        7804.6        .35440E-02** at limit **
   5  Prefactor     10000.        8176.5        .41130E-03** at limit **
   6  Prefactor     10000.        1727.7        .38177E-03** at limit **
   7  Prefactor     .10000E-03    9828.4        .37950E-03** at limit **
   8  Prefactor     .10000E-03    7027.0        .42076E-03** at limit **
   9  Prefactor     .10000E-03    461.04        .36285E-03** at limit **
  10  norm          .10000E-03    75.533        .26913E-03** at limit **
  11  Prefactor     26.857        142.72        .30940E-05    .91861E-08
  12  Prefactor     .10000E-03    264.77        .36285E-03** at limit **
  13  norm          .10000E-03    50.452        .21983E-03** at limit **
  14  Prefactor     .10000E-03    94.562        .30123E-03** at limit **
  15  Prefactor     .10000E-03    20.231        .13915E-03** at limit **
  16  Prefactor     .10000E-03    252.07        .36285E-03** at limit **
  17  Prefactor     20.075        31.256        .35764E-05    .11921E-07
  18  Prefactor     .10000E-03    12.912        .11014E-03** at limit **
  19  Prefactor     42.312        107.75        .24583E-05   -.86710E-07
  20  Prefactor     .10000E-03    5.5472        .72834E-04** at limit **
  21  Prefactor     44.673        73.297        .23986E-05   -.29624E-07
  22  Normalizat    .10000E-01    .30095        .10401E-02** at limit **
  23  Prefactor     .78479        .36636        .34515E-04   -.16469E-07
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10000
  Prefactor  = 10000
  norm       = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 26.8566
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.0749
  Prefactor  = 0.0001
  Prefactor  = 42.3118
  Prefactor  = 0.0001
  Prefactor  = 44.6726
  Normalizat = 0.01
  Prefactor  = 0.784786
 **********
 **   18 **HESSE 
 **********

 FCN=   250.2052     FROM HESSE     STATUS=OK           346 CALLS     5517 TOTAL
                     EDM=   .10E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor    10000.0        9917.1        .46314E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     10000.        5268.1        .11350E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          10000.        7206.0        .40739E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     10000.        7804.6        .70879E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     10000.        8176.5        .41130E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     10000.        1727.7        .38177E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9828.4        .75899E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7027.0        .84152E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    461.04        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    75.533        .53826E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     26.857        142.68        .30940E-05   -1.4671    
  12  Prefactor     .10000E-03    264.77        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    50.452        .43967E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    94.562        .60247E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    20.231        .27831E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    252.07        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     20.075        31.256        .35764E-05   -1.4812    
  18  Prefactor     .10000E-03    12.912        .22029E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     42.312        108.08        .49167E-06   -1.4406    
  20  Prefactor     .10000E-03    5.5472        .14567E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     44.673        73.344        .47971E-06   -1.4370    
  22  Normalizat    .10000E-01    .30095        .20802E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .78479        .36632        .69030E-05   -1.0029    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01971e-13
Minuit parameter uncertainties:
  1  9.63574
  2  0.000755568
  3  8.90621e-06
  4  0.000732168
  5  1.52846e-05
  6  3.65982e-06
  7  4.31362e-05
  8  2.27719e-06
  9  8.19852e-07
  10  6.1301e-08
  11  124.272
  12  4.25273e-06
  13  1.30632e-07
  14  6.21817e-08
  15  3.3663e-09
  16  2.26634e-07
  17  31.2817
  18  1.0875e-06
  19  108.586
  20  1.2604e-08
  21  73.4922
  22  1.87026e-08
  23  0.367464
Done.

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

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  1.000e-04  6.130e-08  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:  7.848e-01  3.675e-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.000e-02  1.870e-08  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 324.855 -42.590
Photon Flux Upper Limit: 2.47e-06 ph cm-2 s-1
Energy Flux Upper Limit: 1.74e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/641556/likelihoodResults_616723201_616982401_4FGL_J2139.4-4235_daily_bin1456.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) = 250.205264273
delta logL = -6.26987757073e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 250.20520219
delta logL = -6.15216919186e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10119E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8596       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78479       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=   250.2052     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      278 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6762.3        .98844E-02** at limit **
   2  alpha         1.8050        3.7556        .16681       -.83062E-10
   3  Normalizat    .10000E-01    .35754E-01    .51993E-02** at limit **
   4  Prefactor     .78479        .10295        .17257E-03   -.30675E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  alpha      = 1.80497
  Normalizat = 0.01
  Prefactor  = 0.784785
 **********
 **   18 **HESSE 
 **********

 FCN=   250.2052     FROM HESSE     STATUS=OK            23 CALLS      301 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    76.555        .13531E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8050        2.8363        .66724E-02   -.28172    
   3  Normalizat    .10000E-01    .30095        .10399E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .78479        .29945        .69028E-05   -1.0029    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.21434e-11
Minuit parameter uncertainties:
  1  0.000528694
  2  1011.66
  3  1.93101e-07
  4  0.300073
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/641556': 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) = 250.205201567
delta logL = 7.40587324799e-09

Extracting fit parameters...

4FGL J2139.4-4235
   Spectrum: LogParabola
298         norm:  1.000e-04  5.287e-04  1.000e-04  1.000e+04 ( 1.000e-12)
299        alpha:  1.805e+00  1.012e+03  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:  7.848e-01  3.001e-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.000e-02  1.931e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 324.855 -42.590

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/641556/cmap_HighResolution_616723201_616982401_4FGL_J2139.4-4235_daily_bin1456.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.74e-03', job_status='DONE', photon_flux_upper_limit='2.47e-06', time_completed='2021-09-26 22:04:41.977152', job_id='641556', GAL2='0.78', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1632719081.98', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='7.41e-09', ts2='-0.00', photon_index_error='0.00', photon_index='1.93' WHERE bin_id='1456' AND source_name='4FGL J2139.4-4235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 22:04:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0095>
Subject: Job 641556: <4FGL_J2139.4-4235_daily_bin1456> in cluster <slac> Done

Job <4FGL_J2139.4-4235_daily_bin1456> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep 26 21:51:05 2021
Job was executed on host(s) <bullet0095>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 21:55: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:55:57 2021
Terminated at Sun Sep 26 22:04:42 2021
Results reported at Sun Sep 26 22:04:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2139.4-4235_daily_bin1456 324.855 -42.5895 616723201 616982401 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 :                                   279.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             356.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   525 sec.
    Turnaround time :                            817 sec.

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

