/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 183 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 = 7487
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1230.2+2517_daily_bin319
RA = 187.56, Dec = 25.2983
tmin = 322012801, tmax = 322272001
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='735747', job_status='RUN', time_executed='2021-09-05 20:33:51.982813', time_epoch_executed='1630899231.98' WHERE source_name='4FGL J1230.2+2517' and cadence='daily' and bin_id='319'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/735747

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/735747/ft1_4FGL_J1230.2+2517_daily_bin319.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/735747/ft2_4FGL_J1230.2+2517_daily_bin319.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/735747/ft1_4FGL_J1230.2+2517_daily_bin319.fits outfile=/scratch/kocevski/735747/ft1_filteredMKT_4FGL_J1230.2+2517_daily_bin319.fits ra=187.56 dec=25.2983 rad=12.0 tmin=322012801.0 tmax=322272001.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.50
user 3.21
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/735747/ft1_filtered_4FGL_J1230.2+2517_daily_bin319.fits evtable="EVENTS" scfile=/scratch/kocevski/735747/ft2_4FGL_J1230.2+2517_daily_bin319.fits sctable="SC_DATA" expcube=/scratch/kocevski/735747/ltcube_322012801_322272001_4FGL_J1230.2+2517_daily_bin319.fits outfile=/scratch/kocevski/735747/expmap_322012801_322272001_4FGL_J1230.2+2517_daily_bin319.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/735747/ltcube_322012801_322272001_4FGL_J1230.2+2517_daily_bin319.fits
.....................!
real 191.40
user 186.45
sys 4.37

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/735747/ft1_filtered_4FGL_J1230.2+2517_daily_bin319.fits scfile=/scratch/kocevski/735747/ft2_4FGL_J1230.2+2517_daily_bin319.fits outfile=/scratch/kocevski/735747/cmap_322012801_322272001_4FGL_J1230.2+2517_daily_bin319.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.54
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/735747/ft1_filtered_4FGL_J1230.2+2517_daily_bin319.fits scfile=/scratch/kocevski/735747/ft2_4FGL_J1230.2+2517_daily_bin319.fits outfile=/scratch/kocevski/735747/cmap_HighResolution_322012801_322272001_4FGL_J1230.2+2517_daily_bin319.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.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6244       1.0000         .10000E-03   10000.    
     2 'Prefactor '    44.369       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.4654       1.0000         .10000E-03   10000.    
     4 'Prefactor '    45.670       1.0000         .10000E-03   10000.    
     5 'norm      '    .11549       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.7519       1.0000         .10000E-03   10000.    
     7 'Prefactor '    24.732       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .91348       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    6.9484       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.5828       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.4135       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.3742       1.0000         .10000E-03   10000.    
    15 'norm      '    2.8229       1.0000         .10000E-03   10000.    
    16 'norm      '    9.7725       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10328E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    5.5518       1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.0251       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0254       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=   6618.907     FROM MIGRAD    STATUS=CONVERGED    686 CALLS     3474 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5807        62.469       -.30858E-05   -.15312E-03
   2  Prefactor     44.369        20.054       -.49548E-07   -.10034E-03
   3  Prefactor     1.4668        1.5326       -.39277E-06   -.14611E-02
   4  Prefactor     45.669        34.716       -.95502E-07   -.10193E-03
   5  norm          .11354        .89670        .93671E-06   -.14387E-02
   6  Prefactor     5.7520        3.9485       -.41482E-07   -.13331E-03
   7  Prefactor     24.730        27.312       -.34287E-07   -.63700E-04
   8  Prefactor     .91339        2.1159        .12059E-05    .98187E-03
   9  Prefactor     .10000E-03    1.3290        .19261E-07** at limit **
  10  norm          6.9482        3.1070       -.10360E-06   -.31247E-03
  11  Prefactor     .10000E-03    2.2030        .16194E-07** at limit **
  12  Prefactor     1.5826        2.0487        .24916E-06    .27911E-03
  13  Prefactor     1.4133        1.3775       -.25235E-07   -.21305E-03
  14  Prefactor     7.3736        7.3759        .15610E-06   -.44435E-05
  15  norm          2.8230        .44925       -.13329E-07   -.14802E-02
  16  norm          9.7722        6.6246        .70938E-08   -.11037E-03
  17  Prefactor     .10000E-03    8.8597       -.82737E-06** at limit **
  18  Prefactor     .10000E-03    8.0454        .51490E-06** at limit **
  19  Prefactor     .10000E-03    39.042        .13856E-05** at limit **
  20  Prefactor     .10000E-03    4.0897        .29913E-06** at limit **
  21  norm          .10000E-03    2.1585        .24601E-06** at limit **
  22  Prefactor     .10000E-03    16.252        .96801E-07** at limit **
  23  norm          .10002E-03    4.1088        .25242E-05** at limit **
  24  norm          5.5509        3.5235       -.50934E-07   -.22866E-03
  25  norm          .10000E-03    3.3748       -.26168E-06** at limit **
  26  norm          .10000E-03    6.2493       -.53896E-06** at limit **
  27  Normalizat    1.0249        .19435        .12666E-05   -.73048E-03
  28  Prefactor     1.0257        .20304       -.24798E-05   -.65235E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.58068
  Prefactor  = 44.3688
  Prefactor  = 1.46685
  Prefactor  = 45.669
  norm       = 0.113541
  Prefactor  = 5.75202
  Prefactor  = 24.7305
  Prefactor  = 0.913386
  Prefactor  = 0.0001
  norm       = 6.94824
  Prefactor  = 0.0001
  Prefactor  = 1.58263
  Prefactor  = 1.41331
  Prefactor  = 7.37364
  norm       = 2.82299
  norm       = 9.77223
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100015
  norm       = 5.55091
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 1.02491
  Prefactor  = 1.02566
 **********
 **   18 **HESSE 
 **********

 FCN=   6618.907     FROM HESSE     STATUS=OK           519 CALLS     3993 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.5807        65.414        .33196E-03   -1.5457    
   2  Prefactor     44.369        20.033        .60189E-04   -1.4375    
   3  Prefactor     1.4668        1.5246        .98289E-04   -1.5466    
   4  Prefactor     45.669        34.714        .59329E-04   -1.4355    
   5  norm          .11354        2.9634        .11734E-02   -1.5641    
   6  Prefactor     5.7520        3.9353        .12640E-03   -1.5228    
   7  Prefactor     24.730        27.301        .80549E-04   -1.4713    
   8  Prefactor     .91339        2.1614        .18055E-03   -1.5517    
   9  Prefactor     .10000E-03    1.3424        .91424E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          6.9482        3.1168        .85297E-04   -1.5181    
  11  Prefactor     .10000E-03    2.2089        .11792E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.5826        2.0404        .11842E-03   -1.5456    
  13  Prefactor     1.4133        1.3732        .90743E-04   -1.5470    
  14  Prefactor     7.3736        7.3666        .14770E-03   -1.5165    
  15  norm          2.8230        .45026        .20376E-04   -1.5372    
  16  norm          9.7722        6.6154        .12819E-03   -1.5083    
  17  Prefactor     .10000E-03    8.9724        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    8.0665        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    39.233        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.1192        .16074E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    2.1936        .11681E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    16.359        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10002E-03    7.4755        .22753E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          5.5509        3.5168        .11701E-03   -1.5237    
  25  norm          .10000E-03    3.3811        .14560E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    6.2758        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.0249        .22128        .26423E-03   -.92201    
  28  Prefactor     1.0257        .23352        .29382E-03   -.91879    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.14173e-09
Minuit parameter uncertainties:
  1  20.3602
  2  20.0362
  3  1.52463
  4  34.729
  5  1.15966
  6  3.93551
  7  27.3151
  8  2.16158
  9  2.13906e-06
  10  3.11691
  11  4.141e-07
  12  2.04052
  13  1.37326
  14  7.36751
  15  0.450264
  16  6.61585
  17  0.000137577
  18  7.70623e-05
  19  0.000449061
  20  2.34792e-05
  21  1.78314e-05
  22  1.65309e-05
  23  0.000679847
  24  3.51689
  25  1.96109e-05
  26  7.57271e-05
  27  0.221474
  28  0.233754
Done.

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

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  9.772e+00  6.616e+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.026e+00  2.338e-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.025e+00  2.215e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.49
Ra Dec: 187.560 25.298
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 5.74e-08 +/- 3.89e-08
Energy Flux (Fixed Index): 3.41e-05 +/- 2.31e-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) = 6617.78961159
delta logL = 1.11744635735

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6617.77367371
delta logL = 1.13338424223

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.7864       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8115       1.0000          .0000       5.0000    
     3 'Normalizat'    .93652       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0837       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=   6617.774     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      294 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.7875        6.1854        .98248E-04   -.17481E-02
   2  alpha         2.8116        .59462        .92657E-02   -.18556E-03
   3  Normalizat    .93654        .21703        .27416E-03    .33840E-03
   4  Prefactor     1.0836        .23545        .28650E-03    .55003E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.78747
  alpha      = 2.81161
  Normalizat = 0.936543
  Prefactor  = 1.08357
 **********
 **   18 **HESSE 
 **********

 FCN=   6617.774     FROM HESSE     STATUS=OK            25 CALLS      319 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.7875        5.6608        .39299E-05   -1.5150    
   2  alpha         2.8116        .54426        .37063E-03    .12497    
   3  Normalizat    .93654        .21658        .54832E-04   -.95188    
   4  Prefactor     1.0836        .23504        .57301E-04   -.89993    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34453e-09
Minuit parameter uncertainties:
  1  5.66115
  2  0.548721
  3  0.216782
  4  0.235269
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/735747': 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) = 6617.7736731
delta logL = 1.13338484811

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  7.787e+00  5.661e+00  1.000e-04  1.000e+04 ( 1.000e-12)
326        alpha:  2.812e+00  5.487e-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.084e+00  2.353e-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.365e-01  2.168e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.90
Ra Dec: 187.560 25.298
Photon Index (Free Index): 2.81 +/- 0.55
Photon Flux (Free Index): 1.34e-07 +/- 7.20e-08
Energy Flux (Free Index): 3.08e-05 +/- 1.45e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/735747/cmap_HighResolution_322012801_322272001_4FGL_J1230.2+2517_daily_bin319.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.74e-08', energy_flux2='3.08e-05', photon_flux_error='3.89e-08', dlogl='1.13e+00', energy_flux='3.41e-05', photon_flux2='1.34e-07', job_status='DONE', time_completed='2021-09-05 20:46:36.060139', photon_index_error2='0.55', photon_index2='2.81', ts='5.49', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='1.45e-05', EG='1.02', time_epoch_completed='1630899996.06', return_code='0', job_id='735747', GAL2='1.08', EG2='0.94', return_code2='0', energy_flux_error='2.31e-05', photon_flux_error2='7.20e-08', ts2='7.90', photon_index='2.00' WHERE bin_id='319' AND source_name='4FGL J1230.2+2517' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 20:46:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0206>
Subject: Job 735747: <4FGL_J1230.2+2517_daily_bin319> in cluster <slac> Done

Job <4FGL_J1230.2+2517_daily_bin319> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Sep  5 20:30:37 2021
Job was executed on host(s) <bullet0206>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 20:30:40 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:30:40 2021
Terminated at Sun Sep  5 20:46:36 2021
Results reported at Sun Sep  5 20:46:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.2+2517_daily_bin319 187.56 25.2983 322012801 322272001 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 :                                   761.47 sec.
    Max Memory :                                 1049 MB
    Average Memory :                             282.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   956 sec.
    Turnaround time :                            959 sec.

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

