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


Performing analysis on: 4FGL_J2031.2-4121_daily_bin1528
RA = 307.811, Dec = -41.3574
tmin = 635385601, tmax = 635644801
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='995670', job_status='RUN', time_executed='2021-09-25 09:12:39.403718', time_epoch_executed='1632586359.4' WHERE source_name='4FGL J2031.2-4121' and cadence='daily' and bin_id='1528'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/995670

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/995670/ft1_4FGL_J2031.2-4121_daily_bin1528.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/995670/ft2_4FGL_J2031.2-4121_daily_bin1528.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/995670/ft1_4FGL_J2031.2-4121_daily_bin1528.fits outfile=/scratch/kocevski/995670/ft1_filteredMKT_4FGL_J2031.2-4121_daily_bin1528.fits ra=307.811 dec=-41.3574 rad=12.0 tmin=635385601.0 tmax=635644801.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.86
user 2.59
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/995670/ft1_filtered_4FGL_J2031.2-4121_daily_bin1528.fits" evtable="EVENTS" scfile=/scratch/kocevski/995670/ft2_4FGL_J2031.2-4121_daily_bin1528.fits sctable="SC_DATA" outfile=/scratch/kocevski/995670/ltcube_635385601_635644801_4FGL_J2031.2-4121_daily_bin1528.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/995670/ft2_4FGL_J2031.2-4121_daily_bin1528.fits
.....................!
real 14.32
user 13.96
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/995670/ft1_filtered_4FGL_J2031.2-4121_daily_bin1528.fits evtable="EVENTS" scfile=/scratch/kocevski/995670/ft2_4FGL_J2031.2-4121_daily_bin1528.fits sctable="SC_DATA" expcube=/scratch/kocevski/995670/ltcube_635385601_635644801_4FGL_J2031.2-4121_daily_bin1528.fits outfile=/scratch/kocevski/995670/expmap_635385601_635644801_4FGL_J2031.2-4121_daily_bin1528.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/995670/ltcube_635385601_635644801_4FGL_J2031.2-4121_daily_bin1528.fits
.....................!
real 190.47
user 185.46
sys 4.63

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/995670/ft1_filtered_4FGL_J2031.2-4121_daily_bin1528.fits scfile=/scratch/kocevski/995670/ft2_4FGL_J2031.2-4121_daily_bin1528.fits outfile=/scratch/kocevski/995670/cmap_635385601_635644801_4FGL_J2031.2-4121_daily_bin1528.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.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/995670/ft1_filtered_4FGL_J2031.2-4121_daily_bin1528.fits scfile=/scratch/kocevski/995670/ft2_4FGL_J2031.2-4121_daily_bin1528.fits outfile=/scratch/kocevski/995670/cmap_HighResolution_635385601_635644801_4FGL_J2031.2-4121_daily_bin1528.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/995670/ft1_filtered_4FGL_J2031.2-4121_daily_bin1528.fits evtable="EVENTS" scfile=/scratch/kocevski/995670/ft2_4FGL_J2031.2-4121_daily_bin1528.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/995670/Model_4FGL_J2031.2-4121_daily_bin1528.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/995670/ft1_filtered_4FGL_J2031.2-4121_daily_bin1528.fits.....................!
real 31.36
user 29.91
sys 1.32

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.5170       1.0000         .10000E-03   10000.    
     2 'Prefactor '    14.595       1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.680       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .41879       1.0000         .10000E-03   10000.    
     6 'norm      '    10.049       1.0000         .10000E-03   10000.    
     7 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    16.761       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    39.526       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    36.285       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .29906E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
    20 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .63534E-01   1.0000         .10000E-01   10.000    
    22 'Prefactor '    .98473       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=   2428.904     FROM MIGRAD    STATUS=CONVERGED    836 CALLS     3634 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.5154        10.605        .15721E-03   -.81754E-04
   2  Prefactor     14.596        30.342        .10484E-03   -.41152E-04
   3  Prefactor     11.677        14.432        .11722E-03   -.77931E-04
   4  norm          .10000E-03    34.435        .18142E-02** at limit **
   5  Prefactor     .42160        26.743        .21809E-02    .39240E-04
   6  norm          10.049        2.4315        .35184E-04   -.67358E-03
   7  norm          .10000E-03    8.6707        .14145E-02** at limit **
   8  norm          16.751        29.767        .97829E-04   -.13428E-03
   9  norm          .10000E-03    1.9432        .13221E-03** at limit **
  10  Prefactor     .10000E-03    30.633        .18142E-02** at limit **
  11  norm          .10000E-03    5.9175        .11607E-02** at limit **
  12  norm          .10000E-03    43.539        .18142E-02** at limit **
  13  norm          39.526        39.009        .63755E-04   -.17493E-04
  14  Prefactor     .10000E-03    25.755        .18142E-02** at limit **
  15  Prefactor     36.050        324.43        .33266E-03    .36362E-04
  16  Prefactor     .10000E-03    564.92        .21391E-02** at limit **
  17  norm          .10000E-03    7.4736        .13157E-02** at limit **
  18  Prefactor     .10000E-03    68.663        .18142E-02** at limit **
  19  Prefactor    10000.0        371.36        .18142E-02** at limit **
  20  Prefactor    10000.0        1355.0        .20851E-02** at limit **
  21  Normalizat    .64133E-01    1.7255        .65953E-02   -.17849E-04
  22  Prefactor     .98453        .21530        .14399E-03    .66241E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.5154
  Prefactor  = 14.5956
  Prefactor  = 11.6773
  norm       = 0.0001
  Prefactor  = 0.421603
  norm       = 10.0492
  norm       = 0.0001
  norm       = 16.7509
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100001
  norm       = 39.5259
  Prefactor  = 0.0001
  Prefactor  = 36.0498
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10000
  Prefactor  = 10000
  Normalizat = 0.0641332
  Prefactor  = 0.984532
 **********
 **   18 **HESSE 
 **********

 FCN=   2428.904     FROM HESSE     STATUS=OK           324 CALLS     3958 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.5154        10.530        .62883E-05   -1.5197    
   2  Prefactor     14.596        30.334        .41936E-05   -1.4944    
   3  Prefactor     11.677        14.348        .46886E-05   -1.5024    
   4  norm          .10000E-03    34.447        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .42160        26.453        .87236E-04   -1.5578    
   6  norm          10.049        2.4282        .70367E-05   -1.5074    
   7  norm          .10000E-03    8.6713        .28289E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          16.751        29.239        .39131E-05   -1.4889    
   9  norm          .10000E-03    1.9432        .26442E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    30.633        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    5.9188        .23213E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    43.553        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          39.526        39.007        .12751E-04   -1.4450    
  14  Prefactor     .10000E-03    25.755        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     36.050        324.34        .13306E-04   -1.4506    
  16  Prefactor     .10000E-03    564.92        .42782E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    7.4736        .26314E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    68.663        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor    10000.0        371.36        .36285E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor    10000.0        1354.7        .41702E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .64133E-01    1.4230        .26381E-03   -1.4234    
  22  Prefactor     .98453        .19711        .57598E-05   -.93247    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.68022e-10
Minuit parameter uncertainties:
  1  10.5331
  2  30.3656
  3  14.3518
  4  2.34864e-05
  5  6.6814
  6  2.42821
  7  1.29848e-05
  8  29.2639
  9  2.31161e-05
  10  0.000146438
  11  1.94797e-05
  12  0.000346182
  13  39.0325
  14  0.000118174
  15  217.852
  16  0.00058375
  17  5.29648e-05
  18  6.30141e-05
  19  0.000738848
  20  0.0248235
  21  0.570918
  22  0.197258
Done.

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

Extracting fit parameters...

4FGL J2031.2-4121
   Spectrum: LogParabola
278         norm:  3.953e+01  3.903e+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.845e-01  1.973e-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:  6.413e-02  5.709e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.20
Ra Dec: 307.811 -41.357
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 3.14e-08 +/- 3.10e-08
Energy Flux (Fixed Index): 2.46e-05 +/- 2.43e-05

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) = 2428.83403393
delta logL = 0.0694774031012

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2428.83211775
delta logL = 0.0713935838503

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    48.609       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8285       1.0000          .0000       5.0000    
     3 'Normalizat'    .69419E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98368       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=   2428.832     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      313 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          48.592        51.642        .57515E-04    .78630E-04
   2  alpha         1.8293        1.1436        .20135E-01   -.21083E-05
   3  Normalizat    .69667E-01    1.3791        .12234E-01    .29593E-04
   4  Prefactor     .98366        .21977        .14405E-03    .13192E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 48.5924
  alpha      = 1.82929
  Normalizat = 0.0696666
  Prefactor  = 0.983664
 **********
 **   18 **HESSE 
 **********

 FCN=   2428.832     FROM HESSE     STATUS=OK            27 CALLS      340 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          48.592        51.159        .11503E-04   -1.4313    
   2  alpha         1.8293        1.1339        .80540E-03   -.27161    
   3  Normalizat    .69667E-01    1.0535        .48936E-03   -1.4161    
   4  Prefactor     .98366        .19087        .28810E-04   -.93276    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09238e-10
Minuit parameter uncertainties:
  1  51.2051
  2  1.18062
  3  0.512349
  4  0.190997
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/995670': 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) = 2428.83211714
delta logL = 0.0713942007246

Extracting fit parameters...

4FGL J2031.2-4121
   Spectrum: LogParabola
278         norm:  4.859e+01  5.121e+01  1.000e-04  1.000e+04 ( 1.000e-13)
279        alpha:  1.829e+00  1.181e+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.837e-01  1.910e-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:  6.967e-02  5.123e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.34
Ra Dec: 307.811 -41.357
Photon Index (Free Index): 1.83 +/- 1.18
Photon Flux (Free Index): 2.54e-08 +/- 2.86e-08
Energy Flux (Free Index): 2.97e-05 +/- 3.37e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/995670/cmap_HighResolution_635385601_635644801_4FGL_J2031.2-4121_daily_bin1528.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.14e-08', energy_flux2='2.97e-05', photon_flux_error='3.10e-08', dlogl='7.14e-02', energy_flux='2.46e-05', photon_flux2='2.54e-08', job_status='DONE', time_completed='2021-09-25 09:20:14.832521', photon_index_error2='1.18', photon_index2='1.83', ts='5.20', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='3.37e-05', EG='0.06', time_epoch_completed='1632586814.83', return_code='0', job_id='995670', GAL2='0.98', EG2='0.07', return_code2='0', energy_flux_error='2.43e-05', photon_flux_error2='2.86e-08', ts2='5.34', photon_index='2.28' WHERE bin_id='1528' AND source_name='4FGL J2031.2-4121' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 09:20:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0218>
Subject: Job 995670: <4FGL_J2031.2-4121_daily_bin1528> in cluster <slac> Done

Job <4FGL_J2031.2-4121_daily_bin1528> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Sep 25 09:10:37 2021
Job was executed on host(s) <bullet0218>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 09:11:30 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:30 2021
Terminated at Sat Sep 25 09:20:15 2021
Results reported at Sat Sep 25 09:20:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2031.2-4121_daily_bin1528 307.811 -41.3574 635385601 635644801 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 :                                   453.41 sec.
    Max Memory :                                 1118 MB
    Average Memory :                             306.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   525 sec.
    Turnaround time :                            578 sec.

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

