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


Performing analysis on: 4FGL_J1231.7+2847_daily_bin560
RA = 187.935, Dec = 28.7917
tmin = 384480001, tmax = 384739201
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='772994', job_status='RUN', time_executed='2021-09-05 22:21:01.335651', time_epoch_executed='1630905661.34' WHERE source_name='4FGL J1231.7+2847' and cadence='daily' and bin_id='560'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/772994

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/772994/ft1_4FGL_J1231.7+2847_daily_bin560.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/772994/ft2_4FGL_J1231.7+2847_daily_bin560.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/772994/ft1_4FGL_J1231.7+2847_daily_bin560.fits outfile=/scratch/kocevski/772994/ft1_filteredMKT_4FGL_J1231.7+2847_daily_bin560.fits ra=187.935 dec=28.7917 rad=12.0 tmin=384480001.0 tmax=384739201.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.01
user 3.73
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/772994/ft2_4FGL_J1231.7+2847_daily_bin560.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/772994/ft1_filteredMKT_4FGL_J1231.7+2847_daily_bin560.fits evtable="EVENTS" outfile="/scratch/kocevski/772994/ft1_filtered_4FGL_J1231.7+2847_daily_bin560.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.50
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/772994/ft1_filtered_4FGL_J1231.7+2847_daily_bin560.fits" evtable="EVENTS" scfile=/scratch/kocevski/772994/ft2_4FGL_J1231.7+2847_daily_bin560.fits sctable="SC_DATA" outfile=/scratch/kocevski/772994/ltcube_384480001_384739201_4FGL_J1231.7+2847_daily_bin560.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/772994/ft2_4FGL_J1231.7+2847_daily_bin560.fits
.....................!
real 14.59
user 13.87
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/772994/ft1_filtered_4FGL_J1231.7+2847_daily_bin560.fits evtable="EVENTS" scfile=/scratch/kocevski/772994/ft2_4FGL_J1231.7+2847_daily_bin560.fits sctable="SC_DATA" expcube=/scratch/kocevski/772994/ltcube_384480001_384739201_4FGL_J1231.7+2847_daily_bin560.fits outfile=/scratch/kocevski/772994/expmap_384480001_384739201_4FGL_J1231.7+2847_daily_bin560.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/772994/ltcube_384480001_384739201_4FGL_J1231.7+2847_daily_bin560.fits
.....................!
real 192.48
user 185.68
sys 5.14

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/772994/ft1_filtered_4FGL_J1231.7+2847_daily_bin560.fits scfile=/scratch/kocevski/772994/ft2_4FGL_J1231.7+2847_daily_bin560.fits outfile=/scratch/kocevski/772994/cmap_384480001_384739201_4FGL_J1231.7+2847_daily_bin560.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.67
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/772994/ft1_filtered_4FGL_J1231.7+2847_daily_bin560.fits scfile=/scratch/kocevski/772994/ft2_4FGL_J1231.7+2847_daily_bin560.fits outfile=/scratch/kocevski/772994/cmap_HighResolution_384480001_384739201_4FGL_J1231.7+2847_daily_bin560.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.57
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/772994/ft1_filtered_4FGL_J1231.7+2847_daily_bin560.fits evtable="EVENTS" scfile=/scratch/kocevski/772994/ft2_4FGL_J1231.7+2847_daily_bin560.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/772994/Model_4FGL_J1231.7+2847_daily_bin560.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/772994/ft1_filtered_4FGL_J1231.7+2847_daily_bin560.fits.....................!
real 58.55
user 55.48
sys 1.48

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .63360       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10322E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .13377E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.2688       1.0000         .10000E-03   10000.    
     8 'norm      '    3.1612       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.7040       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.5309       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    18.712       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    30.306       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.4063       1.0000         .10000E-03   10000.    
    20 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    2.6095       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    5.3796       1.0000         .10000E-03   10000.    
    26 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    14.292       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.1155       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.2065       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=   6063.843     FROM MIGRAD    STATUS=CONVERGED    832 CALLS     4150 TOTAL
                     EDM=   .44E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.8301       -.11131E-06** at limit **
   2  Prefactor     .63348        1.8600        .35444E-06    .31540E-04
   3  Prefactor     .10000E-03    23.071       -.20638E-07** at limit **
   4  norm          .10000E-03    .62272        .42990E-07** at limit **
   5  Prefactor     .10000E-03    3.4753       -.54554E-06** at limit **
   6  Prefactor     .10000E-03    9.1140       -.18811E-06** at limit **
   7  Prefactor     4.2709        4.3514        .27408E-06    .22540E-03
   8  norm          3.1610        2.4858        .45035E-07    .41998E-04
   9  Prefactor     .10000E-03    2.6465        .39262E-08** at limit **
  10  Prefactor     1.7040        1.6100        .24137E-07    .89010E-04
  11  Prefactor     1.5309        1.6873        .12205E-06    .24223E-03
  12  Prefactor     .10000E-03    2.1092        .21009E-07** at limit **
  13  norm          .10000E-03    .17362       -.46084E-08** at limit **
  14  norm          .10000E-03    4.7659        .26136E-06** at limit **
  15  Prefactor     18.709        12.158       -.43886E-06   -.45710E-04
  16  Prefactor     .10000E-03    8.9543        .95404E-08** at limit **
  17  Prefactor     30.490        64.017       -.23226E-06    .11183E-05
  18  Prefactor     .10000E-03    5.1405       -.10462E-06** at limit **
  19  Prefactor     7.4065        5.7752        .85016E-07    .44643E-04
  20  norm          .10000E-03    1.6487        .61721E-07** at limit **
  21  Prefactor     .10000E-03    11.878        .35583E-07** at limit **
  22  norm          2.6091        4.4567        .37548E-05   -.29845E-04
  23  Prefactor     .10000E-03    7.8820       -.18683E-06** at limit **
  24  norm          .10000E-03    1.5678        .19135E-08** at limit **
  25  norm          5.3800        4.0628        .31716E-07   -.83696E-04
  26  norm          .10000E-03    3.4901        .50260E-07** at limit **
  27  norm          14.295        15.627        .93368E-06    .20755E-04
  28  Prefactor     .10000E-03    1.7277        .95369E-07** at limit **
  29  Prefactor     .10000E-03    8.5005        .29036E-06** at limit **
  30  Normalizat    1.1153        .18474       -.99119E-06    .10318E-03
  31  Prefactor     1.2067        .20915        .55136E-07    .14705E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.633478
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.27088
  norm       = 3.16101
  Prefactor  = 0.0001
  Prefactor  = 1.70398
  Prefactor  = 1.53094
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 18.7092
  Prefactor  = 0.0001
  Prefactor  = 30.49
  Prefactor  = 0.0001
  Prefactor  = 7.40646
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.60914
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 5.38001
  norm       = 0.0001
  norm       = 14.2952
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.11528
  Prefactor  = 1.20673
 **********
 **   18 **HESSE 
 **********

 FCN=   6063.843     FROM HESSE     STATUS=OK           620 CALLS     4770 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.8324        .16714E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .63348        1.8563        .17299E-03   -1.5549    
   3  Prefactor     .10000E-03    23.188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.9949        .11897E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8.8628        .27616E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9.1183        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.2709        4.2765        .15470E-03   -1.5295    
   8  norm          3.1610        2.4819        .10286E-03   -1.5352    
   9  Prefactor     .10000E-03    2.6530        .12371E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.7040        1.6247        .91246E-04   -1.5447    
  11  Prefactor     1.5309        1.6782        .10150E-03   -1.5461    
  12  Prefactor     .10000E-03    2.1153        .11043E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .41050        .61417E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    4.9449        .33182E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     18.709        12.156        .92589E-04   -1.4843    
  16  Prefactor     .10000E-03    8.9634        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     30.490        64.292        .72780E-04   -1.4603    
  18  Prefactor     .10000E-03    5.1813        .17240E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     7.4065        5.7713        .14737E-03   -1.5164    
  20  norm          .10000E-03    1.6577        .97621E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    11.907        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.6091        4.4642        .10274E-02   -1.5385    
  23  Prefactor     .10000E-03    7.8974        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    1.5706        .95215E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          5.3800        4.0259        .12964E-03   -1.5244    
  26  norm          .10000E-03    3.4951        .14167E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          14.295        15.609        .10595E-03   -1.4952    
  28  Prefactor     .10000E-03    3.3173        .19818E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    8.5270        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.1153        .22269        .24962E-03   -.89263    
  31  Prefactor     1.2067        .25283        .27741E-03   -.86124    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.32429e-10
Minuit parameter uncertainties:
  1  1.57956e-06
  2  1.85646
  3  2.00565e-05
  4  4.37806e-06
  5  3.11714e-05
  6  2.23065e-06
  7  4.27678
  8  2.48194
  9  5.13732e-07
  10  1.62471
  11  1.67825
  12  2.09723e-06
  13  7.57953e-07
  14  2.24149e-05
  15  12.1574
  16  6.07077e-07
  17  64.4381
  18  1.84938e-05
  19  5.77174
  20  5.26883e-06
  21  1.51096e-05
  22  4.46478
  23  5.47466e-07
  24  2.30845e-07
  25  4.02606
  26  4.65212e-06
  27  15.6131
  28  9.65886e-06
  29  1.66984e-06
  30  0.222878
  31  0.253085
Done.

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

Extracting fit parameters...

4FGL J1231.7+2847
   Spectrum: PowerLaw
334    Prefactor:  1.871e+01  1.216e+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.207e+00  2.531e-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.115e+00  2.229e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.90
Ra Dec: 187.935 28.792
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 4.75e-08 +/- 3.09e-08
Energy Flux (Fixed Index): 3.30e-05 +/- 2.15e-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) = 6063.63072013
delta logL = 0.212112573864

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6063.61833194
delta logL = 0.224500755036

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.324       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3419       1.0000          .0000       10.000    
     3 'Normalizat'    1.0881       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2249       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=   6063.618     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      295 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.325        12.941        .10583E-03    .59621E-04
   2  Index         2.3417        .56465        .48876E-02    .40301E-03
   3  Normalizat    1.0883        .22266        .25222E-03    .99841E-04
   4  Prefactor     1.2247        .25246        .27559E-03    .11757E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.3246
  Index      = 2.34173
  Normalizat = 1.08826
  Prefactor  = 1.22468
 **********
 **   18 **HESSE 
 **********

 FCN=   6063.618     FROM HESSE     STATUS=OK            25 CALLS      320 TOTAL
                     EDM=   .33E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.325        12.263        .42331E-05   -1.4951    
   2  Index         2.3417        .53467        .97752E-03   -.56055    
   3  Normalizat    1.0883        .22240        .10089E-04   -.90130    
   4  Prefactor     1.2247        .25241        .11024E-04   -.85575    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.29869e-11
Minuit parameter uncertainties:
  1  12.2655
  2  0.536102
  3  0.222593
  4  0.252655
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/772994': 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) = 6063.61833157
delta logL = 0.224501126105

Extracting fit parameters...

4FGL J1231.7+2847
   Spectrum: PowerLaw
334    Prefactor:  1.432e+01  1.227e+01  1.000e-04  1.000e+04 ( 1.000e-13)
335        Index:  2.342e+00  5.361e-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.225e+00  2.527e-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.088e+00  2.226e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.35
Ra Dec: 187.935 28.792
Photon Index (Free Index): 2.34 +/- 0.54
Photon Flux (Free Index): 7.03e-08 +/- 5.29e-08
Energy Flux (Free Index): 2.50e-05 +/- 1.67e-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/772994/cmap_HighResolution_384480001_384739201_4FGL_J1231.7+2847_daily_bin560.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.75e-08', energy_flux2='2.50e-05', photon_flux_error='3.09e-08', dlogl='2.25e-01', energy_flux='3.30e-05', photon_flux2='7.03e-08', job_status='DONE', time_completed='2021-09-05 22:34:34.929590', photon_index_error2='0.54', photon_index2='2.34', ts='4.90', fit_tolerance='1e-08', GAL='1.21', photon_index_error='0.00', energy_flux_error2='1.67e-05', EG='1.12', time_epoch_completed='1630906474.93', return_code='0', job_id='772994', GAL2='1.22', EG2='1.09', return_code2='0', energy_flux_error='2.15e-05', photon_flux_error2='5.29e-08', ts2='5.35', photon_index='2.00' WHERE bin_id='560' AND source_name='4FGL J1231.7+2847' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 22:34:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0038>
Subject: Job 772994: <4FGL_J1231.7+2847_daily_bin560> in cluster <slac> Done

Job <4FGL_J1231.7+2847_daily_bin560> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 22:20:22 2021
Job was executed on host(s) <bullet0038>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 22:20:44 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:20:44 2021
Terminated at Sun Sep  5 22:34:35 2021
Results reported at Sun Sep  5 22:34:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1231.7+2847_daily_bin560 187.935 28.7917 384480001 384739201 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 :                                   802.13 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             329.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   832 sec.
    Turnaround time :                            853 sec.

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

