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


Performing analysis on: 4FGL_J2131.0-2746_weekly_bin701
RA = 322.753, Dec = -27.7727
tmin = 662947201, tmax = 663552001
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='614634', job_status='RUN', time_executed='2022-01-11 03:11:40.554557', time_epoch_executed='1641899500.55' WHERE source_name='4FGL J2131.0-2746' and cadence='weekly' and bin_id='701'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/614634

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

Retrieving the FT1 file...

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

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

Retrieving 106 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/614634/ft1_4FGL_J2131.0-2746_weekly_bin701.fits


Retrieving the FT1 file...

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

Retrieving 106 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/614634/ft2_4FGL_J2131.0-2746_weekly_bin701.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/614634/ft1_4FGL_J2131.0-2746_weekly_bin701.fits outfile=/scratch/kocevski/614634/ft1_filteredMKT_4FGL_J2131.0-2746_weekly_bin701.fits ra=322.753 dec=-27.7727 rad=12.0 tmin=662947201.0 tmax=663552001.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.80
user 5.50
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/614634/ft2_4FGL_J2131.0-2746_weekly_bin701.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/614634/ft1_filteredMKT_4FGL_J2131.0-2746_weekly_bin701.fits evtable="EVENTS" outfile="/scratch/kocevski/614634/ft1_filtered_4FGL_J2131.0-2746_weekly_bin701.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.37
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/614634/ft1_filtered_4FGL_J2131.0-2746_weekly_bin701.fits" evtable="EVENTS" scfile=/scratch/kocevski/614634/ft2_4FGL_J2131.0-2746_weekly_bin701.fits sctable="SC_DATA" outfile=/scratch/kocevski/614634/ltcube_662947201_663552001_4FGL_J2131.0-2746_weekly_bin701.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/614634/ft2_4FGL_J2131.0-2746_weekly_bin701.fits
.....................!
real 35.77
user 35.26
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/614634/ft1_filtered_4FGL_J2131.0-2746_weekly_bin701.fits evtable="EVENTS" scfile=/scratch/kocevski/614634/ft2_4FGL_J2131.0-2746_weekly_bin701.fits sctable="SC_DATA" expcube=/scratch/kocevski/614634/ltcube_662947201_663552001_4FGL_J2131.0-2746_weekly_bin701.fits outfile=/scratch/kocevski/614634/expmap_662947201_663552001_4FGL_J2131.0-2746_weekly_bin701.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/614634/ltcube_662947201_663552001_4FGL_J2131.0-2746_weekly_bin701.fits
.....................!
real 192.65
user 186.97
sys 5.15

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/614634/ft1_filtered_4FGL_J2131.0-2746_weekly_bin701.fits scfile=/scratch/kocevski/614634/ft2_4FGL_J2131.0-2746_weekly_bin701.fits outfile=/scratch/kocevski/614634/cmap_662947201_663552001_4FGL_J2131.0-2746_weekly_bin701.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.60
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/614634/ft1_filtered_4FGL_J2131.0-2746_weekly_bin701.fits scfile=/scratch/kocevski/614634/ft2_4FGL_J2131.0-2746_weekly_bin701.fits outfile=/scratch/kocevski/614634/cmap_HighResolution_662947201_663552001_4FGL_J2131.0-2746_weekly_bin701.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.59
user 0.40
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/614634/ft1_filtered_4FGL_J2131.0-2746_weekly_bin701.fits evtable="EVENTS" scfile=/scratch/kocevski/614634/ft2_4FGL_J2131.0-2746_weekly_bin701.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/614634/Model_4FGL_J2131.0-2746_weekly_bin701.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/614634/ft1_filtered_4FGL_J2131.0-2746_weekly_bin701.fits.....................!
real 87.62
user 86.15
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6449       1.0000         .10000E-03   10000.    
     2 'Prefactor '    89.597       1.0000         .10000E-03   10000.    
     3 'norm      '    .10167E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.6130       1.0000         .10000E-03   10000.    
     5 'Prefactor '    35.983       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.3045       1.0000         .10000E-03   10000.    
     7 'norm      '    .45824       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10175E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.2321       1.0000         .10000E-03   10000.    
    12 'norm      '    17.098       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    20.991       1.0000         .10000E-03   10000.    
    15 'norm      '    2.6776       1.0000         .10000E-03   10000.    
    16 'norm      '    1.0710       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1718       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0854       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=   11239.35     FROM MIGRAD    STATUS=CONVERGED    398 CALLS     2162 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6463        24.689       -.12157E-05   -.31507E-03
   2  Prefactor     89.535        117.84        .42100E-07   -.27038E-04
   3  norm          .10000E-03    22.943       -.14601E-05** at limit **
   4  Prefactor     4.6132        14.859       -.27592E-07   -.33266E-05
   5  Prefactor     35.981        27.097        .74187E-09   -.83480E-05
   6  Prefactor     5.3050        5.0483       -.17280E-07   -.47868E-04
   7  norm          .45755        1.0642        .67097E-06   -.38161E-02
   8  Prefactor     .10000E-03    10.293       -.23314E-06** at limit **
   9  Prefactor     .10000E-03    2.6123       -.20163E-07** at limit **
  10  Prefactor     .10000E-03    12.622        .19010E-05** at limit **
  11  Prefactor     4.2321        7.0789        .64042E-07   -.29642E-03
  12  norm          17.098        7.5979       -.92641E-07   -.11197E-03
  13  Prefactor     .10000E-03    8.9633        .32040E-05** at limit **
  14  Prefactor     21.020        43.281       -.14432E-05   -.59088E-04
  15  norm          2.6784        4.6936        .10003E-05    .22750E-03
  16  norm          1.0710        .32269       -.16360E-07    .12796E-03
  17  Prefactor     .10000E-03    7.6759        .12697E-05** at limit **
  18  Prefactor     .10000E-03    6.9726        .25505E-06** at limit **
  19  Normalizat    1.1717        .17797       -.22249E-05   -.18771E-03
  20  Prefactor     1.0855        .10849        .12104E-05   -.15438E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.64626
  Prefactor  = 89.5352
  norm       = 0.000100001
  Prefactor  = 4.61317
  Prefactor  = 35.9815
  Prefactor  = 5.30497
  norm       = 0.457555
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 4.23211
  norm       = 17.0982
  Prefactor  = 0.000100004
  Prefactor  = 21.02
  norm       = 2.67837
  norm       = 1.07098
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 1.17167
  Prefactor  = 1.08549
 **********
 **   18 **HESSE 
 **********

 FCN=   11239.35     FROM HESSE     STATUS=OK           295 CALLS     2457 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6463        25.556        .16467E-02   -1.5451    
   2  Prefactor     89.535        117.64        .21225E-03   -1.3813    
   3  norm          .10000E-03    23.055        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.6132        14.839        .18740E-03   -1.5278    
   5  Prefactor     35.981        27.113        .66809E-04   -1.4508    
   6  Prefactor     5.3050        5.0457        .17451E-03   -1.5247    
   7  norm          .45755        5.1441        .22198E-02   -1.5573    
   8  Prefactor     .10000E-03    10.750        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.6288        .16722E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    12.923        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.2321        7.0805        .97937E-03   -1.5296    
  12  norm          17.098        7.5959        .96860E-04   -1.4881    
  13  Prefactor     .10000E-03    9.2193        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     21.020        43.600        .87423E-04   -1.4791    
  15  norm          2.6784        4.6569        .24903E-03   -1.5381    
  16  norm          1.0710        .32222        .29573E-04   -1.5501    
  17  Prefactor     .10000E-03    7.8779        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7.0222        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.1717        .19522        .31535E-03   -.87483    
  20  Prefactor     1.0855        .11971        .20492E-03   -.89932    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.00955e-08
Minuit parameter uncertainties:
  1  12.9789
  2  117.952
  3  0.000269564
  4  14.8509
  5  27.1219
  6  5.04613
  7  3.06835
  8  3.19883e-05
  9  2.10945e-08
  10  0.000275152
  11  7.08188
  12  7.59636
  13  0.000362218
  14  43.6659
  15  4.6575
  16  0.322218
  17  0.000153884
  18  2.4989e-05
  19  0.195343
  20  0.119744
Done.

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

Extracting fit parameters...

4FGL J2131.0-2746
   Spectrum: LogParabola
257         norm:  4.576e-01  3.068e+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:  1.085e+00  1.197e-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.172e+00  1.953e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/614634/likelihoodResults_662947201_663552001_4FGL_J2131.0-2746_weekly_bin701.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) = 11239.2197985
delta logL = 0.128217588595

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11239.2126645
delta logL = 0.135351551335

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .67788       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4863       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1708       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0835       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=   11239.21     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      221 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .67387        19.607        .44249E-01    .18276E-02
   2  alpha         2.4862        3.7055        .41152        .68975E-04
   3  Normalizat    1.1708        .19857E-01    .71286E-01    .15579E-04
   4  Prefactor     1.0836        .12504E-01    .38250E-01   -.49279E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.673867
  alpha      = 2.48617
  Normalizat = 1.17079
  Prefactor  = 1.08359
 **********
 **   18 **HESSE 
 **********

 FCN=   11239.21     FROM HESSE     STATUS=OK            35 CALLS      256 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .67387        15.283        .20613E-02   -1.5544    
   2  alpha         2.4862        3.6706        .30694E-01   -.55318E-02
   3  Normalizat    1.1708        .18489        .31543E-03   -.87510    
   4  Prefactor     1.0836        .11664        .20505E-03   -.89993    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.8256e-08
Minuit parameter uncertainties:
  1  6.41976
  2  4.76873
  3  0.184997
  4  0.116669
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/614634': 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) = 11239.2126603
delta logL = 0.135355751077

Extracting fit parameters...

4FGL J2131.0-2746
   Spectrum: LogParabola
257         norm:  6.739e-01  6.420e+00  1.000e-04  1.000e+04 ( 1.000e-13)
258        alpha:  2.486e+00  4.769e+00  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:  1.084e+00  1.167e-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.171e+00  1.850e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/614634/cmap_HighResolution_662947201_663552001_4FGL_J2131.0-2746_weekly_bin701.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.23e-05', job_status='DONE', photon_flux_upper_limit='2.10e-08', time_completed='2022-01-11 03:25:26.205254', job_id='614634', GAL2='1.08', fit_tolerance='1e-08', EG2='1.17', EG='1.17', time_epoch_completed='1641900326.21', return_code2='0', ts='0.02', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='1.35e-01', ts2='0.30', photon_index_error='0.00', photon_index='1.62' WHERE bin_id='701' AND source_name='4FGL J2131.0-2746' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jan 11 03:25:26 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 614634: <4FGL_J2131.0-2746_weekly_bin701> in cluster <slac> Done

Job <4FGL_J2131.0-2746_weekly_bin701> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Jan 11 03:10:22 2022
Job was executed on host(s) <bullet0030>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jan 11 03:10:35 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jan 11 03:10:35 2022
Terminated at Tue Jan 11 03:25:27 2022
Results reported at Tue Jan 11 03:25:27 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2131.0-2746_weekly_bin701 322.753 -27.7727 662947201 663552001 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 :                                   826.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             343.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   891 sec.
    Turnaround time :                            905 sec.

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

