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


Performing analysis on: 4FGL_J2132.0-5418_daily_bin1198
RA = 323.023, Dec = -54.3125
tmin = 549849601, tmax = 550108801
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='559414', job_status='RUN', time_executed='2021-09-26 17:26:10.069517', time_epoch_executed='1632702370.07' WHERE source_name='4FGL J2132.0-5418' and cadence='daily' and bin_id='1198'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/559414

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/559414/ft1_4FGL_J2132.0-5418_daily_bin1198.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/559414/ft2_4FGL_J2132.0-5418_daily_bin1198.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/559414/ft1_4FGL_J2132.0-5418_daily_bin1198.fits outfile=/scratch/kocevski/559414/ft1_filteredMKT_4FGL_J2132.0-5418_daily_bin1198.fits ra=323.023 dec=-54.3125 rad=12.0 tmin=549849601.0 tmax=550108801.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.06
user 1.88
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/559414/ft1_filtered_4FGL_J2132.0-5418_daily_bin1198.fits" evtable="EVENTS" scfile=/scratch/kocevski/559414/ft2_4FGL_J2132.0-5418_daily_bin1198.fits sctable="SC_DATA" outfile=/scratch/kocevski/559414/ltcube_549849601_550108801_4FGL_J2132.0-5418_daily_bin1198.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/559414/ft2_4FGL_J2132.0-5418_daily_bin1198.fits
.....................!
real 13.36
user 13.01
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/559414/ft1_filtered_4FGL_J2132.0-5418_daily_bin1198.fits evtable="EVENTS" scfile=/scratch/kocevski/559414/ft2_4FGL_J2132.0-5418_daily_bin1198.fits sctable="SC_DATA" expcube=/scratch/kocevski/559414/ltcube_549849601_550108801_4FGL_J2132.0-5418_daily_bin1198.fits outfile=/scratch/kocevski/559414/expmap_549849601_550108801_4FGL_J2132.0-5418_daily_bin1198.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/559414/ltcube_549849601_550108801_4FGL_J2132.0-5418_daily_bin1198.fits
.....................!
real 151.68
user 147.67
sys 3.64

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/559414/ft1_filtered_4FGL_J2132.0-5418_daily_bin1198.fits scfile=/scratch/kocevski/559414/ft2_4FGL_J2132.0-5418_daily_bin1198.fits outfile=/scratch/kocevski/559414/cmap_549849601_550108801_4FGL_J2132.0-5418_daily_bin1198.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.46
user 0.31
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/559414/ft1_filtered_4FGL_J2132.0-5418_daily_bin1198.fits scfile=/scratch/kocevski/559414/ft2_4FGL_J2132.0-5418_daily_bin1198.fits outfile=/scratch/kocevski/559414/cmap_HighResolution_549849601_550108801_4FGL_J2132.0-5418_daily_bin1198.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.49
user 0.32
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/559414/ft1_filtered_4FGL_J2132.0-5418_daily_bin1198.fits evtable="EVENTS" scfile=/scratch/kocevski/559414/ft2_4FGL_J2132.0-5418_daily_bin1198.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/559414/Model_4FGL_J2132.0-5418_daily_bin1198.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/559414/ft1_filtered_4FGL_J2132.0-5418_daily_bin1198.fits.....................!
real 37.36
user 36.22
sys 1.00

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/559414/ft1_filtered_4FGL_J2132.0-5418_daily_bin1198.fits', '/scratch/kocevski/559414/ft2_4FGL_J2132.0-5418_daily_bin1198.fits', expMap='/scratch/kocevski/559414/expmap_549849601_550108801_4FGL_J2132.0-5418_daily_bin1198.fits', expCube='/scratch/kocevski/559414/ltcube_549849601_550108801_4FGL_J2132.0-5418_daily_bin1198.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/559414/Model_4FGL_J2132.0-5418_daily_bin1198.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/559414/ft1_filtered_4FGL_J2132.0-5418_daily_bin1198.fits
Spacecraft file(s): /scratch/kocevski/559414/ft2_4FGL_J2132.0-5418_daily_bin1198.fits
Exposure map: /scratch/kocevski/559414/expmap_549849601_550108801_4FGL_J2132.0-5418_daily_bin1198.fits
Exposure cube: /scratch/kocevski/559414/ltcube_549849601_550108801_4FGL_J2132.0-5418_daily_bin1198.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/559414/Model_4FGL_J2132.0-5418_daily_bin1198.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) = 5773.65598505

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0538       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .58551E-02   1.0000         .10000E-03   10000.    
     3 'norm      '    .18483       1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.2541       1.0000         .10000E-03   10000.    
     8 'Prefactor '    85.491       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    6.1285       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    48.105       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.5922       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.3292       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.6995       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .21279       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0578       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.2935       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=   5773.652     FROM MIGRAD    STATUS=CONVERGED    552 CALLS     2972 TOTAL
                     EDM=   .57E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 15.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0523        3.6755       -.55577E-06    .14422E-03
   2  Prefactor     .10043E-03    218.93       -.48745E-04** at limit **
   3  norm          .17318        2.1709        .34910E-05    .61173E-03
   4  norm          .10000E-03    1.2520        .69888E-07** at limit **
   5  Prefactor     .10000E-03    28.400        .48495E-06** at limit **
   6  Prefactor     .10000E-03    52.716        .41734E-06** at limit **
   7  Prefactor     4.2582        12.789       -.32544E-05    .12274E-03
   8  Prefactor     85.495        61.842        .63745E-06   -.56395E-04
   9  Prefactor     .10000E-03    8.9603        .24753E-07** at limit **
  10  Prefactor     .10000E-03    3.5728        .10141E-06** at limit **
  11  norm          6.1283        6.0994       -.98524E-07   -.43193E-03
  12  norm          .10000E-03    .32376        .77607E-07** at limit **
  13  Prefactor     48.100        49.294        .33174E-07    .69108E-04
  14  Prefactor     .10000E-03    5.6179       -.26176E-07** at limit **
  15  Prefactor     8.5917        4.5946        .40836E-07    .33495E-03
  16  Prefactor     .10000E-03    39.986       -.18054E-06** at limit **
  17  norm          .10000E-03    8.8145       -.11660E-06** at limit **
  18  Prefactor     2.3294        7.4197       -.10087E-05   -.14360E-03
  19  Prefactor     6.6859        23.113        .65721E-05    .82772E-04
  20  Prefactor     .24484        35.618       -.20166E-04    .22296E-04
  21  Prefactor     .10000E-03    29.454       -.79846E-06** at limit **
  22  Normalizat    1.0575        .25927        .16521E-05    .24415E-03
  23  Prefactor     1.2937        .16458       -.74738E-06    .45375E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.05228
  Prefactor  = 0.000100434
  norm       = 0.173184
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.000100001
  Prefactor  = 4.25823
  Prefactor  = 85.4946
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.12827
  norm       = 0.0001
  Prefactor  = 48.0995
  Prefactor  = 0.0001
  Prefactor  = 8.59167
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.32935
  Prefactor  = 6.6859
  Prefactor  = 0.244839
  Prefactor  = 0.000100004
  Normalizat = 1.05751
  Prefactor  = 1.29367
 **********
 **   18 **HESSE 
 **********

 FCN=   5773.652     FROM HESSE     STATUS=OK           378 CALLS     3350 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0523        3.6301        .25009E-03   -1.5503    
   2  Prefactor     .10043E-03    36.617        .11002       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .17318        10.395        .16698E-02   -1.5625    
   4  norm          .10000E-03    1.2791        .83020E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    28.446        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    52.762        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.2582        12.843        .97675E-03   -1.5295    
   8  Prefactor     85.495        61.876        .43448E-04   -1.3856    
   9  Prefactor     .10000E-03    8.9643        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.6163        .14021E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          6.1283        6.1001        .16217E-03   -1.5213    
  12  norm          .10000E-03    .33040        .42176E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     48.100        49.452        .57814E-04   -1.4320    
  14  Prefactor     .10000E-03    5.6481        .17580E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     8.5917        4.6023        .11424E-03   -1.5122    
  16  Prefactor     .10000E-03    39.993        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    9.0513        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.3294        7.4126        .26872E-03   -1.5403    
  19  Prefactor     6.6859        23.651        .15503E-03   -1.5191    
  20  Prefactor     .24484        71.613        .34594E-02   -1.5609    
  21  Prefactor     .10000E-03    29.509        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0575        .29310        .32941E-03   -.91128    
  23  Prefactor     1.2937        .18775        .20531E-03   -.83496    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.4886e-09
Minuit parameter uncertainties:
  1  3.63085
  2  0.00797396
  3  2.68315
  4  3.48877e-06
  5  0.00054889
  6  0.000505886
  7  12.8511
  8  61.9226
  9  2.19502e-06
  10  1.77357e-05
  11  6.10067
  12  1.61377e-06
  13  49.4947
  14  7.89959e-06
  15  4.6025
  16  0.000164544
  17  1.02316e-05
  18  7.41551
  19  23.6843
  20  8.38308
  21  0.000722887
  22  0.293552
  23  0.187847
Done.

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

Extracting fit parameters...

4FGL J2132.0-5418
   Spectrum: PowerLaw
293    Prefactor:  1.000e-04  2.195e-06  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:  1.294e+00  1.878e-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.058e+00  2.936e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 323.023 -54.312
Photon Flux Upper Limit: 6.98e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.40e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/559414/likelihoodResults_549849601_550108801_4FGL_J2132.0-5418_daily_bin1198.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): 102
logL (Free Index) = 5773.65298644
delta logL = -0.000529870944774

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5773.65245746
delta logL = -8.84394466993e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11328E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3958       1.0000          .0000       10.000    
     3 'Normalizat'    1.0577       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2935       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=   5773.652     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      255 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    53.522        .18142E-01** at limit **
   2  Index         1.7878        5.6041        .50000       -.48544E-07
   3  Normalizat    1.0575        .12825E-01    .32941E-03   -.12694E-03
   4  Prefactor     1.2937        .87798E-02    .20531E-03   -.20161E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.78779
  Normalizat = 1.05751
  Prefactor  = 1.29367
 **********
 **   18 **HESSE 
 **********

 FCN=   5773.652     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      284 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    387.07        .25790E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7878        5.8698        .50000       -.69768    
   3  Normalizat    1.0575        .35747E-01    .13176E-04   -.91128    
   4  Prefactor     1.2937        .24473E-01    .41061E-04   -.83496    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.97478e-10
Minuit parameter uncertainties:
  1  3.90213e-06
  2  1110.27
  3  0.0357481
  4  0.0244731
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/559414': 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): 102
logL (Free Index) = 5773.65245513
delta logL = 1.44099976751e-06

Extracting fit parameters...

4FGL J2132.0-5418
   Spectrum: PowerLaw
293    Prefactor:  1.000e-04  3.902e-06  1.000e-04  1.000e+04 ( 1.000e-13)
294        Index:  1.788e+00  1.110e+03  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:  1.294e+00  2.447e-02  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.058e+00  3.575e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/559414/cmap_HighResolution_549849601_550108801_4FGL_J2132.0-5418_daily_bin1198.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.40e-03', job_status='DONE', photon_flux_upper_limit='6.98e-08', time_completed='2021-09-26 17:36:30.389709', job_id='559414', GAL2='1.29', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1632702990.39', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.29', dlogl='1.44e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.42' WHERE bin_id='1198' AND source_name='4FGL J2132.0-5418' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 17:36:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0023>
Subject: Job 559414: <4FGL_J2132.0-5418_daily_bin1198> in cluster <slac> Done

Job <4FGL_J2132.0-5418_daily_bin1198> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep 26 17:20:20 2021
Job was executed on host(s) <bullet0023>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 17:24:29 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:24:29 2021
Terminated at Sun Sep 26 17:36:31 2021
Results reported at Sun Sep 26 17:36:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2132.0-5418_daily_bin1198 323.023 -54.3125 549849601 550108801 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 :                                   525.07 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             307.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   723 sec.
    Turnaround time :                            971 sec.

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

