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


Performing analysis on: 4FGL_J2131.0-2746_daily_bin1328
RA = 322.753, Dec = -27.7727
tmin = 583545601, tmax = 583804801
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='543800', job_status='RUN', time_executed='2021-09-26 16:31:52.040666', time_epoch_executed='1632699112.04' WHERE source_name='4FGL J2131.0-2746' and cadence='daily' and bin_id='1328'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/543800

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/543800/ft1_4FGL_J2131.0-2746_daily_bin1328.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/543800/ft2_4FGL_J2131.0-2746_daily_bin1328.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/543800/ft1_4FGL_J2131.0-2746_daily_bin1328.fits outfile=/scratch/kocevski/543800/ft1_filteredMKT_4FGL_J2131.0-2746_daily_bin1328.fits ra=322.753 dec=-27.7727 rad=12.0 tmin=583545601.0 tmax=583804801.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.49
user 3.26
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/543800/ft1_filtered_4FGL_J2131.0-2746_daily_bin1328.fits" evtable="EVENTS" scfile=/scratch/kocevski/543800/ft2_4FGL_J2131.0-2746_daily_bin1328.fits sctable="SC_DATA" outfile=/scratch/kocevski/543800/ltcube_583545601_583804801_4FGL_J2131.0-2746_daily_bin1328.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/543800/ft2_4FGL_J2131.0-2746_daily_bin1328.fits
.....................!
real 13.24
user 12.89
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/543800/ft1_filtered_4FGL_J2131.0-2746_daily_bin1328.fits evtable="EVENTS" scfile=/scratch/kocevski/543800/ft2_4FGL_J2131.0-2746_daily_bin1328.fits sctable="SC_DATA" expcube=/scratch/kocevski/543800/ltcube_583545601_583804801_4FGL_J2131.0-2746_daily_bin1328.fits outfile=/scratch/kocevski/543800/expmap_583545601_583804801_4FGL_J2131.0-2746_daily_bin1328.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/543800/ltcube_583545601_583804801_4FGL_J2131.0-2746_daily_bin1328.fits
.....................!
real 192.81
user 187.32
sys 4.92

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/543800/ft1_filtered_4FGL_J2131.0-2746_daily_bin1328.fits scfile=/scratch/kocevski/543800/ft2_4FGL_J2131.0-2746_daily_bin1328.fits outfile=/scratch/kocevski/543800/cmap_583545601_583804801_4FGL_J2131.0-2746_daily_bin1328.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.56
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/543800/ft1_filtered_4FGL_J2131.0-2746_daily_bin1328.fits scfile=/scratch/kocevski/543800/ft2_4FGL_J2131.0-2746_daily_bin1328.fits outfile=/scratch/kocevski/543800/cmap_HighResolution_583545601_583804801_4FGL_J2131.0-2746_daily_bin1328.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.56
user 0.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/543800/ft1_filtered_4FGL_J2131.0-2746_daily_bin1328.fits evtable="EVENTS" scfile=/scratch/kocevski/543800/ft2_4FGL_J2131.0-2746_daily_bin1328.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/543800/Model_4FGL_J2131.0-2746_daily_bin1328.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/543800/ft1_filtered_4FGL_J2131.0-2746_daily_bin1328.fits.....................!
real 58.85
user 57.41
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/543800/ft1_filtered_4FGL_J2131.0-2746_daily_bin1328.fits', '/scratch/kocevski/543800/ft2_4FGL_J2131.0-2746_daily_bin1328.fits', expMap='/scratch/kocevski/543800/expmap_583545601_583804801_4FGL_J2131.0-2746_daily_bin1328.fits', expCube='/scratch/kocevski/543800/ltcube_583545601_583804801_4FGL_J2131.0-2746_daily_bin1328.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/543800/Model_4FGL_J2131.0-2746_daily_bin1328.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/543800/ft1_filtered_4FGL_J2131.0-2746_daily_bin1328.fits
Spacecraft file(s): /scratch/kocevski/543800/ft2_4FGL_J2131.0-2746_daily_bin1328.fits
Exposure map: /scratch/kocevski/543800/expmap_583545601_583804801_4FGL_J2131.0-2746_daily_bin1328.fits
Exposure cube: /scratch/kocevski/543800/ltcube_583545601_583804801_4FGL_J2131.0-2746_daily_bin1328.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/543800/Model_4FGL_J2131.0-2746_daily_bin1328.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) = 6501.31587544

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.335       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .13227E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.3708       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.8847       1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.156       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10171E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    12.043       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10464E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.465       1.0000         .10000E-03   10000.    
    15 'norm      '    .10128E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.0091       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .18194E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.3904       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .75106       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.

 FCN=   6501.252     FROM MIGRAD    STATUS=CONVERGED    417 CALLS     1756 TOTAL
                     EDM=   .83E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.337        11.483        .23384E-02   -.30833E-04
   2  Prefactor     .10002E-03    30.805        .90712E-02** at limit **
   3  norm          .10000E-03    12.059        .90712E-02** at limit **
   4  Prefactor     .10001E-03    77.541        .90712E-02** at limit **
   5  Prefactor     .10000E-03    6.5616        .90712E-02** at limit **
   6  Prefactor     5.3720        6.9841        .43352E-02    .53584E-03
   7  norm          .10000E-03    3.1573        .90712E-02** at limit **
   8  Prefactor     .10000E-03    2.9066        .90712E-02** at limit **
   9  Prefactor     7.8886        9.1255        .35699E-02    .14252E-02
  10  Prefactor     10.156        10.425        .31433E-02   -.32267E-03
  11  Prefactor     .10000E-03    10.455        .90712E-02** at limit **
  12  norm          12.042        9.0081        .28858E-02   -.29521E-03
  13  Prefactor     .10012E-03    37.323        .90712E-02** at limit **
  14  Prefactor     10.462        45.909        .30964E-02    .12005E-03
  15  norm          .10000E-03    3.4228        .90712E-02** at limit **
  16  norm          1.0090        .35986        .63025E-02   -.11696E-02
  17  Prefactor     .10018E-03    4.8377        .90712E-01** at limit **
  18  Prefactor     .10000E-03    4.9915        .90712E-02** at limit **
  19  Normalizat    1.3905        .20701        .60969E-01   -.50342E-03
  20  Prefactor     .75099        .11615        .43077E-01   -.64142E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.3369
  Prefactor  = 0.000100019
  norm       = 0.0001
  Prefactor  = 0.000100009
  Prefactor  = 0.0001
  Prefactor  = 5.37203
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.88859
  Prefactor  = 10.1557
  Prefactor  = 0.0001
  norm       = 12.0423
  Prefactor  = 0.000100121
  Prefactor  = 10.4624
  norm       = 0.0001
  norm       = 1.00903
  Prefactor  = 0.000100183
  Prefactor  = 0.0001
  Normalizat = 1.39051
  Prefactor  = 0.750989
 **********
 **   18 **HESSE 
 **********

 FCN=   6501.252     FROM HESSE     STATUS=OK           283 CALLS     2039 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.337        11.481        .93536E-04   -1.4851    
   2  Prefactor     .10002E-03    30.816        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    12.078        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10001E-03    79.694        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.5647        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.3720        6.9767        .17341E-03   -1.5244    
   7  norm          .10000E-03    3.1617        .13992E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.9617        .13423E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.8886        9.1455        .14280E-03   -1.5146    
  10  Prefactor     10.156        10.429        .12573E-03   -1.5070    
  11  Prefactor     .10000E-03    10.508        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          12.042        9.0141        .11543E-03   -1.5014    
  13  Prefactor     .10012E-03    37.369        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     10.462        45.448        .12386E-03   -1.5061    
  15  norm          .10000E-03    3.4990        .29038E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.0090        .35994        .27830E-04   -1.5507    
  17  Prefactor     .10018E-03    42.194        .34126E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.9968        .17593E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.3905        .24348        .26964E-03   -.80903    
  20  Prefactor     .75099        .13674        .20579E-03   -1.0156    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16955e-08
Minuit parameter uncertainties:
  1  11.4826
  2  0.00154859
  3  0.000125409
  4  0.0016725
  5  0.000108904
  6  6.9778
  7  2.74889e-05
  8  5.95723e-05
  9  9.14709
  10  10.4307
  11  0.000105291
  12  9.01509
  13  0.00425497
  14  43.6678
  15  7.27728e-05
  16  0.359945
  17  0.00556722
  18  1.64932e-05
  19  0.243678
  20  0.136799
Done.

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

Extracting fit parameters...

4FGL J2131.0-2746
   Spectrum: LogParabola
257         norm:  1.000e-04  2.749e-05  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:  7.510e-01  1.368e-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:  1.391e+00  2.437e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 322.753 -27.773
Photon Flux Upper Limit: 2.85e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.73e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/543800/likelihoodResults_583545601_583804801_4FGL_J2131.0-2746_daily_bin1328.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) = 6501.25368286
delta logL = -0.00147711782392

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6501.25220574
delta logL = -1.65437086252e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6212       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3905       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75099       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=   6501.252     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      226 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    722.35        .13992E-02** at limit **
   2  alpha         1.6077        2.5183        .17977        .57776E-06
   3  Normalizat    1.3905        .16793        .26964E-03    .42457E-04
   4  Prefactor     .75099        .98019E-01    .20579E-03    .58614E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.00010001
  alpha      = 1.60771
  Normalizat = 1.39051
  Prefactor  = 0.750989
 **********
 **   18 **HESSE 
 **********

 FCN=   6501.252     FROM HESSE     STATUS=OK            23 CALLS      249 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    3.1647        .27985E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6077        4.1036        .71908E-02   -.36496    
   3  Normalizat    1.3905        .23045        .10786E-04   -.80903    
   4  Prefactor     .75099        .13452        .82316E-05   -1.0156    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.12529e-09
Minuit parameter uncertainties:
  1  0.000348897
  2  229.349
  3  0.230619
  4  0.13458
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/543800': 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) = 6501.25220574
delta logL = 4.1554812924e-09

Extracting fit parameters...

4FGL J2131.0-2746
   Spectrum: LogParabola
257         norm:  1.000e-04  3.489e-04  1.000e-04  1.000e+04 ( 1.000e-13)
258        alpha:  1.608e+00  2.293e+02  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:  7.510e-01  1.346e-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:  1.391e+00  2.306e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 322.753 -27.773

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/543800/cmap_HighResolution_583545601_583804801_4FGL_J2131.0-2746_daily_bin1328.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.73e-05', job_status='DONE', photon_flux_upper_limit='2.85e-08', time_completed='2021-09-26 16:41:42.941910', job_id='543800', GAL2='0.75', fit_tolerance='1e-08', EG2='1.39', EG='1.39', time_epoch_completed='1632699702.94', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='4.16e-09', ts2='-0.00', photon_index_error='0.00', photon_index='1.62' WHERE bin_id='1328' AND source_name='4FGL J2131.0-2746' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 16:41:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0161>
Subject: Job 543800: <4FGL_J2131.0-2746_daily_bin1328> in cluster <slac> Done

Job <4FGL_J2131.0-2746_daily_bin1328> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep 26 16:30:41 2021
Job was executed on host(s) <bullet0161>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 16:31:11 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:11 2021
Terminated at Sun Sep 26 16:41:43 2021
Results reported at Sun Sep 26 16:41:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2131.0-2746_daily_bin1328 322.753 -27.7727 583545601 583804801 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 :                                   566.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             299.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   632 sec.
    Turnaround time :                            662 sec.

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

