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


Performing analysis on: 4FGL_J1231.7+2847_daily_bin38
RA = 187.935, Dec = 28.7917
tmin = 249177601, tmax = 249436801
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='769870', job_status='RUN', time_executed='2021-09-05 22:12:40.015659', time_epoch_executed='1630905160.02' WHERE source_name='4FGL J1231.7+2847' and cadence='daily' and bin_id='38'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/769870

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/769870/ft1_4FGL_J1231.7+2847_daily_bin38.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/769870/ft2_4FGL_J1231.7+2847_daily_bin38.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/769870/ft1_4FGL_J1231.7+2847_daily_bin38.fits outfile=/scratch/kocevski/769870/ft1_filteredMKT_4FGL_J1231.7+2847_daily_bin38.fits ra=187.935 dec=28.7917 rad=12.0 tmin=249177601.0 tmax=249436801.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.46
user 1.28
sys 0.15

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/769870/ft2_4FGL_J1231.7+2847_daily_bin38.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/769870/ft1_filteredMKT_4FGL_J1231.7+2847_daily_bin38.fits evtable="EVENTS" outfile="/scratch/kocevski/769870/ft1_filtered_4FGL_J1231.7+2847_daily_bin38.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.62
user 0.36
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/769870/ft1_filtered_4FGL_J1231.7+2847_daily_bin38.fits" evtable="EVENTS" scfile=/scratch/kocevski/769870/ft2_4FGL_J1231.7+2847_daily_bin38.fits sctable="SC_DATA" outfile=/scratch/kocevski/769870/ltcube_249177601_249436801_4FGL_J1231.7+2847_daily_bin38.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/769870/ft2_4FGL_J1231.7+2847_daily_bin38.fits
.....................!
real 17.58
user 17.07
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/769870/ft1_filtered_4FGL_J1231.7+2847_daily_bin38.fits evtable="EVENTS" scfile=/scratch/kocevski/769870/ft2_4FGL_J1231.7+2847_daily_bin38.fits sctable="SC_DATA" expcube=/scratch/kocevski/769870/ltcube_249177601_249436801_4FGL_J1231.7+2847_daily_bin38.fits outfile=/scratch/kocevski/769870/expmap_249177601_249436801_4FGL_J1231.7+2847_daily_bin38.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/769870/ltcube_249177601_249436801_4FGL_J1231.7+2847_daily_bin38.fits
.....................!
real 192.93
user 188.26
sys 4.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/769870/ft1_filtered_4FGL_J1231.7+2847_daily_bin38.fits scfile=/scratch/kocevski/769870/ft2_4FGL_J1231.7+2847_daily_bin38.fits outfile=/scratch/kocevski/769870/cmap_249177601_249436801_4FGL_J1231.7+2847_daily_bin38.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=187.935 yref=28.7917 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.56
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/769870/ft1_filtered_4FGL_J1231.7+2847_daily_bin38.fits scfile=/scratch/kocevski/769870/ft2_4FGL_J1231.7+2847_daily_bin38.fits outfile=/scratch/kocevski/769870/cmap_HighResolution_249177601_249436801_4FGL_J1231.7+2847_daily_bin38.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.54
user 0.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/769870/ft1_filtered_4FGL_J1231.7+2847_daily_bin38.fits evtable="EVENTS" scfile=/scratch/kocevski/769870/ft2_4FGL_J1231.7+2847_daily_bin38.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/769870/Model_4FGL_J1231.7+2847_daily_bin38.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/769870/ft1_filtered_4FGL_J1231.7+2847_daily_bin38.fits.....................!
real 49.17
user 47.89
sys 1.12

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.7741       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12810E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10426       1.0000         .10000E-03   10000.    
     4 'norm      '    4.8141       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10258E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.9056       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10675E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10760E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.4978       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.3839       1.0000         .10000E-03   10000.    
    13 'norm      '    .28264       1.0000         .10000E-03   10000.    
    14 'norm      '    .11059       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .13914E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10834E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    29.309       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.3323       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.9076       1.0000         .10000E-03   10000.    
    20 'norm      '    .10860E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .11759E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    9.0430       1.0000         .10000E-03   10000.    
    24 'norm      '    .13660E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    11.572       1.0000         .10000E-03   10000.    
    26 'norm      '    .10461E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    7.8462       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.2336       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .93142       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=   5357.488     FROM MIGRAD    STATUS=CONVERGED    892 CALLS     3598 TOTAL
                     EDM=   .82E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.205        20.466        .41626E-05   -.36077E-04
   2  Prefactor     .10000E-03    1.0287       -.29637E-07** at limit **
   3  Prefactor     .10002E-03    21.841        .13714E-05** at limit **
   4  norm          4.8171        1.8336       -.48760E-07   -.41288E-03
   5  Prefactor     .10000E-03    2.5968        .43411E-07** at limit **
   6  Prefactor     .10000E-03    16.840       -.34214E-06** at limit **
   7  Prefactor     .10000E-03    1.1786        .18211E-07** at limit **
   8  norm          1.9058        1.9207        .58812E-07    .90671E-04
   9  Prefactor     .10000E-03    3.2282        .64021E-08** at limit **
  10  Prefactor     .10000E-03    .86874        .24097E-07** at limit **
  11  Prefactor     3.4954        2.6369        .11728E-06   -.28363E-03
  12  Prefactor     3.3861        3.5937        .47941E-07    .10579E-03
  13  norm          .28297        .18848        .26356E-07   -.30216E-03
  14  norm          .99463E-01    2.3865       -.84057E-07   -.96558E-04
  15  Prefactor     .10000E-03    5.9084       -.21187E-06** at limit **
  16  Prefactor     .10000E-03    7.5605       -.15035E-06** at limit **
  17  Prefactor     32.811        46.955        .10447E-06   -.52938E-05
  18  Prefactor     4.3280        4.8338        .73391E-06   -.51226E-05
  19  Prefactor     2.9254        5.1961        .21378E-05   -.28131E-03
  20  norm          .10000E-03    1.8855        .11310E-07** at limit **
  21  Prefactor     .10000E-03    8.3535       -.28066E-06** at limit **
  22  norm          .10000E-03    1.5096       -.88215E-08** at limit **
  23  Prefactor     8.8590        18.411        .72472E-05   -.45233E-04
  24  norm          .10000E-03    2.6000       -.12452E-06** at limit **
  25  norm          11.595        4.4982       -.59452E-07   -.57584E-04
  26  norm          .10000E-03    10.226        .62638E-07** at limit **
  27  norm          7.8956        16.388        .72837E-05   -.25944E-04
  28  Prefactor     .10000E-03    2.5475       -.23705E-07** at limit **
  29  Prefactor     .10000E-03    6.3433        .33131E-06** at limit **
  30  Normalizat    1.2322        .19103       -.15157E-05   -.88250E-04
  31  Prefactor     .93169        .21603       -.98793E-06   -.11629E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.2048
  Prefactor  = 0.0001
  Prefactor  = 0.000100016
  norm       = 4.8171
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.90579
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.49544
  Prefactor  = 3.38612
  norm       = 0.282968
  norm       = 0.0994627
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.8114
  Prefactor  = 4.32802
  Prefactor  = 2.92535
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.85898
  norm       = 0.0001
  norm       = 11.5951
  norm       = 0.0001
  norm       = 7.89557
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.23225
  Prefactor  = 0.931691
 **********
 **   18 **HESSE 
 **********

 FCN=   5357.488     FROM HESSE     STATUS=OK           624 CALLS     4222 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.205        20.288        .12818E-03   -1.5069    
   2  Prefactor     .10000E-03    1.5205        .14283E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10002E-03    148.12        .65267E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          4.8171        1.8303        .57149E-04   -1.5269    
   5  Prefactor     .10000E-03    2.6612        .23029E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    16.868        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.1888        .77591E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.9058        1.9253        .98234E-04   -1.5432    
   9  Prefactor     .10000E-03    3.2416        .12842E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    .87514        .66574E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.4954        2.6220        .97242E-04   -1.5334    
  12  Prefactor     3.3861        3.6847        .13755E-03   -1.5340    
  13  norm          .28297        .18556        .24972E-04   -1.5602    
  14  norm          .99463E-01    27.951        .21480E-02   -1.5645    
  15  Prefactor     .10000E-03    5.9309        .17371E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.5642        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     32.811        46.974        .74004E-04   -1.4562    
  18  Prefactor     4.3280        4.8340        .16522E-03   -1.5292    
  19  Prefactor     2.9254        5.1051        .20594E-03   -1.5366    
  20  norm          .10000E-03    1.9017        .98125E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    8.3612        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    1.5166        .87806E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     8.8590        18.389        .13328E-03   -1.5113    
  24  norm          .10000E-03    2.6138        .11524E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          11.595        4.4595        .92546E-04   -1.5027    
  26  norm          .10000E-03    10.292        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          7.8956        16.377        .14315E-03   -1.5146    
  28  Prefactor     .10000E-03    2.6168        .22800E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    6.3668        .18004E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.2322        .22566        .23114E-03   -.85612    
  31  Prefactor     .93169        .25750        .30352E-03   -.95042    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.86398e-08
Minuit parameter uncertainties:
  1  20.3018
  2  9.28051e-06
  3  0.00312201
  4  1.8303
  5  6.83823e-06
  6  1.36833e-05
  7  2.08715e-06
  8  1.92538
  9  4.35902e-06
  10  1.05073e-06
  11  2.62209
  12  3.68497
  13  0.185565
  14  3.33463
  15  9.07348e-06
  16  1.16131e-05
  17  47.0269
  18  4.83444
  19  5.10588
  20  6.67252e-07
  21  7.08038e-06
  22  6.05995e-07
  23  18.4009
  24  1.78666e-05
  25  4.4596
  26  1.74893e-05
  27  16.3863
  28  5.2002e-06
  29  8.19207e-07
  30  0.225839
  31  0.257841
Done.

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

Extracting fit parameters...

4FGL J1231.7+2847
   Spectrum: PowerLaw
334    Prefactor:  1.000e-04  9.073e-06  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:  9.317e-01  2.578e-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.232e+00  2.258e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 187.935 28.792
Photon Flux Upper Limit: 5.74e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.31e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/769870/likelihoodResults_249177601_249436801_4FGL_J1231.7+2847_daily_bin38.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): 102
logL (Free Index) = 5357.48842913
delta logL = -0.00080170851561

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5357.48762745
delta logL = -3.47345121554e-08

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5357.488     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      207 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    236.65        .90712E-02** at limit **
   2  Index         2.0129        5.1291        .50000       -.10267E-04
   3  Normalizat    1.2322        .31396E-01    .52277E-01    .12867E-04
   4  Prefactor     .93169        .36589E-01    .68611E-01    .18078E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.01285
  Normalizat = 1.23225
  Prefactor  = 0.931692
 **********
 **   18 **HESSE 
 **********

 FCN=   5357.488     FROM HESSE     STATUS=OK            33 CALLS      240 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.3886        .17409E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0129        5.9923        .50000       -.64029    
   3  Normalizat    1.2322        .21827        .23114E-03   -.85612    
   4  Prefactor     .93169        .25402        .30352E-03   -.95042    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10808e-10
Minuit parameter uncertainties:
  1  6.06728e-06
  2  4.15697
  3  0.218429
  4  0.254346
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/769870': 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) = 5357.48762738
delta logL = 3.8453435991e-08

Extracting fit parameters...

4FGL J1231.7+2847
   Spectrum: PowerLaw
334    Prefactor:  1.000e-04  6.067e-06  1.000e-04  1.000e+04 ( 1.000e-13)
335        Index:  2.013e+00  4.157e+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:  9.317e-01  2.543e-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.232e+00  2.184e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/769870/cmap_HighResolution_249177601_249436801_4FGL_J1231.7+2847_daily_bin38.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.31e-03', job_status='DONE', photon_flux_upper_limit='5.74e-08', time_completed='2021-09-05 22:26:20.932611', job_id='769870', GAL2='0.93', fit_tolerance='1e-08', EG2='1.23', EG='1.23', time_epoch_completed='1630905980.93', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='3.85e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='38' AND source_name='4FGL J1231.7+2847' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 22:26:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0300>
Subject: Job 769870: <4FGL_J1231.7+2847_daily_bin38> in cluster <slac> Done

Job <4FGL_J1231.7+2847_daily_bin38> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Sep  5 22:10:42 2021
Job was executed on host(s) <bullet0300>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 22:10:47 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:47 2021
Terminated at Sun Sep  5 22:26:21 2021
Results reported at Sun Sep  5 22:26:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1231.7+2847_daily_bin38 187.935 28.7917 249177601 249436801 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 :                                   818.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             307.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   934 sec.
    Turnaround time :                            939 sec.

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

