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


Performing analysis on: 4FGL_J2132.0-5418_daily_bin1595
RA = 323.023, Dec = -54.3125
tmin = 652752001, tmax = 653011201
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='561052', job_status='RUN', time_executed='2021-09-26 17:29:09.135637', time_epoch_executed='1632702549.14' WHERE source_name='4FGL J2132.0-5418' and cadence='daily' and bin_id='1595'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/561052

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/561052/ft1_4FGL_J2132.0-5418_daily_bin1595.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/561052/ft2_4FGL_J2132.0-5418_daily_bin1595.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/561052/ft1_4FGL_J2132.0-5418_daily_bin1595.fits outfile=/scratch/kocevski/561052/ft1_filteredMKT_4FGL_J2132.0-5418_daily_bin1595.fits ra=323.023 dec=-54.3125 rad=12.0 tmin=652752001.0 tmax=653011201.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.20
user 2.97
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/561052/ft2_4FGL_J2132.0-5418_daily_bin1595.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/561052/ft2_4FGL_J2132.0-5418_daily_bin1595.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/561052/ft1_filteredMKT_4FGL_J2132.0-5418_daily_bin1595.fits evtable="EVENTS" outfile="/scratch/kocevski/561052/ft1_filtered_4FGL_J2132.0-5418_daily_bin1595.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.50
user 0.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/561052/ft1_filtered_4FGL_J2132.0-5418_daily_bin1595.fits" evtable="EVENTS" scfile=/scratch/kocevski/561052/ft2_4FGL_J2132.0-5418_daily_bin1595.fits sctable="SC_DATA" outfile=/scratch/kocevski/561052/ltcube_652752001_653011201_4FGL_J2132.0-5418_daily_bin1595.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/561052/ft2_4FGL_J2132.0-5418_daily_bin1595.fits
.....................!
real 16.00
user 15.47
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/561052/ft1_filtered_4FGL_J2132.0-5418_daily_bin1595.fits evtable="EVENTS" scfile=/scratch/kocevski/561052/ft2_4FGL_J2132.0-5418_daily_bin1595.fits sctable="SC_DATA" expcube=/scratch/kocevski/561052/ltcube_652752001_653011201_4FGL_J2132.0-5418_daily_bin1595.fits outfile=/scratch/kocevski/561052/expmap_652752001_653011201_4FGL_J2132.0-5418_daily_bin1595.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/561052/ltcube_652752001_653011201_4FGL_J2132.0-5418_daily_bin1595.fits
.....................!
real 192.40
user 186.20
sys 4.88

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 171 point sources and 0 extended sources

Setting source of interest to:
4FGL J2132.0-5418 @ 323.023 -54.3125

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/561052/ft1_filtered_4FGL_J2132.0-5418_daily_bin1595.fits scfile=/scratch/kocevski/561052/ft2_4FGL_J2132.0-5418_daily_bin1595.fits outfile=/scratch/kocevski/561052/cmap_652752001_653011201_4FGL_J2132.0-5418_daily_bin1595.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=323.023 yref=-54.3125 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.57
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/561052/ft1_filtered_4FGL_J2132.0-5418_daily_bin1595.fits scfile=/scratch/kocevski/561052/ft2_4FGL_J2132.0-5418_daily_bin1595.fits outfile=/scratch/kocevski/561052/cmap_HighResolution_652752001_653011201_4FGL_J2132.0-5418_daily_bin1595.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=323.023 yref=-54.3125 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.58
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/561052/ft1_filtered_4FGL_J2132.0-5418_daily_bin1595.fits evtable="EVENTS" scfile=/scratch/kocevski/561052/ft2_4FGL_J2132.0-5418_daily_bin1595.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/561052/Model_4FGL_J2132.0-5418_daily_bin1595.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/561052/ft1_filtered_4FGL_J2132.0-5418_daily_bin1595.fits......................!
real 35.81
user 34.48
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/561052/ft1_filtered_4FGL_J2132.0-5418_daily_bin1595.fits', '/scratch/kocevski/561052/ft2_4FGL_J2132.0-5418_daily_bin1595.fits', expMap='/scratch/kocevski/561052/expmap_652752001_653011201_4FGL_J2132.0-5418_daily_bin1595.fits', expCube='/scratch/kocevski/561052/ltcube_652752001_653011201_4FGL_J2132.0-5418_daily_bin1595.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/561052/Model_4FGL_J2132.0-5418_daily_bin1595.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2132.0-5418'

4FGL J2132.0-5418
   Spectrum: PowerLaw
293    Prefactor:  6.328e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
294        Index:  2.416e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
295        Scale:  9.216e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/561052/ft1_filtered_4FGL_J2132.0-5418_daily_bin1595.fits
Spacecraft file(s): /scratch/kocevski/561052/ft2_4FGL_J2132.0-5418_daily_bin1595.fits
Exposure map: /scratch/kocevski/561052/expmap_652752001_653011201_4FGL_J2132.0-5418_daily_bin1595.fits
Exposure cube: /scratch/kocevski/561052/ltcube_652752001_653011201_4FGL_J2132.0-5418_daily_bin1595.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/561052/Model_4FGL_J2132.0-5418_daily_bin1595.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) = 3698.08655418

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    23.383       1.0000         .10000E-03   10000.    
     3 'norm      '    3.7535       1.0000         .10000E-03   10000.    
     4 'norm      '    5.2904       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10481E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10412E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    19.997       1.0000         .10000E-03   10000.    
     8 'Prefactor '    86.033       1.0000         .10000E-03   10000.    
     9 'Prefactor '    19.178       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10145E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .44050E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    22.415       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10484E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10435E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    26.763       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11142E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .19040       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .12334E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.9629       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .74529       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5660E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3698.058     FROM MIGRAD    STATUS=CONVERGED    546 CALLS     2579 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.4281       -.18198E-07** at limit **
   2  Prefactor     23.380        28.032       -.11119E-06   -.19946E-05
   3  norm          3.7530        3.9873        .15549E-06   -.23966E-03
   4  norm          5.2902        3.1668       -.52923E-07    .21787E-04
   5  Prefactor     .10000E-03    37.623        .90997E-08** at limit **
   6  Prefactor     .10000E-03    54.489        .17579E-06** at limit **
   7  Prefactor     20.002        22.928       -.87443E-05   -.85112E-04
   8  Prefactor     86.046        93.031        .36431E-05   -.14232E-04
   9  Prefactor     19.170        55.311       -.89083E-06   -.86515E-05
  10  Prefactor     .10000E-03    7.8824        .21655E-06** at limit **
  11  norm          .10000E-03    11.177        .13977E-08** at limit **
  12  norm          .10000E-03    .45042       -.52522E-07** at limit **
  13  Prefactor     .10000E-03    575.91        .21682E-03** at limit **
  14  Prefactor     22.481        34.344       -.30027E-05   -.27854E-03
  15  Prefactor     .10000E-03    5.4003        .20011E-07** at limit **
  16  Prefactor     .10000E-03    157.27        .20225E-05** at limit **
  17  norm          .10000E-03    9.1012        .11885E-07** at limit **
  18  Prefactor     26.769        32.259        .29156E-05   -.30178E-04
  19  Prefactor     .10000E-03    70.114       -.62802E-06** at limit **
  20  Prefactor     .10876E-03    55.547       -.33418E-05** at limit **
  21  Prefactor     .10000E-03    233.68       -.19336E-04** at limit **
  22  Normalizat    1.9631        .36082        .24282E-05   -.15315E-03
  23  Prefactor     .74525        .19486       -.45109E-06   -.27325E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 23.3801
  norm       = 3.75304
  norm       = 5.29018
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.0024
  Prefactor  = 86.0459
  Prefactor  = 19.17
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 22.4805
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 26.7687
  Prefactor  = 0.0001
  Prefactor  = 0.000108758
  Prefactor  = 0.0001
  Normalizat = 1.96311
  Prefactor  = 0.745246
 **********
 **   18 **HESSE 
 **********

 FCN=   3698.058     FROM HESSE     STATUS=OK           370 CALLS     2949 TOTAL
                     EDM=   .97E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.4420        .70942E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     23.380        28.053        .82836E-04   -1.4741    
   3  norm          3.7530        3.9779        .11707E-03   -1.5320    
   4  norm          5.2902        3.1669        .81003E-04   -1.5248    
   5  Prefactor     .10000E-03    37.629        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    54.503        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     20.002        22.997        .89567E-04   -1.4813    
   8  Prefactor     86.046        92.949        .43312E-04   -1.3850    
   9  Prefactor     19.170        55.408        .91458E-04   -1.4832    
  10  Prefactor     .10000E-03    7.9294        .16664E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    11.191        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .86296        .79157E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    577.11        .19372E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     22.481        34.726        .84604E-04   -1.4759    
  15  Prefactor     .10000E-03    5.4198        .13796E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    157.28        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    9.1017        .17919E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     26.769        32.258        .77437E-04   -1.4673    
  19  Prefactor     .10000E-03    70.122        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10876E-03    58.845        .13541       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    233.67        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.9631        .43407        .29266E-03   -.65478    
  23  Prefactor     .74525        .23264        .24903E-03   -1.0178    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.66973e-10
Minuit parameter uncertainties:
  1  1.73914e-06
  2  28.0686
  3  3.97819
  4  3.16695
  5  8.97122e-06
  6  2.07493e-05
  7  23.0071
  8  93.1068
  9  55.5577
  10  6.50844e-05
  11  1.15594e-06
  12  5.05567e-06
  13  0.00143638
  14  34.7574
  15  5.11816e-06
  16  4.32511e-05
  17  1.48624e-06
  18  32.2788
  19  1.60961e-05
  20  0.0454484
  21  1.48319e-05
  22  0.43494
  23  0.232943
Done.

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

Extracting fit parameters...

4FGL J2132.0-5418
   Spectrum: PowerLaw
293    Prefactor:  1.917e+01  5.556e+01  1.000e-04  1.000e+04 ( 1.000e-13)
294        Index:  2.416e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
295        Scale:  9.216e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
563    Prefactor:  7.452e-01  2.329e-01  0.000e+00  1.000e+01 ( 1.000e+00)
564        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
565        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
562   Normalization:  1.963e+00  4.349e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.14
Ra Dec: 323.023 -54.312
Photon Flux Upper Limit: 2.25e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.74e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/561052/likelihoodResults_652752001_653011201_4FGL_J2132.0-5418_daily_bin1595.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) = 3698.05767541
delta logL = 8.78136593201e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3698.05765868
delta logL = 0.000104540135908

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.884       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4371       1.0000          .0000       10.000    
     3 'Normalizat'    1.9624       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74545       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5660E+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=   3698.058     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      259 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.851        61.881        .92167E-04   -.35771E-05
   2  Index         2.4357        1.4060        .12019E-01    .11273E-03
   3  Normalizat    1.9626        .41155        .29269E-03   -.81513E-04
   4  Prefactor     .74549        .23014        .24900E-03    .81659E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.8512
  Index      = 2.43565
  Normalizat = 1.96255
  Prefactor  = 0.745487
 **********
 **   18 **HESSE 
 **********

 FCN=   3698.058     FROM HESSE     STATUS=OK            25 CALLS      284 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.851        59.422        .36867E-05   -1.4839    
   2  Index         2.4357        1.3516        .24037E-02   -.53852    
   3  Normalizat    1.9626        .41199        .58538E-04   -.65492    
   4  Prefactor     .74549        .23024        .99599E-05   -1.0177    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.28111e-10
Minuit parameter uncertainties:
  1  59.6094
  2  1.375
  3  0.412733
  4  0.230532
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/561052': 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) = 3698.0576572
delta logL = 0.000106020929707

Extracting fit parameters...

4FGL J2132.0-5418
   Spectrum: PowerLaw
293    Prefactor:  1.885e+01  5.961e+01  1.000e-04  1.000e+04 ( 1.000e-13)
294        Index:  2.436e+00  1.375e+00  0.000e+00  1.000e+01 (-1.000e+00)
295        Scale:  9.216e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
563    Prefactor:  7.455e-01  2.305e-01  0.000e+00  1.000e+01 ( 1.000e+00)
564        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
565        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
562   Normalization:  1.963e+00  4.127e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.14
Ra Dec: 323.023 -54.312

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/561052/cmap_HighResolution_652752001_653011201_4FGL_J2132.0-5418_daily_bin1595.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.74e-02', job_status='DONE', photon_flux_upper_limit='2.25e-07', time_completed='2021-09-26 17:38:01.529350', job_id='561052', GAL2='0.75', fit_tolerance='1e-08', EG2='1.96', EG='1.96', time_epoch_completed='1632703081.53', return_code2='0', ts='0.14', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='1.06e-04', ts2='0.14', photon_index_error='0.00', photon_index='2.42' WHERE bin_id='1595' AND source_name='4FGL J2132.0-5418' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 17:38:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0161>
Subject: Job 561052: <4FGL_J2132.0-5418_daily_bin1595> in cluster <slac> Done

Job <4FGL_J2132.0-5418_daily_bin1595> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep 26 17:25:35 2021
Job was executed on host(s) <bullet0161>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 17:27:48 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 26 17:27:48 2021
Terminated at Sun Sep 26 17:38:02 2021
Results reported at Sun Sep 26 17:38:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2132.0-5418_daily_bin1595 323.023 -54.3125 652752001 653011201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2132.0-5418 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   520.32 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             248.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   613 sec.
    Turnaround time :                            747 sec.

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

