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


Performing analysis on: 4FGL_J1231.7+2847_daily_bin1297
RA = 187.935, Dec = 28.7917
tmin = 575510401, tmax = 575769601
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='779063', job_status='RUN', time_executed='2021-09-05 22:36:02.378365', time_epoch_executed='1630906562.38' WHERE source_name='4FGL J1231.7+2847' and cadence='daily' and bin_id='1297'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/779063

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/779063/ft1_4FGL_J1231.7+2847_daily_bin1297.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/779063/ft2_4FGL_J1231.7+2847_daily_bin1297.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/779063/ft1_4FGL_J1231.7+2847_daily_bin1297.fits outfile=/scratch/kocevski/779063/ft1_filteredMKT_4FGL_J1231.7+2847_daily_bin1297.fits ra=187.935 dec=28.7917 rad=12.0 tmin=575510401.0 tmax=575769601.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.58
user 5.04
sys 0.27

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/779063/ft1_filtered_4FGL_J1231.7+2847_daily_bin1297.fits" evtable="EVENTS" scfile=/scratch/kocevski/779063/ft2_4FGL_J1231.7+2847_daily_bin1297.fits sctable="SC_DATA" outfile=/scratch/kocevski/779063/ltcube_575510401_575769601_4FGL_J1231.7+2847_daily_bin1297.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/779063/ft2_4FGL_J1231.7+2847_daily_bin1297.fits
.....................!
real 18.47
user 14.89
sys 0.42

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/779063/ft1_filtered_4FGL_J1231.7+2847_daily_bin1297.fits evtable="EVENTS" scfile=/scratch/kocevski/779063/ft2_4FGL_J1231.7+2847_daily_bin1297.fits sctable="SC_DATA" expcube=/scratch/kocevski/779063/ltcube_575510401_575769601_4FGL_J1231.7+2847_daily_bin1297.fits outfile=/scratch/kocevski/779063/expmap_575510401_575769601_4FGL_J1231.7+2847_daily_bin1297.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/779063/ltcube_575510401_575769601_4FGL_J1231.7+2847_daily_bin1297.fits
.....................!
real 195.78
user 189.40
sys 4.96

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/779063/ft1_filtered_4FGL_J1231.7+2847_daily_bin1297.fits scfile=/scratch/kocevski/779063/ft2_4FGL_J1231.7+2847_daily_bin1297.fits outfile=/scratch/kocevski/779063/cmap_575510401_575769601_4FGL_J1231.7+2847_daily_bin1297.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/779063/ft1_filtered_4FGL_J1231.7+2847_daily_bin1297.fits scfile=/scratch/kocevski/779063/ft2_4FGL_J1231.7+2847_daily_bin1297.fits outfile=/scratch/kocevski/779063/cmap_HighResolution_575510401_575769601_4FGL_J1231.7+2847_daily_bin1297.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.59
user 0.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/779063/ft1_filtered_4FGL_J1231.7+2847_daily_bin1297.fits evtable="EVENTS" scfile=/scratch/kocevski/779063/ft2_4FGL_J1231.7+2847_daily_bin1297.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/779063/Model_4FGL_J1231.7+2847_daily_bin1297.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/779063/ft1_filtered_4FGL_J1231.7+2847_daily_bin1297.fits....................!
real 48.47
user 46.92
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.5339       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12957E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .15366E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.6556       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.1083       1.0000         .10000E-03   10000.    
     6 'Prefactor '    56.661       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.5329       1.0000         .10000E-03   10000.    
     8 'norm      '    5.9216       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.4222       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.2290       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .24855E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .95171E-01   1.0000         .10000E-03   10000.    
    14 'norm      '    9.1339       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.9761       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10234E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10504E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10623E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    30.088       1.0000         .10000E-03   10000.    
    24 'norm      '    3.8689       1.0000         .10000E-03   10000.    
    25 'norm      '    7.2389       1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10180E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    5.4562       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .84579       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .97913       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=   5417.974     FROM MIGRAD    STATUS=CONVERGED    809 CALLS     4145 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5357        14.622        .13613E-04    .19065E-03
   2  Prefactor     .10000E-03    .76676       -.32938E-06** at limit **
   3  Prefactor     .10000E-03    39.977       -.23519E-05** at limit **
   4  norm          2.6557        1.1804       -.45166E-07    .54310E-03
   5  Prefactor     6.1086        3.4811       -.13060E-07   -.51820E-03
   6  Prefactor     56.645        36.520        .13166E-05    .12303E-03
   7  Prefactor     2.5326        2.7390        .36588E-07   -.27357E-04
   8  norm          5.9225        3.5989       -.15038E-07   -.22798E-04
   9  Prefactor     9.4228        9.0717       -.68809E-08    .14747E-04
  10  Prefactor     6.2301        3.4226        .12665E-07    .81391E-04
  11  Prefactor     .10000E-03    1.5009       -.12230E-07** at limit **
  12  Prefactor     .10000E-03    4.1140       -.25529E-05** at limit **
  13  norm          .95198E-01    .15499        .31871E-07    .43815E-03
  14  norm          9.1369        4.7331        .90782E-08   -.59500E-04
  15  Prefactor     .10000E-03    5.0964        .30009E-07** at limit **
  16  Prefactor     .10000E-03    7.0477        .61143E-07** at limit **
  17  Prefactor     .10000E-03    27.586        .96647E-07** at limit **
  18  Prefactor     5.9758        6.3208        .59199E-06    .66406E-04
  19  Prefactor     .10000E-03    2.9479        .13286E-06** at limit **
  20  norm          .10014E-03    4.7860       -.52524E-05** at limit **
  21  Prefactor     .10001E-03    53.145       -.77971E-06** at limit **
  22  norm          .10000E-03    1.1924        .79463E-07** at limit **
  23  Prefactor     30.090        19.962       -.19435E-06   -.22429E-03
  24  norm          3.8665        7.4218       -.29524E-06   -.39445E-03
  25  norm          7.2387        4.7494       -.52080E-06   -.10590E-02
  26  norm          .10000E-03    3.0308        .89385E-07** at limit **
  27  norm          .10001E-03    44.965        .12578E-05** at limit **
  28  Prefactor     5.4571        4.4409        .51736E-07   -.25985E-03
  29  Prefactor     .10000E-03    13.904        .38830E-06** at limit **
  30  Normalizat    .84566        .17530        .11557E-05    .33431E-03
  31  Prefactor     .97933        .20117       -.23401E-05    .74016E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.53573
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.65568
  Prefactor  = 6.10856
  Prefactor  = 56.6449
  Prefactor  = 2.53262
  norm       = 5.92254
  Prefactor  = 9.42279
  Prefactor  = 6.23006
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0951982
  norm       = 9.13694
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.9758
  Prefactor  = 0.0001
  norm       = 0.00010014
  Prefactor  = 0.000100013
  norm       = 0.0001
  Prefactor  = 30.0897
  norm       = 3.86655
  norm       = 7.23871
  norm       = 0.0001
  norm       = 0.000100006
  Prefactor  = 5.45713
  Prefactor  = 0.000100001
  Normalizat = 0.845664
  Prefactor  = 0.979325
 **********
 **   18 **HESSE 
 **********

 FCN=   5417.974     FROM HESSE     STATUS=OK           624 CALLS     4769 TOTAL
                     EDM=   .81E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.5357        16.680        .17224E-02   -1.5460    
   2  Prefactor     .10000E-03    2.7538        .12510E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    41.150        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.6557        1.1804        .51105E-04   -1.5382    
   5  Prefactor     6.1086        3.4809        .10043E-03   -1.5214    
   6  Prefactor     56.645        36.840        .53293E-04   -1.4201    
   7  Prefactor     2.5326        2.7256        .12229E-03   -1.5390    
   8  norm          5.9225        3.6095        .96434E-04   -1.5221    
   9  Prefactor     9.4228        9.0670        .13056E-03   -1.5094    
  10  Prefactor     6.2301        3.4304        .89389E-04   -1.5209    
  11  Prefactor     .10000E-03    1.5404        .17558E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    11.223        .27468E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .95198E-01    .13587        .35292E-03   -1.5646    
  14  norm          9.1369        4.6638        .10940E-03   -1.5103    
  15  Prefactor     .10000E-03    5.1143        .16225E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.0525        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    27.600        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.9758        6.3259        .82128E-03   -1.5219    
  19  Prefactor     .10000E-03    2.9625        .12334E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10014E-03    21.927        .22076E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10001E-03    53.914        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    1.2046        .78490E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     30.090        19.864        .73043E-04   -1.4610    
  24  norm          3.8665        7.3677        .20515E-03   -1.5315    
  25  norm          7.2387        4.7266        .11680E-03   -1.5170    
  26  norm          .10000E-03    3.0360        .12494E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10001E-03    45.905        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     5.4571        4.4232        .12599E-03   -1.5241    
  29  Prefactor     .10000E-03    13.965        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .84566        .20208        .24366E-03   -.98397    
  31  Prefactor     .97933        .23036        .26984E-03   -.93422    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.12996e-09
Minuit parameter uncertainties:
  1  10.1257
  2  2.76705e-05
  3  0.000154797
  4  1.18043
  5  3.48102
  6  36.8543
  7  2.7257
  8  3.60959
  9  9.06829
  10  3.43053
  11  1.05204e-07
  12  0.000207733
  13  0.135872
  14  4.66395
  15  6.35618e-06
  16  1.33756e-05
  17  0.000224413
  18  6.32656
  19  2.37066e-05
  20  0.00350696
  21  0.00164518
  22  6.68818e-06
  23  19.8686
  24  7.36947
  25  4.72684
  26  1.42861e-05
  27  0.00104341
  28  4.42343
  29  0.00027016
  30  0.202259
  31  0.230594
Done.

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

Extracting fit parameters...

4FGL J1231.7+2847
   Spectrum: PowerLaw
334    Prefactor:  1.000e-04  6.356e-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.793e-01  2.306e-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.457e-01  2.023e-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.25e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.94e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/779063/likelihoodResults_575510401_575769601_4FGL_J1231.7+2847_daily_bin1297.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) = 5417.97536011
delta logL = -0.00093067493799

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5417.9744294
delta logL = 3.95129973185e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0113       1.0000          .0000       10.000    
     3 'Normalizat'    .84567       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97933       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=   5417.974     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      198 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    379.32        .90712E-02** at limit **
   2  Index         2.0252        6.0944        .50000       -.21982E-04
   3  Normalizat    .84566        .39629E-01    .44203E-01   -.43199E-04
   4  Prefactor     .97933        .47129E-01    .46008E-01    .30358E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.02515
  Normalizat = 0.84566
  Prefactor  = 0.97933
 **********
 **   18 **HESSE 
 **********

 FCN=   5417.974     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      231 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    816.56        .16345E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0252        5.3070        .50000       -.63723    
   3  Normalizat    .84566        .71223E-01    .24366E-03   -.98397    
   4  Prefactor     .97933        .84739E-01    .26984E-03   -.93422    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.54587e-07
Minuit parameter uncertainties:
  1  0.00117906
  2  51.1574
  3  0.0712311
  4  0.0847506
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/779063': 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) = 5417.97442929
delta logL = 1.47492755787e-07

Extracting fit parameters...

4FGL J1231.7+2847
   Spectrum: PowerLaw
334    Prefactor:  1.000e-04  1.179e-03  1.000e-04  1.000e+04 ( 1.000e-13)
335        Index:  2.025e+00  5.116e+01  0.000e+00  1.000e+01 (-1.000e+00)
336        Scale:  1.597e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
612    Prefactor:  9.793e-01  8.475e-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:  8.457e-01  7.123e-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/779063/cmap_HighResolution_575510401_575769601_4FGL_J1231.7+2847_daily_bin1297.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.94e-03', job_status='DONE', photon_flux_upper_limit='5.25e-08', time_completed='2021-09-05 22:50:54.708274', job_id='779063', GAL2='0.98', fit_tolerance='1e-08', EG2='0.85', EG='0.85', time_epoch_completed='1630907454.71', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='1.47e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='1297' AND source_name='4FGL J1231.7+2847' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 22:50:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0117>
Subject: Job 779063: <4FGL_J1231.7+2847_daily_bin1297> in cluster <slac> Done

Job <4FGL_J1231.7+2847_daily_bin1297> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 22:35:43 2021
Job was executed on host(s) <bullet0117>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 22:35:44 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:35:44 2021
Terminated at Sun Sep  5 22:50:55 2021
Results reported at Sun Sep  5 22:50:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1231.7+2847_daily_bin1297 187.935 28.7917 575510401 575769601 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 :                                   876.49 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             338.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   910 sec.
    Turnaround time :                            912 sec.

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

