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


Performing analysis on: 4FGL_J1230.2+2517_daily_bin929
RA = 187.56, Dec = 25.2983
tmin = 480124801, tmax = 480384001
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='741803', job_status='RUN', time_executed='2021-09-05 20:54:15.992077', time_epoch_executed='1630900455.99' WHERE source_name='4FGL J1230.2+2517' and cadence='daily' and bin_id='929'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/741803

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/741803/ft1_4FGL_J1230.2+2517_daily_bin929.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/741803/ft2_4FGL_J1230.2+2517_daily_bin929.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/741803/ft1_4FGL_J1230.2+2517_daily_bin929.fits outfile=/scratch/kocevski/741803/ft1_filteredMKT_4FGL_J1230.2+2517_daily_bin929.fits ra=187.56 dec=25.2983 rad=12.0 tmin=480124801.0 tmax=480384001.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.58
user 3.32
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/741803/ft1_filtered_4FGL_J1230.2+2517_daily_bin929.fits" evtable="EVENTS" scfile=/scratch/kocevski/741803/ft2_4FGL_J1230.2+2517_daily_bin929.fits sctable="SC_DATA" outfile=/scratch/kocevski/741803/ltcube_480124801_480384001_4FGL_J1230.2+2517_daily_bin929.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/741803/ft2_4FGL_J1230.2+2517_daily_bin929.fits
.....................!
real 17.13
user 16.78
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/741803/ft1_filtered_4FGL_J1230.2+2517_daily_bin929.fits evtable="EVENTS" scfile=/scratch/kocevski/741803/ft2_4FGL_J1230.2+2517_daily_bin929.fits sctable="SC_DATA" expcube=/scratch/kocevski/741803/ltcube_480124801_480384001_4FGL_J1230.2+2517_daily_bin929.fits outfile=/scratch/kocevski/741803/expmap_480124801_480384001_4FGL_J1230.2+2517_daily_bin929.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/741803/ltcube_480124801_480384001_4FGL_J1230.2+2517_daily_bin929.fits
.....................!
real 194.53
user 188.90
sys 5.21

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/741803/ft1_filtered_4FGL_J1230.2+2517_daily_bin929.fits scfile=/scratch/kocevski/741803/ft2_4FGL_J1230.2+2517_daily_bin929.fits outfile=/scratch/kocevski/741803/cmap_480124801_480384001_4FGL_J1230.2+2517_daily_bin929.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/741803/ft1_filtered_4FGL_J1230.2+2517_daily_bin929.fits scfile=/scratch/kocevski/741803/ft2_4FGL_J1230.2+2517_daily_bin929.fits outfile=/scratch/kocevski/741803/cmap_HighResolution_480124801_480384001_4FGL_J1230.2+2517_daily_bin929.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.58
user 0.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.159       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    21.642       1.0000         .10000E-03   10000.    
     5 'norm      '    3.2903       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10232E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10128E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.5329       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.0904       1.0000         .10000E-03   10000.    
    10 'norm      '    11.235       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .13799E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .67855       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.2475       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.3509       1.0000         .10000E-03   10000.    
    15 'norm      '    .57739       1.0000         .10000E-03   10000.    
    16 'norm      '    6.3823       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.2310       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.8481       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .89970       1.0000         .10000E-03   10000.    
    21 'norm      '    2.4988       1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.8830       1.0000         .10000E-03   10000.    
    23 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    4.9703       1.0000         .10000E-03   10000.    
    25 'norm      '    10.514       1.0000         .10000E-03   10000.    
    26 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .54696       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.2524       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=   5274.959     FROM MIGRAD    STATUS=CONVERGED    706 CALLS     3543 TOTAL
                     EDM=   .91E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.6198       -.34872E-06** at limit **
   2  Prefactor     11.160        9.6970        .13844E-06    .45337E-04
   3  Prefactor     .10000E-03    .90811        .47317E-07** at limit **
   4  Prefactor     21.635        24.435       -.43436E-05   -.15265E-05
   5  norm          3.2901        1.2811        .57073E-07    .31503E-04
   6  Prefactor     .10000E-03    2.2786       -.36961E-06** at limit **
   7  Prefactor     .10000E-03    16.354       -.26069E-06** at limit **
   8  Prefactor     4.5340        4.0859        .11278E-05   -.68243E-04
   9  Prefactor     4.0897        4.1511       -.14072E-05   -.26618E-03
  10  norm          11.236        5.2664       -.10814E-05   -.24605E-03
  11  Prefactor     .10006E-03    5.3087       -.39281E-06** at limit **
  12  Prefactor     .67768        3.9513        .10071E-05   -.10140E-02
  13  Prefactor     4.2475        2.4435        .18007E-07   -.14328E-03
  14  Prefactor     3.3509        3.3999        .90958E-06    .14561E-03
  15  norm          .57735        .26322       -.24800E-07   -.64214E-04
  16  norm          6.3819        4.3852        .17788E-06   -.60836E-04
  17  Prefactor     5.2308        6.5357       -.12127E-06   -.65048E-04
  18  Prefactor     2.8476        48.900       -.26904E-05   -.36106E-04
  19  Prefactor     .10000E-03    30.665       -.81506E-05** at limit **
  20  Prefactor     .89642        5.2176       -.10062E-05   -.51292E-04
  21  norm          2.4990        3.1717        .67513E-06   -.47769E-04
  22  Prefactor     8.8805        21.060       -.89159E-06   -.16008E-04
  23  norm          .10000E-03    2.6833        .31819E-07** at limit **
  24  norm          4.9646        7.7381       -.14336E-05   -.30382E-03
  25  norm          10.525        14.340        .19319E-06   -.12275E-03
  26  norm          .10000E-03    34.735        .11630E-04** at limit **
  27  Normalizat    .54724        .18501        .16187E-05    .77784E-04
  28  Prefactor     1.2522        .20380       -.17485E-06    .16911E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 11.1603
  Prefactor  = 0.0001
  Prefactor  = 21.6352
  norm       = 3.29012
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 4.53404
  Prefactor  = 4.08969
  norm       = 11.2362
  Prefactor  = 0.00010006
  Prefactor  = 0.677678
  Prefactor  = 4.24747
  Prefactor  = 3.35088
  norm       = 0.577347
  norm       = 6.3819
  Prefactor  = 5.23084
  Prefactor  = 2.84764
  Prefactor  = 0.0001
  Prefactor  = 0.896424
  norm       = 2.49898
  Prefactor  = 8.88053
  norm       = 0.0001
  norm       = 4.96456
  norm       = 10.5247
  norm       = 0.0001
  Normalizat = 0.547241
  Prefactor  = 1.25221
 **********
 **   18 **HESSE 
 **********

 FCN=   5274.959     FROM HESSE     STATUS=OK           537 CALLS     4080 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.6437        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     11.160        9.6573        .11993E-03   -1.5040    
   3  Prefactor     .10000E-03    .94010        .13496E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     21.635        24.476        .86099E-04   -1.4777    
   5  norm          3.2901        1.2796        .49053E-04   -1.5345    
   6  Prefactor     .10000E-03    11.162        .20445E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    16.387        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.5340        3.9759        .11280E-03   -1.5282    
   9  Prefactor     4.0897        4.1400        .12458E-03   -1.5303    
  10  norm          11.236        4.7696        .83310E-04   -1.5037    
  11  Prefactor     .10006E-03    51.753        .32266E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .67768        3.4250        .21522E-03   -1.5543    
  13  Prefactor     4.2475        2.4325        .80192E-04   -1.5296    
  14  Prefactor     3.3509        3.4097        .13086E-03   -1.5342    
  15  norm          .57735        .25979        .23833E-04   -1.5556    
  16  norm          6.3819        4.3772        .12079E-03   -1.5203    
  17  Prefactor     5.2308        6.5275        .17575E-03   -1.5251    
  18  Prefactor     2.8476        49.277        .24092E-03   -1.5370    
  19  Prefactor     .10000E-03    30.505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .89642        20.162        .30681E-02   -1.5519    
  21  norm          2.4990        3.1474        .13632E-03   -1.5392    
  22  Prefactor     8.8805        20.954        .13448E-03   -1.5112    
  23  norm          .10000E-03    2.7296        .11603E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          4.9646        8.1511        .14402E-03   -1.5262    
  25  norm          10.525        15.067        .12356E-03   -1.5059    
  26  norm          .10000E-03    34.386        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .54724        .21375        .29794E-03   -1.1027    
  28  Prefactor     1.2522        .24043        .23704E-03   -.84739    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.41883e-08
Minuit parameter uncertainties:
  1  3.60062e-06
  2  9.65862
  3  2.63059e-06
  4  24.4878
  5  1.27963
  6  0.000214834
  7  5.53805e-05
  8  3.97614
  9  4.14028
  10  4.76977
  11  0.00353697
  12  3.04703
  13  2.43256
  14  3.40994
  15  0.259787
  16  4.37745
  17  6.52838
  18  23.7141
  19  2.17374e-06
  20  8.50547
  21  3.14763
  22  20.9709
  23  2.72267e-06
  24  8.15294
  25  15.0721
  26  6.46366e-05
  27  0.21407
  28  0.240638
Done.

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

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  6.382e+00  4.377e+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.252e+00  2.406e-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:  5.472e-01  2.141e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.17
Ra Dec: 187.560 25.298
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 3.75e-08 +/- 2.57e-08
Energy Flux (Fixed Index): 2.23e-05 +/- 1.53e-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) = 5274.57824108
delta logL = 0.380616485081

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5274.56767613
delta logL = 0.391181433713

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.2551       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5016       1.0000          .0000       5.0000    
     3 'Normalizat'    .52352       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2677       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=   5274.568     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      275 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.2554        4.2389        .99468E-04   -.13734E-02
   2  alpha         2.5016        .60677        .11481E-01   -.12761E-03
   3  Normalizat    .52364        .20532        .30412E-03    .11241E-03
   4  Prefactor     1.2677        .23782        .23570E-03    .19112E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.25541
  alpha      = 2.50158
  Normalizat = 0.523643
  Prefactor  = 1.26766
 **********
 **   18 **HESSE 
 **********

 FCN=   5274.568     FROM HESSE     STATUS=OK            23 CALLS      298 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.2554        4.0992        .39787E-05   -1.5249    
   2  alpha         2.5016        .58673        .45924E-03    .63339E-03
   3  Normalizat    .52364        .20533        .12165E-04   -1.1133    
   4  Prefactor     1.2677        .23787        .47140E-04   -.84274    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.46719e-10
Minuit parameter uncertainties:
  1  4.09947
  2  0.592256
  3  0.205632
  4  0.238078
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/741803': 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) = 5274.5676755
delta logL = 0.391182060014

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  5.255e+00  4.099e+00  1.000e-04  1.000e+04 ( 1.000e-12)
326        alpha:  2.502e+00  5.923e-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.268e+00  2.381e-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:  5.236e-01  2.056e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.96
Ra Dec: 187.560 25.298
Photon Index (Free Index): 2.50 +/- 0.59
Photon Flux (Free Index): 5.77e-08 +/- 4.13e-08
Energy Flux (Free Index): 1.69e-05 +/- 1.12e-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/741803/cmap_HighResolution_480124801_480384001_4FGL_J1230.2+2517_daily_bin929.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.75e-08', energy_flux2='1.69e-05', photon_flux_error='2.57e-08', dlogl='3.91e-01', energy_flux='2.23e-05', photon_flux2='5.77e-08', job_status='DONE', time_completed='2021-09-05 21:05:37.201171', photon_index_error2='0.59', photon_index2='2.50', ts='4.17', fit_tolerance='1e-08', GAL='1.25', photon_index_error='0.00', energy_flux_error2='1.12e-05', EG='0.55', time_epoch_completed='1630901137.2', return_code='0', job_id='741803', GAL2='1.27', EG2='0.52', return_code2='0', energy_flux_error='1.53e-05', photon_flux_error2='4.13e-08', ts2='4.96', photon_index='2.00' WHERE bin_id='929' AND source_name='4FGL J1230.2+2517' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 21:05:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0187>
Subject: Job 741803: <4FGL_J1230.2+2517_daily_bin929> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.2+2517_daily_bin929 187.56 25.2983 480124801 480384001 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 :                                   675.05 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             278.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   904 sec.
    Turnaround time :                            910 sec.

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

