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


Performing analysis on: 4FGL_J1231.7+2847_daily_bin132
RA = 187.935, Dec = 28.7917
tmin = 273542401, tmax = 273801601
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='770015', job_status='RUN', time_executed='2021-09-05 22:11:11.170009', time_epoch_executed='1630905071.17' WHERE source_name='4FGL J1231.7+2847' and cadence='daily' and bin_id='132'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/770015

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/770015/ft1_4FGL_J1231.7+2847_daily_bin132.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/770015/ft2_4FGL_J1231.7+2847_daily_bin132.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/770015/ft1_4FGL_J1231.7+2847_daily_bin132.fits outfile=/scratch/kocevski/770015/ft1_filteredMKT_4FGL_J1231.7+2847_daily_bin132.fits ra=187.935 dec=28.7917 rad=12.0 tmin=273542401.0 tmax=273801601.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.57
user 3.34
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/770015/ft1_filtered_4FGL_J1231.7+2847_daily_bin132.fits" evtable="EVENTS" scfile=/scratch/kocevski/770015/ft2_4FGL_J1231.7+2847_daily_bin132.fits sctable="SC_DATA" outfile=/scratch/kocevski/770015/ltcube_273542401_273801601_4FGL_J1231.7+2847_daily_bin132.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/770015/ft2_4FGL_J1231.7+2847_daily_bin132.fits
.....................!
real 16.26
user 15.82
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/770015/ft1_filtered_4FGL_J1231.7+2847_daily_bin132.fits evtable="EVENTS" scfile=/scratch/kocevski/770015/ft2_4FGL_J1231.7+2847_daily_bin132.fits sctable="SC_DATA" expcube=/scratch/kocevski/770015/ltcube_273542401_273801601_4FGL_J1231.7+2847_daily_bin132.fits outfile=/scratch/kocevski/770015/expmap_273542401_273801601_4FGL_J1231.7+2847_daily_bin132.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/770015/ltcube_273542401_273801601_4FGL_J1231.7+2847_daily_bin132.fits
.....................!
real 194.39
user 188.59
sys 5.05

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/770015/ft1_filtered_4FGL_J1231.7+2847_daily_bin132.fits scfile=/scratch/kocevski/770015/ft2_4FGL_J1231.7+2847_daily_bin132.fits outfile=/scratch/kocevski/770015/cmap_273542401_273801601_4FGL_J1231.7+2847_daily_bin132.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=187.935 yref=28.7917 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.56
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/770015/ft1_filtered_4FGL_J1231.7+2847_daily_bin132.fits scfile=/scratch/kocevski/770015/ft2_4FGL_J1231.7+2847_daily_bin132.fits outfile=/scratch/kocevski/770015/cmap_HighResolution_273542401_273801601_4FGL_J1231.7+2847_daily_bin132.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.61
user 0.41
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/770015/ft1_filtered_4FGL_J1231.7+2847_daily_bin132.fits evtable="EVENTS" scfile=/scratch/kocevski/770015/ft2_4FGL_J1231.7+2847_daily_bin132.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/770015/Model_4FGL_J1231.7+2847_daily_bin132.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/770015/ft1_filtered_4FGL_J1231.7+2847_daily_bin132.fits.....................!
real 58.64
user 56.38
sys 1.29

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.9047       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.9534       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.1787       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.0110       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.5925       1.0000         .10000E-03   10000.    
    13 'norm      '    .74785       1.0000         .10000E-03   10000.    
    14 'norm      '    3.1961       1.0000         .10000E-03   10000.    
    15 'Prefactor '    21.425       1.0000         .10000E-03   10000.    
    16 'Prefactor '    37.258       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.3703       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    17.827       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10339E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    3.5125       1.0000         .10000E-03   10000.    
    27 'norm      '    9.9526       1.0000         .10000E-03   10000.    
    28 'Prefactor '    1.9732       1.0000         .10000E-03   10000.    
    29 'Prefactor '    2.6824       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.4369       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .74738       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=   6367.844     FROM MIGRAD    STATUS=CONVERGED    808 CALLS     3549 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    42.838        .17628E-05** at limit **
   2  Prefactor     2.9051        1.8011       -.41984E-07   -.34675E-03
   3  Prefactor     .10000E-03    20.074        .19350E-05** at limit **
   4  norm          .10000E-03    .49054       -.78796E-08** at limit **
   5  Prefactor     .10000E-03    3.2502        .42243E-07** at limit **
   6  Prefactor     .10000E-03    11.972       -.36203E-06** at limit **
   7  Prefactor     .10000E-03    2.3914        .23885E-07** at limit **
   8  norm          3.9534        2.9041        .20637E-06   -.37606E-04
   9  Prefactor     .10000E-03    5.9718        .93703E-07** at limit **
  10  Prefactor     2.1787        2.0431       -.53865E-07   -.13953E-04
  11  Prefactor     4.0111        2.5007        .36342E-09   -.39704E-04
  12  Prefactor     3.5925        3.4847       -.48191E-07    .11445E-04
  13  norm          .74786        .30391        .24749E-07   -.90063E-05
  14  norm          3.1961        2.8915       -.15605E-06    .33213E-04
  15  Prefactor     21.426        14.931        .12967E-06    .47748E-05
  16  Prefactor     37.259        20.961        .22038E-07    .33006E-05
  17  Prefactor     .10000E-03    27.605       -.32934E-05** at limit **
  18  Prefactor     .10000E-03    2.1509        .15208E-07** at limit **
  19  Prefactor     4.3701        5.0788        .12629E-06    .19750E-04
  20  norm          .10000E-03    1.6741        .16652E-07** at limit **
  21  Prefactor     17.828        16.579       -.21811E-06    .62334E-04
  22  norm          .10000E-03    1.5243        .18042E-07** at limit **
  23  Prefactor     .10000E-03    5.7366       -.10120E-06** at limit **
  24  norm          .10000E-03    4.9764       -.18781E-06** at limit **
  25  norm          .10000E-03    2.5541       -.14832E-05** at limit **
  26  norm          3.5142        5.2700       -.26243E-06    .23596E-03
  27  norm          9.9526        22.234        .27009E-06   -.81402E-07
  28  Prefactor     1.9738        4.7087       -.12639E-05    .29313E-03
  29  Prefactor     2.6881        51.416        .15083E-04    .24407E-04
  30  Normalizat    1.4368        .18617       -.80292E-06   -.72562E-05
  31  Prefactor     .74747        .20325        .11220E-08   -.52323E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.90511
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.95339
  Prefactor  = 0.0001
  Prefactor  = 2.17871
  Prefactor  = 4.0111
  Prefactor  = 3.59246
  norm       = 0.747856
  norm       = 3.19606
  Prefactor  = 21.4259
  Prefactor  = 37.2587
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.37012
  norm       = 0.0001
  Prefactor  = 17.8282
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 3.51418
  norm       = 9.95263
  Prefactor  = 1.97382
  Prefactor  = 2.6881
  Normalizat = 1.43684
  Prefactor  = 0.747467
 **********
 **   18 **HESSE 
 **********

 FCN=   6367.844     FROM HESSE     STATUS=OK           622 CALLS     4171 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    43.395        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.9051        1.8028        .81751E-04   -1.5367    
   3  Prefactor     .10000E-03    20.109        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .81149        .10780E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.3276        .14044E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    11.983        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.4268        .12046E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.9534        2.8957        .10904E-03   -1.5310    
   9  Prefactor     .10000E-03    6.0675        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.1787        2.0427        .10386E-03   -1.5413    
  11  Prefactor     4.0111        2.4935        .92801E-04   -1.5307    
  12  Prefactor     3.5925        3.4903        .14258E-03   -1.5329    
  13  norm          .74786        .30075        .26556E-04   -1.5535    
  14  norm          3.1961        2.8907        .12523E-03   -1.5350    
  15  Prefactor     21.426        14.912        .86533E-04   -1.4782    
  16  Prefactor     37.259        20.959        .65660E-04   -1.4486    
  17  Prefactor     .10000E-03    27.471        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.1563        .11429E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.3701        5.0687        .18659E-03   -1.5290    
  20  norm          .10000E-03    1.6867        .10079E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     17.828        16.483        .94861E-04   -1.4863    
  22  norm          .10000E-03    1.5722        .19234E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    5.7457        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    5.1787        .34744E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    6.6120        .21596E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          3.5142        4.9032        .19834E-03   -1.5333    
  27  norm          9.9526        22.220        .12702E-03   -1.5077    
  28  Prefactor     1.9738        4.6251        .19496E-03   -1.5427    
  29  Prefactor     2.6881        53.801        .12440E-02   -1.5380    
  30  Normalizat    1.4368        .21597        .22906E-03   -.79569    
  31  Prefactor     .74747        .23616        .34254E-03   -1.0169    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.84877e-10
Minuit parameter uncertainties:
  1  0.000123027
  2  1.80278
  3  5.92877e-05
  4  2.72217e-06
  5  4.49047e-06
  6  6.75817e-06
  7  3.05306e-06
  8  2.89581
  9  2.51042e-06
  10  2.04277
  11  2.49358
  12  3.49047
  13  0.300749
  14  2.8908
  15  14.9149
  16  20.963
  17  0.00010238
  18  1.84711e-06
  19  5.06917
  20  1.88778e-06
  21  16.4876
  22  1.79802e-06
  23  2.04307e-06
  24  1.57456e-05
  25  8.46321e-05
  26  4.90376
  27  22.2383
  28  4.62593
  29  24.0761
  30  0.21611
  31  0.236483
Done.

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

Extracting fit parameters...

4FGL J1231.7+2847
   Spectrum: PowerLaw
334    Prefactor:  2.143e+01  1.491e+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.475e-01  2.365e-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:  1.437e+00  2.161e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.90
Ra Dec: 187.935 28.792
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 5.44e-08 +/- 3.79e-08
Energy Flux (Fixed Index): 3.78e-05 +/- 2.63e-05

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

Saving results to:
/scratch/kocevski/770015/likelihoodResults_273542401_273801601_4FGL_J1231.7+2847_daily_bin132.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) = 6365.70369916
delta logL = 2.13993973024

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6365.67883857
delta logL = 2.16480031404

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.7137       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0608       1.0000          .0000       10.000    
     3 'Normalizat'    1.3221       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82553       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6365.679     FROM MIGRAD    STATUS=FAILED       102 CALLS      305 TOTAL
                     EDM=   .44E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.7016        16.641        .41120E-03   -.21764E-03
   2  Index         3.0616        1.1854        .29793E-02    .75695E-03
   3  Normalizat    1.3220        .22892        .23630E-03    .81307E-05
   4  Prefactor     .82562        .24925        .32700E-03    .12516E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6365.679     FROM SIMPLEX   STATUS=UNCHANGED     81 CALLS      386 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.7016        16.641        .11579E-03   -1.5190    
   2  Index         3.0616        1.1854        .47142E-03   -.39812    
   3  Normalizat    1.3220        .22892        .26612E-03   -.82913    
   4  Prefactor     .82562        .24925        .32875E-03   -.98791    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6365.679     FROM MIGRAD    STATUS=CONVERGED     35 CALLS      421 TOTAL
                     EDM=   .23E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.7016        8.5452        .16448E-04   -.82251E-04
   2  Index         3.0616        .61294        .59587E-03   -.10360E-04
   3  Normalizat    1.3220        .22015        .94522E-05    .16839E-05
   4  Prefactor     .82562        .24103        .13080E-04    .29552E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.70161
  Index      = 3.06156
  Normalizat = 1.32198
  Prefactor  = 0.82562
 **********
 **   18 **HESSE 
 **********

 FCN=   6365.679     FROM HESSE     STATUS=OK            23 CALLS      444 TOTAL
                     EDM=   .17E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.7016        8.0628        .65792E-06   -1.5190    
   2  Index         3.0616        .57831        .23835E-04   -.39812    
   3  Normalizat    1.3220        .21936        .18904E-05   -.82913    
   4  Prefactor     .82562        .24023        .26160E-05   -.98791    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.6971e-12
Minuit parameter uncertainties:
  1  8.06412
  2  0.579838
  3  0.219518
  4  0.240535
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/770015': 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) = 6365.67883733
delta logL = 2.1648015518

Extracting fit parameters...

4FGL J1231.7+2847
   Spectrum: PowerLaw
334    Prefactor:  6.702e+00  8.064e+00  1.000e-04  1.000e+04 ( 1.000e-13)
335        Index:  3.062e+00  5.798e-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:  8.256e-01  2.405e-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:  1.322e+00  2.195e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.46
Ra Dec: 187.935 28.792
Photon Index (Free Index): 3.06 +/- 0.58
Photon Flux (Free Index): 1.57e-07 +/- 7.42e-08
Energy Flux (Free Index): 3.05e-05 +/- 1.32e-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/770015/cmap_HighResolution_273542401_273801601_4FGL_J1231.7+2847_daily_bin132.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.87e-03', comment='SUCCESS', photon_flux='5.44e-08', energy_flux2='3.05e-05', photon_flux_error='3.79e-08', dlogl='2.16e+00', energy_flux='3.78e-05', photon_flux2='1.57e-07', job_status='DONE', time_completed='2021-09-05 22:26:37.330964', photon_index_error2='0.58', photon_index2='3.06', ts='3.90', fit_tolerance='1e-08', GAL='0.75', photon_index_error='0.00', photon_flux_upper_limit='1.32e-07', energy_flux_error2='1.32e-05', EG='1.44', time_epoch_completed='1630905997.33', return_code='0', job_id='770015', GAL2='0.83', EG2='1.32', return_code2='0', energy_flux_error='2.63e-05', photon_flux_error2='7.42e-08', ts2='8.46', photon_index='2.00' WHERE bin_id='132' AND source_name='4FGL J1231.7+2847' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 22:26:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0069>
Subject: Job 770015: <4FGL_J1231.7+2847_daily_bin132> in cluster <slac> Done

Job <4FGL_J1231.7+2847_daily_bin132> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Sep  5 22:10:56 2021
Job was executed on host(s) <bullet0069>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 22:11:02 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:11:02 2021
Terminated at Sun Sep  5 22:26:38 2021
Results reported at Sun Sep  5 22:26:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1231.7+2847_daily_bin132 187.935 28.7917 273542401 273801601 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 :                                   921.40 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             331.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   935 sec.
    Turnaround time :                            942 sec.

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

