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


Performing analysis on: 4FGL_J2031.2-4121_daily_bin1593
RA = 307.811, Dec = -41.3574
tmin = 652233601, tmax = 652492801
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='996991', job_status='RUN', time_executed='2021-09-25 09:15:36.220013', time_epoch_executed='1632586536.22' WHERE source_name='4FGL J2031.2-4121' and cadence='daily' and bin_id='1593'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/996991

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/996991/ft1_4FGL_J2031.2-4121_daily_bin1593.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/996991/ft2_4FGL_J2031.2-4121_daily_bin1593.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/996991/ft1_4FGL_J2031.2-4121_daily_bin1593.fits outfile=/scratch/kocevski/996991/ft1_filteredMKT_4FGL_J2031.2-4121_daily_bin1593.fits ra=307.811 dec=-41.3574 rad=12.0 tmin=652233601.0 tmax=652492801.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 4.47
user 4.20
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/996991/ft1_filtered_4FGL_J2031.2-4121_daily_bin1593.fits" evtable="EVENTS" scfile=/scratch/kocevski/996991/ft2_4FGL_J2031.2-4121_daily_bin1593.fits sctable="SC_DATA" outfile=/scratch/kocevski/996991/ltcube_652233601_652492801_4FGL_J2031.2-4121_daily_bin1593.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/996991/ft2_4FGL_J2031.2-4121_daily_bin1593.fits
.....................!
real 12.99
user 12.61
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/996991/ft1_filtered_4FGL_J2031.2-4121_daily_bin1593.fits evtable="EVENTS" scfile=/scratch/kocevski/996991/ft2_4FGL_J2031.2-4121_daily_bin1593.fits sctable="SC_DATA" expcube=/scratch/kocevski/996991/ltcube_652233601_652492801_4FGL_J2031.2-4121_daily_bin1593.fits outfile=/scratch/kocevski/996991/expmap_652233601_652492801_4FGL_J2031.2-4121_daily_bin1593.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/996991/ltcube_652233601_652492801_4FGL_J2031.2-4121_daily_bin1593.fits
.....................!
real 191.32
user 184.42
sys 6.17

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/996991/ft1_filtered_4FGL_J2031.2-4121_daily_bin1593.fits scfile=/scratch/kocevski/996991/ft2_4FGL_J2031.2-4121_daily_bin1593.fits outfile=/scratch/kocevski/996991/cmap_652233601_652492801_4FGL_J2031.2-4121_daily_bin1593.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.58
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/996991/ft1_filtered_4FGL_J2031.2-4121_daily_bin1593.fits scfile=/scratch/kocevski/996991/ft2_4FGL_J2031.2-4121_daily_bin1593.fits outfile=/scratch/kocevski/996991/cmap_HighResolution_652233601_652492801_4FGL_J2031.2-4121_daily_bin1593.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.60
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/996991/ft1_filtered_4FGL_J2031.2-4121_daily_bin1593.fits evtable="EVENTS" scfile=/scratch/kocevski/996991/ft2_4FGL_J2031.2-4121_daily_bin1593.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/996991/Model_4FGL_J2031.2-4121_daily_bin1593.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/996991/ft1_filtered_4FGL_J2031.2-4121_daily_bin1593.fits.....................!
real 67.92
user 66.47
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10701E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.1397       1.0000         .10000E-03   10000.    
     4 'norm      '    9.2707       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.4601       1.0000         .10000E-03   10000.    
     6 'norm      '    .10051E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    10.612       1.0000         .10000E-03   10000.    
     8 'norm      '    4.3626       1.0000         .10000E-03   10000.    
     9 'norm      '    3.5790       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .80811E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    4.0172       1.0000         .10000E-03   10000.    
    14 'Prefactor '    23.228       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    17.449       1.0000         .10000E-03   10000.    
    17 'norm      '    5.4904       1.0000         .10000E-03   10000.    
    18 'Prefactor '    46.323       1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.073       1.0000         .10000E-03   10000.    
    20 'Prefactor '    61.196       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .98112       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0274       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=   8618.453     FROM MIGRAD    STATUS=CONVERGED    476 CALLS     2379 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.2346       -.18388E-06** at limit **
   2  Prefactor     .10000E-03    8.4310       -.70534E-07** at limit **
   3  Prefactor     5.1461        12.025       -.16661E-06    .37552E-04
   4  norm          9.3606        17.853        .10198E-06    .19881E-04
   5  Prefactor     3.4622        5.8232       -.34645E-06    .18799E-03
   6  norm          .10000E-03    .29724        .29113E-07** at limit **
   7  norm          10.611        8.3518       -.13256E-05    .13785E-03
   8  norm          4.3633        12.520        .64988E-07    .36131E-04
   9  norm          3.5790        1.7743       -.23438E-08    .33954E-04
  10  Prefactor     .10000E-03    16.852       -.21733E-06** at limit **
  11  norm          .10000E-03    1.2406       -.53301E-07** at limit **
  12  norm          .10000E-03    26.221       -.94794E-05** at limit **
  13  norm          4.0158        11.012       -.35974E-06    .75424E-05
  14  Prefactor     23.219        30.396        .57039E-06    .59174E-04
  15  Prefactor     .10000E-03    27.992       -.26781E-06** at limit **
  16  Prefactor     17.438        18.445        .18858E-07    .13492E-04
  17  norm          5.4894        2.1980       -.43361E-07    .59571E-04
  18  Prefactor     46.334        30.583       -.58057E-06   -.66538E-04
  19  Prefactor     11.072        8.5053       -.24386E-06   -.15171E-04
  20  Prefactor     61.163        31.830        .13238E-05    .26855E-03
  21  Normalizat    .98184        .22946        .52687E-06    .12098E-03
  22  Prefactor     1.0270        .98605E-01    .79204E-07    .90234E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.14609
  norm       = 9.36055
  Prefactor  = 3.46222
  norm       = 0.0001
  norm       = 10.6108
  norm       = 4.36335
  norm       = 3.57896
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 4.01585
  Prefactor  = 23.2188
  Prefactor  = 0.0001
  Prefactor  = 17.4381
  norm       = 5.48943
  Prefactor  = 46.3339
  Prefactor  = 11.0724
  Prefactor  = 61.1626
  Normalizat = 0.981836
  Prefactor  = 1.02704
 **********
 **   18 **HESSE 
 **********

 FCN=   8618.453     FROM HESSE     STATUS=OK           348 CALLS     2727 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.4023        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8.4369        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.1461        11.984        .17733E-03   -1.5254    
   4  norm          9.3606        17.858        .13163E-03   -1.5096    
   5  Prefactor     3.4622        5.8425        .21741E-03   -1.5336    
   6  norm          .10000E-03    .51300        .97998E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          10.611        8.3480        .61497E-03   -1.5056    
   8  norm          4.3633        12.492        .19284E-03   -1.5290    
   9  norm          3.5790        1.7746        .84380E-04   -1.5330    
  10  Prefactor     .10000E-03    16.864        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.2560        .10096E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    25.977        .38872E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.0158        10.985        .20120E-03   -1.5307    
  14  Prefactor     23.219        30.410        .83111E-04   -1.4744    
  15  Prefactor     .10000E-03    28.011        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     17.438        18.467        .95882E-04   -1.4873    
  17  norm          5.4894        2.2022        .82105E-04   -1.5239    
  18  Prefactor     46.334        30.639        .58911E-04   -1.4346    
  19  Prefactor     11.072        8.5182        .12040E-03   -1.5042    
  20  Prefactor     61.163        32.243        .51292E-04   -1.4142    
  21  Normalizat    .98184        .26300        .38981E-03   -.93641    
  22  Prefactor     1.0270        .11325        .17007E-03   -.91833    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.62475e-10
Minuit parameter uncertainties:
  1  2.09267e-06
  2  4.38147e-06
  3  11.9894
  4  17.8681
  5  5.84344
  6  4.01174e-06
  7  8.34894
  8  12.4991
  9  1.77462
  10  2.49003e-05
  11  1.36099e-06
  12  0.000153933
  13  10.9908
  14  30.4303
  15  6.48086e-05
  16  18.4734
  17  2.20219
  18  30.6491
  19  8.51916
  20  32.2519
  21  0.263346
  22  0.11328
Done.

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

Extracting fit parameters...

4FGL J2031.2-4121
   Spectrum: LogParabola
278         norm:  4.016e+00  1.099e+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:  1.027e+00  1.133e-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:  9.818e-01  2.633e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/996991/likelihoodResults_652233601_652492801_4FGL_J2031.2-4121_daily_bin1593.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) = 8618.34426101
delta logL = 0.108487600686

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8618.32306834
delta logL = 0.1296802664

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.3127       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.2314       1.0000          .0000       5.0000    
     3 'Normalizat'    .98431       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0260       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.

 FCN=   8618.323     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      205 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.3307        13.444        .39940E-02    .45031E-04
   2  alpha         1.2330        1.7154        .50000       -.13159E-05
   3  Normalizat    .98439        .21507        .87930E-01    .18019E-04
   4  Prefactor     1.0260        .96287E-01    .41585E-01   -.52386E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.33071
  alpha      = 1.23302
  Normalizat = 0.984392
  Prefactor  = 1.02601
 **********
 **   18 **HESSE 
 **********

 FCN=   8618.323     FROM HESSE     STATUS=OK            29 CALLS      234 TOTAL
                     EDM=   .19E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.3307        12.177        .15976E-03   -1.5205    
   2  alpha         1.2330        1.5940        .74560E-02   -.53146    
   3  Normalizat    .98439        .24592        .38935E-03   -.93555    
   4  Prefactor     1.0260        .11041        .17013E-03   -.91868    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.92055e-12
Minuit parameter uncertainties:
  1  12.182
  2  1.79422
  3  0.246206
  4  0.110431
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/996991': 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) = 8618.32306696
delta logL = 0.129681646717

Extracting fit parameters...

4FGL J2031.2-4121
   Spectrum: LogParabola
278         norm:  6.331e+00  1.218e+01  1.000e-04  1.000e+04 ( 1.000e-13)
279        alpha:  1.233e+00  1.794e+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:  1.026e+00  1.104e-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:  9.844e-01  2.462e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.18
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/996991/cmap_HighResolution_652233601_652492801_4FGL_J2031.2-4121_daily_bin1593.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.73e-05', job_status='DONE', photon_flux_upper_limit='3.49e-08', time_completed='2021-09-25 09:28:22.080002', job_id='996991', GAL2='1.03', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1632587302.08', return_code2='0', ts='0.18', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='1.30e-01', ts2='0.44', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='1593' AND source_name='4FGL J2031.2-4121' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 09:28:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0169>
Subject: Job 996991: <4FGL_J2031.2-4121_daily_bin1593> in cluster <slac> Done

Job <4FGL_J2031.2-4121_daily_bin1593> 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) <bullet0169>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 09:15:27 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:27 2021
Terminated at Sat Sep 25 09:28:22 2021
Results reported at Sat Sep 25 09:28:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2031.2-4121_daily_bin1593 307.811 -41.3574 652233601 652492801 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 :                                   748.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             330.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   778 sec.
    Turnaround time :                            784 sec.

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

