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


Performing analysis on: 4FGL_J2131.0-2746_daily_bin1424
RA = 322.753, Dec = -27.7727
tmin = 608428801, tmax = 608688001
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='543958', job_status='RUN', time_executed='2021-09-26 16:32:48.361342', time_epoch_executed='1632699168.36' WHERE source_name='4FGL J2131.0-2746' and cadence='daily' and bin_id='1424'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/543958

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/543958/ft1_4FGL_J2131.0-2746_daily_bin1424.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/543958/ft2_4FGL_J2131.0-2746_daily_bin1424.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/543958/ft1_4FGL_J2131.0-2746_daily_bin1424.fits outfile=/scratch/kocevski/543958/ft1_filteredMKT_4FGL_J2131.0-2746_daily_bin1424.fits ra=322.753 dec=-27.7727 rad=12.0 tmin=608428801.0 tmax=608688001.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 5.05
user 4.81
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/543958/ft2_4FGL_J2131.0-2746_daily_bin1424.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/543958/ft2_4FGL_J2131.0-2746_daily_bin1424.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/543958/ft1_filteredMKT_4FGL_J2131.0-2746_daily_bin1424.fits evtable="EVENTS" outfile="/scratch/kocevski/543958/ft1_filtered_4FGL_J2131.0-2746_daily_bin1424.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.54
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/543958/ft1_filtered_4FGL_J2131.0-2746_daily_bin1424.fits" evtable="EVENTS" scfile=/scratch/kocevski/543958/ft2_4FGL_J2131.0-2746_daily_bin1424.fits sctable="SC_DATA" outfile=/scratch/kocevski/543958/ltcube_608428801_608688001_4FGL_J2131.0-2746_daily_bin1424.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/543958/ft2_4FGL_J2131.0-2746_daily_bin1424.fits
.....................!
real 12.70
user 12.33
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/543958/ft1_filtered_4FGL_J2131.0-2746_daily_bin1424.fits evtable="EVENTS" scfile=/scratch/kocevski/543958/ft2_4FGL_J2131.0-2746_daily_bin1424.fits sctable="SC_DATA" expcube=/scratch/kocevski/543958/ltcube_608428801_608688001_4FGL_J2131.0-2746_daily_bin1424.fits outfile=/scratch/kocevski/543958/expmap_608428801_608688001_4FGL_J2131.0-2746_daily_bin1424.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/543958/ltcube_608428801_608688001_4FGL_J2131.0-2746_daily_bin1424.fits
.....................!
real 191.63
user 185.88
sys 5.34

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

Setting source of interest to:
4FGL J2131.0-2746 @ 322.753 -27.7727

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/543958/ft1_filtered_4FGL_J2131.0-2746_daily_bin1424.fits scfile=/scratch/kocevski/543958/ft2_4FGL_J2131.0-2746_daily_bin1424.fits outfile=/scratch/kocevski/543958/cmap_608428801_608688001_4FGL_J2131.0-2746_daily_bin1424.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=322.753 yref=-27.7727 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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/543958/ft1_filtered_4FGL_J2131.0-2746_daily_bin1424.fits scfile=/scratch/kocevski/543958/ft2_4FGL_J2131.0-2746_daily_bin1424.fits outfile=/scratch/kocevski/543958/cmap_HighResolution_608428801_608688001_4FGL_J2131.0-2746_daily_bin1424.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=322.753 yref=-27.7727 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/543958/ft1_filtered_4FGL_J2131.0-2746_daily_bin1424.fits evtable="EVENTS" scfile=/scratch/kocevski/543958/ft2_4FGL_J2131.0-2746_daily_bin1424.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/543958/Model_4FGL_J2131.0-2746_daily_bin1424.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/543958/ft1_filtered_4FGL_J2131.0-2746_daily_bin1424.fits.....................!
real 71.27
user 69.78
sys 1.28

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/543958/ft1_filtered_4FGL_J2131.0-2746_daily_bin1424.fits', '/scratch/kocevski/543958/ft2_4FGL_J2131.0-2746_daily_bin1424.fits', expMap='/scratch/kocevski/543958/expmap_608428801_608688001_4FGL_J2131.0-2746_daily_bin1424.fits', expCube='/scratch/kocevski/543958/ltcube_608428801_608688001_4FGL_J2131.0-2746_daily_bin1424.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/543958/Model_4FGL_J2131.0-2746_daily_bin1424.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2131.0-2746'

4FGL J2131.0-2746
   Spectrum: LogParabola
257         norm:  1.458e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
258        alpha:  1.622e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
259         beta:  1.212e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
260           Eb:  2.442e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/543958/ft1_filtered_4FGL_J2131.0-2746_daily_bin1424.fits
Spacecraft file(s): /scratch/kocevski/543958/ft2_4FGL_J2131.0-2746_daily_bin1424.fits
Exposure map: /scratch/kocevski/543958/expmap_608428801_608688001_4FGL_J2131.0-2746_daily_bin1424.fits
Exposure cube: /scratch/kocevski/543958/ltcube_608428801_608688001_4FGL_J2131.0-2746_daily_bin1424.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/543958/Model_4FGL_J2131.0-2746_daily_bin1424.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) = 8729.63159899

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17980E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    49.337       1.0000         .10000E-03   10000.    
     3 'norm      '    .10212E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .18792E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .90452E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .25255E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    6.5857       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.8235       1.0000         .10000E-03   10000.    
    10 'Prefactor '    27.626       1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.926       1.0000         .10000E-03   10000.    
    12 'norm      '    .11647E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.1073       1.0000         .10000E-03   10000.    
    15 'norm      '    2.6835       1.0000         .10000E-03   10000.    
    16 'norm      '    1.3941       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.3294       1.0000         .10000E-03   10000.    
    18 'Prefactor '    22.680       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .98180       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .94340       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5150E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8729.628     FROM MIGRAD    STATUS=CONVERGED    496 CALLS     2514 TOTAL
                     EDM=   .80E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10012E-03    3.2309       -.32242E-06** at limit **
   2  Prefactor     49.291        67.715       -.12840E-05    .74344E-04
   3  norm          .10000E-03    7.7130       -.97047E-10** at limit **
   4  Prefactor     .10001E-03    10.399       -.15321E-05** at limit **
   5  Prefactor     .10273E-03    15.281       -.15001E-05** at limit **
   6  Prefactor     .10000E-03    2.4011       -.54823E-06** at limit **
   7  norm          6.5843        5.6168       -.14945E-06    .23971E-04
   8  Prefactor     .10000E-03    2.8100       -.12910E-06** at limit **
   9  Prefactor     1.8210        3.8301        .12306E-05   -.21788E-02
  10  Prefactor     27.617        14.503        .62301E-06    .13152E-03
  11  Prefactor     13.922        12.492       -.69840E-05   -.37486E-04
  12  norm          .10000E-03    3.1269       -.27865E-06** at limit **
  13  Prefactor     .10000E-03    17.005        .50222E-06** at limit **
  14  Prefactor     4.1180        168.52       -.28115E-04   -.11111E-05
  15  norm          2.6806        3.9414        .43164E-06    .14786E-03
  16  norm          1.3944        .41986        .36988E-07    .87080E-03
  17  Prefactor     2.3294        4.5313       -.94297E-06   -.20910E-02
  18  Prefactor     22.682        15.796       -.10211E-04   -.21616E-04
  19  Normalizat    .98207        .17496        .40066E-05    .43705E-03
  20  Prefactor     .94340        .99782E-01   -.15461E-06    .11432E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100123
  Prefactor  = 49.2913
  norm       = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 0.000102729
  Prefactor  = 0.000100002
  norm       = 6.58426
  Prefactor  = 0.0001
  Prefactor  = 1.82101
  Prefactor  = 27.6169
  Prefactor  = 13.9221
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 4.11803
  norm       = 2.68055
  norm       = 1.39435
  Prefactor  = 2.32944
  Prefactor  = 22.6816
  Normalizat = 0.982072
  Prefactor  = 0.943402
 **********
 **   18 **HESSE 
 **********

 FCN=   8729.628     FROM HESSE     STATUS=OK           317 CALLS     2831 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10012E-03    6.0608        .55942E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     49.291        67.507        .57091E-04   -1.4303    
   3  norm          .10000E-03    7.7205        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10001E-03    91.570        .56577E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10273E-03    19.077        .99874E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    30.073        .27295E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          6.5843        5.6183        .15638E-03   -1.5195    
   8  Prefactor     .10000E-03    2.8407        .15293E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.8210        6.9252        .15459E-02   -1.5438    
  10  Prefactor     27.617        14.468        .76221E-04   -1.4656    
  11  Prefactor     13.922        13.097        .10733E-03   -1.4962    
  12  norm          .10000E-03    8.7988        .31908E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    17.060        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.1180        164.96        .19891E-03   -1.5302    
  15  norm          2.6806        3.9134        .19328E-03   -1.5381    
  16  norm          1.3944        .42182        .29840E-04   -1.5472    
  17  Prefactor     2.3294        5.2889        .13435E-02   -1.5403    
  18  Prefactor     22.682        15.755        .84108E-04   -1.4755    
  19  Normalizat    .98207        .20649        .29853E-03   -.93633    
  20  Prefactor     .94340        .11858        .18194E-03   -.94641    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.88969e-08
Minuit parameter uncertainties:
  1  0.00172847
  2  67.612
  3  4.1781e-06
  4  0.00164436
  5  0.0144363
  6  0.000537305
  7  5.61872
  8  1.08146e-05
  9  6.92826
  10  14.4695
  11  13.0992
  12  7.13835e-05
  13  0.000224598
  14  52.2823
  15  3.9138
  16  0.421822
  17  5.28998
  18  15.7584
  19  0.206662
  20  0.118608
Done.

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

Extracting fit parameters...

4FGL J2131.0-2746
   Spectrum: LogParabola
257         norm:  6.584e+00  5.619e+00  1.000e-04  1.000e+04 ( 1.000e-13)
258        alpha:  1.622e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
259         beta:  1.212e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
260           Eb:  2.442e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
512    Prefactor:  9.434e-01  1.186e-01  0.000e+00  1.000e+01 ( 1.000e+00)
513        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
514        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
511   Normalization:  9.821e-01  2.067e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.70
Ra Dec: 322.753 -27.773
Photon Index (Fixed Index): 1.62 +/- 0.00
Photon Flux (Fixed Index): 1.13e-08 +/- 9.63e-09
Energy Flux (Fixed Index): 2.27e-05 +/- 1.94e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8729.20830136
delta logL = 0.420120974351

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8729.2019102
delta logL = 0.426512132166

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.4955       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3665       1.0000          .0000       5.0000    
     3 'Normalizat'    .96655       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94491       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5150E+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=   8729.202     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      288 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.4962        5.8664        .13690E-03    .78043E-03
   2  alpha         2.3666        .92728        .13566E-01    .78665E-04
   3  Normalizat    .96655        .19540        .30055E-03    .28142E-03
   4  Prefactor     .94491        .11596        .18171E-03    .64283E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.49616
  alpha      = 2.36662
  Normalizat = 0.966549
  Prefactor  = 0.944912
 **********
 **   18 **HESSE 
 **********

 FCN=   8729.202     FROM HESSE     STATUS=OK            25 CALLS      313 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.4962        5.1092        .54761E-05   -1.5284    
   2  alpha         2.3666        .81160        .54264E-03   -.53379E-01
   3  Normalizat    .96655        .19460        .12022E-04   -.94160    
   4  Prefactor     .94491        .11592        .36343E-04   -.94589    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.21219e-10
Minuit parameter uncertainties:
  1  5.10967
  2  0.826622
  3  0.194741
  4  0.115951
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/543958': 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) = 8729.20191013
delta logL = 0.426512201968

Extracting fit parameters...

4FGL J2131.0-2746
   Spectrum: LogParabola
257         norm:  4.496e+00  5.110e+00  1.000e-04  1.000e+04 ( 1.000e-13)
258        alpha:  2.367e+00  8.266e-01  0.000e+00  5.000e+00 ( 1.000e+00)
259         beta:  1.212e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
260           Eb:  2.442e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
512    Prefactor:  9.449e-01  1.160e-01  0.000e+00  1.000e+01 ( 1.000e+00)
513        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
514        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
511   Normalization:  9.665e-01  1.947e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.55
Ra Dec: 322.753 -27.773
Photon Index (Free Index): 2.37 +/- 0.83
Photon Flux (Free Index): 3.02e-08 +/- 3.56e-08
Energy Flux (Free Index): 1.43e-05 +/- 1.06e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/543958/cmap_HighResolution_608428801_608688001_4FGL_J2131.0-2746_daily_bin1424.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.13e-08', energy_flux2='1.43e-05', photon_flux_error='9.63e-09', dlogl='4.27e-01', energy_flux='2.27e-05', photon_flux2='3.02e-08', job_status='DONE', time_completed='2021-09-26 16:45:24.748295', photon_index_error2='0.83', photon_index2='2.37', ts='4.70', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='1.06e-05', EG='0.98', time_epoch_completed='1632699924.75', return_code='0', job_id='543958', GAL2='0.94', EG2='0.97', return_code2='0', energy_flux_error='1.94e-05', photon_flux_error2='3.56e-08', ts2='5.55', photon_index='1.62' WHERE bin_id='1424' AND source_name='4FGL J2131.0-2746' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 16:45:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0300>
Subject: Job 543958: <4FGL_J2131.0-2746_daily_bin1424> in cluster <slac> Done

Job <4FGL_J2131.0-2746_daily_bin1424> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep 26 16:30:55 2021
Job was executed on host(s) <bullet0300>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 16:31:43 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 26 16:31:43 2021
Terminated at Sun Sep 26 16:45:25 2021
Results reported at Sun Sep 26 16:45:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2131.0-2746_daily_bin1424 322.753 -27.7727 608428801 608688001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2131.0-2746 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   670.30 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             287.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   822 sec.
    Turnaround time :                            870 sec.

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

