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


Performing analysis on: 4FGL_J1231.7+2847_daily_bin1404
RA = 187.935, Dec = 28.7917
tmin = 603244801, tmax = 603504001
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='779325', job_status='RUN', time_executed='2021-09-05 22:36:31.535439', time_epoch_executed='1630906591.54' WHERE source_name='4FGL J1231.7+2847' and cadence='daily' and bin_id='1404'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/779325

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/779325/ft1_4FGL_J1231.7+2847_daily_bin1404.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/779325/ft2_4FGL_J1231.7+2847_daily_bin1404.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/779325/ft1_4FGL_J1231.7+2847_daily_bin1404.fits outfile=/scratch/kocevski/779325/ft1_filteredMKT_4FGL_J1231.7+2847_daily_bin1404.fits ra=187.935 dec=28.7917 rad=12.0 tmin=603244801.0 tmax=603504001.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 3.25
user 2.67
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/779325/ft1_filtered_4FGL_J1231.7+2847_daily_bin1404.fits" evtable="EVENTS" scfile=/scratch/kocevski/779325/ft2_4FGL_J1231.7+2847_daily_bin1404.fits sctable="SC_DATA" outfile=/scratch/kocevski/779325/ltcube_603244801_603504001_4FGL_J1231.7+2847_daily_bin1404.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/779325/ft2_4FGL_J1231.7+2847_daily_bin1404.fits
.....................!
real 15.16
user 14.42
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/779325/ft1_filtered_4FGL_J1231.7+2847_daily_bin1404.fits evtable="EVENTS" scfile=/scratch/kocevski/779325/ft2_4FGL_J1231.7+2847_daily_bin1404.fits sctable="SC_DATA" expcube=/scratch/kocevski/779325/ltcube_603244801_603504001_4FGL_J1231.7+2847_daily_bin1404.fits outfile=/scratch/kocevski/779325/expmap_603244801_603504001_4FGL_J1231.7+2847_daily_bin1404.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/779325/ltcube_603244801_603504001_4FGL_J1231.7+2847_daily_bin1404.fits
.....................!
real 190.81
user 186.01
sys 4.31

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/779325/ft1_filtered_4FGL_J1231.7+2847_daily_bin1404.fits scfile=/scratch/kocevski/779325/ft2_4FGL_J1231.7+2847_daily_bin1404.fits outfile=/scratch/kocevski/779325/cmap_603244801_603504001_4FGL_J1231.7+2847_daily_bin1404.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.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/779325/ft1_filtered_4FGL_J1231.7+2847_daily_bin1404.fits scfile=/scratch/kocevski/779325/ft2_4FGL_J1231.7+2847_daily_bin1404.fits outfile=/scratch/kocevski/779325/cmap_HighResolution_603244801_603504001_4FGL_J1231.7+2847_daily_bin1404.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10677E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.1522       1.0000         .10000E-03   10000.    
     3 'Prefactor '    66.164       1.0000         .10000E-03   10000.    
     4 'norm      '    .10236E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    19.215       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12569E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.3134       1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.231       1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.685       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.1654       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.7047       1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.4880       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10178E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.562       1.0000         .10000E-03   10000.    
    20 'norm      '    .22145E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    61.008       1.0000         .10000E-03   10000.    
    22 'norm      '    5.2287       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    25.844       1.0000         .10000E-03   10000.    
    26 'norm      '    10.099       1.0000         .10000E-03   10000.    
    27 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    3.5216       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10195E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .85979       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.3591       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=   3890.081     FROM MIGRAD    STATUS=CONVERGED    847 CALLS     4187 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    97.617        .86598E-06** at limit **
   2  Prefactor     1.1563        8.8290        .10017E-05    .13095E-03
   3  Prefactor     65.913        79.419       -.31962E-05   -.27912E-03
   4  norm          .10000E-03    1.5444        .22907E-06** at limit **
   5  Prefactor     19.216        16.313       -.11523E-06   -.71863E-04
   6  Prefactor     .10549E-03    171.89        .13175E-04** at limit **
   7  Prefactor     .10000E-03    4.2496        .11387E-06** at limit **
   8  norm          3.3135        6.0109       -.29955E-07   -.88609E-04
   9  Prefactor     10.229        10.042        .10486E-07   -.19234E-03
  10  Prefactor     13.684        7.0524       -.11302E-06   -.20879E-03
  11  Prefactor     2.1663        4.0131        .13111E-06    .16583E-04
  12  Prefactor     .10000E-03    4.1187        .90840E-07** at limit **
  13  norm          .10000E-03    .20677        .24927E-07** at limit **
  14  norm          3.7047        5.8606        .24228E-06    .95322E-05
  15  Prefactor     9.4894        15.023        .36364E-06    .94325E-04
  16  Prefactor     .10000E-03    52.498        .55010E-06** at limit **
  17  Prefactor     .10000E-03    49.220        .64113E-07** at limit **
  18  Prefactor     .10000E-03    3.5500        .14174E-06** at limit **
  19  Prefactor     10.561        8.6253       -.64575E-07    .10718E-03
  20  norm          .10001E-03    10.087       -.40232E-05** at limit **
  21  Prefactor     61.059        47.200        .19880E-05    .50078E-03
  22  norm          5.2295        4.1490        .19119E-07    .11835E-04
  23  Prefactor     .10000E-03    8.0601        .35455E-07** at limit **
  24  norm          .10000E-03    3.0716       -.29636E-07** at limit **
  25  norm          25.847        11.788       -.22900E-06    .10219E-02
  26  norm          10.098        14.261        .23002E-06    .17662E-03
  27  norm          .10000E-03    10.611        .12333E-06** at limit **
  28  Prefactor     3.5216        5.0234        .91285E-07    .18647E-03
  29  Prefactor     .10000E-03    12.981        .29600E-06** at limit **
  30  Normalizat    .85914        .30597        .45882E-05    .42900E-04
  31  Prefactor     1.3597        .33241       -.54899E-05   -.87718E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.1563
  Prefactor  = 65.9125
  norm       = 0.0001
  Prefactor  = 19.2158
  Prefactor  = 0.00010549
  Prefactor  = 0.0001
  norm       = 3.31353
  Prefactor  = 10.2292
  Prefactor  = 13.6841
  Prefactor  = 2.16626
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.70466
  Prefactor  = 9.48944
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.5612
  norm       = 0.000100009
  Prefactor  = 61.0587
  norm       = 5.22951
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 25.8472
  norm       = 10.0978
  norm       = 0.0001
  Prefactor  = 3.52157
  Prefactor  = 0.0001
  Normalizat = 0.859139
  Prefactor  = 1.35966
 **********
 **   18 **HESSE 
 **********

 FCN=   3890.081     FROM HESSE     STATUS=OK           626 CALLS     4813 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    97.815        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.1563        8.8750        .33764E-03   -1.5493    
   3  Prefactor     65.913        94.504        .24670E-03   -1.4082    
   4  norm          .10000E-03    1.5917        .15156E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     19.216        16.148        .91370E-04   -1.4831    
   6  Prefactor     .10549E-03    124.03        .15320       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.2616        .12553E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.3135        6.0254        .16460E-03   -1.5344    
   9  Prefactor     10.229        10.063        .12527E-03   -1.5068    
  10  Prefactor     13.684        7.1051        .93882E-04   -1.4968    
  11  Prefactor     2.1663        3.9667        .15463E-03   -1.5414    
  12  Prefactor     .10000E-03    4.1336        .12358E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .20716        .18142E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.7047        5.8438        .18234E-03   -1.5323    
  15  Prefactor     9.4894        15.015        .65051E-03   -1.5092    
  16  Prefactor     .10000E-03    53.495        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    49.231        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.5589        .11479E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     10.561        8.6185        .12328E-03   -1.5058    
  20  norm          .10001E-03    16.919        .28131E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     61.059        48.168        .51370E-04   -1.4144    
  22  norm          5.2295        4.1484        .10910E-03   -1.5251    
  23  Prefactor     .10000E-03    8.0690        .17291E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    3.0924        .10673E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          25.847        11.846        .78800E-04   -1.4691    
  26  norm          10.098        14.384        .12609E-03   -1.5072    
  27  norm          .10000E-03    10.621        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     3.5216        4.9906        .15497E-03   -1.5333    
  29  Prefactor     .10000E-03    12.995        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .85914        .33416        .31464E-03   -.97911    
  31  Prefactor     1.3597        .35990        .29677E-03   -.81550    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.31913e-09
Minuit parameter uncertainties:
  1  0.000100336
  2  6.40795
  3  94.7205
  4  6.9325e-06
  5  16.1517
  6  0.0523
  7  1.14181e-05
  8  6.02646
  9  10.0643
  10  7.10556
  11  3.96721
  12  6.99676e-06
  13  6.1771e-07
  14  5.84466
  15  15.0209
  16  0.000197901
  17  4.89304e-05
  18  1.41209e-05
  19  8.61947
  20  0.00077197
  21  48.1983
  22  4.14865
  23  2.72902e-06
  24  2.90989e-06
  25  11.847
  26  14.3891
  27  2.18856e-05
  28  4.9912
  29  5.11118e-05
  30  0.334966
  31  0.360568
Done.

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

Extracting fit parameters...

4FGL J1231.7+2847
   Spectrum: PowerLaw
334    Prefactor:  9.489e+00  1.502e+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:  1.360e+00  3.606e-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.591e-01  3.350e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.63
Ra Dec: 187.935 28.792
Photon Flux Upper Limit: 1.28e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.62e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/779325/likelihoodResults_603244801_603504001_4FGL_J1231.7+2847_daily_bin1404.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): 0
logL (Free Index) = 3890.08004928
delta logL = 0.000459691822471

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3890.0800142
delta logL = 0.000494775281368

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.4210       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0349       1.0000          .0000       10.000    
     3 'Normalizat'    .85763       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3603       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=   3890.080     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      257 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.4178        15.028        .13057E-03    .76505E-03
   2  Index         2.0344        1.1608        .87952E-02    .23654E-03
   3  Normalizat    .85765        .30672        .31487E-03   -.48872E-03
   4  Prefactor     1.3604        .35245        .29670E-03   -.62278E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.41775
  Index      = 2.03438
  Normalizat = 0.857647
  Prefactor  = 1.36044
 **********
 **   18 **HESSE 
 **********

 FCN=   3890.080     FROM HESSE     STATUS=OK            23 CALLS      280 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.4178        14.873        .26113E-04   -1.5094    
   2  Index         2.0344        1.1476        .35181E-03   -.63493    
   3  Normalizat    .85765        .30664        .62974E-04   -.97965    
   4  Prefactor     1.3604        .35259        .59340E-04   -.81527    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.76297e-09
Minuit parameter uncertainties:
  1  14.8785
  2  1.16372
  3  0.307264
  4  0.353212
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/779325': 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) = 3890.0800138
delta logL = 0.000495175321248

Extracting fit parameters...

4FGL J1231.7+2847
   Spectrum: PowerLaw
334    Prefactor:  9.418e+00  1.488e+01  1.000e-04  1.000e+04 ( 1.000e-13)
335        Index:  2.034e+00  1.164e+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.360e+00  3.532e-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.576e-01  3.073e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.63
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/779325/cmap_HighResolution_603244801_603504001_4FGL_J1231.7+2847_daily_bin1404.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.62e-03', job_status='DONE', photon_flux_upper_limit='1.28e-07', time_completed='2021-09-05 22:48:17.417175', job_id='779325', GAL2='1.36', fit_tolerance='1e-08', EG2='0.86', EG='0.86', time_epoch_completed='1630907297.42', return_code2='0', ts='0.63', comment='SUCCESS', return_code='0', GAL='1.36', dlogl='4.95e-04', ts2='0.63', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='1404' AND source_name='4FGL J1231.7+2847' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 22:48:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 779325: <4FGL_J1231.7+2847_daily_bin1404> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1231.7+2847_daily_bin1404 187.935 28.7917 603244801 603504001 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 :                                   700.26 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             342.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   734 sec.
    Turnaround time :                            743 sec.

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

