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


Performing analysis on: 4FGL_J1230.2+2517_daily_bin984
RA = 187.56, Dec = 25.2983
tmin = 494380801, tmax = 494640001
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='741889', job_status='RUN', time_executed='2021-09-05 20:51:03.008576', time_epoch_executed='1630900263.01' WHERE source_name='4FGL J1230.2+2517' and cadence='daily' and bin_id='984'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/741889

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/741889/ft1_4FGL_J1230.2+2517_daily_bin984.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/741889/ft2_4FGL_J1230.2+2517_daily_bin984.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/741889/ft1_4FGL_J1230.2+2517_daily_bin984.fits outfile=/scratch/kocevski/741889/ft1_filteredMKT_4FGL_J1230.2+2517_daily_bin984.fits ra=187.56 dec=25.2983 rad=12.0 tmin=494380801.0 tmax=494640001.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.69
user 3.45
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/741889/ft2_4FGL_J1230.2+2517_daily_bin984.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/741889/ft2_4FGL_J1230.2+2517_daily_bin984.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/741889/ft1_filteredMKT_4FGL_J1230.2+2517_daily_bin984.fits evtable="EVENTS" outfile="/scratch/kocevski/741889/ft1_filtered_4FGL_J1230.2+2517_daily_bin984.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.56
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/741889/ft1_filtered_4FGL_J1230.2+2517_daily_bin984.fits" evtable="EVENTS" scfile=/scratch/kocevski/741889/ft2_4FGL_J1230.2+2517_daily_bin984.fits sctable="SC_DATA" outfile=/scratch/kocevski/741889/ltcube_494380801_494640001_4FGL_J1230.2+2517_daily_bin984.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/741889/ft2_4FGL_J1230.2+2517_daily_bin984.fits
.....................!
real 14.22
user 13.82
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/741889/ft1_filtered_4FGL_J1230.2+2517_daily_bin984.fits evtable="EVENTS" scfile=/scratch/kocevski/741889/ft2_4FGL_J1230.2+2517_daily_bin984.fits sctable="SC_DATA" expcube=/scratch/kocevski/741889/ltcube_494380801_494640001_4FGL_J1230.2+2517_daily_bin984.fits outfile=/scratch/kocevski/741889/expmap_494380801_494640001_4FGL_J1230.2+2517_daily_bin984.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/741889/ltcube_494380801_494640001_4FGL_J1230.2+2517_daily_bin984.fits
.....................!
real 191.30
user 185.67
sys 4.97

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 186 point sources and 0 extended sources

Setting source of interest to:
4FGL J1230.2+2517 @ 187.56 25.2983

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

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

This is gtbin version HEAD
real 0.55
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/741889/ft1_filtered_4FGL_J1230.2+2517_daily_bin984.fits scfile=/scratch/kocevski/741889/ft2_4FGL_J1230.2+2517_daily_bin984.fits outfile=/scratch/kocevski/741889/cmap_HighResolution_494380801_494640001_4FGL_J1230.2+2517_daily_bin984.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.56 yref=25.2983 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.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/741889/ft1_filtered_4FGL_J1230.2+2517_daily_bin984.fits evtable="EVENTS" scfile=/scratch/kocevski/741889/ft2_4FGL_J1230.2+2517_daily_bin984.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/741889/Model_4FGL_J1230.2+2517_daily_bin984.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/741889/ft1_filtered_4FGL_J1230.2+2517_daily_bin984.fits.....................!
real 56.93
user 55.51
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/741889/ft1_filtered_4FGL_J1230.2+2517_daily_bin984.fits', '/scratch/kocevski/741889/ft2_4FGL_J1230.2+2517_daily_bin984.fits', expMap='/scratch/kocevski/741889/expmap_494380801_494640001_4FGL_J1230.2+2517_daily_bin984.fits', expCube='/scratch/kocevski/741889/ltcube_494380801_494640001_4FGL_J1230.2+2517_daily_bin984.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/741889/Model_4FGL_J1230.2+2517_daily_bin984.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1230.2+2517'

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  6.557e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
326        alpha:  2.001e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
327         beta:  5.434e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
328           Eb:  8.113e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/741889/ft1_filtered_4FGL_J1230.2+2517_daily_bin984.fits
Spacecraft file(s): /scratch/kocevski/741889/ft2_4FGL_J1230.2+2517_daily_bin984.fits
Exposure map: /scratch/kocevski/741889/expmap_494380801_494640001_4FGL_J1230.2+2517_daily_bin984.fits
Exposure cube: /scratch/kocevski/741889/ltcube_494380801_494640001_4FGL_J1230.2+2517_daily_bin984.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/741889/Model_4FGL_J1230.2+2517_daily_bin984.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) = 6243.79900477

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.213       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12540E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .23934       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.7384       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10142E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    68.385       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .23745E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    8.4476       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.5340       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .97454       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.276       1.0000         .10000E-03   10000.    
    15 'norm      '    .49962       1.0000         .10000E-03   10000.    
    16 'norm      '    1.9644       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10121E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .12962E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    14.375       1.0000         .10000E-03   10000.    
    21 'norm      '    2.7349       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    5.8059       1.0000         .10000E-03   10000.    
    25 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    34.653       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.0976       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.1987       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5900E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6243.796     FROM MIGRAD    STATUS=CONVERGED    715 CALLS     4038 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.213        21.307        .29529E-06   -.43224E-04
   2  Prefactor     .11058E-03    10.328       -.50931E-05** at limit **
   3  Prefactor     .23894        1.4504        .57726E-06    .19289E-03
   4  Prefactor     .10000E-03    32.788        .72368E-06** at limit **
   5  norm          2.7383        1.3319        .39160E-07   -.40933E-03
   6  Prefactor     .10000E-03    3.6398        .12705E-06** at limit **
   7  Prefactor     68.428        39.490        .17333E-07   -.20383E-03
   8  Prefactor     .10000E-03    2.1470        .94278E-07** at limit **
   9  Prefactor     .10000E-03    1.5345        .52683E-06** at limit **
  10  norm          8.4516        4.5923       -.52775E-06   -.83407E-03
  11  Prefactor     4.5349        6.5585        .20913E-06   -.63096E-04
  12  Prefactor     .97237        3.2103        .13106E-05    .48784E-03
  13  Prefactor     .10000E-03    .99509        .55245E-07** at limit **
  14  Prefactor     14.274        9.3403       -.25495E-05   -.82863E-04
  15  norm          .49959        .31308        .24221E-07    .20012E-04
  16  norm          1.9673        6.7586        .11608E-04    .24927E-05
  17  Prefactor     .10000E-03    4.7715        .20239E-07** at limit **
  18  Prefactor     .10000E-03    14.327        .75533E-07** at limit **
  19  Prefactor     .10000E-03    34.401       -.10049E-05** at limit **
  20  Prefactor     14.376        9.0394        .21240E-06   -.44522E-04
  21  norm          2.7348        4.1294        .43003E-06    .16121E-03
  22  Prefactor     .10000E-03    21.274        .37706E-06** at limit **
  23  norm          .10000E-03    .89310       -.15539E-06** at limit **
  24  norm          5.8078        4.9872       -.34765E-07   -.15622E-03
  25  norm          .10000E-03    4.5638        .99938E-06** at limit **
  26  norm          34.676        22.787        .18763E-05   -.88264E-04
  27  Normalizat    1.0976        .20149       -.20460E-05   -.22557E-03
  28  Prefactor     1.1985        .20933       -.61021E-06   -.23348E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.2132
  Prefactor  = 0.000110576
  Prefactor  = 0.238943
  Prefactor  = 0.000100001
  norm       = 2.73833
  Prefactor  = 0.0001
  Prefactor  = 68.4276
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.45155
  Prefactor  = 4.53494
  Prefactor  = 0.972374
  Prefactor  = 0.0001
  Prefactor  = 14.2739
  norm       = 0.49959
  norm       = 1.96726
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.3757
  norm       = 2.73476
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 5.80776
  norm       = 0.000100001
  norm       = 34.6762
  Normalizat = 1.09762
  Prefactor  = 1.19852
 **********
 **   18 **HESSE 
 **********

 FCN=   6243.796     FROM HESSE     STATUS=OK           529 CALLS     4567 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.213        21.237        .10624E-03   -1.4954    
   2  Prefactor     .11058E-03    18.779        .76823E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .23894        1.3825        .18120E-03   -1.5610    
   4  Prefactor     .10000E-03    33.108        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.7383        1.3284        .60897E-04   -1.5377    
   6  Prefactor     .10000E-03    3.7206        .29393E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     68.428        39.543        .48538E-04   -1.4052    
   8  Prefactor     .10000E-03    2.2074        .22547E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.4296        .18724E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          8.4516        4.3683        .95488E-04   -1.5126    
  11  Prefactor     4.5349        6.5475        .18906E-03   -1.5282    
  12  Prefactor     .97237        3.0294        .19709E-03   -1.5511    
  13  Prefactor     .10000E-03    1.0153        .76873E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     14.274        9.3619        .10601E-03   -1.4952    
  15  norm          .49959        .30488        .32405E-04   -1.5567    
  16  norm          1.9673        6.7933        .14796E-02   -1.5427    
  17  Prefactor     .10000E-03    4.7869        .16855E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    14.339        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    34.399        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     14.376        9.0414        .52821E-03   -1.4949    
  21  norm          2.7348        4.1120        .18845E-03   -1.5377    
  22  Prefactor     .10000E-03    21.315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    .89458        .72945E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          5.8078        4.9767        .15439E-03   -1.5226    
  25  norm          .10000E-03    4.6032        .16479E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          34.676        22.771        .34038E-03   -1.4530    
  27  Normalizat    1.0976        .24026        .27261E-03   -.89828    
  28  Prefactor     1.1985        .24984        .28703E-03   -.86377    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.81556e-09
Minuit parameter uncertainties:
  1  21.2487
  2  0.0281947
  3  1.14929
  4  0.000279967
  5  1.3284
  6  2.81222e-05
  7  39.5583
  8  1.19038e-05
  9  4.22513e-05
  10  4.36849
  11  6.54853
  12  3.02988
  13  2.70002e-06
  14  9.36282
  15  0.304886
  16  6.79594
  17  4.50857e-06
  18  1.09485e-05
  19  9.21224e-05
  20  9.04228
  21  4.11238
  22  0.000176153
  23  1.00151e-05
  24  4.97708
  25  0.000144144
  26  22.7771
  27  0.240503
  28  0.250084
Done.

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

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  1.967e+00  6.796e+00  1.000e-04  1.000e+04 ( 1.000e-12)
326        alpha:  2.001e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
327         beta:  5.434e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
328           Eb:  8.113e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
587    Prefactor:  1.199e+00  2.501e-01  0.000e+00  1.000e+01 ( 1.000e+00)
588        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
589        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
586   Normalization:  1.098e+00  2.405e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.11
Ra Dec: 187.560 25.298
Photon Flux Upper Limit: 9.28e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.51e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/741889/likelihoodResults_494380801_494640001_4FGL_J1230.2+2517_daily_bin984.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) = 6243.08006622
delta logL = 0.715899014381

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6243.07939028
delta logL = 0.716574956057

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.0006       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.2151       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0414       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2308       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5900E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6243.079     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      244 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.0026        35.635        .73201E-02    .83022E-03
   2  alpha         3.2143        4.0966        .37649        .66161E-04
   3  Normalizat    1.0413        .54077E-01    .62986E-01    .34932E-05
   4  Prefactor     1.2307        .59499E-01    .64100E-01   -.19948E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.00263
  alpha      = 3.2143
  Normalizat = 1.0413
  Prefactor  = 1.23071
 **********
 **   18 **HESSE 
 **********

 FCN=   6243.079     FROM HESSE     STATUS=OK            33 CALLS      277 TOTAL
                     EDM=   .41E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.0026        4.9108        .95485E-04   -1.5425    
   2  alpha         3.2143        1.3674        .13830E-01    .28976    
   3  Normalizat    1.0413        .23041        .27859E-03   -.91659    
   4  Prefactor     1.2307        .24947        .28352E-03   -.85392    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.09821e-11
Minuit parameter uncertainties:
  1  4.91179
  2  1.45519
  3  0.230627
  4  0.249709
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/741889': 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) = 6243.0793896
delta logL = 0.716575636196

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  2.003e+00  4.912e+00  1.000e-04  1.000e+04 ( 1.000e-12)
326        alpha:  3.214e+00  1.455e+00  0.000e+00  5.000e+00 ( 1.000e+00)
327         beta:  5.434e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
328           Eb:  8.113e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
587    Prefactor:  1.231e+00  2.497e-01  0.000e+00  1.000e+01 ( 1.000e+00)
588        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
589        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
586   Normalization:  1.041e+00  2.306e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.59
Ra Dec: 187.560 25.298
Photon Index (Free Index): 3.21 +/- 1.46
Photon Flux (Free Index): 6.48e-08 +/- 5.89e-08
Energy Flux (Free Index): 1.22e-05 +/- 1.26e-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/741889/cmap_HighResolution_494380801_494640001_4FGL_J1230.2+2517_daily_bin984.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.51e-05', comment='SUCCESS', energy_flux2='1.22e-05', dlogl='7.17e-01', photon_flux2='6.48e-08', job_status='DONE', time_completed='2021-09-05 21:05:12.732639', photon_index_error2='1.46', photon_index2='3.21', ts='0.11', fit_tolerance='1e-08', GAL='1.20', photon_index_error='0.00', photon_flux_upper_limit='9.28e-08', energy_flux_error2='1.26e-05', EG='1.10', time_epoch_completed='1630901112.73', return_code='0', job_id='741889', GAL2='1.23', EG2='1.04', return_code2='0', photon_flux_error2='5.89e-08', ts2='1.59', photon_index='2.00' WHERE bin_id='984' AND source_name='4FGL J1230.2+2517' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 21:05:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0272>
Subject: Job 741889: <4FGL_J1230.2+2517_daily_bin984> in cluster <slac> Done

Job <4FGL_J1230.2+2517_daily_bin984> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 20:50:35 2021
Job was executed on host(s) <bullet0272>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 20:50:45 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 20:50:45 2021
Terminated at Sun Sep  5 21:05:13 2021
Results reported at Sun Sep  5 21:05:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.2+2517_daily_bin984 187.56 25.2983 494380801 494640001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1230.2+2517 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   837.29 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             330.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   868 sec.
    Turnaround time :                            878 sec.

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

