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


Performing analysis on: 4FGL_J2131.5-0916_daily_bin1655
RA = 322.891, Dec = -9.2684
tmin = 668304001, tmax = 668563201
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='198467', job_status='RUN', time_executed='2022-03-10 00:39:45.469957', time_epoch_executed='1646901585.47' WHERE source_name='4FGL J2131.5-0916' and cadence='daily' and bin_id='1655'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/198467

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/198467/ft1_4FGL_J2131.5-0916_daily_bin1655.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/198467/ft2_4FGL_J2131.5-0916_daily_bin1655.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/198467/ft1_4FGL_J2131.5-0916_daily_bin1655.fits outfile=/scratch/kocevski/198467/ft1_filteredMKT_4FGL_J2131.5-0916_daily_bin1655.fits ra=322.891 dec=-9.2684 rad=12.0 tmin=668304001.0 tmax=668563201.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.67
user 3.46
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/198467/ft2_4FGL_J2131.5-0916_daily_bin1655.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/198467/ft1_filteredMKT_4FGL_J2131.5-0916_daily_bin1655.fits evtable="EVENTS" outfile="/scratch/kocevski/198467/ft1_filtered_4FGL_J2131.5-0916_daily_bin1655.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.49
user 0.34
sys 0.14
Number of photons that survived the gtmktime cut: 676

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/198467/ft1_filtered_4FGL_J2131.5-0916_daily_bin1655.fits" evtable="EVENTS" scfile=/scratch/kocevski/198467/ft2_4FGL_J2131.5-0916_daily_bin1655.fits sctable="SC_DATA" outfile=/scratch/kocevski/198467/ltcube_668304001_668563201_4FGL_J2131.5-0916_daily_bin1655.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/198467/ft2_4FGL_J2131.5-0916_daily_bin1655.fits
.....................!
real 15.36
user 15.00
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/198467/ft1_filtered_4FGL_J2131.5-0916_daily_bin1655.fits evtable="EVENTS" scfile=/scratch/kocevski/198467/ft2_4FGL_J2131.5-0916_daily_bin1655.fits sctable="SC_DATA" expcube=/scratch/kocevski/198467/ltcube_668304001_668563201_4FGL_J2131.5-0916_daily_bin1655.fits outfile=/scratch/kocevski/198467/expmap_668304001_668563201_4FGL_J2131.5-0916_daily_bin1655.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/198467/ltcube_668304001_668563201_4FGL_J2131.5-0916_daily_bin1655.fits
.....................!
real 192.99
user 187.64
sys 4.98

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/198467/ft1_filtered_4FGL_J2131.5-0916_daily_bin1655.fits scfile=/scratch/kocevski/198467/ft2_4FGL_J2131.5-0916_daily_bin1655.fits outfile=/scratch/kocevski/198467/cmap_668304001_668563201_4FGL_J2131.5-0916_daily_bin1655.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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/198467/ft1_filtered_4FGL_J2131.5-0916_daily_bin1655.fits scfile=/scratch/kocevski/198467/ft2_4FGL_J2131.5-0916_daily_bin1655.fits outfile=/scratch/kocevski/198467/cmap_HighResolution_668304001_668563201_4FGL_J2131.5-0916_daily_bin1655.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.54
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/198467/ft1_filtered_4FGL_J2131.5-0916_daily_bin1655.fits evtable="EVENTS" scfile=/scratch/kocevski/198467/ft2_4FGL_J2131.5-0916_daily_bin1655.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/198467/Model_4FGL_J2131.5-0916_daily_bin1655.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/198467/ft1_filtered_4FGL_J2131.5-0916_daily_bin1655.fits.....................!
real 71.96
user 70.64
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/198467/ft1_filtered_4FGL_J2131.5-0916_daily_bin1655.fits', '/scratch/kocevski/198467/ft2_4FGL_J2131.5-0916_daily_bin1655.fits', expMap='/scratch/kocevski/198467/expmap_668304001_668563201_4FGL_J2131.5-0916_daily_bin1655.fits', expCube='/scratch/kocevski/198467/ltcube_668304001_668563201_4FGL_J2131.5-0916_daily_bin1655.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/198467/Model_4FGL_J2131.5-0916_daily_bin1655.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/198467/ft1_filtered_4FGL_J2131.5-0916_daily_bin1655.fits
Spacecraft file(s): /scratch/kocevski/198467/ft2_4FGL_J2131.5-0916_daily_bin1655.fits
Exposure map: /scratch/kocevski/198467/expmap_668304001_668563201_4FGL_J2131.5-0916_daily_bin1655.fits
Exposure cube: /scratch/kocevski/198467/ltcube_668304001_668563201_4FGL_J2131.5-0916_daily_bin1655.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/198467/Model_4FGL_J2131.5-0916_daily_bin1655.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) = 7580.7940111

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.7002       1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.014       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.6877       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.8929       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    38.764       1.0000         .10000E-03   10000.    
    11 'Prefactor '    17.772       1.0000         .10000E-03   10000.    
    12 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.5682       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.3682       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .14170E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    13.105       1.0000         .10000E-03   10000.    
    17 'Normalizat'    .63699       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.2487       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=   7580.783     FROM MIGRAD    STATUS=CONVERGED    352 CALLS     1766 TOTAL
                     EDM=   .90E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.7006        3.4673       -.37353E-06   -.33744E-03
   2  Prefactor     13.016        13.075       -.24983E-06   -.46874E-04
   3  Prefactor     .10000E-03    22.428       -.10240E-04** at limit **
   4  Prefactor     .10000E-03    9.2779        .14775E-06** at limit **
   5  Prefactor     .10000E-03    4.8475       -.84809E-07** at limit **
   6  Prefactor     .10000E-03    20.689        .66678E-05** at limit **
   7  Prefactor     1.6878        2.7178       -.16489E-06   -.31417E-03
   8  Prefactor     1.8917        2.8905       -.82097E-06   -.15635E-02
   9  Prefactor     .10000E-03    47.191        .37564E-04** at limit **
  10  Prefactor     38.762        42.746       -.24135E-05   -.25928E-04
  11  Prefactor     17.763        17.721       -.61168E-07    .33286E-03
  12  norm          .10000E-03    2.5630        .10137E-08** at limit **
  13  Prefactor     3.5666        6.0352       -.81015E-05   -.23129E-03
  14  Prefactor     5.3687        11.645       -.24281E-06   -.13601E-03
  15  Prefactor     .10001E-03    59.386       -.38929E-04** at limit **
  16  Prefactor     13.098        15.988        .68697E-06    .29170E-03
  17  Normalizat    .63701        .24391        .44975E-05    .10132E-03
  18  Prefactor     1.2487        .12979       -.22971E-06    .33291E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.70056
  Prefactor  = 13.0156
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.68779
  Prefactor  = 1.89172
  Prefactor  = 0.0001
  Prefactor  = 38.7623
  Prefactor  = 17.7627
  norm       = 0.0001
  Prefactor  = 3.56665
  Prefactor  = 5.36867
  Prefactor  = 0.000100006
  Prefactor  = 13.098
  Normalizat = 0.637014
  Prefactor  = 1.24871
 **********
 **   18 **HESSE 
 **********

 FCN=   7580.783     FROM HESSE     STATUS=OK           244 CALLS     2010 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.7006        3.4606        .17846E-03   -1.5379    
   2  Prefactor     13.016        13.065        .11103E-03   -1.4986    
   3  Prefactor     .10000E-03    22.433        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.3125        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.8616        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    20.708        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.6878        2.6895        .17738E-03   -1.5448    
   8  Prefactor     1.8917        2.8767        .16853E-03   -1.5433    
   9  Prefactor     .10000E-03    47.203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     38.762        42.578        .64376E-04   -1.4462    
  11  Prefactor     17.763        17.695        .95007E-04   -1.4865    
  12  norm          .10000E-03    2.5661        .13613E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.5666        6.0850        .21395E-03   -1.5330    
  14  Prefactor     5.3687        11.632        .17345E-03   -1.5245    
  15  Prefactor     .10001E-03    59.276        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     13.098        16.001        .11065E-03   -1.4984    
  17  Normalizat    .63701        .27081        .41464E-03   -1.0643    
  18  Prefactor     1.2487        .14651        .17072E-03   -.84845    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.80326e-09
Minuit parameter uncertainties:
  1  3.46085
  2  13.0683
  3  1.84025e-05
  4  1.73396e-05
  5  7.73552e-06
  6  1.37393e-06
  7  2.68973
  8  2.87693
  9  0.000222803
  10  42.6116
  11  17.7004
  12  4.72435e-06
  13  6.08608
  14  11.6372
  15  0.00115679
  16  16.0063
  17  0.271379
  18  0.146554
Done.

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

Extracting fit parameters...

4FGL J2131.5-0916
   Spectrum: PowerLaw
287    Prefactor:  1.688e+00  2.690e+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

GAL_V02
   Spectrum: PowerLaw
547    Prefactor:  1.249e+00  1.466e-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:  6.370e-01  2.714e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/198467/likelihoodResults_668304001_668563201_4FGL_J2131.5-0916_daily_bin1655.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) = 7580.53976801
delta logL = 0.243446389508

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7580.51624308
delta logL = 0.266971324148

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.6671       1.0000         .10000E-03   10000.    
     2 'Index     '    1.4055       1.0000          .0000       10.000    
     3 'Normalizat'    .64168       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2471       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7580.516     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      277 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6672        3.5933        .18693E-03   -.47109E-03
   2  Index         1.4055        .72795        .13442E-01   -.61576E-04
   3  Normalizat    .64170        .25700        .41318E-03    .20224E-04
   4  Prefactor     1.2471        .14504        .17078E-03    .53986E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.6672
  Index      = 1.40555
  Normalizat = 0.641703
  Prefactor  = 1.24711
 **********
 **   18 **HESSE 
 **********

 FCN=   7580.516     FROM HESSE     STATUS=OK            23 CALLS      300 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6672        3.6077        .74773E-05   -1.5381    
   2  Index         1.4055        .73114        .53767E-03   -.80221    
   3  Normalizat    .64170        .25715        .16527E-04   -1.0624    
   4  Prefactor     1.2471        .14513        .68314E-05   -.84894    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.13016e-10
Minuit parameter uncertainties:
  1  3.60801
  2  0.736646
  3  0.257636
  4  0.145177
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/198467': 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) = 7580.51624307
delta logL = 0.266971329896

Extracting fit parameters...

4FGL J2131.5-0916
   Spectrum: PowerLaw
287    Prefactor:  2.667e+00  3.608e+00  1.000e-04  1.000e+04 ( 1.000e-13)
288        Index:  1.406e+00  7.366e-01  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:  1.247e+00  1.452e-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:  6.417e-01  2.576e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.22
Ra Dec: 322.891 -9.268
Photon Index (Free Index): 1.41 +/- 0.74
Photon Flux (Free Index): 5.20e-09 +/- 8.69e-09
Energy Flux (Free Index): 2.26e-05 +/- 4.47e-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/198467/cmap_HighResolution_668304001_668563201_4FGL_J2131.5-0916_daily_bin1655.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.38e-03', comment='SUCCESS', energy_flux2='2.26e-05', dlogl='2.67e-01', photon_flux2='5.20e-09', job_status='DONE', time_completed='2022-03-10 00:49:58.792538', photon_index_error2='0.74', photon_index2='1.41', ts='0.69', fit_tolerance='1e-08', GAL='1.25', photon_index_error='0.00', photon_flux_upper_limit='5.84e-08', energy_flux_error2='4.47e-05', EG='0.64', time_epoch_completed='1646902198.79', return_code='0', job_id='198467', GAL2='1.25', EG2='0.64', return_code2='0', photon_flux_error2='8.69e-09', ts2='1.22', photon_index='1.99' WHERE bin_id='1655' AND source_name='4FGL J2131.5-0916' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Mar 10 00:49:58 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0174>
Subject: Job 198467: <4FGL_J2131.5-0916_daily_bin1655> in cluster <slac> Done

Job <4FGL_J2131.5-0916_daily_bin1655> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Thu Mar 10 00:35:34 2022
Job was executed on host(s) <bullet0174>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Mar 10 00:35:40 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Mar 10 00:35:40 2022
Terminated at Thu Mar 10 00:49:59 2022
Results reported at Thu Mar 10 00:49:59 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2131.5-0916_daily_bin1655 322.891 -9.2684 668304001 668563201 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 :                                   615.31 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             309.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   859 sec.
    Turnaround time :                            865 sec.

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

