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


Performing analysis on: 4FGL_J2031.2-4121_daily_bin1286
RA = 307.811, Dec = -41.3574
tmin = 572659201, tmax = 572918401
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='994069', job_status='RUN', time_executed='2021-09-25 09:09:02.158965', time_epoch_executed='1632586142.16' WHERE source_name='4FGL J2031.2-4121' and cadence='daily' and bin_id='1286'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/994069

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/994069/ft1_4FGL_J2031.2-4121_daily_bin1286.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/994069/ft2_4FGL_J2031.2-4121_daily_bin1286.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/994069/ft1_4FGL_J2031.2-4121_daily_bin1286.fits outfile=/scratch/kocevski/994069/ft1_filteredMKT_4FGL_J2031.2-4121_daily_bin1286.fits ra=307.811 dec=-41.3574 rad=12.0 tmin=572659201.0 tmax=572918401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.67
user 3.42
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/994069/ft1_filtered_4FGL_J2031.2-4121_daily_bin1286.fits" evtable="EVENTS" scfile=/scratch/kocevski/994069/ft2_4FGL_J2031.2-4121_daily_bin1286.fits sctable="SC_DATA" outfile=/scratch/kocevski/994069/ltcube_572659201_572918401_4FGL_J2031.2-4121_daily_bin1286.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/994069/ft2_4FGL_J2031.2-4121_daily_bin1286.fits
.....................!
real 13.36
user 12.93
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/994069/ft1_filtered_4FGL_J2031.2-4121_daily_bin1286.fits evtable="EVENTS" scfile=/scratch/kocevski/994069/ft2_4FGL_J2031.2-4121_daily_bin1286.fits sctable="SC_DATA" expcube=/scratch/kocevski/994069/ltcube_572659201_572918401_4FGL_J2031.2-4121_daily_bin1286.fits outfile=/scratch/kocevski/994069/expmap_572659201_572918401_4FGL_J2031.2-4121_daily_bin1286.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/994069/ltcube_572659201_572918401_4FGL_J2031.2-4121_daily_bin1286.fits
.....................!
real 190.40
user 185.53
sys 4.34

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/994069/ft1_filtered_4FGL_J2031.2-4121_daily_bin1286.fits scfile=/scratch/kocevski/994069/ft2_4FGL_J2031.2-4121_daily_bin1286.fits outfile=/scratch/kocevski/994069/cmap_572659201_572918401_4FGL_J2031.2-4121_daily_bin1286.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.57
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/994069/ft1_filtered_4FGL_J2031.2-4121_daily_bin1286.fits scfile=/scratch/kocevski/994069/ft2_4FGL_J2031.2-4121_daily_bin1286.fits outfile=/scratch/kocevski/994069/cmap_HighResolution_572659201_572918401_4FGL_J2031.2-4121_daily_bin1286.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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/994069/ft1_filtered_4FGL_J2031.2-4121_daily_bin1286.fits evtable="EVENTS" scfile=/scratch/kocevski/994069/ft2_4FGL_J2031.2-4121_daily_bin1286.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/994069/Model_4FGL_J2031.2-4121_daily_bin1286.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/994069/ft1_filtered_4FGL_J2031.2-4121_daily_bin1286.fits.....................!
real 71.40
user 69.87
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10376E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.3730       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.9724       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.556       1.0000         .10000E-03   10000.    
     6 'norm      '    1.4880       1.0000         .10000E-03   10000.    
     7 'norm      '    9.6274       1.0000         .10000E-03   10000.    
     8 'norm      '    .13869E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    4.7192       1.0000         .10000E-03   10000.    
    10 'Prefactor '    21.607       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    7.5100       1.0000         .10000E-03   10000.    
    13 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    30.254       1.0000         .10000E-03   10000.    
    15 'Prefactor '    70.780       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    5.9081       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10237E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11526       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.5233       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .90726       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=   8712.517     FROM MIGRAD    STATUS=CONVERGED    492 CALLS     2404 TOTAL
                     EDM=   .71E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.9877       -.49958E-07** at limit **
   2  Prefactor     5.3727        13.930        .41517E-05   -.75257E-04
   3  Prefactor     9.9704        9.5118        .16780E-06    .77300E-04
   4  norm          .10000E-03    5.2648        .16813E-07** at limit **
   5  Prefactor     13.555        6.5229        .90872E-07    .13993E-03
   6  norm          1.4880        .83898        .39308E-08   -.98822E-05
   7  norm          9.6245        8.0316       -.72640E-07   -.13451E-03
   8  norm          .10000E-03    31.939       -.74600E-06** at limit **
   9  norm          4.7187        2.0034       -.16499E-08    .87142E-05
  10  Prefactor     21.577        56.311       -.91527E-06   -.67480E-04
  11  norm          .10000E-03    1.1469       -.59568E-08** at limit **
  12  norm          7.5096        8.9530        .22377E-06    .84757E-04
  13  norm          .10000E-03    7.1277       -.68279E-08** at limit **
  14  Prefactor     30.249        23.775        .87936E-09    .40263E-05
  15  Prefactor     70.769        57.527       -.25057E-06   -.43039E-04
  16  Prefactor     .10000E-03    31.416        .15981E-06** at limit **
  17  norm          5.9074        2.5232        .81754E-08    .11956E-04
  18  Prefactor     .10000E-03    57.118        .33640E-06** at limit **
  19  Prefactor     .32351E-01    5.5010       -.69455E-07    .22034E-04
  20  Prefactor     .10000E-03    30.475        .26774E-06** at limit **
  21  Normalizat    1.5240        .23952        .67524E-06   -.30463E-04
  22  Prefactor     .90705        .10042       -.52324E-06    .85948E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 5.37273
  Prefactor  = 9.9704
  norm       = 0.0001
  Prefactor  = 13.5549
  norm       = 1.48804
  norm       = 9.62453
  norm       = 0.0001
  norm       = 4.71867
  Prefactor  = 21.5771
  norm       = 0.0001
  norm       = 7.50957
  norm       = 0.0001
  Prefactor  = 30.2494
  Prefactor  = 70.7687
  Prefactor  = 0.0001
  norm       = 5.9074
  Prefactor  = 0.0001
  Prefactor  = 0.0323514
  Prefactor  = 0.0001
  Normalizat = 1.524
  Prefactor  = 0.907055
 **********
 **   18 **HESSE 
 **********

 FCN=   8712.517     FROM HESSE     STATUS=OK           352 CALLS     2756 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.3257        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.3727        13.968        .86686E-03   -1.5244    
   3  Prefactor     9.9704        9.5136        .12689E-03   -1.5076    
   4  norm          .10000E-03    5.2658        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     13.555        6.5258        .10879E-03   -1.4971    
   6  norm          1.4880        .83346        .61891E-04   -1.5464    
   7  norm          9.6245        8.0316        .12915E-03   -1.5087    
   8  norm          .10000E-03    32.739        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          4.7187        2.0042        .83491E-04   -1.5273    
  10  Prefactor     21.577        56.508        .86169E-04   -1.4779    
  11  norm          .10000E-03    1.1518        .97606E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          7.5096        8.9571        .14634E-03   -1.5160    
  13  norm          .10000E-03    7.1331        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     30.249        23.781        .72843E-04   -1.4607    
  15  Prefactor     70.769        57.582        .23858E-03   -1.4023    
  16  Prefactor     .10000E-03    31.748        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          5.9074        2.5331        .91720E-04   -1.5222    
  18  Prefactor     .10000E-03    57.662        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .32351E-01    9.2944        .67132E-01   -1.5672    
  20  Prefactor     .10000E-03    30.638        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.5240        .27939        .35249E-03   -.77106    
  22  Prefactor     .90705        .11655        .18770E-03   -.95895    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.07254e-10
Minuit parameter uncertainties:
  1  1.98872e-05
  2  13.976
  3  9.51507
  4  4.55269e-09
  5  6.52611
  6  0.833464
  7  8.03245
  8  8.55621e-05
  9  2.00427
  10  56.6482
  11  8.89795e-08
  12  8.95871
  13  1.08379e-06
  14  23.788
  15  57.6279
  16  7.25051e-06
  17  2.53311
  18  3.68371e-05
  19  1.09517
  20  8.06256e-05
  21  0.279673
  22  0.116579
Done.

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

Extracting fit parameters...

4FGL J2031.2-4121
   Spectrum: LogParabola
278         norm:  1.000e-04  1.084e-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:  9.071e-01  1.166e-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.524e+00  2.797e-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: 2.88e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.26e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/994069/likelihoodResults_572659201_572918401_4FGL_J2031.2-4121_daily_bin1286.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) = 8712.5179981
delta logL = -0.000664932331347

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8712.51733316
delta logL = 1.87537807506e-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.2784       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5240       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90705       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=   8712.517     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      243 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    12.250        .18142E-02** at limit **
   2  alpha         1.8140        4.0887        .16543       -.37110E-08
   3  Normalizat    1.5240        .26451        .35249E-03   -.42691E-03
   4  Prefactor     .90705        .11312        .18770E-03   -.66159E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.814
  Normalizat = 1.524
  Prefactor  = 0.907054
 **********
 **   18 **HESSE 
 **********

 FCN=   8712.517     FROM HESSE     STATUS=OK            23 CALLS      266 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.3351        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8140        3.0612        .66172E-02   -.27797    
   3  Normalizat    1.5240        .26469        .70498E-04   -.77106    
   4  Prefactor     .90705        .11319        .37541E-04   -.95895    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.79472e-10
Minuit parameter uncertainties:
  1  3.44562e-05
  2  681.002
  3  0.264931
  4  0.113224
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/994069': 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) = 8712.51733297
delta logL = 1.92545485334e-07

Extracting fit parameters...

4FGL J2031.2-4121
   Spectrum: LogParabola
278         norm:  1.000e-04  3.446e-05  1.000e-04  1.000e+04 ( 1.000e-13)
279        alpha:  1.814e+00  6.810e+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:  9.071e-01  1.132e-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.524e+00  2.649e-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/994069/cmap_HighResolution_572659201_572918401_4FGL_J2031.2-4121_daily_bin1286.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.26e-05', job_status='DONE', photon_flux_upper_limit='2.88e-08', time_completed='2021-09-25 09:21:49.632594', job_id='994069', GAL2='0.91', fit_tolerance='1e-08', EG2='1.52', EG='1.52', time_epoch_completed='1632586909.63', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='1.93e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='1286' AND source_name='4FGL J2031.2-4121' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 09:21:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0111>
Subject: Job 994069: <4FGL_J2031.2-4121_daily_bin1286> in cluster <slac> Done

Job <4FGL_J2031.2-4121_daily_bin1286> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sat Sep 25 09:05:29 2021
Job was executed on host(s) <bullet0111>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 09:05:58 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:05:58 2021
Terminated at Sat Sep 25 09:21:50 2021
Results reported at Sat Sep 25 09:21:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2031.2-4121_daily_bin1286 307.811 -41.3574 572659201 572918401 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 :                                   765.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             251.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   951 sec.
    Turnaround time :                            981 sec.

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

