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


Performing analysis on: 4FGL_J1231.7+2847_daily_bin3
RA = 187.935, Dec = 28.7917
tmin = 240105601, tmax = 240364801
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='771585', job_status='RUN', time_executed='2021-09-05 22:17:35.282280', time_epoch_executed='1630905455.28' WHERE source_name='4FGL J1231.7+2847' and cadence='daily' and bin_id='3'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/771585

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/771585/ft1_4FGL_J1231.7+2847_daily_bin3.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/771585/ft2_4FGL_J1231.7+2847_daily_bin3.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/771585/ft1_4FGL_J1231.7+2847_daily_bin3.fits outfile=/scratch/kocevski/771585/ft1_filteredMKT_4FGL_J1231.7+2847_daily_bin3.fits ra=187.935 dec=28.7917 rad=12.0 tmin=240105601.0 tmax=240364801.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.48
user 1.28
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/771585/ft1_filtered_4FGL_J1231.7+2847_daily_bin3.fits" evtable="EVENTS" scfile=/scratch/kocevski/771585/ft2_4FGL_J1231.7+2847_daily_bin3.fits sctable="SC_DATA" outfile=/scratch/kocevski/771585/ltcube_240105601_240364801_4FGL_J1231.7+2847_daily_bin3.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/771585/ft2_4FGL_J1231.7+2847_daily_bin3.fits
.....................!
real 18.37
user 17.93
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/771585/ft1_filtered_4FGL_J1231.7+2847_daily_bin3.fits evtable="EVENTS" scfile=/scratch/kocevski/771585/ft2_4FGL_J1231.7+2847_daily_bin3.fits sctable="SC_DATA" expcube=/scratch/kocevski/771585/ltcube_240105601_240364801_4FGL_J1231.7+2847_daily_bin3.fits outfile=/scratch/kocevski/771585/expmap_240105601_240364801_4FGL_J1231.7+2847_daily_bin3.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/771585/ltcube_240105601_240364801_4FGL_J1231.7+2847_daily_bin3.fits
.....................!
real 192.34
user 187.28
sys 4.40

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/771585/ft1_filtered_4FGL_J1231.7+2847_daily_bin3.fits scfile=/scratch/kocevski/771585/ft2_4FGL_J1231.7+2847_daily_bin3.fits outfile=/scratch/kocevski/771585/cmap_240105601_240364801_4FGL_J1231.7+2847_daily_bin3.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.55
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/771585/ft1_filtered_4FGL_J1231.7+2847_daily_bin3.fits scfile=/scratch/kocevski/771585/ft2_4FGL_J1231.7+2847_daily_bin3.fits outfile=/scratch/kocevski/771585/cmap_HighResolution_240105601_240364801_4FGL_J1231.7+2847_daily_bin3.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.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/771585/ft1_filtered_4FGL_J1231.7+2847_daily_bin3.fits evtable="EVENTS" scfile=/scratch/kocevski/771585/ft2_4FGL_J1231.7+2847_daily_bin3.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/771585/Model_4FGL_J1231.7+2847_daily_bin3.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/771585/ft1_filtered_4FGL_J1231.7+2847_daily_bin3.fits.....................!
real 43.99
user 42.58
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.5852       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.1465       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .23264E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    7.5958       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    48.088       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.4743       1.0000         .10000E-03   10000.    
     8 'norm      '    1.0358       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.3212       1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.575       1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.7908       1.0000         .10000E-03   10000.    
    13 'norm      '    .23329       1.0000         .10000E-03   10000.    
    14 'norm      '    7.2598       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    38.027       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10362E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.7934       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .49161E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.1599       1.0000         .10000E-03   10000.    
    22 'norm      '    2.3034       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    6.5165       1.0000         .10000E-03   10000.    
    25 'norm      '    16.079       1.0000         .10000E-03   10000.    
    26 'norm      '    .10132E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    16.078       1.0000         .10000E-03   10000.    
    28 'Prefactor '    9.6104       1.0000         .10000E-03   10000.    
    29 'Prefactor '    11.498       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .58999       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0673       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=   4640.762     FROM MIGRAD    STATUS=CONVERGED   1507 CALLS     5578 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.5880        15.310        .16999E-03   -.68617E-04
   2  Prefactor     1.1466        1.1321        .67924E-03   -.35818E-04
   3  Prefactor     .10015E-03    326.91        .74705E-02** at limit **
   4  norm          7.5950        2.2261        .51388E-04   -.92010E-03
   5  Prefactor     .10000E-03    6.2052        .32368E-03** at limit **
   6  Prefactor     48.024        42.775        .57824E-04   -.22268E-03
   7  Prefactor     3.4763        3.6458        .12780E-03   -.10942E-04
   8  norm          1.0374        2.3265        .16363E-02    .14077E-03
   9  Prefactor     .10000E-03    6.6094        .17021E-02** at limit **
  10  Prefactor     3.3208        2.5885        .87632E-04   -.20879E-03
  11  Prefactor     13.573        3.8196        .66551E-04   -.41039E-03
  12  Prefactor     9.7910        6.9237        .12807E-03   -.10298E-04
  13  norm          .23331        .19254        .25500E-04   -.36780E-03
  14  norm          7.2605        5.2184        .12467E-03    .10587E-03
  15  Prefactor     .10000E-03    16.091        .36285E-03** at limit **
  16  Prefactor     38.012        28.028        .64995E-04   -.42295E-04
  17  Prefactor     .10000E-03    104.23        .18142E-02** at limit **
  18  Prefactor     4.7954        7.1565        .18376E-03    .48009E-04
  19  Prefactor     .10000E-03    8.3716        .18142E-02** at limit **
  20  norm          .10002E-03    5.4218        .40120E-01** at limit **
  21  Prefactor     9.1601        26.532        .13242E-03    .54086E-05
  22  norm          2.3037        2.7473        .11950E-03   -.24165E-04
  23  Prefactor     .10000E-03    15.842        .18142E-02** at limit **
  24  norm          6.5163        6.6137        .15721E-03    .11006E-03
  25  norm          16.077        5.9317        .91301E-04   -.77097E-03
  26  norm          .10006E-03    33.148        .32372E-02** at limit **
  27  norm          16.073        19.978        .99885E-04    .18211E-04
  28  Prefactor     9.6079        6.1618        .11355E-03   -.78093E-04
  29  Prefactor     11.511        21.841        .59072E-03    .78060E-04
  30  Normalizat    .59020        .23752        .29768E-03   -.37706E-03
  31  Prefactor     1.0669        .26570        .26560E-03   -.12708E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.58804
  Prefactor  = 1.14657
  Prefactor  = 0.000100145
  norm       = 7.59496
  Prefactor  = 0.0001
  Prefactor  = 48.0244
  Prefactor  = 3.4763
  norm       = 1.03745
  Prefactor  = 0.0001
  Prefactor  = 3.32084
  Prefactor  = 13.5731
  Prefactor  = 9.79101
  norm       = 0.233315
  norm       = 7.26045
  Prefactor  = 0.0001
  Prefactor  = 38.0116
  Prefactor  = 0.000100003
  Prefactor  = 4.79543
  Prefactor  = 0.0001
  norm       = 0.000100018
  Prefactor  = 9.16008
  norm       = 2.30371
  Prefactor  = 0.0001
  norm       = 6.51629
  norm       = 16.0767
  norm       = 0.000100057
  norm       = 16.0732
  Prefactor  = 9.60794
  Prefactor  = 11.5107
  Normalizat = 0.590199
  Prefactor  = 1.06693
 **********
 **   18 **HESSE 
 **********

 FCN=   4640.762     FROM HESSE     STATUS=OK           606 CALLS     6184 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.5880        15.307        .67996E-05   -1.5235    
   2  Prefactor     1.1466        1.1321        .27170E-04   -1.5494    
   3  Prefactor     .10015E-03    337.31        .29882E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          7.5950        2.2256        .20555E-05   -1.5157    
   5  Prefactor     .10000E-03    6.2055        .64736E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     48.024        42.639        .11565E-04   -1.4321    
   7  Prefactor     3.4763        3.6457        .51118E-05   -1.5335    
   8  norm          1.0374        2.3261        .65453E-04   -1.5504    
   9  Prefactor     .10000E-03    6.6115        .34041E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.3208        2.5911        .17526E-04   -1.5343    
  11  Prefactor     13.573        3.8187        .13310E-04   -1.4971    
  12  Prefactor     9.7910        6.9235        .51226E-05   -1.5082    
  13  norm          .23331        .19253        .10200E-05   -1.5611    
  14  norm          7.2605        5.2183        .49868E-05   -1.5169    
  15  Prefactor     .10000E-03    16.092        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     38.012        28.025        .12999E-04   -1.4474    
  17  Prefactor     .10000E-03    104.26        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.7954        7.1562        .73503E-05   -1.5270    
  19  Prefactor     .10000E-03    8.3767        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10002E-03    4.8163        .43979E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     9.1601        26.522        .52969E-05   -1.5103    
  22  norm          2.3037        2.7472        .47800E-05   -1.5404    
  23  Prefactor     .10000E-03    15.844        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          6.5163        6.6131        .62885E-05   -1.5197    
  25  norm          16.077        5.9147        .18260E-04   -1.4906    
  26  norm          .10006E-03    33.213        .64744E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          16.073        19.978        .39954E-05   -1.4906    
  28  Prefactor     9.6079        6.1598        .45420E-05   -1.5088    
  29  Prefactor     11.511        21.831        .23629E-04   -1.5029    
  30  Normalizat    .59020        .23761        .11907E-04   -1.0840    
  31  Prefactor     1.0669        .26588        .53121E-04   -.90531    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.19944e-09
Minuit parameter uncertainties:
  1  15.3177
  2  1.13207
  3  0.0140857
  4  2.22566
  5  1.39574e-05
  6  42.6664
  7  3.6459
  8  2.32633
  9  2.43923e-05
  10  2.59116
  11  3.8188
  12  6.92407
  13  0.192529
  14  5.21864
  15  1.6379e-05
  16  28.0349
  17  0.00113518
  18  7.15743
  19  8.66567e-05
  20  0.000589397
  21  26.5566
  22  2.74739
  23  7.04045e-05
  24  6.61383
  25  5.91493
  26  0.00275835
  27  19.9858
  28  6.1602
  29  21.8458
  30  0.238025
  31  0.266212
Done.

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

Extracting fit parameters...

4FGL J1231.7+2847
   Spectrum: PowerLaw
334    Prefactor:  1.000e-04  1.638e-05  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.067e+00  2.662e-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:  5.902e-01  2.380e-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: 6.16e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.62e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/771585/likelihoodResults_240105601_240364801_4FGL_J1231.7+2847_daily_bin3.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) = 4640.76267827
delta logL = -0.000296566656289

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4640.76238032
delta logL = 1.38207178679e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14783E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1126       1.0000          .0000       10.000    
     3 'Normalizat'    .59023       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0669       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=   4640.159     FROM MIGRAD    STATUS=CONVERGED    148 CALLS      322 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .87121E-01    .18097        .44682E-02   -.35182E-02
   2  Index         4.4391        .71045        .91774E-01    .20407E-03
   3  Normalizat    .52253        .20335        .71088E-01    .11647E-03
   4  Prefactor     1.1157        .22989        .58849E-01    .58354E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0871212
  Index      = 4.43909
  Normalizat = 0.52253
  Prefactor  = 1.11574
 **********
 **   18 **HESSE 
 **********

 FCN=   4640.159     FROM HESSE     STATUS=OK            35 CALLS      357 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .87121E-01    .64131        .20533E-03   -1.5767    
   2  Index         4.4391        2.1774        .46065E-02   -.11242    
   3  Normalizat    .52253        .23073        .31470E-03   -1.1138    
   4  Prefactor     1.1157        .26675        .26021E-03   -.88965    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.39944e-10
Minuit parameter uncertainties:
  1  0.472479
  2  2.2539
  3  0.231154
  4  0.267075
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/771585': 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) = 4640.15943732
delta logL = 0.602944376899

Extracting fit parameters...

4FGL J1231.7+2847
   Spectrum: PowerLaw
334    Prefactor:  8.712e-02  4.725e-01  1.000e-04  1.000e+04 ( 1.000e-13)
335        Index:  4.439e+00  2.254e+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.116e+00  2.671e-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:  5.225e-01  2.312e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.28
Ra Dec: 187.935 28.792
Photon Index (Free Index): 4.44 +/- 2.25
Photon Flux (Free Index): 5.59e-08 +/- 6.10e-07
Energy Flux (Free Index): 7.87e-06 +/- 8.39e-05

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/771585/cmap_HighResolution_240105601_240364801_4FGL_J1231.7+2847_daily_bin3.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.62e-03', comment='SUCCESS', energy_flux2='7.87e-06', dlogl='6.03e-01', photon_flux2='5.59e-08', job_status='DONE', time_completed='2021-09-05 22:32:23.592574', photon_index_error2='2.25', photon_index2='4.44', ts='-0.00', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', photon_flux_upper_limit='6.16e-08', energy_flux_error2='8.39e-05', EG='0.59', time_epoch_completed='1630906343.59', return_code='0', job_id='771585', GAL2='1.12', EG2='0.52', return_code2='0', photon_flux_error2='6.10e-07', ts2='1.28', photon_index='2.00' WHERE bin_id='3' AND source_name='4FGL J1231.7+2847' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 22:32:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 771585: <4FGL_J1231.7+2847_daily_bin3> in cluster <slac> Done

Job <4FGL_J1231.7+2847_daily_bin3> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep  5 22:16:01 2021
Job was executed on host(s) <bullet0085>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 22:16:04 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:16:04 2021
Terminated at Sun Sep  5 22:32:24 2021
Results reported at Sun Sep  5 22:32:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1231.7+2847_daily_bin3 187.935 28.7917 240105601 240364801 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 :                                   886.00 sec.
    Max Memory :                                 1149 MB
    Average Memory :                             297.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   979 sec.
    Turnaround time :                            983 sec.

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

