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


Performing analysis on: 4FGL_J2031.2-4121_daily_bin1589
RA = 307.811, Dec = -41.3574
tmin = 651196801, tmax = 651456001
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='996986', job_status='RUN', time_executed='2021-09-25 09:16:19.701067', time_epoch_executed='1632586579.7' WHERE source_name='4FGL J2031.2-4121' and cadence='daily' and bin_id='1589'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/996986

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/996986/ft1_4FGL_J2031.2-4121_daily_bin1589.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/996986/ft2_4FGL_J2031.2-4121_daily_bin1589.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/996986/ft1_4FGL_J2031.2-4121_daily_bin1589.fits outfile=/scratch/kocevski/996986/ft1_filteredMKT_4FGL_J2031.2-4121_daily_bin1589.fits ra=307.811 dec=-41.3574 rad=12.0 tmin=651196801.0 tmax=651456001.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.59
user 3.34
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/996986/ft2_4FGL_J2031.2-4121_daily_bin1589.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/996986/ft1_filteredMKT_4FGL_J2031.2-4121_daily_bin1589.fits evtable="EVENTS" outfile="/scratch/kocevski/996986/ft1_filtered_4FGL_J2031.2-4121_daily_bin1589.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.52
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/996986/ft1_filtered_4FGL_J2031.2-4121_daily_bin1589.fits" evtable="EVENTS" scfile=/scratch/kocevski/996986/ft2_4FGL_J2031.2-4121_daily_bin1589.fits sctable="SC_DATA" outfile=/scratch/kocevski/996986/ltcube_651196801_651456001_4FGL_J2031.2-4121_daily_bin1589.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/996986/ft2_4FGL_J2031.2-4121_daily_bin1589.fits
.....................!
real 14.34
user 13.96
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/996986/ft1_filtered_4FGL_J2031.2-4121_daily_bin1589.fits evtable="EVENTS" scfile=/scratch/kocevski/996986/ft2_4FGL_J2031.2-4121_daily_bin1589.fits sctable="SC_DATA" expcube=/scratch/kocevski/996986/ltcube_651196801_651456001_4FGL_J2031.2-4121_daily_bin1589.fits outfile=/scratch/kocevski/996986/expmap_651196801_651456001_4FGL_J2031.2-4121_daily_bin1589.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/996986/ltcube_651196801_651456001_4FGL_J2031.2-4121_daily_bin1589.fits
.....................!
real 193.27
user 188.11
sys 4.51

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/996986/ft1_filtered_4FGL_J2031.2-4121_daily_bin1589.fits scfile=/scratch/kocevski/996986/ft2_4FGL_J2031.2-4121_daily_bin1589.fits outfile=/scratch/kocevski/996986/cmap_651196801_651456001_4FGL_J2031.2-4121_daily_bin1589.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/996986/ft1_filtered_4FGL_J2031.2-4121_daily_bin1589.fits scfile=/scratch/kocevski/996986/ft2_4FGL_J2031.2-4121_daily_bin1589.fits outfile=/scratch/kocevski/996986/cmap_HighResolution_651196801_651456001_4FGL_J2031.2-4121_daily_bin1589.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.59
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/996986/ft1_filtered_4FGL_J2031.2-4121_daily_bin1589.fits evtable="EVENTS" scfile=/scratch/kocevski/996986/ft2_4FGL_J2031.2-4121_daily_bin1589.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/996986/Model_4FGL_J2031.2-4121_daily_bin1589.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/996986/ft1_filtered_4FGL_J2031.2-4121_daily_bin1589.fits.....................!
real 57.54
user 56.11
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.8178       1.0000         .10000E-03   10000.    
     2 'Prefactor '    30.079       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.1432       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.4414       1.0000         .10000E-03   10000.    
     7 'norm      '    .10065E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .11825       1.0000         .10000E-03   10000.    
    10 'Prefactor '    95.917       1.0000         .10000E-03   10000.    
    11 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .60288E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    26.833       1.0000         .10000E-03   10000.    
    17 'norm      '    5.5868       1.0000         .10000E-03   10000.    
    18 'Prefactor '    71.208       1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.879       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .88429       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0076       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=   6311.865     FROM MIGRAD    STATUS=CONVERGED    466 CALLS     2376 TOTAL
                     EDM=   .46E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.8175        8.1285        .23149E-07   -.25145E-04
   2  Prefactor     30.077        29.507       -.96366E-07   -.29639E-04
   3  Prefactor     6.1420        12.170        .42296E-05   -.23636E-03
   4  norm          .10000E-03    13.868       -.16550E-05** at limit **
   5  Prefactor     .10000E-03    4.1183        .15644E-07** at limit **
   6  norm          1.4417        1.2531        .80485E-08   -.19294E-03
   7  norm          .10000E-03    12.243        .15650E-05** at limit **
   8  norm          .10000E-03    9.5569       -.60034E-07** at limit **
   9  norm          .11831        .99473        .21978E-06   -.39367E-03
  10  Prefactor     95.906        75.310       -.85728E-06   -.11515E-03
  11  norm          .10000E-03    1.1603        .22621E-07** at limit **
  12  norm          .10005E-03    5.9253        .10236E-05** at limit **
  13  norm          .10000E-03    20.362       -.35269E-06** at limit **
  14  Prefactor     .10000E-03    20.790       -.35177E-07** at limit **
  15  Prefactor     .10001E-03    27.882        .32260E-05** at limit **
  16  Prefactor     26.835        31.369        .38165E-06    .23421E-04
  17  norm          5.5869        2.5467        .21041E-07   -.20432E-04
  18  Prefactor     71.205        44.003       -.86371E-07   -.75589E-04
  19  Prefactor     12.879        13.490        .12629E-05   -.11183E-03
  20  Prefactor     .10000E-03    36.381       -.30255E-05** at limit **
  21  Normalizat    .88422        .26923       -.11694E-05   -.84241E-04
  22  Prefactor     1.0076        .10964       -.13364E-06   -.20138E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.81746
  Prefactor  = 30.0772
  Prefactor  = 6.142
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 1.44168
  norm       = 0.000100001
  norm       = 0.0001
  norm       = 0.118314
  Prefactor  = 95.906
  norm       = 0.0001
  norm       = 0.000100048
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 26.8346
  norm       = 5.58695
  Prefactor  = 71.2046
  Prefactor  = 12.8789
  Prefactor  = 0.000100005
  Normalizat = 0.884219
  Prefactor  = 1.00761
 **********
 **   18 **HESSE 
 **********

 FCN=   6311.865     FROM HESSE     STATUS=OK           342 CALLS     2718 TOTAL
                     EDM=   .38E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.8175        8.1230        .14341E-03   -1.5149    
   2  Prefactor     30.077        29.519        .73054E-04   -1.4611    
   3  Prefactor     6.1420        12.431        .80988E-03   -1.5212    
   4  norm          .10000E-03    14.245        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.1547        .15742E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.4417        1.2341        .78425E-04   -1.5468    
   7  norm          .10000E-03    12.784        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    9.5794        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .11831        2.1615        .15334E-02   -1.5639    
  10  Prefactor     95.906        75.845        .41040E-04   -1.3746    
  11  norm          .10000E-03    1.1660        .83568E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10005E-03    35.324        .36676E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    20.486        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    20.845        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10001E-03    29.183        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     26.835        31.437        .77336E-04   -1.4671    
  17  norm          5.5869        2.5486        .81062E-04   -1.5235    
  18  Prefactor     71.205        44.130        .47573E-04   -1.4018    
  19  Prefactor     12.879        13.630        .55809E-03   -1.4990    
  20  Prefactor     .10000E-03    37.647        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .88422        .30653        .40917E-03   -.97017    
  22  Prefactor     1.0076        .12632        .16540E-03   -.92476    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.76963e-08
Minuit parameter uncertainties:
  1  8.12415
  2  29.5336
  3  12.4358
  4  0.000286192
  5  2.16464e-07
  6  1.23416
  7  0.000186794
  8  1.72773e-05
  9  1.01102
  10  75.9221
  11  5.3525e-07
  12  0.00260361
  13  7.31516e-05
  14  8.97283e-06
  15  0.000813168
  16  31.4567
  17  2.54861
  18  44.1503
  19  13.633
  20  0.000833569
  21  0.307135
  22  0.126356
Done.

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

Extracting fit parameters...

4FGL J2031.2-4121
   Spectrum: LogParabola
278         norm:  1.000e-04  7.315e-05  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.008e+00  1.264e-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:  8.842e-01  3.071e-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: 4.30e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.37e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/996986/likelihoodResults_651196801_651456001_4FGL_J2031.2-4121_daily_bin1589.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6311.86566317
delta logL = -0.000232607444559

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6311.865434
delta logL = -3.43396641256e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10093E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.2821       1.0000          .0000       5.0000    
     3 'Normalizat'    .88422       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0076       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=   6311.865     FROM MIGRAD    STATUS=CONVERGED    105 CALLS      287 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10003E-03    511.15        .18142E-01** at limit **
   2  alpha         2.0597        3.3956        .17616        .86026E-07
   3  Normalizat    .88422        .34144E-01    .40917E-03    .16921E-03
   4  Prefactor     1.0076        .14758E-01    .16540E-03    .41135E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100034
  alpha      = 2.05969
  Normalizat = 0.88422
  Prefactor  = 1.00761
 **********
 **   18 **HESSE 
 **********

 FCN=   6311.865     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      314 TOTAL
                     EDM=   .62E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10003E-03    6953.6        .35306E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0597        3.6542        .70464E-01   -.17705    
   3  Normalizat    .88422        .17003        .16367E-04   -.97017    
   4  Prefactor     1.0076        .73554E-01    .33080E-04   -.92476    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.18675e-08
Minuit parameter uncertainties:
  1  0.0250093
  2  9924.36
  3  0.170137
  4  0.0735615
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/996986': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6311.8654305
delta logL = 6.43349267193e-08

Extracting fit parameters...

4FGL J2031.2-4121
   Spectrum: LogParabola
278         norm:  1.000e-04  2.501e-02  1.000e-04  1.000e+04 ( 1.000e-13)
279        alpha:  2.060e+00  9.924e+03  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.008e+00  7.356e-02  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:  8.842e-01  1.701e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/996986/cmap_HighResolution_651196801_651456001_4FGL_J2031.2-4121_daily_bin1589.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.37e-05', job_status='DONE', photon_flux_upper_limit='4.30e-08', time_completed='2021-09-25 09:26:56.740802', job_id='996986', GAL2='1.01', fit_tolerance='1e-08', EG2='0.88', EG='0.88', time_epoch_completed='1632587216.74', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='6.43e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='1589' AND source_name='4FGL J2031.2-4121' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 09:26:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0022>
Subject: Job 996986: <4FGL_J2031.2-4121_daily_bin1589> in cluster <slac> Done

Job <4FGL_J2031.2-4121_daily_bin1589> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Sep 25 09:15:18 2021
Job was executed on host(s) <bullet0022>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 09:15:22 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:15:22 2021
Terminated at Sat Sep 25 09:26:57 2021
Results reported at Sat Sep 25 09:26:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2031.2-4121_daily_bin1589 307.811 -41.3574 651196801 651456001 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 :                                   634.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             305.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   695 sec.
    Turnaround time :                            699 sec.

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

