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


Performing analysis on: 4FGL_J1230.8+1223_daily_bin865
RA = 187.712, Dec = 12.3883
tmin = 463536001, tmax = 463795201
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='755919', job_status='RUN', time_executed='2021-09-05 21:31:38.612958', time_epoch_executed='1630902698.61' WHERE source_name='4FGL J1230.8+1223' and cadence='daily' and bin_id='865'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/755919

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/755919/ft1_4FGL_J1230.8+1223_daily_bin865.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/755919/ft2_4FGL_J1230.8+1223_daily_bin865.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/755919/ft1_4FGL_J1230.8+1223_daily_bin865.fits outfile=/scratch/kocevski/755919/ft1_filteredMKT_4FGL_J1230.8+1223_daily_bin865.fits ra=187.712 dec=12.3883 rad=12.0 tmin=463536001.0 tmax=463795201.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.52
user 3.29
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/755919/ft2_4FGL_J1230.8+1223_daily_bin865.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/755919/ft2_4FGL_J1230.8+1223_daily_bin865.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/755919/ft1_filteredMKT_4FGL_J1230.8+1223_daily_bin865.fits evtable="EVENTS" outfile="/scratch/kocevski/755919/ft1_filtered_4FGL_J1230.8+1223_daily_bin865.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.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/755919/ft1_filtered_4FGL_J1230.8+1223_daily_bin865.fits" evtable="EVENTS" scfile=/scratch/kocevski/755919/ft2_4FGL_J1230.8+1223_daily_bin865.fits sctable="SC_DATA" outfile=/scratch/kocevski/755919/ltcube_463536001_463795201_4FGL_J1230.8+1223_daily_bin865.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/755919/ft2_4FGL_J1230.8+1223_daily_bin865.fits
.....................!
real 15.79
user 15.38
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/755919/ft1_filtered_4FGL_J1230.8+1223_daily_bin865.fits evtable="EVENTS" scfile=/scratch/kocevski/755919/ft2_4FGL_J1230.8+1223_daily_bin865.fits sctable="SC_DATA" expcube=/scratch/kocevski/755919/ltcube_463536001_463795201_4FGL_J1230.8+1223_daily_bin865.fits outfile=/scratch/kocevski/755919/expmap_463536001_463795201_4FGL_J1230.8+1223_daily_bin865.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/755919/ltcube_463536001_463795201_4FGL_J1230.8+1223_daily_bin865.fits
.....................!
real 192.87
user 187.88
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 173 point sources and 0 extended sources

Setting source of interest to:
4FGL J1230.8+1223 @ 187.712 12.3883

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/755919/ft1_filtered_4FGL_J1230.8+1223_daily_bin865.fits scfile=/scratch/kocevski/755919/ft2_4FGL_J1230.8+1223_daily_bin865.fits outfile=/scratch/kocevski/755919/cmap_463536001_463795201_4FGL_J1230.8+1223_daily_bin865.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.712 yref=12.3883 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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/755919/ft1_filtered_4FGL_J1230.8+1223_daily_bin865.fits scfile=/scratch/kocevski/755919/ft2_4FGL_J1230.8+1223_daily_bin865.fits outfile=/scratch/kocevski/755919/cmap_HighResolution_463536001_463795201_4FGL_J1230.8+1223_daily_bin865.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.712 yref=12.3883 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.57
user 0.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/755919/ft1_filtered_4FGL_J1230.8+1223_daily_bin865.fits evtable="EVENTS" scfile=/scratch/kocevski/755919/ft2_4FGL_J1230.8+1223_daily_bin865.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/755919/Model_4FGL_J1230.8+1223_daily_bin865.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/755919/ft1_filtered_4FGL_J1230.8+1223_daily_bin865.fits....................!
real 59.38
user 57.64
sys 1.37

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/755919/ft1_filtered_4FGL_J1230.8+1223_daily_bin865.fits', '/scratch/kocevski/755919/ft2_4FGL_J1230.8+1223_daily_bin865.fits', expMap='/scratch/kocevski/755919/expmap_463536001_463795201_4FGL_J1230.8+1223_daily_bin865.fits', expCube='/scratch/kocevski/755919/ltcube_463536001_463795201_4FGL_J1230.8+1223_daily_bin865.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/755919/Model_4FGL_J1230.8+1223_daily_bin865.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1230.8+1223'

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  6.672e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
310        Index:  2.057e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
311        Scale:  1.570e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/755919/ft1_filtered_4FGL_J1230.8+1223_daily_bin865.fits
Spacecraft file(s): /scratch/kocevski/755919/ft2_4FGL_J1230.8+1223_daily_bin865.fits
Exposure map: /scratch/kocevski/755919/expmap_463536001_463795201_4FGL_J1230.8+1223_daily_bin865.fits
Exposure cube: /scratch/kocevski/755919/ltcube_463536001_463795201_4FGL_J1230.8+1223_daily_bin865.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/755919/Model_4FGL_J1230.8+1223_daily_bin865.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) = 6263.98994045

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .20551E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .20477E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .21707E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.7436       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10136E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.7383       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .20377       1.0000         .10000E-03   10000.    
    14 'norm      '    .10358E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    44.114       1.0000         .10000E-03   10000.    
    16 'norm      '    1.9858       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10243E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .15206       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11751E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    70.273       1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.1801       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .14007E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    9.0068       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.4149       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .81116       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5580E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6263.933     FROM MIGRAD    STATUS=CONVERGED    655 CALLS     3145 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.2387        .48912E-06** at limit **
   2  Prefactor     .10000E-03    396.84        .10712E-04** at limit **
   3  Prefactor     .10000E-03    5.2006       -.61493E-06** at limit **
   4  Prefactor     .10000E-03    5.6102       -.29627E-08** at limit **
   5  Prefactor     .10000E-03    2.7323       -.92771E-08** at limit **
   6  Prefactor     .10000E-03    22.398       -.12368E-05** at limit **
   7  Prefactor     .10000E-03    14.229       -.65525E-05** at limit **
   8  Prefactor     .10000E-03    2.1844        .35419E-06** at limit **
   9  Prefactor     1.7444        4.0631       -.72910E-06   -.11261E-02
  10  Prefactor     .10000E-03    15.239        .33151E-05** at limit **
  11  norm          2.7410        3.1644        .11581E-06   -.36960E-03
  12  Prefactor     .10000E-03    13.669        .39031E-05** at limit **
  13  norm          .20373        .29175       -.97744E-07   -.26304E-02
  14  norm          .10000E-03    44.776       -.31863E-06** at limit **
  15  Prefactor     44.089        115.88       -.27859E-04    .66023E-04
  16  norm          1.9862        .64366        .22262E-07    .55968E-03
  17  Prefactor     .10000E-03    5.2897        .27459E-07** at limit **
  18  Prefactor     .10000E-03    22.974        .45227E-05** at limit **
  19  norm          .15126        .97521       -.54946E-06   -.75309E-03
  20  Prefactor     .10000E-03    136.25        .98138E-06** at limit **
  21  Prefactor     70.355        48.006        .55102E-05   -.62343E-04
  22  Prefactor     8.1800        8.2037       -.19302E-06   -.42784E-04
  23  Prefactor     .10000E-03    21.564       -.42310E-05** at limit **
  24  Prefactor     8.9998        14.424       -.77649E-07   -.10574E-04
  25  Normalizat    1.4148        .20998        .20357E-06    .74470E-04
  26  Prefactor     .81129        .17283        .45837E-06    .33938E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.74442
  Prefactor  = 0.0001
  norm       = 2.74101
  Prefactor  = 0.0001
  norm       = 0.203727
  norm       = 0.0001
  Prefactor  = 44.0891
  norm       = 1.98616
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.15126
  Prefactor  = 0.0001
  Prefactor  = 70.3545
  Prefactor  = 8.18004
  Prefactor  = 0.0001
  Prefactor  = 8.99977
  Normalizat = 1.41481
  Prefactor  = 0.811292
 **********
 **   18 **HESSE 
 **********

 FCN=   6263.933     FROM HESSE     STATUS=OK           452 CALLS     3597 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.2422        .17690E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    401.03        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.2465        .17625E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.6195        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8.2740        .25199E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    22.397        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    14.113        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.2021        .19287E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.7444        3.6250        .20152E-03   -1.5444    
  10  Prefactor     .10000E-03    15.251        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.7410        3.1422        .13879E-03   -1.5377    
  12  Prefactor     .10000E-03    13.655        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .20373        .28049        .47082E-04   -1.5618    
  14  norm          .10000E-03    44.938        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     44.089        113.64        .60361E-04   -1.4379    
  16  norm          1.9862        .63886        .33161E-04   -1.5426    
  17  Prefactor     .10000E-03    5.3431        .17776E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    22.986        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .15126        1.8699        .14769E-02   -1.5630    
  20  Prefactor     .10000E-03    137.81        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     70.355        47.785        .23943E-03   -1.4028    
  22  Prefactor     8.1800        8.2057        .14018E-03   -1.5136    
  23  Prefactor     .10000E-03    21.904        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     8.9998        14.439        .13355E-03   -1.5108    
  25  Normalizat    1.4148        .24773        .24742E-03   -.80201    
  26  Prefactor     .81129        .20361        .27563E-03   -.99313    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.88629e-09
Minuit parameter uncertainties:
  1  8.00707e-06
  2  0.00183731
  3  7.84932e-06
  4  6.01269e-07
  5  1.46e-05
  6  3.74044e-05
  7  0.00016131
  8  8.71281e-05
  9  3.62545
  10  7.51978e-05
  11  3.14235
  12  7.06741e-05
  13  0.280487
  14  4.15571e-05
  15  114.209
  16  0.638861
  17  5.16113e-06
  18  0.000167967
  19  1.06335
  20  6.65418e-05
  21  47.8112
  22  8.20681
  23  0.000101636
  24  14.4447
  25  0.247944
  26  0.203795
Done.

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

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  1.000e-04  5.161e-06  1.000e-04  1.000e+04 ( 1.000e-13)
310        Index:  2.057e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
311        Scale:  1.570e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
555    Prefactor:  8.113e-01  2.038e-01  0.000e+00  1.000e+01 ( 1.000e+00)
556        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
557        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
554   Normalization:  1.415e+00  2.479e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 187.712 12.388
Photon Flux Upper Limit: 5.05e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.81e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/755919/likelihoodResults_463536001_463795201_4FGL_J1230.8+1223_daily_bin865.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) = 6263.93423076
delta logL = -0.000890290752977

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6263.93334053
delta logL = -5.63786670682e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0496       1.0000          .0000       10.000    
     3 'Normalizat'    1.4149       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81123       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5580E+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=   6263.933     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      237 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10023E-03    67.257        .17817E-02** at limit **
   2  Index         2.0231        5.1123        .50000        .88967E-05
   3  Normalizat    1.4148        .17775E-01    .24742E-03    .75356E-05
   4  Prefactor     .81129        .15568E-01    .27563E-03    .85378E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100227
  Index      = 2.02311
  Normalizat = 1.41481
  Prefactor  = 0.811292
 **********
 **   18 **HESSE 
 **********

 FCN=   6263.933     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      266 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10023E-03    305.06        .35634E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0231        6.6394        .50000       -.63774    
   3  Normalizat    1.4148        .40122E-01    .98968E-05   -.80201    
   4  Prefactor     .81129        .35133E-01    .11025E-04   -.99313    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.95914e-09
Minuit parameter uncertainties:
  1  0.0167341
  2  717.049
  3  0.0401224
  4  0.0351337
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/755919': 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) = 6263.9333404
delta logL = 6.59147190163e-08

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  1.002e-04  1.673e-02  1.000e-04  1.000e+04 ( 1.000e-13)
310        Index:  2.023e+00  7.170e+02  0.000e+00  1.000e+01 (-1.000e+00)
311        Scale:  1.570e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
555    Prefactor:  8.113e-01  3.513e-02  0.000e+00  1.000e+01 ( 1.000e+00)
556        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
557        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
554   Normalization:  1.415e+00  4.012e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 187.712 12.388

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/755919/cmap_HighResolution_463536001_463795201_4FGL_J1230.8+1223_daily_bin865.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.81e-03', job_status='DONE', photon_flux_upper_limit='5.05e-08', time_completed='2021-09-05 21:43:59.073112', job_id='755919', GAL2='0.81', fit_tolerance='1e-08', EG2='1.41', EG='1.41', time_epoch_completed='1630903439.07', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='6.59e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.06' WHERE bin_id='865' AND source_name='4FGL J1230.8+1223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 21:43:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0052>
Subject: Job 755919: <4FGL_J1230.8+1223_daily_bin865> in cluster <slac> Done

Job <4FGL_J1230.8+1223_daily_bin865> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 21:30:32 2021
Job was executed on host(s) <bullet0052>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 21:31:21 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 21:31:21 2021
Terminated at Sun Sep  5 21:43:59 2021
Results reported at Sun Sep  5 21:43:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.8+1223_daily_bin865 187.712 12.3883 463536001 463795201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1230.8+1223 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   736.26 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             343.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   758 sec.
    Turnaround time :                            807 sec.

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

