/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 175 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 = 6319
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1231.7+2847_daily_bin91
RA = 187.935, Dec = 28.7917
tmin = 262915201, tmax = 263174401
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='769951', job_status='RUN', time_executed='2021-09-05 22:14:18.302953', time_epoch_executed='1630905258.3' WHERE source_name='4FGL J1231.7+2847' and cadence='daily' and bin_id='91'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/769951

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/769951/ft1_4FGL_J1231.7+2847_daily_bin91.fits


Retrieving the FT1 file...

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

Retrieving 41 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/769951/ft2_4FGL_J1231.7+2847_daily_bin91.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/769951/ft1_4FGL_J1231.7+2847_daily_bin91.fits outfile=/scratch/kocevski/769951/ft1_filteredMKT_4FGL_J1231.7+2847_daily_bin91.fits ra=187.935 dec=28.7917 rad=12.0 tmin=262915201.0 tmax=263174401.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 1.33
user 1.15
sys 0.15

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/769951/ft1_filtered_4FGL_J1231.7+2847_daily_bin91.fits" evtable="EVENTS" scfile=/scratch/kocevski/769951/ft2_4FGL_J1231.7+2847_daily_bin91.fits sctable="SC_DATA" outfile=/scratch/kocevski/769951/ltcube_262915201_263174401_4FGL_J1231.7+2847_daily_bin91.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/769951/ft2_4FGL_J1231.7+2847_daily_bin91.fits
.....................!
real 16.38
user 15.97
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/769951/ft1_filtered_4FGL_J1231.7+2847_daily_bin91.fits evtable="EVENTS" scfile=/scratch/kocevski/769951/ft2_4FGL_J1231.7+2847_daily_bin91.fits sctable="SC_DATA" expcube=/scratch/kocevski/769951/ltcube_262915201_263174401_4FGL_J1231.7+2847_daily_bin91.fits outfile=/scratch/kocevski/769951/expmap_262915201_263174401_4FGL_J1231.7+2847_daily_bin91.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/769951/ltcube_262915201_263174401_4FGL_J1231.7+2847_daily_bin91.fits
.....................!
real 193.99
user 188.02
sys 5.46

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/769951/ft1_filtered_4FGL_J1231.7+2847_daily_bin91.fits scfile=/scratch/kocevski/769951/ft2_4FGL_J1231.7+2847_daily_bin91.fits outfile=/scratch/kocevski/769951/cmap_262915201_263174401_4FGL_J1231.7+2847_daily_bin91.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.57
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/769951/ft1_filtered_4FGL_J1231.7+2847_daily_bin91.fits scfile=/scratch/kocevski/769951/ft2_4FGL_J1231.7+2847_daily_bin91.fits outfile=/scratch/kocevski/769951/cmap_HighResolution_262915201_263174401_4FGL_J1231.7+2847_daily_bin91.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.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/769951/ft1_filtered_4FGL_J1231.7+2847_daily_bin91.fits evtable="EVENTS" scfile=/scratch/kocevski/769951/ft2_4FGL_J1231.7+2847_daily_bin91.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/769951/Model_4FGL_J1231.7+2847_daily_bin91.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/769951/ft1_filtered_4FGL_J1231.7+2847_daily_bin91.fits.....................!
real 44.75
user 43.30
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    57.032       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10332E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.5794       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.8216       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .40957E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.3935       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.2004       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.1750       1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    16.777       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    39.022       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .12053E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    26.370       1.0000         .10000E-03   10000.    
    22 'norm      '    14.018       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    12.920       1.0000         .10000E-03   10000.    
    25 'norm      '    9.5495       1.0000         .10000E-03   10000.    
    26 'norm      '    .10476E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10114E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    16.874       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.5641       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .29221       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=   4340.874     FROM MIGRAD    STATUS=CONVERGED    817 CALLS     4139 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     57.114        31.281        .15800E-04    .24691E-03
   2  Prefactor     .10001E-03    1.8277       -.35805E-05** at limit **
   3  Prefactor     .10000E-03    11.672       -.10395E-04** at limit **
   4  norm          3.5788        1.6871       -.55937E-06    .39126E-03
   5  Prefactor     1.8221        2.7158       -.86444E-07   -.37540E-04
   6  Prefactor     .10000E-03    30.288        .34275E-05** at limit **
   7  Prefactor     .10000E-03    1.1987       -.15725E-07** at limit **
   8  norm          .10000E-03    .96013       -.44965E-07** at limit **
   9  Prefactor     .10022E-03    9.2488        .12002E-05** at limit **
  10  Prefactor     1.3931        1.7791        .27531E-07   -.13498E-03
  11  Prefactor     6.2008        2.6777        .12223E-07    .32463E-04
  12  Prefactor     .10000E-03    2.2518       -.19766E-06** at limit **
  13  norm          1.1748        .35928        .11011E-07    .48189E-04
  14  norm          .10000E-03    2.1909        .97849E-07** at limit **
  15  Prefactor     16.766        11.812        .77718E-07   -.44415E-04
  16  Prefactor     .10000E-03    15.107        .93552E-05** at limit **
  17  Prefactor     39.019        77.590       -.24470E-05   -.81966E-04
  18  Prefactor     .10000E-03    3.1769       -.69618E-06** at limit **
  19  Prefactor     .10000E-03    3.2625        .26454E-05** at limit **
  20  norm          .10005E-03    5.0199        .29845E-05** at limit **
  21  Prefactor     26.361        28.130       -.14894E-06   -.27113E-03
  22  norm          14.018        5.6954        .35583E-06   -.12956E-03
  23  Prefactor     .10000E-03    17.726       -.11771E-04** at limit **
  24  norm          12.920        7.9992        .44925E-07   -.52421E-04
  25  norm          9.5489        5.9933       -.85746E-06   -.62737E-03
  26  norm          .10000E-03    12.716        .89400E-06** at limit **
  27  norm          .10000E-03    9.9721        .30841E-05** at limit **
  28  Prefactor     .10000E-03    2.2889        .23325E-06** at limit **
  29  Prefactor     16.877        20.461       -.72905E-06   -.26060E-04
  30  Normalizat    1.5646        .25888       -.26320E-05    .29085E-03
  31  Prefactor     .29207        .27083        .15278E-05   -.12491E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 57.1143
  Prefactor  = 0.000100005
  Prefactor  = 0.000100002
  norm       = 3.57879
  Prefactor  = 1.82206
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100215
  Prefactor  = 1.39306
  Prefactor  = 6.20085
  Prefactor  = 0.0001
  norm       = 1.1748
  norm       = 0.0001
  Prefactor  = 16.766
  Prefactor  = 0.000100001
  Prefactor  = 39.0192
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100046
  Prefactor  = 26.3613
  norm       = 14.0182
  Prefactor  = 0.000100003
  norm       = 12.9196
  norm       = 9.54891
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.8768
  Normalizat = 1.56456
  Prefactor  = 0.292065
 **********
 **   18 **HESSE 
 **********

 FCN=   4340.874     FROM HESSE     STATUS=OK           620 CALLS     4759 TOTAL
                     EDM=   .77E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     57.114        31.732        .53120E-04   -1.4195    
   2  Prefactor     .10001E-03    3.2736        .17040E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    11.591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.5788        1.6886        .55599E-04   -1.5330    
   5  Prefactor     1.8221        2.6920        .12875E-03   -1.5438    
   6  Prefactor     .10000E-03    30.334        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.2049        .70438E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .96244        .63023E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10022E-03    152.88        .37749E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.3931        1.7593        .96271E-04   -1.5472    
  11  Prefactor     6.2008        2.6798        .68151E-04   -1.5210    
  12  Prefactor     .10000E-03    2.2609        .96548E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.1748        .35943        .20837E-04   -1.5491    
  14  norm          .10000E-03    2.2110        .95221E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     16.766        11.803        .97783E-04   -1.4889    
  16  Prefactor     .10000E-03    15.047        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     39.019        77.141        .64164E-04   -1.4458    
  18  Prefactor     .10000E-03    3.1819        .11467E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.2628        .11612E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10005E-03    13.534        .27501E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     26.361        27.803        .78011E-04   -1.4681    
  22  norm          14.018        5.6909        .96984E-04   -1.4959    
  23  Prefactor     .10000E-03    17.648        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          12.920        7.9912        .11144E-03   -1.4989    
  25  norm          9.5489        5.9286        .11524E-03   -1.5090    
  26  norm          .10000E-03    12.825        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    9.9730        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    2.2968        .97242E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     16.877        20.441        .97501E-04   -1.4886    
  30  Normalizat    1.5646        .26421        .21343E-03   -.75980    
  31  Prefactor     .29207        .26878        .49527E-03   -1.2273    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.68559e-09
Minuit parameter uncertainties:
  1  31.7416
  2  0.000260946
  3  0.000265606
  4  1.68863
  5  2.69221
  6  0.00014205
  7  6.60269e-07
  8  3.84597e-07
  9  0.0115043
  10  1.75932
  11  2.67982
  12  2.85785e-06
  13  0.359426
  14  1.74729e-06
  15  11.8049
  16  0.000272055
  17  77.3396
  18  1.31314e-05
  19  3.22264e-05
  20  0.00157428
  21  27.8169
  22  5.69114
  23  0.000427165
  24  7.99183
  25  5.92897
  26  0.000141927
  27  7.14233e-05
  28  9.68833e-06
  29  20.4497
  30  0.264444
  31  0.269938
Done.

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

Extracting fit parameters...

4FGL J1231.7+2847
   Spectrum: PowerLaw
334    Prefactor:  1.677e+01  1.180e+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:  2.921e-01  2.699e-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.565e+00  2.644e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.97
Ra Dec: 187.935 28.792
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 4.26e-08 +/- 3.00e-08
Energy Flux (Fixed Index): 2.96e-05 +/- 2.08e-05

TS (Fixed Index): 3.97
Ra Dec: 187.935 28.792
Photon Flux Upper Limit: 1.14e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.56e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/769951/likelihoodResults_262915201_263174401_4FGL_J1231.7+2847_daily_bin91.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) = 4340.84613872
delta logL = 0.0280884031117

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4340.84608239
delta logL = 0.0281447281823

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.362       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1309       1.0000          .0000       10.000    
     3 'Normalizat'    1.5611       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .29438       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=   4340.846     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      261 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.367        15.283        .10569E-03   -.21387E-02
   2  Index         2.1308        .60110        .52822E-02   -.69393E-03
   3  Normalizat    1.5611        .24948        .21361E-03    .68844E-03
   4  Prefactor     .29439        .26676        .49339E-03    .31194E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.3667
  Index      = 2.13076
  Normalizat = 1.5611
  Prefactor  = 0.294394
 **********
 **   18 **HESSE 
 **********

 FCN=   4340.846     FROM HESSE     STATUS=OK            23 CALLS      284 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.367        14.524        .21138E-04   -1.4950    
   2  Index         2.1308        .57136        .21129E-03   -.61120    
   3  Normalizat    1.5611        .24934        .42721E-04   -.76076    
   4  Prefactor     .29439        .26663        .19736E-04   -1.2259    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.68868e-09
Minuit parameter uncertainties:
  1  14.5272
  2  0.573235
  3  0.249542
  4  0.267752
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/769951': 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) = 4340.84608234
delta logL = 0.0281447791131

Extracting fit parameters...

4FGL J1231.7+2847
   Spectrum: PowerLaw
334    Prefactor:  1.437e+01  1.453e+01  1.000e-04  1.000e+04 ( 1.000e-13)
335        Index:  2.131e+00  5.732e-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:  2.944e-01  2.678e-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.561e+00  2.495e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.02
Ra Dec: 187.935 28.792
Photon Index (Free Index): 2.13 +/- 0.57
Photon Flux (Free Index): 4.66e-08 +/- 3.62e-08
Energy Flux (Free Index): 2.40e-05 +/- 2.60e-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/769951/cmap_HighResolution_262915201_263174401_4FGL_J1231.7+2847_daily_bin91.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.56e-03', comment='SUCCESS', photon_flux='4.26e-08', energy_flux2='2.40e-05', photon_flux_error='3.00e-08', dlogl='2.81e-02', energy_flux='2.96e-05', photon_flux2='4.66e-08', job_status='DONE', time_completed='2021-09-05 22:27:01.784067', photon_index_error2='0.57', photon_index2='2.13', ts='3.97', fit_tolerance='1e-08', GAL='0.29', photon_index_error='0.00', photon_flux_upper_limit='1.14e-07', energy_flux_error2='2.60e-05', EG='1.56', time_epoch_completed='1630906021.78', return_code='0', job_id='769951', GAL2='0.29', EG2='1.56', return_code2='0', energy_flux_error='2.08e-05', photon_flux_error2='3.62e-08', ts2='4.02', photon_index='2.00' WHERE bin_id='91' AND source_name='4FGL J1231.7+2847' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 22:27:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 769951: <4FGL_J1231.7+2847_daily_bin91> in cluster <slac> Done

Job <4FGL_J1231.7+2847_daily_bin91> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Sep  5 22:10:49 2021
Job was executed on host(s) <bullet0031>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 22:10:57 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:10:57 2021
Terminated at Sun Sep  5 22:27:02 2021
Results reported at Sun Sep  5 22:27:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1231.7+2847_daily_bin91 187.935 28.7917 262915201 263174401 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 :                                   763.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             285.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   965 sec.
    Turnaround time :                            973 sec.

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

