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


Performing analysis on: 4FGL_J1231.7+2847_daily_bin1153
RA = 187.935, Dec = 28.7917
tmin = 538185601, tmax = 538444801
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='776532', job_status='RUN', time_executed='2021-09-05 22:35:15.687653', time_epoch_executed='1630906515.69' WHERE source_name='4FGL J1231.7+2847' and cadence='daily' and bin_id='1153'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/776532

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/776532/ft1_4FGL_J1231.7+2847_daily_bin1153.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/776532/ft2_4FGL_J1231.7+2847_daily_bin1153.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/776532/ft1_4FGL_J1231.7+2847_daily_bin1153.fits outfile=/scratch/kocevski/776532/ft1_filteredMKT_4FGL_J1231.7+2847_daily_bin1153.fits ra=187.935 dec=28.7917 rad=12.0 tmin=538185601.0 tmax=538444801.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.59
user 5.10
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/776532/ft1_filtered_4FGL_J1231.7+2847_daily_bin1153.fits" evtable="EVENTS" scfile=/scratch/kocevski/776532/ft2_4FGL_J1231.7+2847_daily_bin1153.fits sctable="SC_DATA" outfile=/scratch/kocevski/776532/ltcube_538185601_538444801_4FGL_J1231.7+2847_daily_bin1153.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/776532/ft2_4FGL_J1231.7+2847_daily_bin1153.fits
.....................!
real 17.27
user 16.60
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/776532/ft1_filtered_4FGL_J1231.7+2847_daily_bin1153.fits evtable="EVENTS" scfile=/scratch/kocevski/776532/ft2_4FGL_J1231.7+2847_daily_bin1153.fits sctable="SC_DATA" expcube=/scratch/kocevski/776532/ltcube_538185601_538444801_4FGL_J1231.7+2847_daily_bin1153.fits outfile=/scratch/kocevski/776532/expmap_538185601_538444801_4FGL_J1231.7+2847_daily_bin1153.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/776532/ltcube_538185601_538444801_4FGL_J1231.7+2847_daily_bin1153.fits
.....................!
real 194.22
user 186.75
sys 4.87

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/776532/ft1_filtered_4FGL_J1231.7+2847_daily_bin1153.fits scfile=/scratch/kocevski/776532/ft2_4FGL_J1231.7+2847_daily_bin1153.fits outfile=/scratch/kocevski/776532/cmap_538185601_538444801_4FGL_J1231.7+2847_daily_bin1153.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.58
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/776532/ft1_filtered_4FGL_J1231.7+2847_daily_bin1153.fits scfile=/scratch/kocevski/776532/ft2_4FGL_J1231.7+2847_daily_bin1153.fits outfile=/scratch/kocevski/776532/cmap_HighResolution_538185601_538444801_4FGL_J1231.7+2847_daily_bin1153.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.60
user 0.41
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/776532/ft1_filtered_4FGL_J1231.7+2847_daily_bin1153.fits evtable="EVENTS" scfile=/scratch/kocevski/776532/ft2_4FGL_J1231.7+2847_daily_bin1153.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/776532/Model_4FGL_J1231.7+2847_daily_bin1153.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/776532/ft1_filtered_4FGL_J1231.7+2847_daily_bin1153.fits......................!
real 34.64
user 32.30
sys 1.38

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10354E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.1765       1.0000         .10000E-03   10000.    
     3 'Prefactor '    22.794       1.0000         .10000E-03   10000.    
     4 'norm      '    18.053       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.4642       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .25277E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.4132       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.0395       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.8802       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .32961       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.5058       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .40283       1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.402       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .96659       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    38.290       1.0000         .10000E-03   10000.    
    24 'norm      '    17.330       1.0000         .10000E-03   10000.    
    25 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.6337       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .45605       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6150E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2914.347     FROM MIGRAD    STATUS=CONVERGED    203 CALLS     3584 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10031E-03    108.50        .82517E-05** at limit **
   2  Prefactor     2.1767        3.4776        .15693E-05    .10448E-03
   3  Prefactor     22.855        41.830       -.19896E-04    .40714E-02
   4  norm          18.054        3.6706        .58349E-06    .23987E-04
   5  Prefactor     1.4638        4.5809        .79645E-06    .52327E-05
   6  Prefactor     .15432E-03    135.70        .19487E-04** at limit **
   7  Prefactor     .10000E-03    3.4274       -.21413E-05** at limit **
   8  norm          .10000E-03    3.0115       -.88457E-07** at limit **
   9  Prefactor     3.4163        8.2697       -.18688E-05   -.21964E-03
  10  Prefactor     3.0393        4.5928        .16398E-05   -.84834E-04
  11  Prefactor     4.8786        4.0947       -.12747E-05   -.22082E-03
  12  Prefactor     .10000E-03    4.5236       -.49745E-06** at limit **
  13  norm          .32952        .31790       -.46581E-06   -.33095E-03
  14  norm          .10000E-03    2.7675       -.46811E-07** at limit **
  15  Prefactor     1.5188        5.9750        .10366E-05    .19194E-02
  16  Prefactor     .10000E-03    20.568        .21961E-05** at limit **
  17  Prefactor     .77664E-03    9157.5        .57205E-04** at limit **
  18  Prefactor     13.400        9.1047       -.15472E-05   -.13742E-01
  19  Prefactor     .10000E-03    30.432        .11015E-04** at limit **
  20  norm          .95417        16.786       -.51089E-05   -.28539E-04
  21  Prefactor     .10007E-03    68.481       -.51733E-05** at limit **
  22  norm          .10000E-03    4.1650       -.11829E-05** at limit **
  23  Prefactor     38.278        18.300        .66751E-05    .20022E-02
  24  norm          17.324        3.6449       -.15236E-05   -.52533E-02
  25  norm          .10000E-03    3.0677        .12323E-05** at limit **
  26  norm          .10000E-03    3.8325       -.12876E-05** at limit **
  27  norm          .10000E-03    27.226       -.73497E-05** at limit **
  28  Prefactor     .10000E-03    7.1414        .18770E-05** at limit **
  29  Prefactor     .10003E-03    49.755        .71754E-05** at limit **
  30  Normalizat    1.6342        .33962        .37519E-06    .12226E-04
  31  Prefactor     .45575        .35429        .92598E-05    .16210E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100305
  Prefactor  = 2.17665
  Prefactor  = 22.8551
  norm       = 18.0544
  Prefactor  = 1.46377
  Prefactor  = 0.000154319
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.41632
  Prefactor  = 3.0393
  Prefactor  = 4.87865
  Prefactor  = 0.0001
  norm       = 0.329518
  norm       = 0.0001
  Prefactor  = 1.5188
  Prefactor  = 0.0001
  Prefactor  = 0.000776642
  Prefactor  = 13.4003
  Prefactor  = 0.0001
  norm       = 0.954168
  Prefactor  = 0.000100067
  norm       = 0.0001
  Prefactor  = 38.2777
  norm       = 17.3239
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100034
  Normalizat = 1.6342
  Prefactor  = 0.455754
 **********
 **   18 **HESSE 
 **********

 FCN=   2914.347     FROM HESSE     STATUS=OK           700 CALLS     4284 TOTAL
                     EDM=   .91E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10031E-03    107.52        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.1767        3.5203        .69771E-02   -1.5413    
   3  Prefactor     22.855        49.598        .20974E-02   -1.4751    
   4  norm          18.054        3.6820        .23566E-02   -1.4858    
   5  Prefactor     1.4638        4.6557        .88855E-02   -1.5466    
   6  Prefactor     .15432E-03    204.29        .10730E-01   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.3179        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.9887        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.4163        8.3349        .54741E-02   -1.5338    
  10  Prefactor     3.0393        4.6645        .58184E-02   -1.5359    
  11  Prefactor     4.8786        4.1645        .45521E-02   -1.5266    
  12  Prefactor     .10000E-03    4.5146        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .32952        .32568        .64680E-02   -1.5593    
  14  norm          .10000E-03    2.7634        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.5188        55.684        .87189E-02   -1.5461    
  16  Prefactor     .10000E-03    20.546        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .77664E-03    201.38        .18511       -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     13.400        15.029        .27353E-02   -1.4976    
  19  Prefactor     .10000E-03    29.679        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .95417        10.161        .53680E-01   -1.5513    
  21  Prefactor     .10007E-03    68.550        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    4.1517        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     38.278        44.704        .16193E-02   -1.4470    
  24  norm          17.324        13.712        .24053E-02   -1.4875    
  25  norm          .10000E-03    3.0617        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    3.8329        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    27.244        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    7.0464        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10003E-03    49.320        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.6342        .31594        .52054E-01   -.74074    
  31  Prefactor     .45575        .33051        .99687E-01   -1.1405    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.08002e-07
Minuit parameter uncertainties:
  1  0.0114814
  2  3.52063
  3  49.688
  4  3.68209
  5  4.65684
  6  0.211407
  7  9.39797e-06
  8  2.48937e-06
  9  8.33773
  10  4.66504
  11  4.16474
  12  2.88564e-06
  13  0.32568
  14  5.38051e-07
  15  18.4105
  16  2.92852e-05
  17  0.740776
  18  15.0336
  19  0.000104244
  20  6.22854
  21  0.00428007
  22  4.53553e-06
  23  44.7432
  24  13.7145
  25  3.08361e-06
  26  7.45742e-06
  27  3.67998e-05
  28  1.4697e-05
  29  0.00257346
  30  0.316324
  31  0.33191
Done.

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

Extracting fit parameters...

4FGL J1231.7+2847
   Spectrum: PowerLaw
334    Prefactor:  1.519e+00  1.841e+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:  4.558e-01  3.319e-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.634e+00  3.163e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/776532/likelihoodResults_538185601_538444801_4FGL_J1231.7+2847_daily_bin1153.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) = 2914.32075949
delta logL = 0.0264839660636

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2914.31794834
delta logL = 0.0292951103556

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.1233       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5346       1.0000          .0000       10.000    
     3 'Normalizat'    1.6242       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .45860       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=   2914.318     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      257 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.1210        25.035        .28301E-03   -.41189E-03
   2  Index         2.5360        2.5830        .88492E-02   -.13577E-03
   3  Normalizat    1.6242        .32914        .23067E-03    .23515E-03
   4  Prefactor     .45859        .35223        .44064E-03    .15661E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.12095
  Index      = 2.536
  Normalizat = 1.62422
  Prefactor  = 0.458585
 **********
 **   18 **HESSE 
 **********

 FCN=   2914.318     FROM HESSE     STATUS=OK            23 CALLS      280 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.1210        16.502        .11320E-04   -1.5417    
   2  Index         2.5360        2.1462        .35397E-03   -.51530    
   3  Normalizat    1.6242        .32912        .46134E-04   -.74345    
   4  Prefactor     .45859        .35168        .17625E-04   -1.1392    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.22135e-09
Minuit parameter uncertainties:
  1  11.8365
  2  2.24441
  3  0.329562
  4  0.353358
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/776532': 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) = 2914.31794802
delta logL = 0.0292954310662

Extracting fit parameters...

4FGL J1231.7+2847
   Spectrum: PowerLaw
334    Prefactor:  2.121e+00  1.184e+01  1.000e-04  1.000e+04 ( 1.000e-13)
335        Index:  2.536e+00  2.244e+00  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:  4.586e-01  3.534e-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.624e+00  3.296e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
Ra Dec: 187.935 28.792

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/776532/cmap_HighResolution_538185601_538444801_4FGL_J1231.7+2847_daily_bin1153.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.86e-03', job_status='DONE', photon_flux_upper_limit='1.31e-07', time_completed='2021-09-05 22:47:01.251765', job_id='776532', GAL2='0.46', fit_tolerance='1e-08', EG2='1.62', EG='1.63', time_epoch_completed='1630907221.25', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.46', dlogl='2.93e-02', ts2='0.07', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='1153' AND source_name='4FGL J1231.7+2847' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 22:47:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0025>
Subject: Job 776532: <4FGL_J1231.7+2847_daily_bin1153> in cluster <slac> Done

Job <4FGL_J1231.7+2847_daily_bin1153> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 22:30:36 2021
Job was executed on host(s) <bullet0025>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 22:32:10 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:32:10 2021
Terminated at Sun Sep  5 22:47:02 2021
Results reported at Sun Sep  5 22:47:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1231.7+2847_daily_bin1153 187.935 28.7917 538185601 538444801 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 :                                   629.11 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             270.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   892 sec.
    Turnaround time :                            986 sec.

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

