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


Performing analysis on: 4FGL_J1231.7+2847_daily_bin1048
RA = 187.935, Dec = 28.7917
tmin = 510969601, tmax = 511228801
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='776380', job_status='RUN', time_executed='2021-09-05 22:31:58.494256', time_epoch_executed='1630906318.49' WHERE source_name='4FGL J1231.7+2847' and cadence='daily' and bin_id='1048'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/776380

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/776380/ft1_4FGL_J1231.7+2847_daily_bin1048.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/776380/ft2_4FGL_J1231.7+2847_daily_bin1048.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/776380/ft1_4FGL_J1231.7+2847_daily_bin1048.fits outfile=/scratch/kocevski/776380/ft1_filteredMKT_4FGL_J1231.7+2847_daily_bin1048.fits ra=187.935 dec=28.7917 rad=12.0 tmin=510969601.0 tmax=511228801.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.55
user 3.32
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/776380/ft1_filtered_4FGL_J1231.7+2847_daily_bin1048.fits" evtable="EVENTS" scfile=/scratch/kocevski/776380/ft2_4FGL_J1231.7+2847_daily_bin1048.fits sctable="SC_DATA" outfile=/scratch/kocevski/776380/ltcube_510969601_511228801_4FGL_J1231.7+2847_daily_bin1048.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/776380/ft2_4FGL_J1231.7+2847_daily_bin1048.fits
.....................!
real 15.86
user 15.28
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/776380/ft1_filtered_4FGL_J1231.7+2847_daily_bin1048.fits evtable="EVENTS" scfile=/scratch/kocevski/776380/ft2_4FGL_J1231.7+2847_daily_bin1048.fits sctable="SC_DATA" expcube=/scratch/kocevski/776380/ltcube_510969601_511228801_4FGL_J1231.7+2847_daily_bin1048.fits outfile=/scratch/kocevski/776380/expmap_510969601_511228801_4FGL_J1231.7+2847_daily_bin1048.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/776380/ltcube_510969601_511228801_4FGL_J1231.7+2847_daily_bin1048.fits
.....................!
real 197.27
user 192.20
sys 4.62

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/776380/ft1_filtered_4FGL_J1231.7+2847_daily_bin1048.fits scfile=/scratch/kocevski/776380/ft2_4FGL_J1231.7+2847_daily_bin1048.fits outfile=/scratch/kocevski/776380/cmap_510969601_511228801_4FGL_J1231.7+2847_daily_bin1048.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.70
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/776380/ft1_filtered_4FGL_J1231.7+2847_daily_bin1048.fits scfile=/scratch/kocevski/776380/ft2_4FGL_J1231.7+2847_daily_bin1048.fits outfile=/scratch/kocevski/776380/cmap_HighResolution_510969601_511228801_4FGL_J1231.7+2847_daily_bin1048.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.70
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/776380/ft1_filtered_4FGL_J1231.7+2847_daily_bin1048.fits evtable="EVENTS" scfile=/scratch/kocevski/776380/ft2_4FGL_J1231.7+2847_daily_bin1048.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/776380/Model_4FGL_J1231.7+2847_daily_bin1048.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/776380/ft1_filtered_4FGL_J1231.7+2847_daily_bin1048.fits.....................!
real 56.94
user 51.33
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/776380/ft1_filtered_4FGL_J1231.7+2847_daily_bin1048.fits', '/scratch/kocevski/776380/ft2_4FGL_J1231.7+2847_daily_bin1048.fits', expMap='/scratch/kocevski/776380/expmap_510969601_511228801_4FGL_J1231.7+2847_daily_bin1048.fits', expCube='/scratch/kocevski/776380/ltcube_510969601_511228801_4FGL_J1231.7+2847_daily_bin1048.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/776380/Model_4FGL_J1231.7+2847_daily_bin1048.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/776380/ft1_filtered_4FGL_J1231.7+2847_daily_bin1048.fits
Spacecraft file(s): /scratch/kocevski/776380/ft2_4FGL_J1231.7+2847_daily_bin1048.fits
Exposure map: /scratch/kocevski/776380/expmap_510969601_511228801_4FGL_J1231.7+2847_daily_bin1048.fits
Exposure cube: /scratch/kocevski/776380/ltcube_510969601_511228801_4FGL_J1231.7+2847_daily_bin1048.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/776380/Model_4FGL_J1231.7+2847_daily_bin1048.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) = 5827.7945116

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.689       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    25.877       1.0000         .10000E-03   10000.    
     4 'norm      '    5.2062       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11853E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.882       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.6379       1.0000         .10000E-03   10000.    
     8 'norm      '    11.634       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.2543       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.7788       1.0000         .10000E-03   10000.    
    13 'norm      '    .25911       1.0000         .10000E-03   10000.    
    14 'norm      '    9.8933       1.0000         .10000E-03   10000.    
    15 'Prefactor '    15.857       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11085E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10049E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .26700E-02   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    20.407       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .79302       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.3091       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5827.778     FROM MIGRAD    STATUS=CONVERGED    824 CALLS     4194 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.688        15.827       -.11844E-06   -.84037E-05
   2  Prefactor     .10000E-03    .87864        .61034E-09** at limit **
   3  Prefactor     25.872        27.775       -.28624E-05   -.18059E-03
   4  norm          5.2061        1.6565        .99093E-07    .53390E-04
   5  Prefactor     .10000E-03    3.5395        .79922E-07** at limit **
   6  Prefactor     15.875        32.281       -.73668E-05   -.17023E-03
   7  Prefactor     4.6383        4.5823       -.13127E-06   -.11490E-03
   8  norm          11.634        3.7156       -.66597E-07   -.10472E-03
   9  Prefactor     .10000E-03    1.7264        .15722E-07** at limit **
  10  Prefactor     .10000E-03    .93314        .27519E-07** at limit **
  11  Prefactor     2.2541        2.2544        .12053E-07   -.60698E-04
  12  Prefactor     3.7783        2.9985        .59810E-06   -.19413E-02
  13  norm          .25912        .19097       -.23741E-07   -.30907E-03
  14  norm          9.8933        5.3392       -.13482E-06   -.34176E-03
  15  Prefactor     15.856        11.313       -.68035E-08    .64129E-05
  16  Prefactor     .10000E-03    6.5743        .12779E-06** at limit **
  17  Prefactor     .10000E-03    47.463       -.12091E-05** at limit **
  18  Prefactor     .10000E-03    1.9794       -.37382E-07** at limit **
  19  Prefactor     .10000E-03    2.4156        .54590E-07** at limit **
  20  norm          .10000E-03    2.0408       -.50679E-06** at limit **
  21  Prefactor     .10000E-03    4.4233        .13610E-05** at limit **
  22  norm          .10047E-03    2.0698        .81554E-06** at limit **
  23  Prefactor     .10000E-03    5.0893       -.10383E-05** at limit **
  24  norm          .10000E-03    1.5605       -.71593E-08** at limit **
  25  norm          .10000E-03    .78164       -.26379E-07** at limit **
  26  norm          .10000E-03    1.3348        .24948E-07** at limit **
  27  norm          20.412        19.338        .11487E-05    .33337E-04
  28  Prefactor     .10000E-03    1.9091        .79454E-07** at limit **
  29  Prefactor     .10000E-03    21.422       -.41623E-05** at limit **
  30  Normalizat    .79309        .18706        .15382E-05   -.98784E-04
  31  Prefactor     1.3091        .21516       -.57151E-06   -.51559E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.688
  Prefactor  = 0.0001
  Prefactor  = 25.872
  norm       = 5.20606
  Prefactor  = 0.0001
  Prefactor  = 15.8747
  Prefactor  = 4.63831
  norm       = 11.6337
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.25414
  Prefactor  = 3.7783
  norm       = 0.259119
  norm       = 9.89328
  Prefactor  = 15.8557
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100465
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 20.412
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 0.793091
  Prefactor  = 1.30909
 **********
 **   18 **HESSE 
 **********

 FCN=   5827.778     FROM HESSE     STATUS=OK           626 CALLS     4820 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.688        15.716        .88057E-04   -1.4798    
   2  Prefactor     .10000E-03    1.3938        .13802E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     25.872        27.807        .78749E-04   -1.4690    
   4  norm          5.2061        1.6539        .52537E-04   -1.5252    
   5  Prefactor     .10000E-03    7.4143        .26945E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     15.875        32.437        .10050E-03   -1.4911    
   7  Prefactor     4.6383        4.4488        .15000E-03   -1.5277    
   8  norm          11.634        3.7050        .79111E-04   -1.5026    
   9  Prefactor     .10000E-03    1.7279        .97960E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    .95017        .71880E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.2541        2.2376        .10686E-03   -1.5408    
  12  Prefactor     3.7783        6.0103        .10384E-02   -1.5319    
  13  norm          .25912        .18876        .27283E-04   -1.5606    
  14  norm          9.8933        5.4274        .60280E-03   -1.5079    
  15  Prefactor     15.856        11.292        .10058E-03   -1.4911    
  16  Prefactor     .10000E-03    6.5801        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    47.512        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.9835        .10489E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.8262        .23108E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    3.9390        .21051E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.4281        .15686E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10047E-03    29.024        .20590E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    5.1051        .16827E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    1.5710        .93119E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    .78395        .65896E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    1.3353        .86133E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          20.412        19.303        .88663E-04   -1.4804    
  28  Prefactor     .10000E-03    3.3517        .20314E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    21.914        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .79309        .21759        .26949E-03   -1.0033    
  31  Prefactor     1.3091        .25532        .26202E-03   -.83037    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.91899e-08
Minuit parameter uncertainties:
  1  15.719
  2  5.70842e-06
  3  27.8206
  4  1.6539
  5  6.29099e-05
  6  32.4726
  7  4.44908
  8  3.70505
  9  2.60544e-06
  10  1.41441e-06
  11  2.23767
  12  6.0113
  13  0.188762
  14  5.42763
  15  11.2933
  16  2.35775e-06
  17  0.000115226
  18  3.14181e-06
  19  2.47928e-05
  20  4.81949e-05
  21  3.4479e-05
  22  0.00735235
  23  3.08038e-05
  24  6.24358e-07
  25  6.38686e-07
  26  2.63725e-07
  27  19.3088
  28  1.52165e-05
  29  0.000233875
  30  0.217833
  31  0.255564
Done.

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

Extracting fit parameters...

4FGL J1231.7+2847
   Spectrum: PowerLaw
334    Prefactor:  1.586e+01  1.129e+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:  1.309e+00  2.556e-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:  7.931e-01  2.178e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.75
Ra Dec: 187.935 28.792
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 4.03e-08 +/- 2.87e-08
Energy Flux (Fixed Index): 2.80e-05 +/- 1.99e-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) = 5827.32482294
delta logL = 0.453441049845

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5827.32122284
delta logL = 0.457041149892

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.7962       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4997       1.0000          .0000       10.000    
     3 'Normalizat'    .76034       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3319       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5827.321     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      302 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.7976        11.109        .12803E-03    .12005E-03
   2  Index         2.4996        .61221        .42882E-02    .50052E-04
   3  Normalizat    .76047        .21193        .27459E-03    .30866E-03
   4  Prefactor     1.3316        .25547        .25995E-03    .40990E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.79756
  Index      = 2.49956
  Normalizat = 0.760472
  Prefactor  = 1.33165
 **********
 **   18 **HESSE 
 **********

 FCN=   5827.321     FROM HESSE     STATUS=OK            25 CALLS      327 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.7976        9.8517        .51212E-05   -1.5082    
   2  Index         2.4996        .54291        .17153E-03   -.52370    
   3  Normalizat    .76047        .21166        .10984E-04   -1.0155    
   4  Prefactor     1.3316        .25535        .51989E-04   -.82371    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.11465e-10
Minuit parameter uncertainties:
  1  9.85337
  2  0.544346
  3  0.211891
  4  0.255588
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/776380': 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) = 5827.32122167
delta logL = 0.457042318448

Extracting fit parameters...

4FGL J1231.7+2847
   Spectrum: PowerLaw
334    Prefactor:  9.798e+00  9.853e+00  1.000e-04  1.000e+04 ( 1.000e-13)
335        Index:  2.500e+00  5.443e-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:  1.332e+00  2.556e-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:  7.605e-01  2.119e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.69
Ra Dec: 187.935 28.792
Photon Index (Free Index): 2.50 +/- 0.54
Photon Flux (Free Index): 6.66e-08 +/- 4.39e-08
Energy Flux (Free Index): 1.93e-05 +/- 1.24e-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/776380/cmap_HighResolution_510969601_511228801_4FGL_J1231.7+2847_daily_bin1048.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.03e-08', energy_flux2='1.93e-05', photon_flux_error='2.87e-08', dlogl='4.57e-01', energy_flux='2.80e-05', photon_flux2='6.66e-08', job_status='DONE', time_completed='2021-09-05 22:45:37.916129', photon_index_error2='0.54', photon_index2='2.50', ts='5.75', fit_tolerance='1e-08', GAL='1.31', photon_index_error='0.00', energy_flux_error2='1.24e-05', EG='0.79', time_epoch_completed='1630907137.92', return_code='0', job_id='776380', GAL2='1.33', EG2='0.76', return_code2='0', energy_flux_error='1.99e-05', photon_flux_error2='4.39e-08', ts2='6.69', photon_index='2.00' WHERE bin_id='1048' AND source_name='4FGL J1231.7+2847' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 22:45:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 776380: <4FGL_J1231.7+2847_daily_bin1048> in cluster <slac> Done

Job <4FGL_J1231.7+2847_daily_bin1048> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 22:30:26 2021
Job was executed on host(s) <bullet0083>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 22:31:38 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:31:38 2021
Terminated at Sun Sep  5 22:45:38 2021
Results reported at Sun Sep  5 22:45:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1231.7+2847_daily_bin1048 187.935 28.7917 510969601 511228801 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 :                                   809.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             330.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   840 sec.
    Turnaround time :                            912 sec.

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

