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


Performing analysis on: 4FGL_J1231.7+2847_daily_bin1170
RA = 187.935, Dec = 28.7917
tmin = 542592001, tmax = 542851201
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='776557', job_status='RUN', time_executed='2021-09-05 22:34:36.287587', time_epoch_executed='1630906476.29' WHERE source_name='4FGL J1231.7+2847' and cadence='daily' and bin_id='1170'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/776557

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/776557/ft1_4FGL_J1231.7+2847_daily_bin1170.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/776557/ft2_4FGL_J1231.7+2847_daily_bin1170.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/776557/ft1_4FGL_J1231.7+2847_daily_bin1170.fits outfile=/scratch/kocevski/776557/ft1_filteredMKT_4FGL_J1231.7+2847_daily_bin1170.fits ra=187.935 dec=28.7917 rad=12.0 tmin=542592001.0 tmax=542851201.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 7.33
user 6.47
sys 0.34

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/776557/ft2_4FGL_J1231.7+2847_daily_bin1170.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/776557/ft1_filteredMKT_4FGL_J1231.7+2847_daily_bin1170.fits evtable="EVENTS" outfile="/scratch/kocevski/776557/ft1_filtered_4FGL_J1231.7+2847_daily_bin1170.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 1.61
user 0.35
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/776557/ft1_filtered_4FGL_J1231.7+2847_daily_bin1170.fits" evtable="EVENTS" scfile=/scratch/kocevski/776557/ft2_4FGL_J1231.7+2847_daily_bin1170.fits sctable="SC_DATA" outfile=/scratch/kocevski/776557/ltcube_542592001_542851201_4FGL_J1231.7+2847_daily_bin1170.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/776557/ft2_4FGL_J1231.7+2847_daily_bin1170.fits
.....................!
real 17.05
user 16.06
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/776557/ft1_filtered_4FGL_J1231.7+2847_daily_bin1170.fits evtable="EVENTS" scfile=/scratch/kocevski/776557/ft2_4FGL_J1231.7+2847_daily_bin1170.fits sctable="SC_DATA" expcube=/scratch/kocevski/776557/ltcube_542592001_542851201_4FGL_J1231.7+2847_daily_bin1170.fits outfile=/scratch/kocevski/776557/expmap_542592001_542851201_4FGL_J1231.7+2847_daily_bin1170.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/776557/ltcube_542592001_542851201_4FGL_J1231.7+2847_daily_bin1170.fits
.....................!
real 197.61
user 188.84
sys 5.99

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/776557/ft1_filtered_4FGL_J1231.7+2847_daily_bin1170.fits scfile=/scratch/kocevski/776557/ft2_4FGL_J1231.7+2847_daily_bin1170.fits outfile=/scratch/kocevski/776557/cmap_542592001_542851201_4FGL_J1231.7+2847_daily_bin1170.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.57
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/776557/ft1_filtered_4FGL_J1231.7+2847_daily_bin1170.fits scfile=/scratch/kocevski/776557/ft2_4FGL_J1231.7+2847_daily_bin1170.fits outfile=/scratch/kocevski/776557/cmap_HighResolution_542592001_542851201_4FGL_J1231.7+2847_daily_bin1170.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/776557/ft1_filtered_4FGL_J1231.7+2847_daily_bin1170.fits evtable="EVENTS" scfile=/scratch/kocevski/776557/ft2_4FGL_J1231.7+2847_daily_bin1170.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/776557/Model_4FGL_J1231.7+2847_daily_bin1170.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/776557/ft1_filtered_4FGL_J1231.7+2847_daily_bin1170.fits.....................!
real 26.73
user 25.27
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.962       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.9652       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .61347       1.0000         .10000E-03   10000.    
     4 'norm      '    7.4338       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.0554       1.0000         .10000E-03   10000.    
     6 'Prefactor '    136.72       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.7997       1.0000         .10000E-03   10000.    
     8 'norm      '    .16831E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.612       1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.838       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10590E-02   1.0000         .10000E-03   10000.    
    13 'norm      '    .20245       1.0000         .10000E-03   10000.    
    14 'norm      '    16.596       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.8847       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .17194E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.8508       1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.164       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .78777E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    11.501       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .38647E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    3.4292       1.0000         .10000E-03   10000.    
    23 'Prefactor '    46.741       1.0000         .10000E-03   10000.    
    24 'norm      '    4.4719       1.0000         .10000E-03   10000.    
    25 'norm      '    .10065E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10527E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10329E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .19397E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    27.459       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .87253       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .75014       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=   1979.933     FROM MIGRAD    STATUS=CONVERGED    968 CALLS     3726 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.853        34.023        .77603E-05    .52004E-03
   2  Prefactor     1.9661        2.9472       -.28013E-06   -.15251E-03
   3  Prefactor     .10010E-03    69.967       -.37932E-06** at limit **
   4  norm          7.4023        3.3319       -.13869E-06   -.15389E-04
   5  Prefactor     4.0793        8.0295        .42797E-05   -.10375E-02
   6  Prefactor     145.64        94.425        .45425E-06   -.91996E-05
   7  Prefactor     5.8430        7.0871       -.71774E-06   -.56556E-04
   8  norm          .10000E-03    9.8844        .47341E-07** at limit **
   9  Prefactor     16.440        20.751        .56605E-06   -.72078E-05
  10  Prefactor     13.791        7.9819        .64020E-07   -.11155E-03
  11  Prefactor     .10000E-03    1.9223       -.90244E-08** at limit **
  12  Prefactor     .10000E-03    6.5653        .50070E-08** at limit **
  13  norm          .20255        .24308        .11521E-07   -.23085E-03
  14  norm          16.588        9.7859        .11474E-06   -.27128E-04
  15  Prefactor     3.9333        41.834        .21652E-05   -.93820E-07
  16  Prefactor     .10000E-03    39.125        .14425E-06** at limit **
  17  Prefactor     .10000E-03    6800.3       -.45463E-05** at limit **
  18  Prefactor     15.081        13.444        .36023E-06   -.11585E-04
  19  Prefactor     .10000E-03    6.8722        .32694E-07** at limit **
  20  norm          11.758        8.9016       -.48113E-07   -.16803E-03
  21  Prefactor     .10000E-03    15.634       -.51372E-08** at limit **
  22  norm          3.4427        4.5853        .14437E-06   -.10518E-04
  23  Prefactor     47.123        34.687        .13947E-05    .13765E-03
  24  norm          4.4724        6.6908       -.47318E-07   -.13416E-04
  25  norm          .10000E-03    1.8833       -.68906E-09** at limit **
  26  norm          .10000E-03    3.2173       -.33480E-08** at limit **
  27  norm          .10000E-03    17.046       -.11197E-07** at limit **
  28  Prefactor     .10000E-03    4.1004        .16502E-07** at limit **
  29  Prefactor     27.247        27.086        .50090E-06   -.32220E-05
  30  Normalizat    .86772        .32452       -.37141E-05   -.36333E-04
  31  Prefactor     .75317        .33882        .27962E-06   -.73137E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.8527
  Prefactor  = 1.96613
  Prefactor  = 0.000100097
  norm       = 7.40232
  Prefactor  = 4.07933
  Prefactor  = 145.642
  Prefactor  = 5.843
  norm       = 0.0001
  Prefactor  = 16.4403
  Prefactor  = 13.7911
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.202549
  norm       = 16.588
  Prefactor  = 3.93329
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 15.0812
  Prefactor  = 0.0001
  norm       = 11.7576
  Prefactor  = 0.0001
  norm       = 3.44266
  Prefactor  = 47.1227
  norm       = 4.47241
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.247
  Normalizat = 0.867722
  Prefactor  = 0.753173
 **********
 **   18 **HESSE 
 **********

 FCN=   1979.933     FROM HESSE     STATUS=OK           630 CALLS     4356 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.853        37.217        .78621E-04   -1.4691    
   2  Prefactor     1.9661        2.9277        .89819E-04   -1.5428    
   3  Prefactor     .10010E-03    419.56        .69444E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          7.4023        3.3381        .51366E-04   -1.5164    
   5  Prefactor     4.0793        9.1501        .91494E-03   -1.5304    
   6  Prefactor     145.64        92.361        .34446E-04   -1.3288    
   7  Prefactor     5.8430        7.1595        .12098E-03   -1.5224    
   8  norm          .10000E-03    17.195        .24485E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     16.440        20.775        .98266E-04   -1.4897    
  10  Prefactor     13.791        7.2618        .81715E-04   -1.4965    
  11  Prefactor     .10000E-03    1.9280        .60191E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.6100        .11128E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .20255        .23428        .23288E-03   -1.5618    
  14  norm          16.588        9.7767        .98316E-04   -1.4893    
  15  Prefactor     3.9333        41.471        .20472E-03   -1.5311    
  16  Prefactor     .10000E-03    39.254        .20360E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6817.2        .91323E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     15.081        13.450        .10285E-03   -1.4931    
  19  Prefactor     .10000E-03    6.8852        .11387E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          11.758        8.9211        .11033E-03   -1.5022    
  21  Prefactor     .10000E-03    15.640        .17185E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          3.4427        4.5784        .10629E-03   -1.5337    
  23  Prefactor     47.123        34.791        .58648E-04   -1.4334    
  24  norm          4.4724        6.6849        .13496E-03   -1.5285    
  25  norm          .10000E-03    1.8850        .59622E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    3.2177        .77954E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    17.059        .17948E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    4.1189        .87718E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     27.247        27.141        .76451E-04   -1.4664    
  30  Normalizat    .86772        .37227        .25757E-03   -.97604    
  31  Prefactor     .75317        .39008        .31231E-03   -1.0148    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.99825e-09
Minuit parameter uncertainties:
  1  37.25
  2  2.92791
  3  0.0128331
  4  3.33816
  5  9.15322
  6  92.4528
  7  7.16053
  8  5.58684e-05
  9  20.7843
  10  7.26231
  11  1.91073e-07
  12  5.5307e-06
  13  0.234282
  14  9.77764
  15  25.5659
  16  4.96007e-05
  17  0.00553666
  18  13.4532
  19  6.48134e-06
  20  8.92207
  21  1.00542e-05
  22  4.57889
  23  34.8055
  24  6.68601
  25  1.34221e-06
  26  5.21858e-07
  27  6.40669e-06
  28  1.74914e-07
  29  27.1529
  30  0.373375
  31  0.391514
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
612    Prefactor:  7.532e-01  3.915e-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.677e-01  3.734e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/776557/likelihoodResults_542592001_542851201_4FGL_J1231.7+2847_daily_bin1170.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) = 1979.75992918
delta logL = 0.173487189049

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1979.7116703
delta logL = 0.221746064114

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .74756       1.0000         .10000E-03   10000.    
     2 'Index     '    3.5989       1.0000          .0000       10.000    
     3 'Normalizat'    .79676       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80382       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=   1979.712     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      239 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .74484        32.970        .12243E-01    .18226E-03
   2  Index         3.6013        3.8095        .92778E-01    .42856E-04
   3  Normalizat    .79746        .69080E-01    .43568E-01   -.30259E-04
   4  Prefactor     .80308        .79123E-01    .68525E-01    .48359E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.744844
  Index      = 3.60126
  Normalizat = 0.797464
  Prefactor  = 0.803076
 **********
 **   18 **HESSE 
 **********

 FCN=   1979.712     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      274 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .74484        86.346        .58841E-03   -1.5535    
   2  Index         3.6013        6.4307        .46940E-02   -.28353    
   3  Normalizat    .79746        .25483        .26742E-03   -1.0016    
   4  Prefactor     .80308        .29308        .30317E-03   -.99615    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.88082e-11
Minuit parameter uncertainties:
  1  16.062
  2  8.82421
  3  0.255209
  4  0.293652
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/776557': 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) = 1979.71166615
delta logL = 0.221750220144

Extracting fit parameters...

4FGL J1231.7+2847
   Spectrum: PowerLaw
334    Prefactor:  7.448e-01  1.606e+01  1.000e-04  1.000e+04 ( 1.000e-13)
335        Index:  3.601e+00  8.824e+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:  8.031e-01  2.937e-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.975e-01  2.552e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.03
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/776557/cmap_HighResolution_542592001_542851201_4FGL_J1231.7+2847_daily_bin1170.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.31e-02', job_status='DONE', photon_flux_upper_limit='1.74e-07', time_completed='2021-09-05 22:44:46.405318', job_id='776557', GAL2='0.80', fit_tolerance='1e-08', EG2='0.80', EG='0.87', time_epoch_completed='1630907086.41', return_code2='102', ts='0.03', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='2.22e-01', ts2='0.51', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='1170' AND source_name='4FGL J1231.7+2847' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 22:44:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0016>
Subject: Job 776557: <4FGL_J1231.7+2847_daily_bin1170> in cluster <slac> Done

Job <4FGL_J1231.7+2847_daily_bin1170> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 22:30:38 2021
Job was executed on host(s) <bullet0016>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 22:32:12 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 22:32:12 2021
Terminated at Sun Sep  5 22:44:47 2021
Results reported at Sun Sep  5 22:44:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1231.7+2847_daily_bin1170 187.935 28.7917 542592001 542851201 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 :                                   545.36 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             273.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   754 sec.
    Turnaround time :                            849 sec.

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

