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


Performing analysis on: 4FGL_J1231.7+2847_daily_bin72
RA = 187.935, Dec = 28.7917
tmin = 257990401, tmax = 258249601
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='769922', job_status='RUN', time_executed='2021-09-05 22:13:18.897273', time_epoch_executed='1630905198.9' WHERE source_name='4FGL J1231.7+2847' and cadence='daily' and bin_id='72'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/769922

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/769922/ft1_4FGL_J1231.7+2847_daily_bin72.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/769922/ft2_4FGL_J1231.7+2847_daily_bin72.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/769922/ft1_4FGL_J1231.7+2847_daily_bin72.fits outfile=/scratch/kocevski/769922/ft1_filteredMKT_4FGL_J1231.7+2847_daily_bin72.fits ra=187.935 dec=28.7917 rad=12.0 tmin=257990401.0 tmax=258249601.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.47
user 1.27
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/769922/ft1_filtered_4FGL_J1231.7+2847_daily_bin72.fits" evtable="EVENTS" scfile=/scratch/kocevski/769922/ft2_4FGL_J1231.7+2847_daily_bin72.fits sctable="SC_DATA" outfile=/scratch/kocevski/769922/ltcube_257990401_258249601_4FGL_J1231.7+2847_daily_bin72.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/769922/ft2_4FGL_J1231.7+2847_daily_bin72.fits
.....................!
real 19.29
user 18.60
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/769922/ft1_filtered_4FGL_J1231.7+2847_daily_bin72.fits evtable="EVENTS" scfile=/scratch/kocevski/769922/ft2_4FGL_J1231.7+2847_daily_bin72.fits sctable="SC_DATA" expcube=/scratch/kocevski/769922/ltcube_257990401_258249601_4FGL_J1231.7+2847_daily_bin72.fits outfile=/scratch/kocevski/769922/expmap_257990401_258249601_4FGL_J1231.7+2847_daily_bin72.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/769922/ltcube_257990401_258249601_4FGL_J1231.7+2847_daily_bin72.fits
.....................!
real 194.59
user 187.36
sys 3.66

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/769922/ft1_filtered_4FGL_J1231.7+2847_daily_bin72.fits scfile=/scratch/kocevski/769922/ft2_4FGL_J1231.7+2847_daily_bin72.fits outfile=/scratch/kocevski/769922/cmap_257990401_258249601_4FGL_J1231.7+2847_daily_bin72.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.60
user 0.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/769922/ft1_filtered_4FGL_J1231.7+2847_daily_bin72.fits scfile=/scratch/kocevski/769922/ft2_4FGL_J1231.7+2847_daily_bin72.fits outfile=/scratch/kocevski/769922/cmap_HighResolution_257990401_258249601_4FGL_J1231.7+2847_daily_bin72.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.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/769922/ft1_filtered_4FGL_J1231.7+2847_daily_bin72.fits evtable="EVENTS" scfile=/scratch/kocevski/769922/ft2_4FGL_J1231.7+2847_daily_bin72.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/769922/Model_4FGL_J1231.7+2847_daily_bin72.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/769922/ft1_filtered_4FGL_J1231.7+2847_daily_bin72.fits.....................!
real 48.02
user 46.44
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11715E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12349E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    4.8713       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.0735       1.0000         .10000E-03   10000.    
     8 'norm      '    2.5913       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.5286       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.2605       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.5306       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .54474       1.0000         .10000E-03   10000.    
    14 'norm      '    .20333E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.3326       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.329       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    4.4669       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    5.1841       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    3.1644       1.0000         .10000E-03   10000.    
    25 'norm      '    3.7935       1.0000         .10000E-03   10000.    
    26 'norm      '    3.8259       1.0000         .10000E-03   10000.    
    27 'norm      '    20.595       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .74146       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.2050       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=   5218.042     FROM MIGRAD    STATUS=CONVERGED    801 CALLS     3537 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    37.205        .92032E-05** at limit **
   2  Prefactor     .10000E-03    1.0805       -.65288E-07** at limit **
   3  Prefactor     .10000E-03    9.4645        .35794E-05** at limit **
   4  norm          4.8716        1.5774       -.34891E-07   -.34432E-03
   5  Prefactor     .10000E-03    2.5573       -.38731E-06** at limit **
   6  Prefactor     .10000E-03    14.159       -.30199E-05** at limit **
   7  Prefactor     4.0732        3.3801       -.30917E-06   -.31422E-04
   8  norm          2.5911        2.7702       -.82188E-06   -.16893E-04
   9  Prefactor     7.5277        6.3432       -.99201E-06   -.15828E-02
  10  Prefactor     2.2606        2.1796        .45354E-06   -.28910E-03
  11  Prefactor     3.5307        2.0459        .37056E-07   -.58370E-04
  12  Prefactor     .10000E-03    2.8473        .15603E-06** at limit **
  13  norm          .54476        .29175       -.12275E-07   -.60593E-03
  14  norm          .10000E-03    2.0611       -.40491E-07** at limit **
  15  Prefactor     .10000E-03    2.5491        .22778E-06** at limit **
  16  Prefactor     5.3308        14.030       -.33819E-06   -.44515E-04
  17  Prefactor     .10000E-03    41.117       -.10697E-04** at limit **
  18  Prefactor     12.328        8.1925       -.59776E-06   -.98315E-03
  19  Prefactor     .10000E-03    1.5320       -.10191E-08** at limit **
  20  norm          4.4669        4.7968       -.61879E-07   -.10335E-03
  21  Prefactor     .10000E-03    17.573        .13793E-05** at limit **
  22  norm          5.1840        3.7769        .62324E-07   -.73627E-04
  23  Prefactor     .10000E-03    5.4259        .23138E-06** at limit **
  24  norm          3.1641        3.8377       -.88779E-07   -.78752E-05
  25  norm          3.7914        6.3350       -.20890E-06   -.26698E-03
  26  norm          3.8285        8.6545       -.32712E-06   -.17655E-03
  27  norm          20.594        16.469       -.11212E-06    .11813E-04
  28  Prefactor     .10000E-03    3.1955       -.30967E-07** at limit **
  29  Prefactor     .10000E-03    8.4376       -.25207E-05** at limit **
  30  Normalizat    .74149        .18558        .42145E-06   -.46377E-04
  31  Prefactor     1.2050        .21464        .34785E-06   -.24851E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.87161
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.07322
  norm       = 2.59107
  Prefactor  = 7.52769
  Prefactor  = 2.26061
  Prefactor  = 3.53075
  Prefactor  = 0.0001
  norm       = 0.544763
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.33079
  Prefactor  = 0.000100003
  Prefactor  = 12.3283
  Prefactor  = 0.0001
  norm       = 4.46692
  Prefactor  = 0.0001
  norm       = 5.18402
  Prefactor  = 0.0001
  norm       = 3.16414
  norm       = 3.79138
  norm       = 3.82854
  norm       = 20.5943
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.741491
  Prefactor  = 1.20497
 **********
 **   18 **HESSE 
 **********

 FCN=   5218.042     FROM HESSE     STATUS=OK           628 CALLS     4165 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    36.460        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.7945        .14565E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    9.2958        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          4.8716        1.5794        .49221E-04   -1.5266    
   5  Prefactor     .10000E-03    2.6161        .22526E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    14.051        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.0732        3.3750        .11634E-03   -1.5304    
   8  norm          2.5911        2.7731        .10975E-03   -1.5386    
   9  Prefactor     7.5277        6.8914        .73081E-03   -1.5159    
  10  Prefactor     2.2606        2.1815        .92776E-04   -1.5407    
  11  Prefactor     3.5307        2.0400        .75018E-04   -1.5332    
  12  Prefactor     .10000E-03    2.8812        .11897E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .54476        .28733        .26557E-04   -1.5560    
  14  norm          .10000E-03    12.570        .20045E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.5503        .11261E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.3308        14.035        .17404E-03   -1.5246    
  17  Prefactor     .10000E-03    39.580        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     12.328        8.4426        .57042E-03   -1.5006    
  19  Prefactor     .10000E-03    1.5327        .87316E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          4.4669        4.7882        .15470E-03   -1.5285    
  21  Prefactor     .10000E-03    17.592        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          5.1840        3.7756        .11553E-03   -1.5253    
  23  Prefactor     .10000E-03    5.4334        .16432E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          3.1641        3.8308        .15130E-03   -1.5352    
  25  norm          3.7914        6.7812        .14576E-03   -1.5319    
  26  norm          3.8285        9.2707        .20462E-03   -1.5317    
  27  norm          20.594        16.469        .88259E-04   -1.4800    
  28  Prefactor     .10000E-03    3.2857        .25156E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    8.3628        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .74149        .21820        .26468E-03   -1.0228    
  31  Prefactor     1.2050        .25357        .25580E-03   -.86179    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.51288e-09
Minuit parameter uncertainties:
  1  0.000707516
  2  2.46859e-05
  3  0.000108311
  4  1.57944
  5  9.30604e-06
  6  0.00011415
  7  3.37514
  8  2.7732
  9  6.89213
  10  2.18156
  11  2.04006
  12  4.05131e-06
  13  0.287333
  14  1.85431e-05
  15  3.96932e-06
  16  14.0441
  17  0.00065686
  18  8.44346
  19  1.93908e-08
  20  4.78857
  21  4.64164e-05
  22  3.77575
  23  5.39938e-06
  24  3.83109
  25  6.78253
  26  9.27413
  27  16.4723
  28  5.72952e-06
  29  7.71993e-05
  30  0.218459
  31  0.253823
Done.

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

Extracting fit parameters...

4FGL J1231.7+2847
   Spectrum: PowerLaw
334    Prefactor:  1.000e-04  3.969e-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:  1.205e+00  2.538e-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:  7.415e-01  2.185e-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: 3.57e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.68e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/769922/likelihoodResults_257990401_258249601_4FGL_J1231.7+2847_daily_bin72.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) = 5218.04407352
delta logL = -0.00177229101701

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5218.04230098
delta logL = 2.41088855546e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9775       1.0000          .0000       10.000    
     3 'Normalizat'    .74154       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2049       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5218.042     FROM MIGRAD    STATUS=FAILED        86 CALLS      237 TOTAL
                     EDM=   .48E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10219E-03    53.389        .11458E-02** at limit **
   2  Index         1.8946        9.0334        .50000        .50857E-04
   3  Normalizat    .74149        .19563E-01    .26468E-03    .15463E-04
   4  Prefactor     1.2050        .23650E-01    .25580E-03    .76353E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5218.042     FROM SIMPLEX   STATUS=PROGRESS     136 CALLS      373 TOTAL
                     EDM=   .65E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10081E-03    53.389        .21238E-03** at limit **
   2  Index         1.8933        9.0334        .45618E-03    .50857E-04
   3  Normalizat    .74148        .19563E-01    .32928E-05    .15463E-04
   4  Prefactor     1.2050        .23650E-01    .22789E-05    .76353E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5218.042     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      424 TOTAL
                     EDM=   .92E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    52.417        .22916E-02** at limit **
   2  Index         1.5609        5.6330        .50000       -.30254E-06
   3  Normalizat    .74149        .18184E-01    .10587E-04    .24182E-03
   4  Prefactor     1.2050        .21982E-01    .10232E-04    .27132E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.56093
  Normalizat = 0.741491
  Prefactor  = 1.20497
 **********
 **   18 **HESSE 
 **********

 FCN=   5218.042     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      453 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    232.40        .45831E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.5609        5.6566        .50000       -.75847    
   3  Normalizat    .74149        .41426E-01    .21175E-05   -1.0228    
   4  Prefactor     1.2050        .50081E-01    .20464E-05   -.86179    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.10777e-09
Minuit parameter uncertainties:
  1  4.44032e-06
  2  774.191
  3  0.0414277
  4  0.0500825
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/769922': 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): 102
logL (Free Index) = 5218.04229762
delta logL = 3.60803733201e-06

Extracting fit parameters...

4FGL J1231.7+2847
   Spectrum: PowerLaw
334    Prefactor:  1.000e-04  4.440e-06  1.000e-04  1.000e+04 ( 1.000e-13)
335        Index:  1.561e+00  7.742e+02  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.205e+00  5.008e-02  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:  7.415e-01  4.143e-02  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/769922/cmap_HighResolution_257990401_258249601_4FGL_J1231.7+2847_daily_bin72.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.68e-03', job_status='DONE', photon_flux_upper_limit='3.57e-08', time_completed='2021-09-05 22:26:49.550672', job_id='769922', GAL2='1.20', fit_tolerance='1e-08', EG2='0.74', EG='0.74', time_epoch_completed='1630906009.55', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.20', dlogl='3.61e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='72' AND source_name='4FGL J1231.7+2847' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 22:26:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0278>
Subject: Job 769922: <4FGL_J1231.7+2847_daily_bin72> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1231.7+2847_daily_bin72 187.935 28.7917 257990401 258249601 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 :                                   807.15 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             281.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   955 sec.
    Turnaround time :                            963 sec.

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

