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


Performing analysis on: 4FGL_J2031.2-4121_daily_bin1551
RA = 307.811, Dec = -41.3574
tmin = 641347201, tmax = 641606401
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='995703', job_status='RUN', time_executed='2021-09-25 09:12:47.941767', time_epoch_executed='1632586367.94' WHERE source_name='4FGL J2031.2-4121' and cadence='daily' and bin_id='1551'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/995703

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/995703/ft1_4FGL_J2031.2-4121_daily_bin1551.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/995703/ft2_4FGL_J2031.2-4121_daily_bin1551.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/995703/ft1_4FGL_J2031.2-4121_daily_bin1551.fits outfile=/scratch/kocevski/995703/ft1_filteredMKT_4FGL_J2031.2-4121_daily_bin1551.fits ra=307.811 dec=-41.3574 rad=12.0 tmin=641347201.0 tmax=641606401.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 2.82
user 2.60
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/995703/ft2_4FGL_J2031.2-4121_daily_bin1551.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/995703/ft2_4FGL_J2031.2-4121_daily_bin1551.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/995703/ft1_filteredMKT_4FGL_J2031.2-4121_daily_bin1551.fits evtable="EVENTS" outfile="/scratch/kocevski/995703/ft1_filtered_4FGL_J2031.2-4121_daily_bin1551.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.51
user 0.32
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/995703/ft1_filtered_4FGL_J2031.2-4121_daily_bin1551.fits" evtable="EVENTS" scfile=/scratch/kocevski/995703/ft2_4FGL_J2031.2-4121_daily_bin1551.fits sctable="SC_DATA" outfile=/scratch/kocevski/995703/ltcube_641347201_641606401_4FGL_J2031.2-4121_daily_bin1551.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/995703/ft2_4FGL_J2031.2-4121_daily_bin1551.fits
.....................!
real 14.88
user 14.42
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/995703/ft1_filtered_4FGL_J2031.2-4121_daily_bin1551.fits evtable="EVENTS" scfile=/scratch/kocevski/995703/ft2_4FGL_J2031.2-4121_daily_bin1551.fits sctable="SC_DATA" expcube=/scratch/kocevski/995703/ltcube_641347201_641606401_4FGL_J2031.2-4121_daily_bin1551.fits outfile=/scratch/kocevski/995703/expmap_641347201_641606401_4FGL_J2031.2-4121_daily_bin1551.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/995703/ltcube_641347201_641606401_4FGL_J2031.2-4121_daily_bin1551.fits
.....................!
real 191.64
user 185.82
sys 5.07

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

Setting source of interest to:
4FGL J2031.2-4121 @ 307.811 -41.3574

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/995703/ft1_filtered_4FGL_J2031.2-4121_daily_bin1551.fits scfile=/scratch/kocevski/995703/ft2_4FGL_J2031.2-4121_daily_bin1551.fits outfile=/scratch/kocevski/995703/cmap_641347201_641606401_4FGL_J2031.2-4121_daily_bin1551.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=307.811 yref=-41.3574 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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/995703/ft1_filtered_4FGL_J2031.2-4121_daily_bin1551.fits scfile=/scratch/kocevski/995703/ft2_4FGL_J2031.2-4121_daily_bin1551.fits outfile=/scratch/kocevski/995703/cmap_HighResolution_641347201_641606401_4FGL_J2031.2-4121_daily_bin1551.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=307.811 yref=-41.3574 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.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/995703/ft1_filtered_4FGL_J2031.2-4121_daily_bin1551.fits evtable="EVENTS" scfile=/scratch/kocevski/995703/ft2_4FGL_J2031.2-4121_daily_bin1551.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/995703/Model_4FGL_J2031.2-4121_daily_bin1551.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/995703/ft1_filtered_4FGL_J2031.2-4121_daily_bin1551.fits.....................!
real 81.09
user 79.57
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/995703/ft1_filtered_4FGL_J2031.2-4121_daily_bin1551.fits', '/scratch/kocevski/995703/ft2_4FGL_J2031.2-4121_daily_bin1551.fits', expMap='/scratch/kocevski/995703/expmap_641347201_641606401_4FGL_J2031.2-4121_daily_bin1551.fits', expCube='/scratch/kocevski/995703/ltcube_641347201_641606401_4FGL_J2031.2-4121_daily_bin1551.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/995703/Model_4FGL_J2031.2-4121_daily_bin1551.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2031.2-4121'

4FGL J2031.2-4121
   Spectrum: LogParabola
278         norm:  1.668e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
279        alpha:  2.281e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
280         beta:  5.212e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
281           Eb:  1.567e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/995703/ft1_filtered_4FGL_J2031.2-4121_daily_bin1551.fits
Spacecraft file(s): /scratch/kocevski/995703/ft2_4FGL_J2031.2-4121_daily_bin1551.fits
Exposure map: /scratch/kocevski/995703/expmap_641347201_641606401_4FGL_J2031.2-4121_daily_bin1551.fits
Exposure cube: /scratch/kocevski/995703/ltcube_641347201_641606401_4FGL_J2031.2-4121_daily_bin1551.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/995703/Model_4FGL_J2031.2-4121_daily_bin1551.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) = 10711.7998998

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.991       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10388E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.501       1.0000         .10000E-03   10000.    
     4 'norm      '    26.830       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.1634       1.0000         .10000E-03   10000.    
     7 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    8.7722       1.0000         .10000E-03   10000.    
     9 'norm      '    .23602       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .23921E-02   1.0000         .10000E-03   10000.    
    11 'norm      '    .99938       1.0000         .10000E-03   10000.    
    12 'norm      '    .10076E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10060E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    27.212       1.0000         .10000E-03   10000.    
    15 'Prefactor '    39.547       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    8.5550       1.0000         .10000E-03   10000.    
    18 'Prefactor '    30.036       1.0000         .10000E-03   10000.    
    19 'Prefactor '    17.845       1.0000         .10000E-03   10000.    
    20 'Prefactor '    24.704       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0049       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.2425       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5590E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10711.78     FROM MIGRAD    STATUS=CONVERGED    475 CALLS     2377 TOTAL
                     EDM=   .88E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.994        9.5029        .19383E-07   -.24067E-04
   2  Prefactor     .10000E-03    30.629        .25203E-06** at limit **
   3  Prefactor     15.501        11.074        .10848E-06   -.26775E-04
   4  norm          26.830        20.024        .47780E-07   -.57193E-05
   5  Prefactor     .10000E-03    5.3921        .41106E-06** at limit **
   6  norm          1.1627        .97991        .20475E-06    .48669E-05
   7  norm          .10000E-03    6.6100        .24918E-06** at limit **
   8  norm          8.7717        14.231       -.38139E-06   -.63463E-04
   9  norm          .23599        1.1039        .20689E-05    .10803E-03
  10  Prefactor     .10000E-03    209.44        .34973E-05** at limit **
  11  norm          .99973        2.7396        .12890E-05   -.10126E-04
  12  norm          .10000E-03    13.334        .69439E-06** at limit **
  13  norm          .10000E-03    9.0352        .62210E-07** at limit **
  14  Prefactor     27.216        27.936       -.11860E-06   -.11068E-04
  15  Prefactor     39.401        72.122       -.91526E-06   -.76965E-04
  16  Prefactor     .10000E-03    6.5940        .82984E-07** at limit **
  17  norm          8.5561        2.4911       -.96022E-08   -.97572E-04
  18  Prefactor     30.039        25.397        .44322E-07   -.10977E-04
  19  Prefactor     17.847        8.6245       -.13481E-07   -.31715E-06
  20  Prefactor     24.708        29.514       -.43008E-08   -.27325E-05
  21  Normalizat    1.0046        .24710        .13277E-05   -.17715E-03
  22  Prefactor     1.2426        .10679       -.96270E-06   -.16187E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.9938
  Prefactor  = 0.0001
  Prefactor  = 15.5015
  norm       = 26.8303
  Prefactor  = 0.0001
  norm       = 1.1627
  norm       = 0.0001
  norm       = 8.77171
  norm       = 0.23599
  Prefactor  = 0.0001
  norm       = 0.999733
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 27.2159
  Prefactor  = 39.4006
  Prefactor  = 0.0001
  norm       = 8.5561
  Prefactor  = 30.0394
  Prefactor  = 17.8474
  Prefactor  = 24.708
  Normalizat = 1.00462
  Prefactor  = 1.24256
 **********
 **   18 **HESSE 
 **********

 FCN=   10711.78     FROM HESSE     STATUS=OK           346 CALLS     2723 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.994        9.5011        .97166E-04   -1.4883    
   2  Prefactor     .10000E-03    31.141        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     15.501        11.077        .10173E-03   -1.4920    
   4  norm          26.830        20.031        .77340E-04   -1.4672    
   5  Prefactor     .10000E-03    5.5714        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.1627        .95895        .90024E-04   -1.5492    
   7  norm          .10000E-03    6.7134        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          8.7717        14.216        .13533E-03   -1.5116    
   9  norm          .23599        1.0952        .21490E-03   -1.5611    
  10  Prefactor     .10000E-03    213.87        .20061E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .99973        2.6841        .27303E-03   -1.5508    
  12  norm          .10000E-03    13.535        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    9.0444        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     27.216        27.932        .76797E-04   -1.4664    
  15  Prefactor     39.401        72.411        .31869E-03   -1.4452    
  16  Prefactor     .10000E-03    6.6039        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          8.5561        2.4935        .83320E-04   -1.5123    
  18  Prefactor     30.039        25.423        .73106E-04   -1.4611    
  19  Prefactor     17.847        8.6326        .94810E-04   -1.4863    
  20  Prefactor     24.708        29.545        .80595E-04   -1.4713    
  21  Normalizat    1.0046        .27379        .44041E-03   -.92876    
  22  Prefactor     1.2426        .11895        .18034E-03   -.85031    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.86877e-10
Minuit parameter uncertainties:
  1  9.50191
  2  7.43462e-06
  3  11.0784
  4  20.0362
  5  3.88442e-06
  6  0.958959
  7  1.25769e-06
  8  14.2219
  9  1.01659
  10  0.00046626
  11  2.68441
  12  1.02019e-05
  13  2.1601e-06
  14  27.945
  15  72.5734
  16  1.13861e-06
  17  2.49351
  18  25.4319
  19  8.63325
  20  29.5628
  21  0.27417
  22  0.118978
Done.

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

Extracting fit parameters...

4FGL J2031.2-4121
   Spectrum: LogParabola
278         norm:  1.000e-04  2.160e-06  1.000e-04  1.000e+04 ( 1.000e-13)
279        alpha:  2.281e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
280         beta:  5.212e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
281           Eb:  1.567e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
556    Prefactor:  1.243e+00  1.190e-01  0.000e+00  1.000e+01 ( 1.000e+00)
557        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
558        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
555   Normalization:  1.005e+00  2.742e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 307.811 -41.357
Photon Flux Upper Limit: 3.32e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.60e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/995703/likelihoodResults_641347201_641606401_4FGL_J2031.2-4121_daily_bin1551.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) = 10711.783951
delta logL = -0.000525924764588

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10711.7834251
delta logL = -4.84578777105e-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     '    2.2756       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0046       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2426       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5590E+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=   10711.78     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      249 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    452.20        .18142E-01** at limit **
   2  alpha         1.8017        2.8755        .16545       -.81081E-08
   3  Normalizat    1.0046        .42526E-01    .44040E-03    .12133E-04
   4  Prefactor     1.2426        .19264E-01    .18034E-03    .20930E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.80173
  Normalizat = 1.00462
  Prefactor  = 1.24256
 **********
 **   18 **HESSE 
 **********

 FCN=   10711.78     FROM HESSE     STATUS=OK            23 CALLS      272 TOTAL
                     EDM=   .39E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    9.6103        .31231E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8017        3.0537        .66181E-02   -.28307    
   3  Normalizat    1.0046        .25659        .17616E-04   -.92876    
   4  Prefactor     1.2426        .11634        .72135E-05   -.85031    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.94844e-12
Minuit parameter uncertainties:
  1  9.82878e-06
  2  574.405
  3  0.256904
  4  0.116364
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/995703': 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) = 10711.7834248
delta logL = 3.0777300708e-07

Extracting fit parameters...

4FGL J2031.2-4121
   Spectrum: LogParabola
278         norm:  1.000e-04  9.829e-06  1.000e-04  1.000e+04 ( 1.000e-13)
279        alpha:  1.802e+00  5.744e+02  0.000e+00  5.000e+00 ( 1.000e+00)
280         beta:  5.212e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
281           Eb:  1.567e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
556    Prefactor:  1.243e+00  1.164e-01  0.000e+00  1.000e+01 ( 1.000e+00)
557        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
558        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
555   Normalization:  1.005e+00  2.569e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 307.811 -41.357

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/995703/cmap_HighResolution_641347201_641606401_4FGL_J2031.2-4121_daily_bin1551.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.60e-05', job_status='DONE', photon_flux_upper_limit='3.32e-08', time_completed='2021-09-25 09:27:03.230880', job_id='995703', GAL2='1.24', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1632587223.23', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.24', dlogl='3.08e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='1551' AND source_name='4FGL J2031.2-4121' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 09:27:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0195>
Subject: Job 995703: <4FGL_J2031.2-4121_daily_bin1551> in cluster <slac> Done

Job <4FGL_J2031.2-4121_daily_bin1551> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Sep 25 09:10:39 2021
Job was executed on host(s) <bullet0195>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 09:11:40 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 25 09:11:40 2021
Terminated at Sat Sep 25 09:27:04 2021
Results reported at Sat Sep 25 09:27:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2031.2-4121_daily_bin1551 307.811 -41.3574 641347201 641606401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2031.2-4121 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   850.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             338.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   925 sec.
    Turnaround time :                            985 sec.

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

