/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 2 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 = 7403
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2131.5-0916_daily_bin436
RA = 322.891, Dec = -9.2684
tmin = 352339201, tmax = 352598401
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='547149', job_status='RUN', time_executed='2021-09-26 16:43:45.562514', time_epoch_executed='1632699825.56' WHERE source_name='4FGL J2131.5-0916' and cadence='daily' and bin_id='436'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/547149

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/547149/ft1_4FGL_J2131.5-0916_daily_bin436.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/547149/ft2_4FGL_J2131.5-0916_daily_bin436.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/547149/ft1_4FGL_J2131.5-0916_daily_bin436.fits outfile=/scratch/kocevski/547149/ft1_filteredMKT_4FGL_J2131.5-0916_daily_bin436.fits ra=322.891 dec=-9.2684 rad=12.0 tmin=352339201.0 tmax=352598401.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.24
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/547149/ft2_4FGL_J2131.5-0916_daily_bin436.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/547149/ft2_4FGL_J2131.5-0916_daily_bin436.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/547149/ft1_filteredMKT_4FGL_J2131.5-0916_daily_bin436.fits evtable="EVENTS" outfile="/scratch/kocevski/547149/ft1_filtered_4FGL_J2131.5-0916_daily_bin436.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/547149/ft1_filtered_4FGL_J2131.5-0916_daily_bin436.fits" evtable="EVENTS" scfile=/scratch/kocevski/547149/ft2_4FGL_J2131.5-0916_daily_bin436.fits sctable="SC_DATA" outfile=/scratch/kocevski/547149/ltcube_352339201_352598401_4FGL_J2131.5-0916_daily_bin436.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/547149/ft2_4FGL_J2131.5-0916_daily_bin436.fits
.....................!
real 13.71
user 13.30
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/547149/ft1_filtered_4FGL_J2131.5-0916_daily_bin436.fits evtable="EVENTS" scfile=/scratch/kocevski/547149/ft2_4FGL_J2131.5-0916_daily_bin436.fits sctable="SC_DATA" expcube=/scratch/kocevski/547149/ltcube_352339201_352598401_4FGL_J2131.5-0916_daily_bin436.fits outfile=/scratch/kocevski/547149/expmap_352339201_352598401_4FGL_J2131.5-0916_daily_bin436.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/547149/ltcube_352339201_352598401_4FGL_J2131.5-0916_daily_bin436.fits
.....................!
real 190.58
user 185.03
sys 5.20

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

Setting source of interest to:
4FGL J2131.5-0916 @ 322.891 -9.2684

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/547149/ft1_filtered_4FGL_J2131.5-0916_daily_bin436.fits scfile=/scratch/kocevski/547149/ft2_4FGL_J2131.5-0916_daily_bin436.fits outfile=/scratch/kocevski/547149/cmap_352339201_352598401_4FGL_J2131.5-0916_daily_bin436.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.891 yref=-9.2684 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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/547149/ft1_filtered_4FGL_J2131.5-0916_daily_bin436.fits scfile=/scratch/kocevski/547149/ft2_4FGL_J2131.5-0916_daily_bin436.fits outfile=/scratch/kocevski/547149/cmap_HighResolution_352339201_352598401_4FGL_J2131.5-0916_daily_bin436.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.891 yref=-9.2684 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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/547149/ft1_filtered_4FGL_J2131.5-0916_daily_bin436.fits evtable="EVENTS" scfile=/scratch/kocevski/547149/ft2_4FGL_J2131.5-0916_daily_bin436.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/547149/Model_4FGL_J2131.5-0916_daily_bin436.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/547149/ft1_filtered_4FGL_J2131.5-0916_daily_bin436.fits.....................!
real 67.66
user 66.36
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/547149/ft1_filtered_4FGL_J2131.5-0916_daily_bin436.fits', '/scratch/kocevski/547149/ft2_4FGL_J2131.5-0916_daily_bin436.fits', expMap='/scratch/kocevski/547149/expmap_352339201_352598401_4FGL_J2131.5-0916_daily_bin436.fits', expCube='/scratch/kocevski/547149/ltcube_352339201_352598401_4FGL_J2131.5-0916_daily_bin436.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/547149/Model_4FGL_J2131.5-0916_daily_bin436.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2131.5-0916'

4FGL J2131.5-0916
   Spectrum: PowerLaw
287    Prefactor:  1.196e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
288        Index:  1.989e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
289        Scale:  2.343e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/547149/ft1_filtered_4FGL_J2131.5-0916_daily_bin436.fits
Spacecraft file(s): /scratch/kocevski/547149/ft2_4FGL_J2131.5-0916_daily_bin436.fits
Exposure map: /scratch/kocevski/547149/expmap_352339201_352598401_4FGL_J2131.5-0916_daily_bin436.fits
Exposure cube: /scratch/kocevski/547149/ltcube_352339201_352598401_4FGL_J2131.5-0916_daily_bin436.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/547149/Model_4FGL_J2131.5-0916_daily_bin436.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) = 6827.07239698

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .50912       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10327E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11633E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.1891       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.4367       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .16591E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.8512       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10211E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10815E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .19595       1.0000         .10000E-03   10000.    
    14 'Prefactor '    22.161       1.0000         .10000E-03   10000.    
    15 'Prefactor '    23.204       1.0000         .10000E-03   10000.    
    16 'Prefactor '    13.854       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.3237       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .77187       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5500E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6827.062     FROM MIGRAD    STATUS=CONVERGED    368 CALLS     1769 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55879        2.6969       -.24089E-07   -.71369E-04
   2  Prefactor     .10000E-03    36.946        .38669E-05** at limit **
   3  Prefactor     .10000E-03    42.420       -.16683E-05** at limit **
   4  Prefactor     1.1757        80.414       -.11481E-05   -.37981E-04
   5  Prefactor     4.4204        9.8058        .10945E-05   -.55427E-03
   6  Prefactor     .10000E-03    10.873        .23655E-06** at limit **
   7  Prefactor     .10000E-03    4.2901       -.39789E-07** at limit **
   8  Prefactor     4.8500        2.6749        .11800E-06   -.13522E-02
   9  Prefactor     .10000E-03    31.873       -.28748E-05** at limit **
  10  Prefactor     .10000E-03    33.893        .11642E-05** at limit **
  11  Prefactor     .10000E-03    13.905        .18625E-06** at limit **
  12  norm          .10000E-03    1.7636       -.27445E-08** at limit **
  13  Prefactor     .19328        5.9608       -.71063E-06    .66669E-04
  14  Prefactor     22.172        15.554        .36665E-06    .29228E-04
  15  Prefactor     23.216        20.158        .32363E-05    .21530E-03
  16  Prefactor     13.857        13.882       -.44018E-06    .27395E-04
  17  Normalizat    1.3239        .21924       -.55520E-06    .10950E-03
  18  Prefactor     .77164        .11155        .61553E-08    .71273E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.558785
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.17567
  Prefactor  = 4.4204
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.84998
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.193283
  Prefactor  = 22.1723
  Prefactor  = 23.2165
  Prefactor  = 13.8572
  Normalizat = 1.32392
  Prefactor  = 0.771635
 **********
 **   18 **HESSE 
 **********

 FCN=   6827.062     FROM HESSE     STATUS=OK           250 CALLS     2019 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55879        10.299        .25985E-02   -1.5558    
   2  Prefactor     .10000E-03    37.997        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    42.507        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.1757        78.302        .41792E-03   -1.5491    
   5  Prefactor     4.4204        14.409        .95590E-03   -1.5287    
   6  Prefactor     .10000E-03    10.877        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    11.651        .32671E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.8500        2.9153        .51804E-03   -1.5267    
   9  Prefactor     .10000E-03    31.994        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    34.006        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    13.968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.7638        .10716E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .19328        51.422        .37040E-02   -1.5620    
  14  Prefactor     22.172        15.554        .85087E-04   -1.4766    
  15  Prefactor     23.216        20.373        .83154E-04   -1.4744    
  16  Prefactor     13.857        13.918        .10761E-03   -1.4963    
  17  Normalizat    1.3239        .26792        .28592E-03   -.82855    
  18  Prefactor     .77164        .13560        .19241E-03   -1.0078    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.92045e-08
Minuit parameter uncertainties:
  1  4.79837
  2  0.000169642
  3  8.46253e-05
  4  19.2148
  5  14.4207
  6  7.80654e-06
  7  0.000111788
  8  2.91536
  9  0.000132719
  10  6.10977e-05
  11  2.78328e-05
  12  2.66496e-07
  13  6.3091
  14  15.5564
  15  20.3788
  16  13.9213
  17  0.268201
  18  0.135663
Done.

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

Extracting fit parameters...

4FGL J2131.5-0916
   Spectrum: PowerLaw
287    Prefactor:  1.000e-04  1.118e-04  1.000e-04  1.000e+04 ( 1.000e-13)
288        Index:  1.989e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
289        Scale:  2.343e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
547    Prefactor:  7.716e-01  1.357e-01  0.000e+00  1.000e+01 ( 1.000e+00)
548        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
549        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
546   Normalization:  1.324e+00  2.682e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 322.891 -9.268
Photon Flux Upper Limit: 8.15e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.11e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/547149/likelihoodResults_352339201_352598401_4FGL_J2131.5-0916_daily_bin436.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) = 6827.06216802
delta logL = -0.000407185737458

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6827.06176136
delta logL = -5.31879777554e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .22064E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0948       1.0000          .0000       10.000    
     3 'Normalizat'    1.3242       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77149       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5500E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6825.149     FROM MIGRAD    STATUS=CONVERGED    107 CALLS      279 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12074E-01    .95708E-01    .90712E-03   -.47528E-01
   2  Index         4.8944        1.6399        .67807E-01   -.63067E-03
   3  Normalizat    1.1262        .62837E-01    .69185E-01   -.41322E-03
   4  Prefactor     .83680        .33135E-01    .43345E-01    .10425E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0120744
  Index      = 4.89442
  Normalizat = 1.12624
  Prefactor  = 0.836803
 **********
 **   18 **HESSE 
 **********

 FCN=   6825.149     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      310 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .12074E-01    .18630        .49773E-05   -1.5686    
   2  Index         4.8944        2.5513        .26868E-02   -.21118E-01
   3  Normalizat    1.1262        .23089        .30615E-03   -.88914    
   4  Prefactor     .83680        .11899        .18539E-03   -.98386    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.74185e-09
Minuit parameter uncertainties:
  1  0.0944635
  2  2.67753
  3  0.231099
  4  0.119022
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/547149': 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) = 6825.14886275
delta logL = 1.91289807969

Extracting fit parameters...

4FGL J2131.5-0916
   Spectrum: PowerLaw
287    Prefactor:  1.207e-02  9.446e-02  1.000e-04  1.000e+04 ( 1.000e-13)
288        Index:  4.894e+00  2.678e+00  0.000e+00  1.000e+01 (-1.000e+00)
289        Scale:  2.343e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
547    Prefactor:  8.368e-01  1.190e-01  0.000e+00  1.000e+01 ( 1.000e+00)
548        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
549        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
546   Normalization:  1.126e+00  2.311e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.29
Ra Dec: 322.891 -9.268
Photon Index (Free Index): 4.89 +/- 2.68
Photon Flux (Free Index): 1.58e-07 +/- 9.12e-08
Energy Flux (Free Index): 2.12e-05 +/- 1.36e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/547149/cmap_HighResolution_352339201_352598401_4FGL_J2131.5-0916_daily_bin436.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.11e-03', comment='SUCCESS', energy_flux2='2.12e-05', dlogl='1.91e+00', photon_flux2='1.58e-07', job_status='DONE', time_completed='2021-09-26 16:53:47.510084', photon_index_error2='2.68', photon_index2='4.89', ts='-0.00', fit_tolerance='1e-08', GAL='0.77', photon_index_error='0.00', photon_flux_upper_limit='8.15e-08', energy_flux_error2='1.36e-05', EG='1.32', time_epoch_completed='1632700427.51', return_code='0', job_id='547149', GAL2='0.84', EG2='1.13', return_code2='102', photon_flux_error2='9.12e-08', ts2='4.29', photon_index='1.99' WHERE bin_id='436' AND source_name='4FGL J2131.5-0916' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 16:53:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0042>
Subject: Job 547149: <4FGL_J2131.5-0916_daily_bin436> in cluster <slac> Done

Job <4FGL_J2131.5-0916_daily_bin436> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep 26 16:40:59 2021
Job was executed on host(s) <bullet0042>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 16:43:34 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:43:34 2021
Terminated at Sun Sep 26 16:53:48 2021
Results reported at Sun Sep 26 16:53:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2131.5-0916_daily_bin436 322.891 -9.2684 352339201 352598401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2131.5-0916 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   590.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             353.05 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   613 sec.
    Turnaround time :                            769 sec.

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

