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


Performing analysis on: 4FGL_J1231.7+2847_daily_bin60
RA = 187.935, Dec = 28.7917
tmin = 254880001, tmax = 255139201
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='769904', job_status='RUN', time_executed='2021-09-05 22:11:07.830733', time_epoch_executed='1630905067.83' WHERE source_name='4FGL J1231.7+2847' and cadence='daily' and bin_id='60'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/769904

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/769904/ft1_4FGL_J1231.7+2847_daily_bin60.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/769904/ft2_4FGL_J1231.7+2847_daily_bin60.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/769904/ft1_4FGL_J1231.7+2847_daily_bin60.fits outfile=/scratch/kocevski/769904/ft1_filteredMKT_4FGL_J1231.7+2847_daily_bin60.fits ra=187.935 dec=28.7917 rad=12.0 tmin=254880001.0 tmax=255139201.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.26
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/769904/ft1_filtered_4FGL_J1231.7+2847_daily_bin60.fits" evtable="EVENTS" scfile=/scratch/kocevski/769904/ft2_4FGL_J1231.7+2847_daily_bin60.fits sctable="SC_DATA" outfile=/scratch/kocevski/769904/ltcube_254880001_255139201_4FGL_J1231.7+2847_daily_bin60.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/769904/ft2_4FGL_J1231.7+2847_daily_bin60.fits
.....................!
real 18.38
user 17.99
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/769904/ft1_filtered_4FGL_J1231.7+2847_daily_bin60.fits evtable="EVENTS" scfile=/scratch/kocevski/769904/ft2_4FGL_J1231.7+2847_daily_bin60.fits sctable="SC_DATA" expcube=/scratch/kocevski/769904/ltcube_254880001_255139201_4FGL_J1231.7+2847_daily_bin60.fits outfile=/scratch/kocevski/769904/expmap_254880001_255139201_4FGL_J1231.7+2847_daily_bin60.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/769904/ltcube_254880001_255139201_4FGL_J1231.7+2847_daily_bin60.fits
.....................!
real 192.16
user 186.14
sys 5.33

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/769904/ft1_filtered_4FGL_J1231.7+2847_daily_bin60.fits scfile=/scratch/kocevski/769904/ft2_4FGL_J1231.7+2847_daily_bin60.fits outfile=/scratch/kocevski/769904/cmap_254880001_255139201_4FGL_J1231.7+2847_daily_bin60.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.61
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/769904/ft1_filtered_4FGL_J1231.7+2847_daily_bin60.fits scfile=/scratch/kocevski/769904/ft2_4FGL_J1231.7+2847_daily_bin60.fits outfile=/scratch/kocevski/769904/cmap_HighResolution_254880001_255139201_4FGL_J1231.7+2847_daily_bin60.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/769904/ft1_filtered_4FGL_J1231.7+2847_daily_bin60.fits evtable="EVENTS" scfile=/scratch/kocevski/769904/ft2_4FGL_J1231.7+2847_daily_bin60.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/769904/Model_4FGL_J1231.7+2847_daily_bin60.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/769904/ft1_filtered_4FGL_J1231.7+2847_daily_bin60.fits.....................!
real 60.38
user 58.48
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.5513       1.0000         .10000E-03   10000.    
     3 'Prefactor '    20.442       1.0000         .10000E-03   10000.    
     4 'norm      '    .76704       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .57856       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .21651E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.1062       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.2445       1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.9824       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .27599E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10383E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    5.4842       1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.5452       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.962       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .99527       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .69670       1.0000         .10000E-03   10000.    
    20 'norm      '    .95266       1.0000         .10000E-03   10000.    
    21 'Prefactor '    51.613       1.0000         .10000E-03   10000.    
    22 'norm      '    2.0587       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    17.960       1.0000         .10000E-03   10000.    
    25 'norm      '    2.3388       1.0000         .10000E-03   10000.    
    26 'norm      '    9.2961       1.0000         .10000E-03   10000.    
    27 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    7.7280       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .81023       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.2904       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=   7177.960     FROM MIGRAD    STATUS=CONVERGED    813 CALLS     4172 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.4246        .17977E-07** at limit **
   2  Prefactor     2.5511        1.7694        .18311E-07   -.68337E-05
   3  Prefactor     20.405        27.186       -.41485E-05   -.29111E-03
   4  norm          .76681        .72835        .14874E-07    .29048E-03
   5  Prefactor     .57630        2.2480       -.53921E-07    .88721E-04
   6  Prefactor     .10000E-03    50.668       -.12262E-05** at limit **
   7  Prefactor     .10000E-03    1.1242        .40785E-07** at limit **
   8  norm          2.1064        2.6488        .14403E-06   -.79866E-04
   9  Prefactor     .10000E-03    9.2879        .17693E-06** at limit **
  10  Prefactor     2.2446        2.3047        .26371E-07   -.80875E-04
  11  Prefactor     8.9822        2.7203        .11584E-07    .30010E-05
  12  Prefactor     .10000E-03    2.6402        .23309E-06** at limit **
  13  norm          .10000E-03    .82344E-01    .19029E-07** at limit **
  14  norm          5.4848        3.4654       -.89459E-07   -.88676E-04
  15  Prefactor     8.5450        7.7660        .14196E-08   -.17646E-04
  16  Prefactor     .10000E-03    13.679       -.17895E-06** at limit **
  17  Prefactor     12.957        120.48       -.10759E-04   -.61411E-04
  18  Prefactor     .99750        3.8824        .16933E-05   -.23367E-03
  19  Prefactor     .69896        6.5999        .33277E-05   -.33867E-03
  20  norm          .95229        7.9211        .46916E-05   -.12391E-03
  21  Prefactor     51.609        28.582       -.23051E-05   -.34669E-03
  22  norm          2.0588        2.0442       -.39855E-07   -.33357E-04
  23  Prefactor     .10000E-03    7.6777       -.45520E-06** at limit **
  24  norm          17.959        6.8548       -.17732E-06   -.18244E-03
  25  norm          2.3374        4.8660        .31235E-06   -.33159E-03
  26  norm          9.2993        8.2706       -.25348E-06   -.12460E-03
  27  norm          .10000E-03    8.2183        .36166E-06** at limit **
  28  Prefactor     7.7275        4.0105       -.14999E-07   -.17226E-03
  29  Prefactor     .10000E-03    3.8150        .10533E-08** at limit **
  30  Normalizat    .81056        .17444        .15341E-05   -.31318E-03
  31  Prefactor     1.2900        .19547       -.21227E-05   -.88058E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.55115
  Prefactor  = 20.4046
  norm       = 0.766813
  Prefactor  = 0.576299
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 2.10639
  Prefactor  = 0.0001
  Prefactor  = 2.24463
  Prefactor  = 8.98221
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 5.48481
  Prefactor  = 8.54498
  Prefactor  = 0.0001
  Prefactor  = 12.9574
  Prefactor  = 0.997499
  Prefactor  = 0.698962
  norm       = 0.952285
  Prefactor  = 51.6087
  norm       = 2.0588
  Prefactor  = 0.0001
  norm       = 17.9592
  norm       = 2.33744
  norm       = 9.29925
  norm       = 0.0001
  Prefactor  = 7.72745
  Prefactor  = 0.0001
  Normalizat = 0.810556
  Prefactor  = 1.28997
 **********
 **   18 **HESSE 
 **********

 FCN=   7177.960     FROM HESSE     STATUS=OK           632 CALLS     4804 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.4294        .17404E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.5511        1.7610        .90074E-04   -1.5389    
   3  Prefactor     20.405        28.312        .88588E-04   -1.4804    
   4  norm          .76681        .73412        .67975E-04   -1.5533    
   5  Prefactor     .57630        7.3886        .23604E-02   -1.5556    
   6  Prefactor     .10000E-03    51.296        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.1348        .87670E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.1064        2.6408        .13452E-03   -1.5418    
   9  Prefactor     .10000E-03    9.5705        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.2446        2.3005        .11368E-03   -1.5408    
  11  Prefactor     8.9822        2.7155        .72265E-04   -1.5108    
  12  Prefactor     .10000E-03    11.125        .26102E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.2879        .46353E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.4848        3.4108        .11937E-03   -1.5240    
  15  Prefactor     8.5450        7.7643        .13713E-03   -1.5123    
  16  Prefactor     .10000E-03    13.717        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     12.957        114.05        .11126E-03   -1.4988    
  18  Prefactor     .99750        3.8269        .31819E-03   -1.5508    
  19  Prefactor     .69896        6.6695        .41643E-03   -1.5541    
  20  norm          .95229        7.6043        .36708E-03   -1.5513    
  21  Prefactor     51.609        28.266        .55824E-04   -1.4270    
  22  norm          2.0588        2.0499        .11710E-03   -1.5421    
  23  Prefactor     .10000E-03    7.7014        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          17.959        6.8365        .94508E-04   -1.4860    
  25  norm          2.3374        4.9211        .18185E-03   -1.5402    
  26  norm          9.2993        8.4441        .13145E-03   -1.5098    
  27  norm          .10000E-03    8.2524        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     7.7275        4.0026        .11523E-03   -1.5152    
  29  Prefactor     .10000E-03    3.8163        .16160E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .81056        .20217        .27377E-03   -.99678    
  31  Prefactor     1.2900        .22901        .26361E-03   -.83606    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.43992e-09
Minuit parameter uncertainties:
  1  3.39341e-06
  2  1.76099
  3  28.3303
  4  0.734131
  5  4.12727
  6  0.000799646
  7  1.34519e-07
  8  2.64097
  9  2.09451e-05
  10  2.30062
  11  2.7155
  12  0.000140326
  13  1.61306e-05
  14  3.41093
  15  7.7652
  16  3.34439e-05
  17  77.0813
  18  3.82784
  19  4.31852
  20  5.38266
  21  28.2733
  22  2.05001
  23  3.98413e-05
  24  6.83682
  25  4.92192
  26  8.44514
  27  1.64822e-05
  28  4.00275
  29  7.94436e-07
  30  0.202355
  31  0.229187
Done.

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

Extracting fit parameters...

4FGL J1231.7+2847
   Spectrum: PowerLaw
334    Prefactor:  8.545e+00  7.765e+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

GAL_V02
   Spectrum: PowerLaw
612    Prefactor:  1.290e+00  2.292e-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:  8.106e-01  2.024e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.42
Ra Dec: 187.935 28.792
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 2.17e-08 +/- 1.97e-08
Energy Flux (Fixed Index): 1.51e-05 +/- 1.37e-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) = 7177.94501094
delta logL = 0.0150320716511

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7177.9438944
delta logL = 0.0161486112202

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.2007       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7776       1.0000          .0000       10.000    
     3 'Normalizat'    .81827       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2857       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=   7177.944     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      232 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.2010        8.3730        .14000E-03   -.59556E-03
   2  Index         1.7779        1.0998        .11824E-01   -.88131E-04
   3  Normalizat    .81829        .19136        .27266E-03    .11120E-03
   4  Prefactor     1.2857        .22489        .26404E-03    .14467E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.20097
  Index      = 1.77787
  Normalizat = 0.818285
  Prefactor  = 1.2857
 **********
 **   18 **HESSE 
 **********

 FCN=   7177.944     FROM HESSE     STATUS=OK            25 CALLS      257 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.2010        8.5061        .56000E-05   -1.5135    
   2  Index         1.7779        1.1158        .47297E-03   -.70027    
   3  Normalizat    .81829        .19139        .10906E-04   -.99394    
   4  Prefactor     1.2857        .22504        .52807E-04   -.83733    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3187e-09
Minuit parameter uncertainties:
  1  8.50737
  2  1.13228
  3  0.19155
  4  0.225213
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/769904': 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) = 7177.94389436
delta logL = 0.0161486498009

Extracting fit parameters...

4FGL J1231.7+2847
   Spectrum: PowerLaw
334    Prefactor:  8.201e+00  8.507e+00  1.000e-04  1.000e+04 ( 1.000e-13)
335        Index:  1.778e+00  1.132e+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:  1.286e+00  2.252e-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:  8.183e-01  1.915e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.45
Ra Dec: 187.935 28.792
Photon Index (Free Index): 1.78 +/- 1.13
Photon Flux (Free Index): 1.45e-08 +/- 3.38e-08
Energy Flux (Free Index): 1.85e-05 +/- 3.01e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/769904/cmap_HighResolution_254880001_255139201_4FGL_J1231.7+2847_daily_bin60.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.17e-08', energy_flux2='1.85e-05', photon_flux_error='1.97e-08', dlogl='1.61e-02', energy_flux='1.51e-05', photon_flux2='1.45e-08', job_status='DONE', time_completed='2021-09-05 22:26:01.761605', photon_index_error2='1.13', photon_index2='1.78', ts='5.42', fit_tolerance='1e-08', GAL='1.29', photon_index_error='0.00', energy_flux_error2='3.01e-05', EG='0.81', time_epoch_completed='1630905961.76', return_code='0', job_id='769904', GAL2='1.29', EG2='0.82', return_code2='0', energy_flux_error='1.37e-05', photon_flux_error2='3.38e-08', ts2='5.45', photon_index='2.00' WHERE bin_id='60' AND source_name='4FGL J1231.7+2847' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 22:26:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 769904: <4FGL_J1231.7+2847_daily_bin60> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1231.7+2847_daily_bin60 187.935 28.7917 254880001 255139201 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 :                                   888.34 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             351.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   911 sec.
    Turnaround time :                            916 sec.

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

