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


Performing analysis on: 4FGL_J1230.2+2517_daily_bin635
RA = 187.56, Dec = 25.2983
tmin = 403920001, tmax = 404179201
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='739062', job_status='RUN', time_executed='2021-09-05 20:47:16.263601', time_epoch_executed='1630900036.26' WHERE source_name='4FGL J1230.2+2517' and cadence='daily' and bin_id='635'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/739062

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

Retrieving the FT1 file...

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

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

Retrieving 39 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/739062/ft1_4FGL_J1230.2+2517_daily_bin635.fits


Retrieving the FT1 file...

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

Retrieving 39 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/739062/ft2_4FGL_J1230.2+2517_daily_bin635.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/739062/ft1_4FGL_J1230.2+2517_daily_bin635.fits outfile=/scratch/kocevski/739062/ft1_filteredMKT_4FGL_J1230.2+2517_daily_bin635.fits ra=187.56 dec=25.2983 rad=12.0 tmin=403920001.0 tmax=404179201.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 10.16
user 9.77
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/739062/ft2_4FGL_J1230.2+2517_daily_bin635.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/739062/ft1_filteredMKT_4FGL_J1230.2+2517_daily_bin635.fits evtable="EVENTS" outfile="/scratch/kocevski/739062/ft1_filtered_4FGL_J1230.2+2517_daily_bin635.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.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/739062/ft1_filtered_4FGL_J1230.2+2517_daily_bin635.fits" evtable="EVENTS" scfile=/scratch/kocevski/739062/ft2_4FGL_J1230.2+2517_daily_bin635.fits sctable="SC_DATA" outfile=/scratch/kocevski/739062/ltcube_403920001_404179201_4FGL_J1230.2+2517_daily_bin635.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/739062/ft2_4FGL_J1230.2+2517_daily_bin635.fits
.....................!
real 9.82
user 9.32
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/739062/ft1_filtered_4FGL_J1230.2+2517_daily_bin635.fits evtable="EVENTS" scfile=/scratch/kocevski/739062/ft2_4FGL_J1230.2+2517_daily_bin635.fits sctable="SC_DATA" expcube=/scratch/kocevski/739062/ltcube_403920001_404179201_4FGL_J1230.2+2517_daily_bin635.fits outfile=/scratch/kocevski/739062/expmap_403920001_404179201_4FGL_J1230.2+2517_daily_bin635.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/739062/ltcube_403920001_404179201_4FGL_J1230.2+2517_daily_bin635.fits
.....................!
real 191.15
user 185.88
sys 4.81

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/739062/ft1_filtered_4FGL_J1230.2+2517_daily_bin635.fits scfile=/scratch/kocevski/739062/ft2_4FGL_J1230.2+2517_daily_bin635.fits outfile=/scratch/kocevski/739062/cmap_403920001_404179201_4FGL_J1230.2+2517_daily_bin635.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.52
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/739062/ft1_filtered_4FGL_J1230.2+2517_daily_bin635.fits scfile=/scratch/kocevski/739062/ft2_4FGL_J1230.2+2517_daily_bin635.fits outfile=/scratch/kocevski/739062/cmap_HighResolution_403920001_404179201_4FGL_J1230.2+2517_daily_bin635.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.57
user 0.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/739062/ft1_filtered_4FGL_J1230.2+2517_daily_bin635.fits', '/scratch/kocevski/739062/ft2_4FGL_J1230.2+2517_daily_bin635.fits', expMap='/scratch/kocevski/739062/expmap_403920001_404179201_4FGL_J1230.2+2517_daily_bin635.fits', expCube='/scratch/kocevski/739062/ltcube_403920001_404179201_4FGL_J1230.2+2517_daily_bin635.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/739062/Model_4FGL_J1230.2+2517_daily_bin635.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/739062/ft1_filtered_4FGL_J1230.2+2517_daily_bin635.fits
Spacecraft file(s): /scratch/kocevski/739062/ft2_4FGL_J1230.2+2517_daily_bin635.fits
Exposure map: /scratch/kocevski/739062/expmap_403920001_404179201_4FGL_J1230.2+2517_daily_bin635.fits
Exposure cube: /scratch/kocevski/739062/ltcube_403920001_404179201_4FGL_J1230.2+2517_daily_bin635.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/739062/Model_4FGL_J1230.2+2517_daily_bin635.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) = 2791.65028159

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11097E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .90662       1.0000         .10000E-03   10000.    
     4 'Prefactor '    40.447       1.0000         .10000E-03   10000.    
     5 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.2105       1.0000         .10000E-03   10000.    
    10 'norm      '    16.190       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .59086E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.1960       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.4599       1.0000         .10000E-03   10000.    
    16 'norm      '    12.591       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .15531E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11915E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .15739E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    19.015       1.0000         .10000E-03   10000.    
    21 'norm      '    .10375E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10476E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10603E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.3777       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0077       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=   2791.614     FROM MIGRAD    STATUS=CONVERGED    697 CALLS     3514 TOTAL
                     EDM=   .66E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    47.490       -.15516E-05** at limit **
   2  Prefactor     .10000E-03    10.370        .14984E-06** at limit **
   3  Prefactor     .90621        3.7533        .13765E-05    .47731E-03
   4  Prefactor     40.417        40.041       -.12190E-05   -.25260E-03
   5  norm          .10000E-03    .54766       -.10804E-06** at limit **
   6  Prefactor     .10000E-03    9.1338       -.14097E-06** at limit **
   7  Prefactor     .10000E-03    14.839       -.23867E-06** at limit **
   8  Prefactor     .10000E-03    2.6385        .10082E-07** at limit **
   9  Prefactor     9.2097        7.3599       -.49815E-07   -.23935E-04
  10  norm          16.192        6.5999        .68845E-07    .19481E-03
  11  Prefactor     .10002E-03    13.607       -.83562E-06** at limit **
  12  Prefactor     2.1962        2.8151        .77659E-07    .14499E-03
  13  Prefactor     .10000E-03    1.5606        .66965E-07** at limit **
  14  Prefactor     .10000E-03    4.9503        .13512E-07** at limit **
  15  norm          1.4598        .66475       -.24092E-07   -.11664E-03
  16  norm          12.589        9.3003        .16281E-06    .13575E-03
  17  Prefactor     .10002E-03    54.269        .41148E-05** at limit **
  18  Prefactor     .10000E-03    104.34       -.58967E-06** at limit **
  19  Prefactor     .10000E-03    129.63        .29046E-06** at limit **
  20  Prefactor     19.008        21.257       -.31817E-07    .27694E-05
  21  norm          .10001E-03    19.380        .80214E-05** at limit **
  22  Prefactor     .10000E-03    23.190       -.43012E-06** at limit **
  23  norm          .10000E-03    6.9247        .10540E-06** at limit **
  24  norm          .10000E-03    2.8157        .68932E-07** at limit **
  25  norm          .10000E-03    3.4528        .18742E-07** at limit **
  26  norm          .10000E-03    14.131       -.22748E-06** at limit **
  27  Normalizat    1.3778        .30941        .16596E-05   -.67439E-04
  28  Prefactor     1.0078        .33157       -.16468E-05   -.60898E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.906207
  Prefactor  = 40.4169
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.20969
  norm       = 16.1918
  Prefactor  = 0.000100017
  Prefactor  = 2.19615
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.45977
  norm       = 12.5888
  Prefactor  = 0.000100019
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 19.0076
  norm       = 0.000100007
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 1.37783
  Prefactor  = 1.00778
 **********
 **   18 **HESSE 
 **********

 FCN=   2791.614     FROM HESSE     STATUS=OK           511 CALLS     4025 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    48.318        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    10.382        .16627E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .90621        4.0243        .19586E-03   -1.5518    
   4  Prefactor     40.417        40.859        .63027E-04   -1.4436    
   5  norm          .10000E-03    .55191        .38223E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9.2868        .15590E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    14.851        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.6464        .83781E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.2097        7.3486        .12317E-03   -1.5101    
  10  norm          16.192        6.6013        .81354E-04   -1.4903    
  11  Prefactor     .10002E-03    134.85        .37154E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.1962        2.8076        .95129E-04   -1.5412    
  13  Prefactor     .10000E-03    1.5717        .64427E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.9558        .11479E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.4598        .66259        .27303E-04   -1.5466    
  16  norm          12.589        9.3074        .11289E-03   -1.4998    
  17  Prefactor     .10002E-03    58.283        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    104.66        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    129.69        .20433E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     19.008        21.207        .91849E-04   -1.4836    
  21  norm          .10001E-03    20.331        .28673E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    23.348        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    7.0083        .13569E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    2.8395        .86561E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    3.4544        .95889E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    14.156        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.3778        .36244        .26055E-03   -.81272    
  28  Prefactor     1.0078        .39174        .32501E-03   -.92471    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.66584e-09
Minuit parameter uncertainties:
  1  0.000904586
  2  4.7894e-05
  3  3.81955
  4  40.8875
  5  4.54786e-06
  6  4.37158e-05
  7  3.74378e-05
  8  3.27706e-07
  9  7.34929
  10  6.60164
  11  0.00301645
  12  2.80777
  13  3.33602e-06
  14  3.39192e-07
  15  0.662597
  16  9.30852
  17  0.00211266
  18  0.000639309
  19  0.000115179
  20  21.2157
  21  0.000759222
  22  0.000276511
  23  1.03953e-05
  24  3.21676e-07
  25  2.29942e-07
  26  8.90404e-05
  27  0.363115
  28  0.392859
Done.

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

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  1.259e+01  9.309e+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.008e+00  3.929e-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.378e+00  3.631e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.51
Ra Dec: 187.560 25.298
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 7.40e-08 +/- 5.47e-08
Energy Flux (Fixed Index): 4.40e-05 +/- 3.25e-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) = 2791.59344634
delta logL = 0.0208707262004

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2791.59257858
delta logL = 0.0217384871817

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.597       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1366       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3659       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0143       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=   2791.593     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      233 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.602        309.88        .28215E-02    .56322E-04
   2  alpha         2.1370        2.8888        .29640        .39343E-04
   3  Normalizat    1.3658        .35987        .59106E-01    .12970E-05
   4  Prefactor     1.0143        .30178        .73226E-01    .33923E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 12.6024
  alpha      = 2.13699
  Normalizat = 1.36582
  Prefactor  = 1.01429
 **********
 **   18 **HESSE 
 **********

 FCN=   2791.593     FROM HESSE     STATUS=OK            33 CALLS      266 TOTAL
                     EDM=   .69E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.602        9.0612        .11286E-03   -1.4998    
   2  alpha         2.1370        .64482        .11324E-01   -.14572    
   3  Normalizat    1.3658        .35956        .26139E-03   -.81622    
   4  Prefactor     1.0143        .38750        .32401E-03   -.92255    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.93166e-11
Minuit parameter uncertainties:
  1  9.06219
  2  0.652353
  3  0.360222
  4  0.388571
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/739062': 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) = 2791.59257816
delta logL = 0.021738907808

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  1.260e+01  9.062e+00  1.000e-04  1.000e+04 ( 1.000e-12)
326        alpha:  2.137e+00  6.524e-01  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.014e+00  3.886e-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.366e+00  3.602e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.54
Ra Dec: 187.560 25.298
Photon Index (Free Index): 2.14 +/- 0.65
Photon Flux (Free Index): 8.63e-08 +/- 8.40e-08
Energy Flux (Free Index): 4.03e-05 +/- 3.29e-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/739062/cmap_HighResolution_403920001_404179201_4FGL_J1230.2+2517_daily_bin635.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.40e-08', energy_flux2='4.03e-05', photon_flux_error='5.47e-08', dlogl='2.17e-02', energy_flux='4.40e-05', photon_flux2='8.63e-08', job_status='DONE', time_completed='2021-09-05 20:55:58.021818', photon_index_error2='0.65', photon_index2='2.14', ts='4.51', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', energy_flux_error2='3.29e-05', EG='1.38', time_epoch_completed='1630900558.02', return_code='0', job_id='739062', GAL2='1.01', EG2='1.37', return_code2='0', energy_flux_error='3.25e-05', photon_flux_error2='8.40e-08', ts2='4.54', photon_index='2.00' WHERE bin_id='635' AND source_name='4FGL J1230.2+2517' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 20:55:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0233>
Subject: Job 739062: <4FGL_J1230.2+2517_daily_bin635> in cluster <slac> Done

Job <4FGL_J1230.2+2517_daily_bin635> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Sep  5 20:41:24 2021
Job was executed on host(s) <bullet0233>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 20:47:03 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:47:03 2021
Terminated at Sun Sep  5 20:55:58 2021
Results reported at Sun Sep  5 20:55:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.2+2517_daily_bin635 187.56 25.2983 403920001 404179201 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 :                                   518.08 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             287.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   535 sec.
    Turnaround time :                            874 sec.

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

