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


Performing analysis on: 4FGL_J1231.7+2847_daily_bin55
RA = 187.935, Dec = 28.7917
tmin = 253584001, tmax = 253843201
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='769896', job_status='RUN', time_executed='2021-09-05 22:13:10.533810', time_epoch_executed='1630905190.53' WHERE source_name='4FGL J1231.7+2847' and cadence='daily' and bin_id='55'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/769896

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/769896/ft1_4FGL_J1231.7+2847_daily_bin55.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/769896/ft2_4FGL_J1231.7+2847_daily_bin55.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/769896/ft1_4FGL_J1231.7+2847_daily_bin55.fits outfile=/scratch/kocevski/769896/ft1_filteredMKT_4FGL_J1231.7+2847_daily_bin55.fits ra=187.935 dec=28.7917 rad=12.0 tmin=253584001.0 tmax=253843201.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.43
user 1.27
sys 0.14

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/769896/ft2_4FGL_J1231.7+2847_daily_bin55.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/769896/ft1_filteredMKT_4FGL_J1231.7+2847_daily_bin55.fits evtable="EVENTS" outfile="/scratch/kocevski/769896/ft1_filtered_4FGL_J1231.7+2847_daily_bin55.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.50
user 0.31
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/769896/ft1_filtered_4FGL_J1231.7+2847_daily_bin55.fits" evtable="EVENTS" scfile=/scratch/kocevski/769896/ft2_4FGL_J1231.7+2847_daily_bin55.fits sctable="SC_DATA" outfile=/scratch/kocevski/769896/ltcube_253584001_253843201_4FGL_J1231.7+2847_daily_bin55.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/769896/ft2_4FGL_J1231.7+2847_daily_bin55.fits
.....................!
real 14.53
user 14.16
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/769896/ft1_filtered_4FGL_J1231.7+2847_daily_bin55.fits evtable="EVENTS" scfile=/scratch/kocevski/769896/ft2_4FGL_J1231.7+2847_daily_bin55.fits sctable="SC_DATA" expcube=/scratch/kocevski/769896/ltcube_253584001_253843201_4FGL_J1231.7+2847_daily_bin55.fits outfile=/scratch/kocevski/769896/expmap_253584001_253843201_4FGL_J1231.7+2847_daily_bin55.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/769896/ltcube_253584001_253843201_4FGL_J1231.7+2847_daily_bin55.fits
.....................!
real 191.19
user 185.56
sys 5.15

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/769896/ft1_filtered_4FGL_J1231.7+2847_daily_bin55.fits scfile=/scratch/kocevski/769896/ft2_4FGL_J1231.7+2847_daily_bin55.fits outfile=/scratch/kocevski/769896/cmap_253584001_253843201_4FGL_J1231.7+2847_daily_bin55.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.37
sys 0.16

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/769896/ft1_filtered_4FGL_J1231.7+2847_daily_bin55.fits evtable="EVENTS" scfile=/scratch/kocevski/769896/ft2_4FGL_J1231.7+2847_daily_bin55.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/769896/Model_4FGL_J1231.7+2847_daily_bin55.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/769896/ft1_filtered_4FGL_J1231.7+2847_daily_bin55.fits.....................!
real 46.08
user 44.66
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.7757       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    5.4427       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.3080       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10336E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    6.0970       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.3830       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.6267       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .28234       1.0000         .10000E-03   10000.    
    14 'norm      '    5.3613       1.0000         .10000E-03   10000.    
    15 'Prefactor '    22.623       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    14.231       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.3806       1.0000         .10000E-03   10000.    
    20 'norm      '    2.2321       1.0000         .10000E-03   10000.    
    21 'Prefactor '    44.549       1.0000         .10000E-03   10000.    
    22 'norm      '    .66194E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    4.1017       1.0000         .10000E-03   10000.    
    26 'norm      '    .20091E-02   1.0000         .10000E-03   10000.    
    27 'norm      '    10.292       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10419E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10257E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .95319       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .92834       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=   5138.694     FROM MIGRAD    STATUS=CONVERGED    815 CALLS     4761 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.8730        .69124E-07** at limit **
   2  Prefactor     2.7757        1.7850       -.11504E-07   -.45693E-04
   3  Prefactor     .10000E-03    24.844        .91160E-06** at limit **
   4  norm          5.4426        1.6237       -.33594E-07   -.87899E-04
   5  Prefactor     1.3082        2.4976        .27778E-06   -.23755E-04
   6  Prefactor     .10000E-03    9.3446        .19875E-06** at limit **
   7  Prefactor     .10000E-03    1.4151        .45038E-06** at limit **
   8  norm          6.0969        3.1252       -.99017E-08   -.33954E-04
   9  Prefactor     .10000E-03    3.0694        .18586E-06** at limit **
  10  Prefactor     3.3831        2.0826       -.33953E-07   -.20502E-04
  11  Prefactor     1.6264        2.3437       -.97425E-08   -.42213E-04
  12  Prefactor     .10000E-03    3.0332       -.90112E-08** at limit **
  13  norm          .28235        .21156       -.22337E-07   -.81204E-03
  14  norm          5.3614        5.0020        .21381E-05    .30032E-03
  15  Prefactor     22.625        12.665       -.38336E-06   -.17594E-04
  16  Prefactor     .10000E-03    14.283        .16870E-06** at limit **
  17  Prefactor     14.024        156.83       -.10976E-05   -.30661E-04
  18  Prefactor     .10000E-03    2.4146        .17202E-06** at limit **
  19  Prefactor     4.3807        4.2769       -.51312E-07   -.19704E-04
  20  norm          2.2333        5.0256       -.15982E-05   -.17294E-03
  21  Prefactor     44.550        30.993        .73067E-06   -.48644E-04
  22  norm          .10003E-03    1.8559       -.22183E-06** at limit **
  23  Prefactor     .10000E-03    4.7140        .36639E-07** at limit **
  24  norm          .10000E-03    2.1472        .82908E-07** at limit **
  25  norm          4.0948        4.5864       -.12931E-06   -.42829E-03
  26  norm          .10000E-03    7.9149        .53837E-06** at limit **
  27  norm          10.293        17.605        .71324E-07    .37275E-05
  28  Prefactor     .10000E-03    2.0237        .47279E-06** at limit **
  29  Prefactor     .10000E-03    37.212        .11198E-05** at limit **
  30  Normalizat    .95314        .19445        .32135E-05   -.23708E-03
  31  Prefactor     .92848        .21805       -.49356E-05   -.17882E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.77568
  Prefactor  = 0.0001
  norm       = 5.44256
  Prefactor  = 1.30818
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.09693
  Prefactor  = 0.0001
  Prefactor  = 3.38305
  Prefactor  = 1.62639
  Prefactor  = 0.0001
  norm       = 0.282346
  norm       = 5.36141
  Prefactor  = 22.6245
  Prefactor  = 0.0001
  Prefactor  = 14.0238
  Prefactor  = 0.0001
  Prefactor  = 4.38068
  norm       = 2.23329
  Prefactor  = 44.5502
  norm       = 0.000100033
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.09482
  norm       = 0.0001
  norm       = 10.2933
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.953138
  Prefactor  = 0.928475
 **********
 **   18 **HESSE 
 **********

 FCN=   5138.694     FROM HESSE     STATUS=OK           632 CALLS     5393 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.8748        .13778E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.7757        1.7846        .74205E-04   -1.5375    
   3  Prefactor     .10000E-03    24.976        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          5.4426        1.6241        .47710E-04   -1.5241    
   5  Prefactor     1.3082        2.4452        .15154E-03   -1.5479    
   6  Prefactor     .10000E-03    9.3494        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.1503        .16440E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          6.0969        3.1205        .85810E-04   -1.5214    
   9  Prefactor     .10000E-03    3.0827        .12266E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.3831        2.0838        .77655E-04   -1.5340    
  11  Prefactor     1.6264        2.3104        .12179E-03   -1.5453    
  12  Prefactor     .10000E-03    3.0429        .12186E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .28235        .20539        .27135E-03   -1.5602    
  14  norm          5.3614        5.1029        .75052E-03   -1.5245    
  15  Prefactor     22.625        12.643        .84213E-04   -1.4756    
  16  Prefactor     .10000E-03    14.313        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     14.024        158.18        .10617E-03   -1.4959    
  18  Prefactor     .10000E-03    2.4277        .10879E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.3807        4.2804        .14254E-03   -1.5289    
  20  norm          2.2333        4.9552        .20866E-03   -1.5409    
  21  Prefactor     44.550        30.809        .60067E-04   -1.4372    
  22  norm          .10003E-03    25.180        .18776E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    4.7172        .15200E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    2.1686        .10257E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          4.0948        3.9525        .13084E-03   -1.5303    
  26  norm          .10000E-03    33.140        .33478E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          10.293        17.582        .12490E-03   -1.5066    
  28  Prefactor     .10000E-03    3.6679        .19527E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    38.113        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .95314        .21232        .23938E-03   -.94617    
  31  Prefactor     .92848        .23641        .28206E-03   -.95153    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.77055e-09
Minuit parameter uncertainties:
  1  1.33471e-07
  2  1.78464
  3  1.56495e-05
  4  1.62413
  5  2.44542
  6  2.03832e-06
  7  3.56643e-05
  8  3.1206
  9  4.21829e-06
  10  2.08387
  11  2.31049
  12  1.68564e-05
  13  0.205393
  14  5.10331
  15  12.6444
  16  1.7796e-05
  17  94.5156
  18  3.02038e-06
  19  4.28075
  20  4.95606
  21  30.8204
  22  0.00181453
  23  6.84414e-07
  24  1.73456e-06
  25  3.95277
  26  0.000252553
  27  17.591
  28  6.89664e-05
  29  1.77469e-05
  30  0.212506
  31  0.236675
Done.

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

Extracting fit parameters...

4FGL J1231.7+2847
   Spectrum: PowerLaw
334    Prefactor:  2.262e+01  1.264e+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:  9.285e-01  2.367e-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:  9.531e-01  2.125e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.87
Ra Dec: 187.935 28.792
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 5.75e-08 +/- 3.21e-08
Energy Flux (Fixed Index): 3.99e-05 +/- 2.23e-05

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) = 5137.81673198
delta logL = 0.877142854929

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5137.8098576
delta logL = 0.884017234667

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.739       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6262       1.0000          .0000       10.000    
     3 'Normalizat'    .89872       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96419       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=   5137.810     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      254 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.739        93.916        .29230E-02    .78267E-03
   2  Index         2.6261        2.5742        .85247E-01    .14334E-03
   3  Normalizat    .89878        .10122        .44885E-01    .13609E-04
   4  Prefactor     .96414        .93512E-01    .45818E-01   -.27790E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.7391
  Index      = 2.62608
  Normalizat = 0.898778
  Prefactor  = 0.964142
 **********
 **   18 **HESSE 
 **********

 FCN=   5137.810     FROM HESSE     STATUS=OK            33 CALLS      287 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.739        12.142        .10727E-03   -1.5023    
   2  Index         2.6261        .56023        .34244E-02   -.49472    
   3  Normalizat    .89878        .20825        .24527E-03   -.96503    
   4  Prefactor     .96414        .23877        .27720E-03   -.93934    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.03303e-10
Minuit parameter uncertainties:
  1  12.1446
  2  0.561755
  3  0.208441
  4  0.239028
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/769896': 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) = 5137.80985752
delta logL = 0.884017313067

Extracting fit parameters...

4FGL J1231.7+2847
   Spectrum: PowerLaw
334    Prefactor:  1.174e+01  1.214e+01  1.000e-04  1.000e+04 ( 1.000e-13)
335        Index:  2.626e+00  5.618e-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.641e-01  2.390e-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.988e-01  2.084e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.69
Ra Dec: 187.935 28.792
Photon Index (Free Index): 2.63 +/- 0.56
Photon Flux (Free Index): 1.05e-07 +/- 5.65e-08
Energy Flux (Free Index): 2.68e-05 +/- 1.36e-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/769896/cmap_HighResolution_253584001_253843201_4FGL_J1231.7+2847_daily_bin55.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.75e-08', energy_flux2='2.68e-05', photon_flux_error='3.21e-08', dlogl='8.84e-01', energy_flux='3.99e-05', photon_flux2='1.05e-07', job_status='DONE', time_completed='2021-09-05 22:26:03.164851', photon_index_error2='0.56', photon_index2='2.63', ts='7.87', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', energy_flux_error2='1.36e-05', EG='0.95', time_epoch_completed='1630905963.16', return_code='0', job_id='769896', GAL2='0.96', EG2='0.90', return_code2='0', energy_flux_error='2.23e-05', photon_flux_error2='5.65e-08', ts2='9.69', photon_index='2.00' WHERE bin_id='55' AND source_name='4FGL J1231.7+2847' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 22:26:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0131>
Subject: Job 769896: <4FGL_J1231.7+2847_daily_bin55> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1231.7+2847_daily_bin55 187.935 28.7917 253584001 253843201 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 :                                   771.18 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             279.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   913 sec.
    Turnaround time :                            918 sec.

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

