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


Performing analysis on: 4FGL_J1230.2+2517_daily_bin993
RA = 187.56, Dec = 25.2983
tmin = 496713601, tmax = 496972801
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='741904', job_status='RUN', time_executed='2021-09-05 20:54:27.278558', time_epoch_executed='1630900467.28' WHERE source_name='4FGL J1230.2+2517' and cadence='daily' and bin_id='993'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/741904

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/741904/ft1_4FGL_J1230.2+2517_daily_bin993.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/741904/ft2_4FGL_J1230.2+2517_daily_bin993.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/741904/ft1_4FGL_J1230.2+2517_daily_bin993.fits outfile=/scratch/kocevski/741904/ft1_filteredMKT_4FGL_J1230.2+2517_daily_bin993.fits ra=187.56 dec=25.2983 rad=12.0 tmin=496713601.0 tmax=496972801.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.98
user 4.73
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/741904/ft1_filtered_4FGL_J1230.2+2517_daily_bin993.fits" evtable="EVENTS" scfile=/scratch/kocevski/741904/ft2_4FGL_J1230.2+2517_daily_bin993.fits sctable="SC_DATA" outfile=/scratch/kocevski/741904/ltcube_496713601_496972801_4FGL_J1230.2+2517_daily_bin993.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/741904/ft2_4FGL_J1230.2+2517_daily_bin993.fits
.....................!
real 16.20
user 15.30
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/741904/ft1_filtered_4FGL_J1230.2+2517_daily_bin993.fits evtable="EVENTS" scfile=/scratch/kocevski/741904/ft2_4FGL_J1230.2+2517_daily_bin993.fits sctable="SC_DATA" expcube=/scratch/kocevski/741904/ltcube_496713601_496972801_4FGL_J1230.2+2517_daily_bin993.fits outfile=/scratch/kocevski/741904/expmap_496713601_496972801_4FGL_J1230.2+2517_daily_bin993.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/741904/ltcube_496713601_496972801_4FGL_J1230.2+2517_daily_bin993.fits
.....................!
real 193.83
user 188.06
sys 5.09

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/741904/ft1_filtered_4FGL_J1230.2+2517_daily_bin993.fits scfile=/scratch/kocevski/741904/ft2_4FGL_J1230.2+2517_daily_bin993.fits outfile=/scratch/kocevski/741904/cmap_496713601_496972801_4FGL_J1230.2+2517_daily_bin993.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.59
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/741904/ft1_filtered_4FGL_J1230.2+2517_daily_bin993.fits scfile=/scratch/kocevski/741904/ft2_4FGL_J1230.2+2517_daily_bin993.fits outfile=/scratch/kocevski/741904/cmap_HighResolution_496713601_496972801_4FGL_J1230.2+2517_daily_bin993.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.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10499E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.3701       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.0912       1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10130E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.5268       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    13.902       1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.8766       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10243E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .18859E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.6995       1.0000         .10000E-03   10000.    
    16 'norm      '    11.587       1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.404       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    90.881       1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.108       1.0000         .10000E-03   10000.    
    21 'norm      '    6.2693       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10273E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .22312E-02   1.0000         .10000E-03   10000.    
    25 'norm      '    .10132E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    22.308       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.0895       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .91142       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=   5361.496     FROM MIGRAD    STATUS=CONVERGED    692 CALLS     3507 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    44.509        .12704E-05** at limit **
   2  Prefactor     .10000E-03    4.3285       -.44461E-06** at limit **
   3  Prefactor     4.3692        2.6367        .17413E-06   -.15922E-03
   4  Prefactor     8.0889        28.164       -.30186E-05   -.26330E-04
   5  norm          .10000E-03    .47500        .66032E-07** at limit **
   6  Prefactor     .10000E-03    1.6206        .15509E-06** at limit **
   7  Prefactor     .10000E-03    17.723        .87441E-05** at limit **
   8  Prefactor     4.5262        3.3402        .36528E-06   -.22726E-03
   9  Prefactor     .10000E-03    1.7294        .10965E-06** at limit **
  10  norm          13.903        5.2880        .14817E-06   -.28456E-04
  11  Prefactor     8.8755        9.2850        .33896E-06   -.82966E-04
  12  Prefactor     .10000E-03    3.0803        .10875E-05** at limit **
  13  Prefactor     .10033E-03    1.4573       -.13992E-05** at limit **
  14  Prefactor     .10000E-03    2.7728       -.14286E-06** at limit **
  15  norm          1.6995        .40775        .53053E-07    .37743E-03
  16  norm          11.586        6.7394        .36407E-06    .26317E-03
  17  Prefactor     13.407        13.431       -.55710E-06    .12003E-03
  18  Prefactor     .10000E-03    10.558        .78274E-06** at limit **
  19  Prefactor     90.928        100.91        .47128E-04    .74057E-06
  20  Prefactor     13.109        7.5569        .18401E-06    .23162E-03
  21  norm          6.2676        5.9764       -.30711E-05   -.27973E-03
  22  Prefactor     .10000E-03    9.6513        .86370E-05** at limit **
  23  norm          .10000E-03    3.0897       -.27367E-05** at limit **
  24  norm          .10001E-03    2.3521       -.42604E-06** at limit **
  25  norm          .10000E-03    3.5891        .62321E-06** at limit **
  26  norm          22.325        24.639        .14752E-04    .19052E-03
  27  Normalizat    1.0896        .20449       -.27179E-05    .49063E-03
  28  Prefactor     .91133        .20801       -.15791E-05    .28683E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.3692
  Prefactor  = 8.08888
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.52617
  Prefactor  = 0.0001
  norm       = 13.903
  Prefactor  = 8.87547
  Prefactor  = 0.000100001
  Prefactor  = 0.000100334
  Prefactor  = 0.0001
  norm       = 1.69946
  norm       = 11.5865
  Prefactor  = 13.4074
  Prefactor  = 0.0001
  Prefactor  = 90.9284
  Prefactor  = 13.109
  norm       = 6.26759
  Prefactor  = 0.0001
  norm       = 0.000100005
  norm       = 0.000100009
  norm       = 0.0001
  norm       = 22.3247
  Normalizat = 1.08956
  Prefactor  = 0.911327
 **********
 **   18 **HESSE 
 **********

 FCN=   5361.496     FROM HESSE     STATUS=OK           529 CALLS     4036 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    45.037        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.3316        .14878E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.3692        2.6342        .88606E-04   -1.5290    
   4  Prefactor     8.0889        28.299        .14095E-03   -1.5139    
   5  norm          .10000E-03    .48405        .49240E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.6296        .91000E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    17.749        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.5262        3.3289        .10937E-03   -1.5282    
   9  Prefactor     .10000E-03    1.7469        .93849E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          13.903        4.8314        .90847E-04   -1.4962    
  11  Prefactor     8.8755        9.2885        .13453E-03   -1.5112    
  12  Prefactor     .10000E-03    5.4684        .22842E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10033E-03    12.109        .16332E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.7787        .11904E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.6995        .40849        .21513E-04   -1.5447    
  16  norm          11.586        6.7226        .11769E-03   -1.5027    
  17  Prefactor     13.407        13.309        .10940E-03   -1.4975    
  18  Prefactor     .10000E-03    10.561        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     90.928        100.85        .21076E-03   -1.3798    
  20  Prefactor     13.109        7.5537        .11064E-03   -1.4984    
  21  norm          6.2676        5.9880        .16032E-03   -1.5207    
  22  Prefactor     .10000E-03    9.6459        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    6.7936        .24572E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10001E-03    1.9630        .37307E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    7.2191        .26004E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          22.325        24.627        .84806E-04   -1.4763    
  27  Normalizat    1.0896        .24190        .25819E-03   -.90088    
  28  Prefactor     .91133        .24505        .29713E-03   -.95746    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.84825e-08
Minuit parameter uncertainties:
  1  0.000217483
  2  3.74297e-06
  3  2.63424
  4  28.3455
  5  3.71225e-06
  6  3.9157e-06
  7  2.64532e-05
  8  3.32904
  9  5.18537e-06
  10  4.8315
  11  9.28996
  12  0.000124466
  13  0.00402288
  14  4.88737e-06
  15  0.408493
  16  6.72306
  17  13.312
  18  1.08795e-05
  19  101.046
  20  7.55428
  21  5.98858
  22  1.46605e-05
  23  0.000355344
  24  0.000264944
  25  7.25688e-05
  26  24.6377
  27  0.242145
  28  0.245348
Done.

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

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  1.159e+01  6.723e+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:  9.113e-01  2.453e-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.090e+00  2.421e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.87
Ra Dec: 187.560 25.298
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 6.81e-08 +/- 3.95e-08
Energy Flux (Fixed Index): 4.05e-05 +/- 2.35e-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) = 5360.01728288
delta logL = 1.47880670293

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5360.00856874
delta logL = 1.48752084206

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.0263       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9861       1.0000          .0000       5.0000    
     3 'Normalizat'    .98590       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98426       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5360.009     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      293 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.0275        6.9518        .80796E-04   -.19478E-02
   2  alpha         2.9862        .71550        .83968E-02   -.17976E-03
   3  Normalizat    .98599        .24004        .26872E-03    .24232E-03
   4  Prefactor     .98408        .25134        .28682E-03    .51075E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.02747
  alpha      = 2.98621
  Normalizat = 0.985988
  Prefactor  = 0.984075
 **********
 **   18 **HESSE 
 **********

 FCN=   5360.009     FROM HESSE     STATUS=OK            23 CALLS      316 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.0275        6.1117        .32318E-05   -1.5178    
   2  alpha         2.9862        .63057        .33587E-03    .19573    
   3  Normalizat    .98599        .23909        .53745E-04   -.93501    
   4  Prefactor     .98408        .25037        .57364E-04   -.93262    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.32982e-09
Minuit parameter uncertainties:
  1  6.11227
  2  0.637736
  3  0.239351
  4  0.250662
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/741904': 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) = 5360.00856814
delta logL = 1.48752144053

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  7.027e+00  6.112e+00  1.000e-04  1.000e+04 ( 1.000e-12)
326        alpha:  2.986e+00  6.377e-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:  9.841e-01  2.507e-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:  9.860e-01  2.394e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.98
Ra Dec: 187.560 25.298
Photon Index (Free Index): 2.99 +/- 0.64
Photon Flux (Free Index): 1.58e-07 +/- 8.02e-08
Energy Flux (Free Index): 3.30e-05 +/- 1.48e-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/741904/cmap_HighResolution_496713601_496972801_4FGL_J1230.2+2517_daily_bin993.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.81e-08', energy_flux2='3.30e-05', photon_flux_error='3.95e-08', dlogl='1.49e+00', energy_flux='4.05e-05', photon_flux2='1.58e-07', job_status='DONE', time_completed='2021-09-05 21:05:55.416367', photon_index_error2='0.64', photon_index2='2.99', ts='5.87', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='1.48e-05', EG='1.09', time_epoch_completed='1630901155.42', return_code='0', job_id='741904', GAL2='0.98', EG2='0.99', return_code2='0', energy_flux_error='2.35e-05', photon_flux_error2='8.02e-08', ts2='8.98', photon_index='2.00' WHERE bin_id='993' AND source_name='4FGL J1230.2+2517' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 21:05:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0126>
Subject: Job 741904: <4FGL_J1230.2+2517_daily_bin993> in cluster <slac> Done

Job <4FGL_J1230.2+2517_daily_bin993> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 20:50:36 2021
Job was executed on host(s) <bullet0126>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 20:50:46 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:46 2021
Terminated at Sun Sep  5 21:05:56 2021
Results reported at Sun Sep  5 21:05:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.2+2517_daily_bin993 187.56 25.2983 496713601 496972801 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 :                                   681.23 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             266.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   909 sec.
    Turnaround time :                            920 sec.

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

