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


Performing analysis on: 4FGL_J2031.2-4121_daily_bin1170
RA = 307.811, Dec = -41.3574
tmin = 542592001, tmax = 542851201
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='992847', job_status='RUN', time_executed='2021-09-25 09:03:40.983177', time_epoch_executed='1632585820.98' WHERE source_name='4FGL J2031.2-4121' and cadence='daily' and bin_id='1170'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/992847

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/992847/ft1_4FGL_J2031.2-4121_daily_bin1170.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/992847/ft2_4FGL_J2031.2-4121_daily_bin1170.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/992847/ft1_4FGL_J2031.2-4121_daily_bin1170.fits outfile=/scratch/kocevski/992847/ft1_filteredMKT_4FGL_J2031.2-4121_daily_bin1170.fits ra=307.811 dec=-41.3574 rad=12.0 tmin=542592001.0 tmax=542851201.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 6.77
user 6.44
sys 0.27

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/992847/ft2_4FGL_J2031.2-4121_daily_bin1170.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/992847/ft1_filteredMKT_4FGL_J2031.2-4121_daily_bin1170.fits evtable="EVENTS" outfile="/scratch/kocevski/992847/ft1_filtered_4FGL_J2031.2-4121_daily_bin1170.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.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/992847/ft1_filtered_4FGL_J2031.2-4121_daily_bin1170.fits" evtable="EVENTS" scfile=/scratch/kocevski/992847/ft2_4FGL_J2031.2-4121_daily_bin1170.fits sctable="SC_DATA" outfile=/scratch/kocevski/992847/ltcube_542592001_542851201_4FGL_J2031.2-4121_daily_bin1170.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/992847/ft2_4FGL_J2031.2-4121_daily_bin1170.fits
.....................!
real 13.16
user 12.81
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/992847/ft1_filtered_4FGL_J2031.2-4121_daily_bin1170.fits evtable="EVENTS" scfile=/scratch/kocevski/992847/ft2_4FGL_J2031.2-4121_daily_bin1170.fits sctable="SC_DATA" expcube=/scratch/kocevski/992847/ltcube_542592001_542851201_4FGL_J2031.2-4121_daily_bin1170.fits outfile=/scratch/kocevski/992847/expmap_542592001_542851201_4FGL_J2031.2-4121_daily_bin1170.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/992847/ltcube_542592001_542851201_4FGL_J2031.2-4121_daily_bin1170.fits
.....................!
real 191.83
user 185.96
sys 4.93

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/992847/ft1_filtered_4FGL_J2031.2-4121_daily_bin1170.fits scfile=/scratch/kocevski/992847/ft2_4FGL_J2031.2-4121_daily_bin1170.fits outfile=/scratch/kocevski/992847/cmap_542592001_542851201_4FGL_J2031.2-4121_daily_bin1170.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.55
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/992847/ft1_filtered_4FGL_J2031.2-4121_daily_bin1170.fits scfile=/scratch/kocevski/992847/ft2_4FGL_J2031.2-4121_daily_bin1170.fits outfile=/scratch/kocevski/992847/cmap_HighResolution_542592001_542851201_4FGL_J2031.2-4121_daily_bin1170.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.62
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/992847/ft1_filtered_4FGL_J2031.2-4121_daily_bin1170.fits evtable="EVENTS" scfile=/scratch/kocevski/992847/ft2_4FGL_J2031.2-4121_daily_bin1170.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/992847/Model_4FGL_J2031.2-4121_daily_bin1170.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/992847/ft1_filtered_4FGL_J2031.2-4121_daily_bin1170.fits.....................!
real 66.49
user 64.97
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/992847/ft1_filtered_4FGL_J2031.2-4121_daily_bin1170.fits', '/scratch/kocevski/992847/ft2_4FGL_J2031.2-4121_daily_bin1170.fits', expMap='/scratch/kocevski/992847/expmap_542592001_542851201_4FGL_J2031.2-4121_daily_bin1170.fits', expCube='/scratch/kocevski/992847/ltcube_542592001_542851201_4FGL_J2031.2-4121_daily_bin1170.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/992847/Model_4FGL_J2031.2-4121_daily_bin1170.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/992847/ft1_filtered_4FGL_J2031.2-4121_daily_bin1170.fits
Spacecraft file(s): /scratch/kocevski/992847/ft2_4FGL_J2031.2-4121_daily_bin1170.fits
Exposure map: /scratch/kocevski/992847/expmap_542592001_542851201_4FGL_J2031.2-4121_daily_bin1170.fits
Exposure cube: /scratch/kocevski/992847/ltcube_542592001_542851201_4FGL_J2031.2-4121_daily_bin1170.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/992847/Model_4FGL_J2031.2-4121_daily_bin1170.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) = 8119.90988645

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.4592       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.5675       1.0000         .10000E-03   10000.    
     4 'norm      '    17.804       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.0164       1.0000         .10000E-03   10000.    
     6 'norm      '    .51919       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.6323       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .29372       1.0000         .10000E-03   10000.    
    12 'norm      '    4.6371       1.0000         .10000E-03   10000.    
    13 'norm      '    9.1197       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    30.791       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10843E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    10.881       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .59661       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    79.296       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1592       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .99133       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=   8119.908     FROM MIGRAD    STATUS=CONVERGED    481 CALLS     2438 TOTAL
                     EDM=   .94E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.4594        5.7263        .10102E-06    .14708E-03
   2  Prefactor     .10000E-03    19.669       -.35233E-06** at limit **
   3  Prefactor     8.5682        11.986       -.19898E-05    .36359E-03
   4  norm          17.804        15.277        .11854E-07   -.45198E-05
   5  Prefactor     3.0162        3.6103       -.23681E-07    .96624E-04
   6  norm          .51898        .71740        .88798E-07    .10629E-02
   7  norm          .10000E-03    1.8855        .19738E-07** at limit **
   8  norm          .10000E-03    16.163       -.13116E-05** at limit **
   9  norm          3.6323        1.7507       -.24737E-08    .27974E-04
  10  Prefactor     .10003E-03    66.553       -.90344E-05** at limit **
  11  norm          .29504        2.0563        .86281E-06    .30524E-03
  12  norm          4.6361        10.838       -.50368E-06    .65261E-05
  13  norm          9.1197        13.233        .15883E-07   -.83107E-05
  14  Prefactor     .10000E-03    17.784        .17073E-05** at limit **
  15  Prefactor     30.788        46.823        .54271E-06    .33712E-04
  16  Prefactor     .10001E-03    78.158        .95847E-05** at limit **
  17  norm          10.882        2.6460        .55309E-09   -.18955E-03
  18  Prefactor     .57141        50.027        .21414E-04   -.10129E-03
  19  Prefactor     .10000E-03    5.4467       -.16987E-06** at limit **
  20  Prefactor     79.313        40.059       -.16841E-05   -.29241E-03
  21  Normalizat    1.1589        .23931        .39427E-06   -.10783E-03
  22  Prefactor     .99144        .10187        .29430E-06    .48858E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.45938
  Prefactor  = 0.0001
  Prefactor  = 8.56825
  norm       = 17.8039
  Prefactor  = 3.01617
  norm       = 0.518975
  norm       = 0.0001
  norm       = 0.000100001
  norm       = 3.63231
  Prefactor  = 0.000100031
  norm       = 0.295044
  norm       = 4.63608
  norm       = 9.11975
  Prefactor  = 0.000100001
  Prefactor  = 30.7883
  Prefactor  = 0.000100008
  norm       = 10.8819
  Prefactor  = 0.571407
  Prefactor  = 0.0001
  Prefactor  = 79.3129
  Normalizat = 1.15891
  Prefactor  = 0.991442
 **********
 **   18 **HESSE 
 **********

 FCN=   8119.908     FROM HESSE     STATUS=OK           348 CALLS     2786 TOTAL
                     EDM=   .54E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.4594        5.7232        .17197E-03   -1.5241    
   2  Prefactor     .10000E-03    19.824        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.5682        12.241        .68475E-03   -1.5122    
   4  norm          17.804        15.282        .94919E-04   -1.4864    
   5  Prefactor     3.0162        3.6079        .18207E-03   -1.5361    
   6  norm          .51898        .60081        .86428E-03   -1.5564    
   7  norm          .10000E-03    1.8875        .12084E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    16.485        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.6323        1.7516        .80437E-04   -1.5327    
  10  Prefactor     .10003E-03    69.275        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .29504        4.8965        .24635E-02   -1.5599    
  12  norm          4.6361        10.846        .18690E-03   -1.5277    
  13  norm          9.1197        13.228        .13272E-03   -1.5104    
  14  Prefactor     .10000E-03    17.890        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     30.788        46.856        .72207E-04   -1.4598    
  16  Prefactor     .10001E-03    80.675        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          10.882        2.6548        .68826E-04   -1.5048    
  18  Prefactor     .57141        50.604        .53107E-02   -1.5557    
  19  Prefactor     .10000E-03    5.5286        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     79.313        40.386        .45099E-04   -1.3924    
  21  Normalizat    1.1589        .27886        .37335E-03   -.87882    
  22  Prefactor     .99144        .12135        .17581E-03   -.93015    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.4233e-08
Minuit parameter uncertainties:
  1  5.72373
  2  7.20464e-05
  3  12.2446
  4  15.2854
  5  3.60812
  6  0.600815
  7  5.1636e-08
  8  0.000232401
  9  1.75163
  10  0.00294928
  11  2.40372
  12  10.8509
  13  13.2319
  14  0.000232866
  15  46.9122
  16  0.00164113
  17  2.65481
  18  10.7631
  19  9.90861e-06
  20  40.3997
  21  0.279213
  22  0.121383
Done.

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

Extracting fit parameters...

4FGL J2031.2-4121
   Spectrum: LogParabola
278         norm:  9.120e+00  1.323e+01  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:  9.914e-01  1.214e-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.159e+00  2.792e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/992847/likelihoodResults_542592001_542851201_4FGL_J2031.2-4121_daily_bin1170.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) = 8119.67122462
delta logL = 0.236975863984

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8119.66160385
delta logL = 0.246596632514

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.7266       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.3919       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1471       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99270       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8119.662     FROM MIGRAD    STATUS=FAILED        99 CALLS      285 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.7304        12.449        .92541E-03    .15277E-03
   2  alpha         3.3916        1.7645        .26394E-01    .20141E-03
   3  Normalizat    1.1471        .26826        .37504E-03   -.20522E-04
   4  Prefactor     .99272        .11780        .17567E-03   -.47242E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8119.662     FROM SIMPLEX   STATUS=UNCHANGED     78 CALLS      363 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.7304        12.449        .14234E-03   -1.5273    
   2  alpha         3.3916        1.7645        .15662E-02    .36468    
   3  Normalizat    1.1471        .26826        .39173E-03   -.88254    
   4  Prefactor     .99272        .11780        .15411E-03   -.92973    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8119.662     FROM MIGRAD    STATUS=CONVERGED     36 CALLS      399 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.7304        9.5241        .18508E-03   -.73710E-06
   2  alpha         3.3916        1.4227        .52788E-02    .80779E-05
   3  Normalizat    1.1471        .26737        .15001E-04   -.15157E-06
   4  Prefactor     .99272        .11773        .35135E-04   -.64714E-07
                               ERR DEF=  .500    
Final values: 
  norm       = 4.73038
  alpha      = 3.39162
  Normalizat = 1.14709
  Prefactor  = 0.992715
 **********
 **   18 **HESSE 
 **********

 FCN=   8119.662     FROM HESSE     STATUS=OK            25 CALLS      424 TOTAL
                     EDM=   .52E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.7304        9.1700        .74033E-05   -1.5273    
   2  alpha         3.3916        1.3769        .10558E-02    .36468    
   3  Normalizat    1.1471        .26733        .30003E-05   -.88254    
   4  Prefactor     .99272        .11774        .70270E-05   -.92973    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.15279e-14
Minuit parameter uncertainties:
  1  9.17272
  2  1.47259
  3  0.26765
  4  0.117771
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/992847': 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) = 8119.6616037
delta logL = 0.24659677472

Extracting fit parameters...

4FGL J2031.2-4121
   Spectrum: LogParabola
278         norm:  4.730e+00  9.173e+00  1.000e-04  1.000e+04 ( 1.000e-13)
279        alpha:  3.392e+00  1.473e+00  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:  9.927e-01  1.178e-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.147e+00  2.677e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.28
Ra Dec: 307.811 -41.357
Photon Index (Free Index): 3.39 +/- 1.47
Photon Flux (Free Index): 1.92e-08 +/- 3.07e-08
Energy Flux (Free Index): 6.69e-06 +/- 7.98e-06

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/992847/cmap_HighResolution_542592001_542851201_4FGL_J2031.2-4121_daily_bin1170.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.15e-05', comment='SUCCESS', energy_flux2='6.69e-06', dlogl='2.47e-01', photon_flux2='1.92e-08', job_status='DONE', time_completed='2021-09-25 09:16:27.607675', photon_index_error2='1.47', photon_index2='3.39', ts='0.78', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='4.02e-08', energy_flux_error2='7.98e-06', EG='1.16', time_epoch_completed='1632586587.61', return_code='0', job_id='992847', GAL2='0.99', EG2='1.15', return_code2='0', photon_flux_error2='3.07e-08', ts2='1.28', photon_index='2.28' WHERE bin_id='1170' AND source_name='4FGL J2031.2-4121' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 09:16:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0185>
Subject: Job 992847: <4FGL_J2031.2-4121_daily_bin1170> in cluster <slac> Done

Job <4FGL_J2031.2-4121_daily_bin1170> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Sep 25 09:00:58 2021
Job was executed on host(s) <bullet0185>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 09:02:44 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:02:44 2021
Terminated at Sat Sep 25 09:16:28 2021
Results reported at Sat Sep 25 09:16:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2031.2-4121_daily_bin1170 307.811 -41.3574 542592001 542851201 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 :                                   762.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             296.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   823 sec.
    Turnaround time :                            930 sec.

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

