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


Performing analysis on: 4FGL_J1230.2+2517_daily_bin924
RA = 187.56, Dec = 25.2983
tmin = 478828801, tmax = 479088001
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='741796', job_status='RUN', time_executed='2021-09-05 20:50:47.640667', time_epoch_executed='1630900247.64' WHERE source_name='4FGL J1230.2+2517' and cadence='daily' and bin_id='924'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/741796

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/741796/ft1_4FGL_J1230.2+2517_daily_bin924.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/741796/ft2_4FGL_J1230.2+2517_daily_bin924.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/741796/ft1_4FGL_J1230.2+2517_daily_bin924.fits outfile=/scratch/kocevski/741796/ft1_filteredMKT_4FGL_J1230.2+2517_daily_bin924.fits ra=187.56 dec=25.2983 rad=12.0 tmin=478828801.0 tmax=479088001.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.55
user 3.26
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/741796/ft1_filtered_4FGL_J1230.2+2517_daily_bin924.fits" evtable="EVENTS" scfile=/scratch/kocevski/741796/ft2_4FGL_J1230.2+2517_daily_bin924.fits sctable="SC_DATA" outfile=/scratch/kocevski/741796/ltcube_478828801_479088001_4FGL_J1230.2+2517_daily_bin924.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/741796/ft2_4FGL_J1230.2+2517_daily_bin924.fits
.....................!
real 16.18
user 15.77
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/741796/ft1_filtered_4FGL_J1230.2+2517_daily_bin924.fits evtable="EVENTS" scfile=/scratch/kocevski/741796/ft2_4FGL_J1230.2+2517_daily_bin924.fits sctable="SC_DATA" expcube=/scratch/kocevski/741796/ltcube_478828801_479088001_4FGL_J1230.2+2517_daily_bin924.fits outfile=/scratch/kocevski/741796/expmap_478828801_479088001_4FGL_J1230.2+2517_daily_bin924.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/741796/ltcube_478828801_479088001_4FGL_J1230.2+2517_daily_bin924.fits
.....................!
real 195.11
user 189.23
sys 4.88

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/741796/ft1_filtered_4FGL_J1230.2+2517_daily_bin924.fits scfile=/scratch/kocevski/741796/ft2_4FGL_J1230.2+2517_daily_bin924.fits outfile=/scratch/kocevski/741796/cmap_478828801_479088001_4FGL_J1230.2+2517_daily_bin924.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/741796/ft1_filtered_4FGL_J1230.2+2517_daily_bin924.fits scfile=/scratch/kocevski/741796/ft2_4FGL_J1230.2+2517_daily_bin924.fits outfile=/scratch/kocevski/741796/cmap_HighResolution_478828801_479088001_4FGL_J1230.2+2517_daily_bin924.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.42
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.0868       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .26528       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .14331E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    10.408       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10599E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .29469E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .92095E-01   1.0000         .10000E-03   10000.    
    10 'norm      '    18.521       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.2914       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.8300       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.6587       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .15223       1.0000         .10000E-03   10000.    
    16 'norm      '    5.6568       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.8071       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .33520E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.4912       1.0000         .10000E-03   10000.    
    21 'norm      '    3.1570       1.0000         .10000E-03   10000.    
    22 'Prefactor '    24.616       1.0000         .10000E-03   10000.    
    23 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10474E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10056E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.0601       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .81691       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=   5817.058     FROM MIGRAD    STATUS=CONVERGED    735 CALLS     3628 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.0865        8.7284        .15011E-06   -.25668E-03
   2  Prefactor     .10000E-03    17.178        .46147E-06** at limit **
   3  Prefactor     .26525        1.1825        .93674E-07   -.29746E-03
   4  Prefactor     .10000E-03    46.806       -.61663E-08** at limit **
   5  norm          10.409        1.9806        .25002E-07   -.77300E-04
   6  Prefactor     .10000E-03    1.8979        .82720E-08** at limit **
   7  Prefactor     .10000E-03    11.917       -.53246E-06** at limit **
   8  Prefactor     .10011E-03    1.3276        .76872E-06** at limit **
   9  Prefactor     .89346E-01    1.3946       -.12184E-07   -.26000E-03
  10  norm          18.523        5.1697        .21846E-06    .93673E-04
  11  Prefactor     2.2954        7.0336        .10225E-06   -.11418E-03
  12  Prefactor     1.8310        2.6515       -.15234E-06   -.13558E-03
  13  Prefactor     3.6587        2.4037       -.43150E-07   -.71691E-04
  14  Prefactor     .10000E-03    2.0306        .24579E-08** at limit **
  15  norm          .15233        .21381        .39982E-07   -.91967E-03
  16  norm          5.6579        3.9944        .34045E-08   -.52285E-04
  17  Prefactor     2.8089        3.4301        .10405E-05   -.19412E-02
  18  Prefactor     .10000E-03    247.16       -.21077E-04** at limit **
  19  Prefactor     .10000E-03    24.888       -.29267E-06** at limit **
  20  Prefactor     9.4945        7.9830        .25517E-06   -.10225E-04
  21  norm          3.1575        4.1586       -.99940E-06    .21843E-04
  22  Prefactor     24.571        26.723        .79447E-05    .36097E-03
  23  norm          .10000E-03    1.5477        .18983E-07** at limit **
  24  norm          .10001E-03    1.8989       -.73040E-06** at limit **
  25  norm          .10000E-03    2.9071       -.63905E-07** at limit **
  26  norm          .10000E-03    7.9977       -.57793E-06** at limit **
  27  Normalizat    1.0597        .18093       -.13056E-05    .30254E-04
  28  Prefactor     .81693        .19044        .17457E-06   -.10206E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.08649
  Prefactor  = 0.0001
  Prefactor  = 0.265254
  Prefactor  = 0.0001
  norm       = 10.4088
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100113
  Prefactor  = 0.0893461
  norm       = 18.5228
  Prefactor  = 2.29538
  Prefactor  = 1.83103
  Prefactor  = 3.65868
  Prefactor  = 0.0001
  norm       = 0.152332
  norm       = 5.65786
  Prefactor  = 2.80889
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.49454
  norm       = 3.15745
  Prefactor  = 24.5714
  norm       = 0.0001
  norm       = 0.000100006
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 1.05968
  Prefactor  = 0.816932
 **********
 **   18 **HESSE 
 **********

 FCN=   5817.058     FROM HESSE     STATUS=OK           529 CALLS     4157 TOTAL
                     EDM=   .36E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.0865        8.7372        .81367E-03   -1.5215    
   2  Prefactor     .10000E-03    17.479        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .26525        2.1326        .15630E-02   -1.5605    
   4  Prefactor     .10000E-03    47.649        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          10.409        1.9819        .44537E-04   -1.5063    
   6  Prefactor     .10000E-03    1.9325        .10251E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    11.941        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10011E-03    13.382        .16064E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .89346E-01    9.2034        .16824E-02   -1.5648    
  10  norm          18.523        5.1542        .79081E-04   -1.4847    
  11  Prefactor     2.2954        7.0368        .27117E-03   -1.5405    
  12  Prefactor     1.8310        2.6166        .13183E-03   -1.5437    
  13  Prefactor     3.6587        2.4013        .89596E-04   -1.5325    
  14  Prefactor     .10000E-03    2.0375        .10610E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .15233        .20017        .38790E-03   -1.5630    
  16  norm          5.6579        3.9914        .12332E-03   -1.5232    
  17  Prefactor     2.8089        6.4160        .12140E-02   -1.5373    
  18  Prefactor     .10000E-03    251.10        .39410E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    24.902        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     9.4945        7.9802        .13008E-03   -1.5092    
  21  norm          3.1575        4.1359        .16344E-03   -1.5353    
  22  Prefactor     24.571        27.139        .80738E-04   -1.4716    
  23  norm          .10000E-03    1.5685        .92634E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10001E-03    7.4427        .20059E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    2.9167        .12694E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    8.0061        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.0597        .20817        .23460E-03   -.91057    
  28  Prefactor     .81693        .22189        .29236E-03   -.99107    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.59262e-08
Minuit parameter uncertainties:
  1  8.73904
  2  2.68591e-05
  3  1.50402
  4  5.54616e-05
  5  1.98187
  6  1.80169e-07
  7  9.23712e-06
  8  0.0024612
  9  1.81287
  10  5.1543
  11  7.03931
  12  2.61678
  13  2.40131
  14  9.16317e-07
  15  0.200175
  16  3.99159
  17  6.41761
  18  0.000507842
  19  1.85025e-05
  20  7.98105
  21  4.13624
  22  27.1528
  23  1.44977e-06
  24  0.000419717
  25  1.67161e-05
  26  1.00095e-05
  27  0.208335
  28  0.222133
Done.

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

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  5.658e+00  3.992e+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.169e-01  2.221e-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.060e+00  2.083e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.77
Ra Dec: 187.560 25.298
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 3.32e-08 +/- 2.34e-08
Energy Flux (Fixed Index): 1.98e-05 +/- 1.39e-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) = 5817.05759612
delta logL = 0.00034764018983

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5817.05756175
delta logL = 0.000382016718504

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.6400       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9848       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0605       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81647       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=   5817.058     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      223 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.6096        134.13        .42288E-02    .66972E-04
   2  alpha         1.9784        2.6673        .42314       -.25255E-06
   3  Normalizat    1.0609        .16229        .39902E-01    .11686E-04
   4  Prefactor     .81634        .11611        .66113E-01    .18293E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.60961
  alpha      = 1.97841
  Normalizat = 1.06091
  Prefactor  = 0.816344
 **********
 **   18 **HESSE 
 **********

 FCN=   5817.058     FROM HESSE     STATUS=OK            33 CALLS      256 TOTAL
                     EDM=   .58E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.6096        4.2911        .12411E-03   -1.5234    
   2  alpha         1.9784        .75392        .15089E-01   -.21018    
   3  Normalizat    1.0609        .20229        .23449E-03   -.91017    
   4  Prefactor     .81634        .22037        .29246E-03   -.99129    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.78667e-13
Minuit parameter uncertainties:
  1  4.29135
  2  0.766413
  3  0.202435
  4  0.220612
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/741796': 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) = 5817.05751999
delta logL = 0.000423772549766

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  5.610e+00  4.291e+00  1.000e-04  1.000e+04 ( 1.000e-12)
326        alpha:  1.978e+00  7.664e-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.163e-01  2.206e-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.061e+00  2.024e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.76
Ra Dec: 187.560 25.298
Photon Index (Free Index): 1.98 +/- 0.77
Photon Flux (Free Index): 3.22e-08 +/- 4.19e-08
Energy Flux (Free Index): 2.00e-05 +/- 1.67e-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/741796/cmap_HighResolution_478828801_479088001_4FGL_J1230.2+2517_daily_bin924.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.32e-08', energy_flux2='2.00e-05', photon_flux_error='2.34e-08', dlogl='4.24e-04', energy_flux='1.98e-05', photon_flux2='3.22e-08', job_status='DONE', time_completed='2021-09-05 21:02:53.561778', photon_index_error2='0.77', photon_index2='1.98', ts='10.77', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', energy_flux_error2='1.67e-05', EG='1.06', time_epoch_completed='1630900973.56', return_code='0', job_id='741796', GAL2='0.82', EG2='1.06', return_code2='0', energy_flux_error='1.39e-05', photon_flux_error2='4.19e-08', ts2='10.76', photon_index='2.00' WHERE bin_id='924' AND source_name='4FGL J1230.2+2517' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 21:02:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 741796: <4FGL_J1230.2+2517_daily_bin924> in cluster <slac> Done

Job <4FGL_J1230.2+2517_daily_bin924> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 20:50:26 2021
Job was executed on host(s) <bullet0091>, 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:02:54 2021
Results reported at Sun Sep  5 21:02:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.2+2517_daily_bin924 187.56 25.2983 478828801 479088001 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 :                                   720.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             313.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   741 sec.
    Turnaround time :                            748 sec.

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

