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


Performing analysis on: 4FGL_J1230.2+2517_daily_bin934
RA = 187.56, Dec = 25.2983
tmin = 481420801, tmax = 481680001
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='741811', job_status='RUN', time_executed='2021-09-05 20:54:07.587780', time_epoch_executed='1630900447.59' WHERE source_name='4FGL J1230.2+2517' and cadence='daily' and bin_id='934'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/741811

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/741811/ft1_4FGL_J1230.2+2517_daily_bin934.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/741811/ft2_4FGL_J1230.2+2517_daily_bin934.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/741811/ft1_4FGL_J1230.2+2517_daily_bin934.fits outfile=/scratch/kocevski/741811/ft1_filteredMKT_4FGL_J1230.2+2517_daily_bin934.fits ra=187.56 dec=25.2983 rad=12.0 tmin=481420801.0 tmax=481680001.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.74
user 3.52
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/741811/ft1_filtered_4FGL_J1230.2+2517_daily_bin934.fits evtable="EVENTS" scfile=/scratch/kocevski/741811/ft2_4FGL_J1230.2+2517_daily_bin934.fits sctable="SC_DATA" expcube=/scratch/kocevski/741811/ltcube_481420801_481680001_4FGL_J1230.2+2517_daily_bin934.fits outfile=/scratch/kocevski/741811/expmap_481420801_481680001_4FGL_J1230.2+2517_daily_bin934.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/741811/ltcube_481420801_481680001_4FGL_J1230.2+2517_daily_bin934.fits
.....................!
real 191.37
user 186.86
sys 4.05

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/741811/ft1_filtered_4FGL_J1230.2+2517_daily_bin934.fits scfile=/scratch/kocevski/741811/ft2_4FGL_J1230.2+2517_daily_bin934.fits outfile=/scratch/kocevski/741811/cmap_481420801_481680001_4FGL_J1230.2+2517_daily_bin934.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.57
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/741811/ft1_filtered_4FGL_J1230.2+2517_daily_bin934.fits scfile=/scratch/kocevski/741811/ft2_4FGL_J1230.2+2517_daily_bin934.fits outfile=/scratch/kocevski/741811/cmap_HighResolution_481420801_481680001_4FGL_J1230.2+2517_daily_bin934.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.41
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.174       1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.9033       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.7500       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .13656E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.7799       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.9912       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .78856E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .78224E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    14.563       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.6992       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.9096       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.0357       1.0000         .10000E-03   10000.    
    15 'norm      '    .50682       1.0000         .10000E-03   10000.    
    16 'norm      '    16.572       1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.3796       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11730E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    24.457       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    34.669       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10480E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    2.6103       1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    37.374       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.0295       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .88338       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5900E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6402.701     FROM MIGRAD    STATUS=CONVERGED    165 CALLS     3007 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.140        3.5520       -.11072E-05   -.25885E-02
   2  Prefactor     8.9180        8.2178        .15160E-04   -.28045E-02
   3  Prefactor     1.7505        1.9057        .64027E-06    .16064E-04
   4  Prefactor     .10000E-03    50.602        .17810E-05** at limit **
   5  norm          2.7803        1.3948        .30544E-06   -.16140E-02
   6  Prefactor     3.9945        4.6658       -.48018E-06    .24559E-03
   7  Prefactor     .10106E-03    6330.3        .16509E-03** at limit **
   8  Prefactor     .10000E-03    24.323        .14356E-05** at limit **
   9  Prefactor     .10000E-03    1.1561       -.63462E-07** at limit **
  10  norm          14.564        4.7793       -.11738E-06   -.13049E-02
  11  Prefactor     .10000E-03    2.0876        .17459E-06** at limit **
  12  Prefactor     1.6993        2.6158        .14321E-06   -.44489E-03
  13  Prefactor     2.9100        3.0215       -.86752E-06   -.53336E-03
  14  Prefactor     5.0378        7.7465        .14338E-05    .35155E-03
  15  norm          .50672        .29663        .27642E-06   -.12840E-04
  16  norm          16.570        6.7460       -.10365E-05   -.20221E-03
  17  Prefactor     8.3710        9.3881        .21722E-04    .23241E-02
  18  Prefactor     .10001E-03    31.250       -.11735E-05** at limit **
  19  Prefactor     24.468        2.6180       -.25017E-05    .67664E-03
  20  Prefactor     .10000E-03    1.6692       -.10032E-08** at limit **
  21  norm          34.663        8.6801        .30575E-05   -.68573E-03
  22  Prefactor     .10001E-03    85.477       -.93286E-05** at limit **
  23  norm          2.6096        3.1870       -.62663E-06   -.26783E-04
  24  norm          .10000E-03    2.6957        .37917E-06** at limit **
  25  norm          .10000E-03    2.6774       -.50264E-07** at limit **
  26  norm          37.337        31.611        .32171E-04   -.73743E-03
  27  Normalizat    1.0295        .22352       -.88489E-05   -.11406E-02
  28  Prefactor     .88364        .22740       -.39716E-05   -.74364E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.1401
  Prefactor  = 8.91796
  Prefactor  = 1.75054
  Prefactor  = 0.000100001
  norm       = 2.78034
  Prefactor  = 3.99455
  Prefactor  = 0.000101056
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 14.5639
  Prefactor  = 0.0001
  Prefactor  = 1.69931
  Prefactor  = 2.90998
  Prefactor  = 5.03782
  norm       = 0.506719
  norm       = 16.5701
  Prefactor  = 8.37096
  Prefactor  = 0.000100007
  Prefactor  = 24.468
  Prefactor  = 0.0001
  norm       = 34.6628
  Prefactor  = 0.000100005
  norm       = 2.60959
  norm       = 0.0001
  norm       = 0.0001
  norm       = 37.3373
  Normalizat = 1.02954
  Prefactor  = 0.88364
 **********
 **   18 **HESSE 
 **********

 FCN=   6402.701     FROM HESSE     STATUS=OK           599 CALLS     3606 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.140        20.019        .28703E-02   -1.5011    
   2  Prefactor     8.9180        13.082        .33582E-02   -1.5111    
   3  Prefactor     1.7505        1.9702        .79237E-02   -1.5443    
   4  Prefactor     .10000E-03    50.354        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.7803        1.4068        .61017E-02   -1.5374    
   6  Prefactor     3.9945        4.8514        .50470E-02   -1.5308    
   7  Prefactor     .10106E-03    24.138        .12612       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.3010        .58394E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.1485        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          14.564        4.7906        .26239E-02   -1.4945    
  11  Prefactor     .10000E-03    2.0855        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.6993        2.6535        .80682E-02   -1.5447    
  13  Prefactor     2.9100        3.0686        .59548E-02   -1.5367    
  14  Prefactor     5.0378        7.7950        .44798E-02   -1.5259    
  15  norm          .50672        .30525        .69965E-02   -1.5566    
  16  norm          16.570        6.7906        .24596E-02   -1.4894    
  17  Prefactor     8.3710        11.748        .34622E-02   -1.5129    
  18  Prefactor     .10001E-03    31.257        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     24.468        64.162        .20250E-02   -1.4718    
  20  Prefactor     .10000E-03    1.6684        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          34.663        8.9427        .17015E-02   -1.4530    
  22  Prefactor     .10001E-03    87.098        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          2.6096        3.2020        .63119E-02   -1.5385    
  24  norm          .10000E-03    2.6523        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    2.6716        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          37.337        32.066        .16390E-02   -1.4485    
  27  Normalizat    1.0295        .19157        .60712E-01   -.92047    
  28  Prefactor     .88364        .19325        .68653E-01   -.96715    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05768e-07
Minuit parameter uncertainties:
  1  20.0301
  2  13.0866
  3  1.97026
  4  0.00051786
  5  1.40687
  6  4.85191
  7  0.010103
  8  2.78653e-05
  9  5.61152e-06
  10  4.79068
  11  2.03654e-06
  12  2.65371
  13  3.0688
  14  7.79654
  15  0.305249
  16  6.79092
  17  11.7515
  18  0.000962296
  19  64.3434
  20  2.19034e-06
  21  8.94305
  22  0.00132623
  23  3.20216
  24  1.20213e-06
  25  4.29543e-06
  26  32.081
  27  0.191703
  28  0.193403
Done.

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

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  1.657e+01  6.791e+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:  8.836e-01  1.934e-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.030e+00  1.917e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 24.92
Ra Dec: 187.560 25.298
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 9.74e-08 +/- 3.99e-08
Energy Flux (Fixed Index): 5.79e-05 +/- 2.37e-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) = 6402.67311242
delta logL = 0.0277435490761

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6402.67271487
delta logL = 0.028141098911

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    16.570       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9229       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0373       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87930       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=   6402.673     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      206 TOTAL
                     EDM=   .11E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          16.510        7.1453        .24598E-02    .51625E-05
   2  alpha         1.9226        .34092        .23336       -.50595E-05
   3  Normalizat    1.0374        .18244        .60522E-01    .12754E-04
   4  Prefactor     .87935        .19167        .68811E-01    .16801E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 16.5101
  alpha      = 1.92265
  Normalizat = 1.03736
  Prefactor  = 0.879355
 **********
 **   18 **HESSE 
 **********

 FCN=   6402.673     FROM HESSE     STATUS=OK            33 CALLS      239 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          16.510        6.4020        .98392E-04   -1.4895    
   2  alpha         1.9226        .32693        .95856E-02   -.23305    
   3  Normalizat    1.0374        .21501        .26766E-03   -.91789    
   4  Prefactor     .87935        .22582        .30442E-03   -.96866    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12841e-11
Minuit parameter uncertainties:
  1  6.40231
  2  0.327924
  3  0.215187
  4  0.226058
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/741811': 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) = 6402.67267147
delta logL = 0.028184490493

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  1.651e+01  6.402e+00  1.000e-04  1.000e+04 ( 1.000e-12)
326        alpha:  1.923e+00  3.279e-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:  8.794e-01  2.261e-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.037e+00  2.152e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 25.00
Ra Dec: 187.560 25.298
Photon Index (Free Index): 1.92 +/- 0.33
Photon Flux (Free Index): 8.94e-08 +/- 4.72e-08
Energy Flux (Free Index): 6.24e-05 +/- 3.20e-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/741811/cmap_HighResolution_481420801_481680001_4FGL_J1230.2+2517_daily_bin934.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.74e-08', energy_flux2='6.24e-05', photon_flux_error='3.99e-08', dlogl='2.82e-02', energy_flux='5.79e-05', photon_flux2='8.94e-08', job_status='DONE', time_completed='2021-09-05 21:05:40.672823', photon_index_error2='0.33', photon_index2='1.92', ts='24.92', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', energy_flux_error2='3.20e-05', EG='1.03', time_epoch_completed='1630901140.67', return_code='0', job_id='741811', GAL2='0.88', EG2='1.04', return_code2='0', energy_flux_error='2.37e-05', photon_flux_error2='4.72e-08', ts2='25.00', photon_index='2.00' WHERE bin_id='934' AND source_name='4FGL J1230.2+2517' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 21:05:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0269>
Subject: Job 741811: <4FGL_J1230.2+2517_daily_bin934> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.2+2517_daily_bin934 187.56 25.2983 481420801 481680001 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 :                                   688.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             273.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   905 sec.
    Turnaround time :                            912 sec.

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

