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


Performing analysis on: 4FGL_J1231.7+2847_daily_bin92
RA = 187.935, Dec = 28.7917
tmin = 263174401, tmax = 263433601
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='769953', job_status='RUN', time_executed='2021-09-05 22:14:29.561829', time_epoch_executed='1630905269.56' WHERE source_name='4FGL J1231.7+2847' and cadence='daily' and bin_id='92'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/769953

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

Retrieving the FT1 file...

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

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

Retrieving 42 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/769953/ft1_4FGL_J1231.7+2847_daily_bin92.fits


Retrieving the FT1 file...

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

Retrieving 42 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/769953/ft2_4FGL_J1231.7+2847_daily_bin92.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/769953/ft1_4FGL_J1231.7+2847_daily_bin92.fits outfile=/scratch/kocevski/769953/ft1_filteredMKT_4FGL_J1231.7+2847_daily_bin92.fits ra=187.935 dec=28.7917 rad=12.0 tmin=263174401.0 tmax=263433601.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.52
user 1.21
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/769953/ft1_filtered_4FGL_J1231.7+2847_daily_bin92.fits" evtable="EVENTS" scfile=/scratch/kocevski/769953/ft2_4FGL_J1231.7+2847_daily_bin92.fits sctable="SC_DATA" outfile=/scratch/kocevski/769953/ltcube_263174401_263433601_4FGL_J1231.7+2847_daily_bin92.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/769953/ft2_4FGL_J1231.7+2847_daily_bin92.fits
.....................!
real 17.40
user 16.97
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/769953/ft1_filtered_4FGL_J1231.7+2847_daily_bin92.fits evtable="EVENTS" scfile=/scratch/kocevski/769953/ft2_4FGL_J1231.7+2847_daily_bin92.fits sctable="SC_DATA" expcube=/scratch/kocevski/769953/ltcube_263174401_263433601_4FGL_J1231.7+2847_daily_bin92.fits outfile=/scratch/kocevski/769953/expmap_263174401_263433601_4FGL_J1231.7+2847_daily_bin92.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/769953/ltcube_263174401_263433601_4FGL_J1231.7+2847_daily_bin92.fits
.....................!
real 194.40
user 189.21
sys 4.33

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/769953/ft1_filtered_4FGL_J1231.7+2847_daily_bin92.fits scfile=/scratch/kocevski/769953/ft2_4FGL_J1231.7+2847_daily_bin92.fits outfile=/scratch/kocevski/769953/cmap_263174401_263433601_4FGL_J1231.7+2847_daily_bin92.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.54
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/769953/ft1_filtered_4FGL_J1231.7+2847_daily_bin92.fits scfile=/scratch/kocevski/769953/ft2_4FGL_J1231.7+2847_daily_bin92.fits outfile=/scratch/kocevski/769953/cmap_HighResolution_263174401_263433601_4FGL_J1231.7+2847_daily_bin92.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.56
user 0.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/769953/ft1_filtered_4FGL_J1231.7+2847_daily_bin92.fits evtable="EVENTS" scfile=/scratch/kocevski/769953/ft2_4FGL_J1231.7+2847_daily_bin92.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/769953/Model_4FGL_J1231.7+2847_daily_bin92.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/769953/ft1_filtered_4FGL_J1231.7+2847_daily_bin92.fits.....................!
real 43.07
user 41.45
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.6668       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10709E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.3809       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.4521       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.8184       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.4227       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.4201       1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.1590       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.7720       1.0000         .10000E-03   10000.    
    13 'norm      '    .95970       1.0000         .10000E-03   10000.    
    14 'norm      '    .10418E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.1481       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10535E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .22668E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    2.4597       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10169E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .22818E-02   1.0000         .10000E-03   10000.    
    25 'norm      '    8.2510       1.0000         .10000E-03   10000.    
    26 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    33.709       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10250E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    1.5424       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .89745       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .97300       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=   4564.185     FROM MIGRAD    STATUS=CONVERGED    855 CALLS     3633 TOTAL
                     EDM=   .84E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.7920       -.26606E-06** at limit **
   2  Prefactor     4.6668        2.2191        .54285E-08    .26100E-04
   3  Prefactor     .10000E-03    21.598       -.23033E-05** at limit **
   4  norm          3.3810        1.5537       -.70024E-08    .18170E-04
   5  Prefactor     3.4526        4.3178       -.79853E-08   -.10464E-03
   6  Prefactor     .10000E-03    22.402        .32749E-05** at limit **
   7  Prefactor     .10000E-03    1.7094        .66052E-08** at limit **
   8  norm          3.8186        4.3251        .33845E-06    .89107E-04
   9  Prefactor     4.4242        5.7403        .15599E-05   -.12516E-02
  10  Prefactor     2.4202        2.5533       -.11531E-06    .43781E-04
  11  Prefactor     8.1587        3.5651       -.71317E-07    .27269E-03
  12  Prefactor     5.7718        5.9759       -.21392E-06    .13442E-03
  13  norm          .95972        .34854        .93164E-08    .73234E-03
  14  norm          .10001E-03    5.0618       -.10427E-05** at limit **
  15  Prefactor     .10000E-03    8.6488       -.28125E-05** at limit **
  16  Prefactor     .10000E-03    8.4147        .28971E-05** at limit **
  17  Prefactor     .10000E-03    27.892       -.90471E-06** at limit **
  18  Prefactor     4.1461        8.9165        .51589E-07   -.39860E-04
  19  Prefactor     .10000E-03    3.3542       -.34385E-08** at limit **
  20  norm          .10000E-03    5.4189        .14323E-06** at limit **
  21  Prefactor     .10003E-03    44.879       -.51744E-06** at limit **
  22  norm          2.4594        3.3612        .99114E-07   -.15275E-04
  23  Prefactor     .10000E-03    13.370        .24528E-05** at limit **
  24  norm          .10000E-03    3.8094       -.12651E-07** at limit **
  25  norm          8.2503        5.5416        .15777E-06    .23809E-03
  26  norm          .10000E-03    7.1913       -.29684E-06** at limit **
  27  norm          33.726        23.488       -.24642E-05   -.26385E-03
  28  Prefactor     .10000E-03    4.6545        .17578E-06** at limit **
  29  Prefactor     1.5380        36.952       -.13462E-05   -.68964E-04
  30  Normalizat    .89725        .20821       -.30980E-06    .16680E-03
  31  Prefactor     .97322        .23472        .15145E-06    .12898E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 4.66677
  Prefactor  = 0.0001
  norm       = 3.38104
  Prefactor  = 3.45258
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 3.81856
  Prefactor  = 4.42416
  Prefactor  = 2.42018
  Prefactor  = 8.15871
  Prefactor  = 5.77177
  norm       = 0.959724
  norm       = 0.000100014
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 4.14606
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100027
  norm       = 2.4594
  Prefactor  = 0.0001
  norm       = 0.000100003
  norm       = 8.25033
  norm       = 0.0001
  norm       = 33.7263
  Prefactor  = 0.0001
  Prefactor  = 1.53802
  Normalizat = 0.89725
  Prefactor  = 0.973217
 **********
 **   18 **HESSE 
 **********

 FCN=   4564.185     FROM HESSE     STATUS=OK           642 CALLS     4275 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.7951        .14446E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.6668        2.2193        .67148E-04   -1.5276    
   3  Prefactor     .10000E-03    21.815        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.3810        1.5528        .54520E-04   -1.5340    
   5  Prefactor     3.4526        4.3180        .15105E-03   -1.5336    
   6  Prefactor     .10000E-03    22.583        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.7449        .86207E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.8186        4.2984        .13176E-03   -1.5317    
   9  Prefactor     4.4242        8.3983        .95745E-03   -1.5287    
  10  Prefactor     2.4202        2.5476        .10118E-03   -1.5397    
  11  Prefactor     8.1587        3.5541        .77123E-04   -1.5137    
  12  Prefactor     5.7718        5.9009        .15952E-03   -1.5227    
  13  norm          .95972        .34810        .22522E-04   -1.5512    
  14  norm          .10001E-03    14.065        .28183E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    8.7991        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    8.5448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    27.909        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.1461        8.9148        .19790E-03   -1.5301    
  19  Prefactor     .10000E-03    3.3667        .12079E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    5.5281        .30556E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10003E-03    51.709        .10269       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.4594        3.3439        .13896E-03   -1.5394    
  23  Prefactor     .10000E-03    13.493        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    6.7818        .45123E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          8.2503        5.4550        .10809E-03   -1.5133    
  26  norm          .10000E-03    7.2301        .17600E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          33.726        23.823        .69019E-04   -1.4546    
  28  Prefactor     .10000E-03    4.7455        .28207E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     1.5380        36.536        .34324E-03   -1.5460    
  30  Normalizat    .89725        .24413        .24868E-03   -.96557    
  31  Prefactor     .97322        .27217        .28174E-03   -.93628    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.16706e-09
Minuit parameter uncertainties:
  1  1.05432e-05
  2  2.21938
  3  0.000192978
  4  1.55285
  5  4.31837
  6  0.000272663
  7  1.94837e-07
  8  4.29879
  9  8.40058
  10  2.54766
  11  3.5542
  12  5.90151
  13  0.3481
  14  0.000895503
  15  0.000140234
  16  0.000151465
  17  8.55638e-05
  18  8.91762
  19  1.00302e-06
  20  6.71092e-06
  21  0.00234404
  22  3.34418
  23  0.000161035
  24  0.000273327
  25  5.45532
  26  2.05891e-05
  27  23.8301
  28  2.11187e-05
  29  15.0023
  30  0.24443
  31  0.272555
Done.

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

Extracting fit parameters...

4FGL J1231.7+2847
   Spectrum: PowerLaw
334    Prefactor:  1.000e-04  1.402e-04  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.732e-01  2.726e-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.972e-01  2.444e-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.93e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.20e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/769953/likelihoodResults_263174401_263433601_4FGL_J1231.7+2847_daily_bin92.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) = 4564.18505067
delta logL = -0.000541417655768

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4564.18450926
delta logL = -7.28050508769e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9997       1.0000          .0000       10.000    
     3 'Normalizat'    .89726       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97322       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=   4564.185     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      198 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    669.80        .90712E-02** at limit **
   2  Index         2.0016        6.7138        .50000       -.17184E-05
   3  Normalizat    .89725        .46843E-01    .44867E-01    .12961E-04
   4  Prefactor     .97322        .55336E-01    .45932E-01    .11831E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.00157
  Normalizat = 0.897249
  Prefactor  = 0.973217
 **********
 **   18 **HESSE 
 **********

 FCN=   4564.185     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      231 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1131.0        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0016        7.3403        .50000       -.64311    
   3  Normalizat    .89725        .68300E-01    .24868E-03   -.96557    
   4  Prefactor     .97322        .80686E-01    .28174E-03   -.93628    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.92141e-10
Minuit parameter uncertainties:
  1  0.00010662
  2  46.3343
  3  0.0683071
  4  0.080696
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/769953': 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) = 4564.18450925
delta logL = 1.67892721947e-09

Extracting fit parameters...

4FGL J1231.7+2847
   Spectrum: PowerLaw
334    Prefactor:  1.000e-04  1.066e-04  1.000e-04  1.000e+04 ( 1.000e-13)
335        Index:  2.002e+00  4.633e+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.732e-01  8.070e-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.972e-01  6.831e-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/769953/cmap_HighResolution_263174401_263433601_4FGL_J1231.7+2847_daily_bin92.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.20e-03', job_status='DONE', photon_flux_upper_limit='6.93e-08', time_completed='2021-09-05 22:26:59.964371', job_id='769953', GAL2='0.97', fit_tolerance='1e-08', EG2='0.90', EG='0.90', time_epoch_completed='1630906019.96', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='1.68e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='92' AND source_name='4FGL J1231.7+2847' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 22:26:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0209>
Subject: Job 769953: <4FGL_J1231.7+2847_daily_bin92> in cluster <slac> Done

Job <4FGL_J1231.7+2847_daily_bin92> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Sep  5 22:10:50 2021
Job was executed on host(s) <bullet0209>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 22:10:57 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 22:10:57 2021
Terminated at Sun Sep  5 22:27:00 2021
Results reported at Sun Sep  5 22:27:00 2021

Your job looked like:

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

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

