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


Performing analysis on: 4FGL_J1230.2+2517_daily_bin983
RA = 187.56, Dec = 25.2983
tmin = 494121601, tmax = 494380801
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='741887', job_status='RUN', time_executed='2021-09-05 20:52:37.037463', time_epoch_executed='1630900357.04' WHERE source_name='4FGL J1230.2+2517' and cadence='daily' and bin_id='983'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/741887

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/741887/ft1_4FGL_J1230.2+2517_daily_bin983.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/741887/ft2_4FGL_J1230.2+2517_daily_bin983.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/741887/ft1_4FGL_J1230.2+2517_daily_bin983.fits outfile=/scratch/kocevski/741887/ft1_filteredMKT_4FGL_J1230.2+2517_daily_bin983.fits ra=187.56 dec=25.2983 rad=12.0 tmin=494121601.0 tmax=494380801.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 4.12
user 3.59
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/741887/ft1_filtered_4FGL_J1230.2+2517_daily_bin983.fits evtable="EVENTS" scfile=/scratch/kocevski/741887/ft2_4FGL_J1230.2+2517_daily_bin983.fits sctable="SC_DATA" expcube=/scratch/kocevski/741887/ltcube_494121601_494380801_4FGL_J1230.2+2517_daily_bin983.fits outfile=/scratch/kocevski/741887/expmap_494121601_494380801_4FGL_J1230.2+2517_daily_bin983.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/741887/ltcube_494121601_494380801_4FGL_J1230.2+2517_daily_bin983.fits
.....................!
real 191.85
user 187.14
sys 3.95

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/741887/ft1_filtered_4FGL_J1230.2+2517_daily_bin983.fits scfile=/scratch/kocevski/741887/ft2_4FGL_J1230.2+2517_daily_bin983.fits outfile=/scratch/kocevski/741887/cmap_494121601_494380801_4FGL_J1230.2+2517_daily_bin983.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.53
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/741887/ft1_filtered_4FGL_J1230.2+2517_daily_bin983.fits scfile=/scratch/kocevski/741887/ft2_4FGL_J1230.2+2517_daily_bin983.fits outfile=/scratch/kocevski/741887/cmap_HighResolution_494121601_494380801_4FGL_J1230.2+2517_daily_bin983.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    31.807       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10395E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10131E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.6550       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .14335       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.9018       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .13072E-02   1.0000         .10000E-03   10000.    
    10 'norm      '    14.413       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.1771       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.9707       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.2821       1.0000         .10000E-03   10000.    
    15 'norm      '    .35062       1.0000         .10000E-03   10000.    
    16 'norm      '    3.1984       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.6792       1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.8725       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.2637       1.0000         .10000E-03   10000.    
    21 'norm      '    5.9563       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10226E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    35.269       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.0759       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0001       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=   6256.696     FROM MIGRAD    STATUS=CONVERGED    687 CALLS     3534 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.796        21.479       -.15398E-05   -.11685E-03
   2  Prefactor     .10000E-03    4.3687        .19695E-06** at limit **
   3  Prefactor     .10000E-03    1.1452        .38745E-06** at limit **
   4  Prefactor     .10000E-03    75.959       -.70772E-05** at limit **
   5  norm          2.6550        1.3237        .45846E-07   -.22627E-03
   6  Prefactor     .14789        2.1207        .39843E-06   -.83964E-03
   7  Prefactor     .10000E-03    12.133        .50747E-06** at limit **
   8  Prefactor     4.9055        4.0525        .83124E-06    .47775E-04
   9  Prefactor     .10000E-03    1.9610       -.53478E-06** at limit **
  10  norm          14.414        4.2548        .11777E-06   -.12122E-04
  11  Prefactor     5.1817        8.7931        .13635E-05   -.16797E-03
  12  Prefactor     .10000E-03    .90384       -.44701E-07** at limit **
  13  Prefactor     4.9709        2.5900       -.12089E-06   -.12902E-03
  14  Prefactor     4.2819        5.1559        .73356E-06   -.28731E-03
  15  norm          .35063        .22810       -.17234E-08   -.68231E-03
  16  norm          3.1983        3.0970        .81684E-06    .88086E-04
  17  Prefactor     7.6792        7.5259        .50871E-06    .59275E-03
  18  Prefactor     9.8811        26.119        .70188E-05    .19616E-05
  19  Prefactor     .10000E-03    24.497        .25166E-04** at limit **
  20  Prefactor     8.2645        7.5915        .22989E-07   -.70039E-04
  21  norm          5.9557        4.3990       -.26432E-07    .24472E-03
  22  Prefactor     .10000E-03    23.253       -.22072E-04** at limit **
  23  norm          .10000E-03    2.5249        .15316E-06** at limit **
  24  norm          .10000E-03    1.4755        .57747E-07** at limit **
  25  norm          .10000E-03    1.9030        .17796E-06** at limit **
  26  norm          35.266        22.676       -.80569E-06   -.40578E-05
  27  Normalizat    1.0756        .18710       -.11610E-05    .69456E-04
  28  Prefactor     1.0003        .19718       -.82402E-06    .12766E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.7957
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 2.65502
  Prefactor  = 0.14789
  Prefactor  = 0.0001
  Prefactor  = 4.90549
  Prefactor  = 0.0001
  norm       = 14.4141
  Prefactor  = 5.18172
  Prefactor  = 0.0001
  Prefactor  = 4.97089
  Prefactor  = 4.2819
  norm       = 0.350625
  norm       = 3.19829
  Prefactor  = 7.67922
  Prefactor  = 9.88106
  Prefactor  = 0.0001
  Prefactor  = 8.26446
  norm       = 5.95571
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 35.2662
  Normalizat = 1.07563
  Prefactor  = 1.00028
 **********
 **   18 **HESSE 
 **********

 FCN=   6256.696     FROM HESSE     STATUS=OK           529 CALLS     4063 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.796        21.211        .71047E-04   -1.4580    
   2  Prefactor     .10000E-03    4.3768        .16146E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.6771        .16174E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    79.071        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.6550        1.3223        .61125E-04   -1.5382    
   6  Prefactor     .14789        23.763        .21337E-02   -1.5631    
   7  Prefactor     .10000E-03    12.151        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.9055        3.7403        .12240E-03   -1.5265    
   9  Prefactor     .10000E-03    30.120        .19330E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          14.414        4.2502        .83729E-04   -1.4948    
  11  Prefactor     5.1817        8.7745        .17668E-03   -1.5253    
  12  Prefactor     .10000E-03    .90728        .73341E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.9709        2.5912        .86276E-04   -1.5262    
  14  Prefactor     4.2819        5.1324        .18643E-03   -1.5294    
  15  norm          .35063        .22469        .28912E-04   -1.5590    
  16  norm          3.1983        3.1017        .13058E-03   -1.5350    
  17  Prefactor     7.6792        7.5507        .72355E-03   -1.5154    
  18  Prefactor     9.8811        26.082        .12753E-03   -1.5079    
  19  Prefactor     .10000E-03    24.506        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     8.2645        7.5933        .13946E-03   -1.5133    
  21  norm          5.9557        4.3996        .13712E-03   -1.5220    
  22  Prefactor     .10000E-03    23.229        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    2.6397        .24533E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    1.4853        .93798E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    1.9046        .10656E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          35.266        22.679        .67480E-04   -1.4520    
  27  Normalizat    1.0756        .21691        .25604E-03   -.90538    
  28  Prefactor     1.0003        .22727        .28939E-03   -.92720    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.46947e-09
Minuit parameter uncertainties:
  1  21.2162
  2  1.81911e-07
  3  1.6625e-05
  4  0.0004969
  5  1.32231
  6  3.74951
  7  6.74467e-06
  8  3.74046
  9  0.000139686
  10  4.2503
  11  8.77667
  12  1.45249e-07
  13  2.59123
  14  5.13292
  15  0.224689
  16  3.1019
  17  7.55166
  18  26.1117
  19  9.56894e-06
  20  7.5942
  21  4.39982
  22  0.000126041
  23  8.91043e-06
  24  5.02623e-06
  25  1.94295e-06
  26  22.6843
  27  0.217085
  28  0.227486
Done.

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

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  3.198e+00  3.102e+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.000e+00  2.275e-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.076e+00  2.171e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.44
Ra Dec: 187.560 25.298
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 1.88e-08 +/- 1.82e-08
Energy Flux (Fixed Index): 1.12e-05 +/- 1.08e-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) = 6255.60127991
delta logL = 1.09489474869

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6255.07229005
delta logL = 1.62388461023

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .54841       1.0000         .10000E-03   10000.    
     2 'alpha     '    .66091       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0853       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0001       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=   6255.072     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      214 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .54833        .58732        .11467E-01   -.51963E-03
   2  alpha         .66079        .40941        .35256       -.30262E-04
   3  Normalizat    1.0853        .17752        .57674E-01    .10602E-04
   4  Prefactor     1.0001        .19522        .46029E-01    .11987E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.548328
  alpha      = 0.660788
  Normalizat = 1.08534
  Prefactor  = 1.00006
 **********
 **   18 **HESSE 
 **********

 FCN=   6255.072     FROM HESSE     STATUS=OK            33 CALLS      247 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .54833        1.2850        .51601E-03   -1.5560    
   2  alpha         .66079        .76869        .15886E-02   -.82668    
   3  Normalizat    1.0853        .20525        .25505E-03   -.90224    
   4  Prefactor     1.0001        .22580        .28949E-03   -.92727    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3347e-09
Minuit parameter uncertainties:
  1  1.28508
  2  0.797894
  3  0.205396
  4  0.226014
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/741887': 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) = 6255.07228999
delta logL = 1.62388466311

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  5.483e-01  1.285e+00  1.000e-04  1.000e+04 ( 1.000e-12)
326        alpha:  6.608e-01  7.979e-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.000e+00  2.260e-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.085e+00  2.054e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.68
Ra Dec: 187.560 25.298
Photon Index (Free Index): 0.66 +/- 0.80
Photon Flux (Free Index): 3.84e-09 +/- 4.36e-09
Energy Flux (Free Index): 7.00e-05 +/- 9.61e-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/741887/cmap_HighResolution_494121601_494380801_4FGL_J1230.2+2517_daily_bin983.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.88e-08', energy_flux2='7.00e-05', photon_flux_error='1.82e-08', dlogl='1.62e+00', energy_flux='1.12e-05', photon_flux2='3.84e-09', job_status='DONE', time_completed='2021-09-05 21:04:45.684587', photon_index_error2='0.80', photon_index2='0.66', ts='5.44', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='9.61e-05', EG='1.08', time_epoch_completed='1630901085.68', return_code='0', job_id='741887', GAL2='1.00', EG2='1.09', return_code2='0', energy_flux_error='1.08e-05', photon_flux_error2='4.36e-09', ts2='8.68', photon_index='2.00' WHERE bin_id='983' AND source_name='4FGL J1230.2+2517' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 21:04:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0249>
Subject: Job 741887: <4FGL_J1230.2+2517_daily_bin983> in cluster <slac> Done

Job <4FGL_J1230.2+2517_daily_bin983> 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) <bullet0249>, 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:04:46 2021
Results reported at Sun Sep  5 21:04:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.2+2517_daily_bin983 187.56 25.2983 494121601 494380801 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 :                                   723.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             290.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   840 sec.
    Turnaround time :                            851 sec.

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

