/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 = 7430
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1231.7+2847_daily_bin1307
RA = 187.935, Dec = 28.7917
tmin = 578102401, tmax = 578361601
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='779078', job_status='RUN', time_executed='2021-09-05 22:37:19.632872', time_epoch_executed='1630906639.63' WHERE source_name='4FGL J1231.7+2847' and cadence='daily' and bin_id='1307'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/779078

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/779078/ft1_4FGL_J1231.7+2847_daily_bin1307.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/779078/ft2_4FGL_J1231.7+2847_daily_bin1307.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/779078/ft1_4FGL_J1231.7+2847_daily_bin1307.fits outfile=/scratch/kocevski/779078/ft1_filteredMKT_4FGL_J1231.7+2847_daily_bin1307.fits ra=187.935 dec=28.7917 rad=12.0 tmin=578102401.0 tmax=578361601.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 5.29
user 4.86
sys 0.29

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/779078/ft2_4FGL_J1231.7+2847_daily_bin1307.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/779078/ft2_4FGL_J1231.7+2847_daily_bin1307.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/779078/ft1_filteredMKT_4FGL_J1231.7+2847_daily_bin1307.fits evtable="EVENTS" outfile="/scratch/kocevski/779078/ft1_filtered_4FGL_J1231.7+2847_daily_bin1307.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.33
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/779078/ft1_filtered_4FGL_J1231.7+2847_daily_bin1307.fits" evtable="EVENTS" scfile=/scratch/kocevski/779078/ft2_4FGL_J1231.7+2847_daily_bin1307.fits sctable="SC_DATA" outfile=/scratch/kocevski/779078/ltcube_578102401_578361601_4FGL_J1231.7+2847_daily_bin1307.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/779078/ft2_4FGL_J1231.7+2847_daily_bin1307.fits
.....................!
real 16.19
user 15.52
sys 0.50

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/779078/ft1_filtered_4FGL_J1231.7+2847_daily_bin1307.fits evtable="EVENTS" scfile=/scratch/kocevski/779078/ft2_4FGL_J1231.7+2847_daily_bin1307.fits sctable="SC_DATA" expcube=/scratch/kocevski/779078/ltcube_578102401_578361601_4FGL_J1231.7+2847_daily_bin1307.fits outfile=/scratch/kocevski/779078/expmap_578102401_578361601_4FGL_J1231.7+2847_daily_bin1307.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/779078/ltcube_578102401_578361601_4FGL_J1231.7+2847_daily_bin1307.fits
.....................!
real 194.22
user 187.68
sys 5.92

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 194 point sources and 0 extended sources

Setting source of interest to:
4FGL J1231.7+2847 @ 187.935 28.7917

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/779078/ft1_filtered_4FGL_J1231.7+2847_daily_bin1307.fits scfile=/scratch/kocevski/779078/ft2_4FGL_J1231.7+2847_daily_bin1307.fits outfile=/scratch/kocevski/779078/cmap_578102401_578361601_4FGL_J1231.7+2847_daily_bin1307.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=187.935 yref=28.7917 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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/779078/ft1_filtered_4FGL_J1231.7+2847_daily_bin1307.fits scfile=/scratch/kocevski/779078/ft2_4FGL_J1231.7+2847_daily_bin1307.fits outfile=/scratch/kocevski/779078/cmap_HighResolution_578102401_578361601_4FGL_J1231.7+2847_daily_bin1307.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=187.935 yref=28.7917 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.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/779078/ft1_filtered_4FGL_J1231.7+2847_daily_bin1307.fits evtable="EVENTS" scfile=/scratch/kocevski/779078/ft2_4FGL_J1231.7+2847_daily_bin1307.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/779078/Model_4FGL_J1231.7+2847_daily_bin1307.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/779078/ft1_filtered_4FGL_J1231.7+2847_daily_bin1307.fits.....................!
real 49.28
user 47.39
sys 1.50

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/779078/ft1_filtered_4FGL_J1231.7+2847_daily_bin1307.fits', '/scratch/kocevski/779078/ft2_4FGL_J1231.7+2847_daily_bin1307.fits', expMap='/scratch/kocevski/779078/expmap_578102401_578361601_4FGL_J1231.7+2847_daily_bin1307.fits', expCube='/scratch/kocevski/779078/ltcube_578102401_578361601_4FGL_J1231.7+2847_daily_bin1307.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/779078/Model_4FGL_J1231.7+2847_daily_bin1307.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1231.7+2847'

4FGL J1231.7+2847
   Spectrum: PowerLaw
334    Prefactor:  7.388e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
335        Index:  1.998e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
336        Scale:  1.597e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/779078/ft1_filtered_4FGL_J1231.7+2847_daily_bin1307.fits
Spacecraft file(s): /scratch/kocevski/779078/ft2_4FGL_J1231.7+2847_daily_bin1307.fits
Exposure map: /scratch/kocevski/779078/expmap_578102401_578361601_4FGL_J1231.7+2847_daily_bin1307.fits
Exposure cube: /scratch/kocevski/779078/ltcube_578102401_578361601_4FGL_J1231.7+2847_daily_bin1307.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/779078/Model_4FGL_J1231.7+2847_daily_bin1307.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) = 5134.46038699

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    40.835       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10498E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    74.320       1.0000         .10000E-03   10000.    
     4 'norm      '    .45987       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.3296       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10354E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.6805       1.0000         .10000E-03   10000.    
     8 'norm      '    5.2582       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.0957       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.5155       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.0993       1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.4021       1.0000         .10000E-03   10000.    
    13 'norm      '    .32849       1.0000         .10000E-03   10000.    
    14 'norm      '    5.1635       1.0000         .10000E-03   10000.    
    15 'Prefactor '    24.715       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.5148       1.0000         .10000E-03   10000.    
    20 'norm      '    .10077E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    27.754       1.0000         .10000E-03   10000.    
    22 'norm      '    1.4823       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    3.5029       1.0000         .10000E-03   10000.    
    25 'norm      '    2.7527       1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    15.064       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .48806       1.0000         .10000E-03   10000.    
    29 'Prefactor '    2.4945       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.1692       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .70138       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6150E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5134.396     FROM MIGRAD    STATUS=CONVERGED    812 CALLS     4214 TOTAL
                     EDM=   .68E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     40.826        31.258         .0000        .64068E-03
   2  Prefactor     .10000E-03    1.0273         .0000    ** at limit **
   3  Prefactor     74.312        41.737         .0000        .26580E-02
   4  norm          .46037        1.2609         .0000        .13604E-02
   5  Prefactor     1.3195        7.2631         .0000        .21385E-01
   6  Prefactor     .10000E-03    21.035         .0000    ** at limit **
   7  Prefactor     3.6892        5.5196         .0000        .25864E-02
   8  norm          5.2580        3.5819         .0000       -.82870E-03
   9  Prefactor     4.0947        6.6511         .0000       -.85568E-03
  10  Prefactor     2.5154        2.4131         .0000        .38716E-03
  11  Prefactor     6.0989        3.8517         .0000       -.17217E-02
  12  Prefactor     9.4023        11.183         .0000        .10288E-03
  13  norm          .32859        .30268         .0000        .96870E-03
  14  norm          5.1631        6.8143         .0000        .64070E-02
  15  Prefactor     24.715        15.506         .0000        .21575E-03
  16  Prefactor     .10000E-03    5.8159         .0000    ** at limit **
  17  Prefactor     .10001E-03    60.367         .0000    ** at limit **
  18  Prefactor     .10000E-03    2.3983         .0000    ** at limit **
  19  Prefactor     1.5156        3.2990         .0000        .12691E-02
  20  norm          .10000E-03    2.7606         .0000    ** at limit **
  21  Prefactor     27.771        24.029         .0000       -.86390E-03
  22  norm          1.4821        3.5739         .0000        .17237E-02
  23  Prefactor     .10000E-03    6.4562         .0000    ** at limit **
  24  norm          3.5044        3.7287         .0000        .52636E-03
  25  norm          2.7510        3.5018         .0000        .12855E-02
  26  norm          .10000E-03    3.2517         .0000    ** at limit **
  27  norm          15.064        14.943         .0000        .87697E-04
  28  Prefactor     .48518        6.3086         .0000       -.17457E-02
  29  Prefactor     2.5785        66.007         .0000       -.64168E-03
  30  Normalizat    1.1693        .21092         .0000        .48230E-05
  31  Prefactor     .70135        .21641         .0000        .18302E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 40.8264
  Prefactor  = 0.0001
  Prefactor  = 74.3124
  norm       = 0.460369
  Prefactor  = 1.31953
  Prefactor  = 0.0001
  Prefactor  = 3.68918
  norm       = 5.25797
  Prefactor  = 4.09474
  Prefactor  = 2.51539
  Prefactor  = 6.09892
  Prefactor  = 9.40232
  norm       = 0.328585
  norm       = 5.16313
  Prefactor  = 24.7149
  Prefactor  = 0.000100001
  Prefactor  = 0.000100014
  Prefactor  = 0.0001
  Prefactor  = 1.51555
  norm       = 0.0001
  Prefactor  = 27.7707
  norm       = 1.48212
  Prefactor  = 0.000100002
  norm       = 3.50438
  norm       = 2.75099
  norm       = 0.0001
  norm       = 15.0638
  Prefactor  = 0.485182
  Prefactor  = 2.57847
  Normalizat = 1.16931
  Prefactor  = 0.701353
 **********
 **   18 **HESSE 
 **********

 FCN=   5134.396     FROM HESSE     STATUS=OK           634 CALLS     4848 TOTAL
                     EDM=   .54E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     40.826        31.288        .62728E-04   -1.4429    
   2  Prefactor     .10000E-03    1.0329        .70734E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     74.312        41.866        .46573E-04   -1.3982    
   4  norm          .46037        1.2283        .12311E-03   -1.5572    
   5  Prefactor     1.3195        6.9456        .16705E-02   -1.5478    
   6  Prefactor     .10000E-03    21.094        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.6892        5.3807        .17869E-03   -1.5324    
   8  norm          5.2580        3.5768        .10213E-03   -1.5249    
   9  Prefactor     4.0947        6.6405        .19921E-03   -1.5303    
  10  Prefactor     2.5154        2.4151        .10090E-03   -1.5391    
  11  Prefactor     6.0989        3.8383        .99539E-04   -1.5214    
  12  Prefactor     9.4023        11.116        .13070E-03   -1.5095    
  13  norm          .32859        .28940        .34762E-03   -1.5593    
  14  norm          5.1631        6.7856        .87828E-03   -1.5253    
  15  Prefactor     24.715        15.490        .40288E-03   -1.4713    
  16  Prefactor     .10000E-03    5.8175        .16877E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10001E-03    60.493        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.4022        .10836E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.5156        3.2498        .18652E-03   -1.5462    
  20  norm          .10000E-03    2.7817        .11606E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     27.771        23.950        .76045E-04   -1.4654    
  22  norm          1.4821        3.5383        .20065E-03   -1.5464    
  23  Prefactor     .10000E-03    6.4643        .17779E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          3.5044        3.7122        .13776E-03   -1.5334    
  25  norm          2.7510        3.4422        .13664E-03   -1.5376    
  26  norm          .10000E-03    3.2620        .12575E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          15.064        14.942        .10320E-03   -1.4932    
  28  Prefactor     .48518        9.6675        .25256E-02   -1.5569    
  29  Prefactor     2.5785        52.894        .25878E-03   -1.5387    
  30  Normalizat    1.1693        .25255        .23968E-03   -.87557    
  31  Prefactor     .70135        .25448        .32845E-03   -1.0347    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.35744e-08
Minuit parameter uncertainties:
  1  31.3009
  2  1.31532e-06
  3  41.8825
  4  1.22832
  5  6.05561
  6  4.11426e-05
  7  5.3814
  8  3.57695
  9  6.64167
  10  2.41524
  11  3.83841
  12  11.1187
  13  0.289402
  14  6.78658
  15  15.4922
  16  0.000182125
  17  0.00185903
  18  2.89725e-06
  19  3.25016
  20  1.02446e-05
  21  23.9585
  22  3.53879
  23  0.000253381
  24  3.71246
  25  3.4425
  26  7.66037e-06
  27  14.9457
  28  4.33187
  29  23.38
  30  0.252809
  31  0.254906
Done.

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

Extracting fit parameters...

4FGL J1231.7+2847
   Spectrum: PowerLaw
334    Prefactor:  2.471e+01  1.549e+01  1.000e-04  1.000e+04 ( 1.000e-13)
335        Index:  1.998e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
336        Scale:  1.597e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
612    Prefactor:  7.014e-01  2.549e-01  0.000e+00  1.000e+01 ( 1.000e+00)
613        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
614        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
611   Normalization:  1.169e+00  2.528e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.06
Ra Dec: 187.935 28.792
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 6.28e-08 +/- 3.93e-08
Energy Flux (Fixed Index): 4.36e-05 +/- 2.73e-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) = 5134.2567368
delta logL = 0.139520545919

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5134.24949986
delta logL = 0.14675748114

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.486       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2484       1.0000          .0000       10.000    
     3 'Normalizat'    1.1494       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71420       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6150E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5134.249     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      265 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.498        238.34        .22123E-02   -.25174E-03
   2  Index         2.2491        3.0820        .13041       -.49505E-05
   3  Normalizat    1.1489        .10795        .54579E-01   -.88733E-05
   4  Prefactor     .71430        .88137E-01    .73563E-01   -.20224E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.498
  Index      = 2.24906
  Normalizat = 1.14892
  Prefactor  = 0.714299
 **********
 **   18 **HESSE 
 **********

 FCN=   5134.249     FROM HESSE     STATUS=OK            33 CALLS      298 TOTAL
                     EDM=   .68E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.498        16.229        .88492E-04   -1.4802    
   2  Index         2.2491        .49675        .47096E-02   -.58259    
   3  Normalizat    1.1489        .22953        .24133E-03   -.88196    
   4  Prefactor     .71430        .24733        .32561E-03   -1.0297    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.7966e-11
Minuit parameter uncertainties:
  1  16.2321
  2  0.49793
  3  0.229733
  4  0.24771
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/779078': 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) = 5134.24949284
delta logL = 0.146764506754

Extracting fit parameters...

4FGL J1231.7+2847
   Spectrum: PowerLaw
334    Prefactor:  2.050e+01  1.623e+01  1.000e-04  1.000e+04 ( 1.000e-13)
335        Index:  2.249e+00  4.979e-01  0.000e+00  1.000e+01 (-1.000e+00)
336        Scale:  1.597e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
612    Prefactor:  7.143e-01  2.477e-01  0.000e+00  1.000e+01 ( 1.000e+00)
613        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
614        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
611   Normalization:  1.149e+00  2.297e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.38
Ra Dec: 187.935 28.792
Photon Index (Free Index): 2.25 +/- 0.50
Photon Flux (Free Index): 8.35e-08 +/- 5.98e-08
Energy Flux (Free Index): 3.44e-05 +/- 2.43e-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/779078/cmap_HighResolution_578102401_578361601_4FGL_J1231.7+2847_daily_bin1307.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.28e-08', energy_flux2='3.44e-05', photon_flux_error='3.93e-08', dlogl='1.47e-01', energy_flux='4.36e-05', photon_flux2='8.35e-08', job_status='DONE', time_completed='2021-09-05 22:51:53.291737', photon_index_error2='0.50', photon_index2='2.25', ts='5.06', fit_tolerance='1e-08', GAL='0.70', photon_index_error='0.00', energy_flux_error2='2.43e-05', EG='1.17', time_epoch_completed='1630907513.29', return_code='0', job_id='779078', GAL2='0.71', EG2='1.15', return_code2='0', energy_flux_error='2.73e-05', photon_flux_error2='5.98e-08', ts2='5.38', photon_index='2.00' WHERE bin_id='1307' AND source_name='4FGL J1231.7+2847' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 22:51:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0064>
Subject: Job 779078: <4FGL_J1231.7+2847_daily_bin1307> in cluster <slac> Done

Job <4FGL_J1231.7+2847_daily_bin1307> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 22:35:44 2021
Job was executed on host(s) <bullet0064>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 22:35:46 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 22:35:46 2021
Terminated at Sun Sep  5 22:51:54 2021
Results reported at Sun Sep  5 22:51:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1231.7+2847_daily_bin1307 187.935 28.7917 578102401 578361601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1231.7+2847 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   747.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             269.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   969 sec.
    Turnaround time :                            970 sec.

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

