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


Performing analysis on: 4FGL_J1230.2+2517_daily_bin990
RA = 187.56, Dec = 25.2983
tmin = 495936001, tmax = 496195201
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='741899', job_status='RUN', time_executed='2021-09-05 20:53:59.516503', time_epoch_executed='1630900439.52' WHERE source_name='4FGL J1230.2+2517' and cadence='daily' and bin_id='990'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/741899

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/741899/ft1_4FGL_J1230.2+2517_daily_bin990.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/741899/ft2_4FGL_J1230.2+2517_daily_bin990.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/741899/ft1_4FGL_J1230.2+2517_daily_bin990.fits outfile=/scratch/kocevski/741899/ft1_filteredMKT_4FGL_J1230.2+2517_daily_bin990.fits ra=187.56 dec=25.2983 rad=12.0 tmin=495936001.0 tmax=496195201.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.52
user 3.31
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/741899/ft1_filtered_4FGL_J1230.2+2517_daily_bin990.fits evtable="EVENTS" scfile=/scratch/kocevski/741899/ft2_4FGL_J1230.2+2517_daily_bin990.fits sctable="SC_DATA" expcube=/scratch/kocevski/741899/ltcube_495936001_496195201_4FGL_J1230.2+2517_daily_bin990.fits outfile=/scratch/kocevski/741899/expmap_495936001_496195201_4FGL_J1230.2+2517_daily_bin990.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/741899/ltcube_495936001_496195201_4FGL_J1230.2+2517_daily_bin990.fits
.....................!
real 192.73
user 188.08
sys 4.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/741899/ft1_filtered_4FGL_J1230.2+2517_daily_bin990.fits scfile=/scratch/kocevski/741899/ft2_4FGL_J1230.2+2517_daily_bin990.fits outfile=/scratch/kocevski/741899/cmap_495936001_496195201_4FGL_J1230.2+2517_daily_bin990.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/741899/ft1_filtered_4FGL_J1230.2+2517_daily_bin990.fits scfile=/scratch/kocevski/741899/ft2_4FGL_J1230.2+2517_daily_bin990.fits outfile=/scratch/kocevski/741899/cmap_HighResolution_495936001_496195201_4FGL_J1230.2+2517_daily_bin990.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.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.999       1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.152       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    21.718       1.0000         .10000E-03   10000.    
     5 'norm      '    .75577       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.0702       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.8526       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    8.8682       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.5467       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.8663       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.1108       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.1859       1.0000         .10000E-03   10000.    
    15 'norm      '    .77362       1.0000         .10000E-03   10000.    
    16 'norm      '    10.908       1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.135       1.0000         .10000E-03   10000.    
    18 'Prefactor '    17.777       1.0000         .10000E-03   10000.    
    19 'Prefactor '    18.523       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .63909E-02   1.0000         .10000E-03   10000.    
    21 'norm      '    11.139       1.0000         .10000E-03   10000.    
    22 'Prefactor '    14.631       1.0000         .10000E-03   10000.    
    23 'norm      '    .24569E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10538E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.1399       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.2181       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=   6897.071     FROM MIGRAD    STATUS=CONVERGED    700 CALLS     3617 TOTAL
                     EDM=   .46E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.987        24.201       -.11313E-05   -.73410E-05
   2  Prefactor     11.154        13.942        .43232E-06   -.24798E-04
   3  Prefactor     .10000E-03    1.1899       -.16816E-07** at limit **
   4  Prefactor     21.724        29.052        .12676E-05   -.32351E-05
   5  norm          .75572        1.1248       -.97922E-07   -.87956E-03
   6  Prefactor     6.0672        5.7314        .45166E-06   -.37441E-03
   7  Prefactor     .10000E-03    8.7516       -.40360E-06** at limit **
   8  Prefactor     3.8529        3.1476        .21224E-06   -.22326E-03
   9  Prefactor     .10000E-03    1.8800        .28915E-06** at limit **
  10  norm          8.8678        3.9485       -.15753E-06   -.83476E-04
  11  Prefactor     5.5470        7.2208       -.78726E-06   -.15774E-03
  12  Prefactor     3.8661        2.4664       -.81964E-07   -.15815E-04
  13  Prefactor     3.1107        2.1120       -.14107E-06   -.36771E-04
  14  Prefactor     3.1853        5.3058        .89587E-06   -.35119E-03
  15  norm          .77364        .32642        .84609E-07   -.17818E-03
  16  norm          10.908        5.7277        .23315E-06   -.85055E-04
  17  Prefactor     11.135        10.712       -.32265E-07   -.69519E-04
  18  Prefactor     17.721        42.551       -.72058E-04   -.38083E-05
  19  Prefactor     18.606        103.10        .16797E-03    .12960E-04
  20  Prefactor     .10099E-03    5.1906        .98186E-06** at limit **
  21  norm          11.138        6.4260       -.49134E-05   -.23741E-03
  22  Prefactor     14.631        20.352       -.97546E-06   -.45777E-04
  23  norm          .10000E-03    1.5744       -.89059E-08** at limit **
  24  norm          .10000E-03    1.2017       -.92323E-07** at limit **
  25  norm          .10000E-03    1.6824        .59463E-07** at limit **
  26  norm          .10000E-03    38.632       -.10835E-05** at limit **
  27  Normalizat    1.1397        .20213       -.14256E-05   -.65812E-04
  28  Prefactor     1.2185        .20759        .88124E-06   -.20319E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.9874
  Prefactor  = 11.1545
  Prefactor  = 0.0001
  Prefactor  = 21.7238
  norm       = 0.755721
  Prefactor  = 6.06716
  Prefactor  = 0.0001
  Prefactor  = 3.85289
  Prefactor  = 0.0001
  norm       = 8.86777
  Prefactor  = 5.547
  Prefactor  = 3.86613
  Prefactor  = 3.11072
  Prefactor  = 3.18527
  norm       = 0.773642
  norm       = 10.9076
  Prefactor  = 11.1354
  Prefactor  = 17.7211
  Prefactor  = 18.6064
  Prefactor  = 0.000100993
  norm       = 11.1376
  Prefactor  = 14.6306
  norm       = 0.000100001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 1.13974
  Prefactor  = 1.21845
 **********
 **   18 **HESSE 
 **********

 FCN=   6897.071     FROM HESSE     STATUS=OK           545 CALLS     4162 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.987        24.141        .77099E-04   -1.4669    
   2  Prefactor     11.154        13.929        .11997E-03   -1.5040    
   3  Prefactor     .10000E-03    1.2192        .17639E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     21.724        29.023        .85948E-04   -1.4775    
   5  norm          .75572        .96593        .10100E-02   -1.5534    
   6  Prefactor     6.0672        5.7086        .16296E-03   -1.5215    
   7  Prefactor     .10000E-03    8.7542        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.8529        3.1307        .12408E-03   -1.5315    
   9  Prefactor     .10000E-03    1.9078        .11100E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          8.8678        3.9457        .10176E-03   -1.5112    
  11  Prefactor     5.5470        7.2204        .17059E-03   -1.5237    
  12  Prefactor     3.8661        2.4685        .97541E-04   -1.5315    
  13  Prefactor     3.1107        2.1116        .94694E-04   -1.5355    
  14  Prefactor     3.1853        5.2799        .22703E-03   -1.5351    
  15  norm          .77364        .32282        .28806E-04   -1.5532    
  16  norm          10.908        5.7204        .12131E-03   -1.5047    
  17  Prefactor     11.135        10.708        .12006E-03   -1.5040    
  18  Prefactor     17.721        42.632        .94993E-04   -1.4866    
  19  Prefactor     18.606        102.86        .93060E-04   -1.4845    
  20  Prefactor     .10099E-03    6.1713        .60197E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          11.138        6.4265        .12004E-03   -1.5040    
  22  Prefactor     14.631        20.354        .10471E-03   -1.4943    
  23  norm          .10000E-03    9.1516        .20282E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    1.2063        .88888E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    1.6829        .10520E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    40.045        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.1397        .23878        .28340E-03   -.88486    
  28  Prefactor     1.2185        .24469        .29852E-03   -.85765    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.98046e-10
Minuit parameter uncertainties:
  1  24.1499
  2  13.9332
  3  5.15044e-06
  4  29.0415
  5  0.965949
  6  5.70915
  7  5.09066e-07
  8  3.13084
  9  4.61544e-05
  10  3.9458
  11  7.22152
  12  2.46858
  13  2.11164
  14  5.28068
  15  0.322825
  16  5.72066
  17  10.7095
  18  42.7057
  19  87.7302
  20  0.00495155
  21  6.42692
  22  20.3641
  23  0.000139414
  24  4.10295e-06
  25  9.76952e-07
  26  1.65209e-05
  27  0.239012
  28  0.244921
Done.

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

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  1.091e+01  5.721e+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.218e+00  2.449e-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.140e+00  2.390e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.57
Ra Dec: 187.560 25.298
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 6.41e-08 +/- 3.36e-08
Energy Flux (Fixed Index): 3.81e-05 +/- 2.00e-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) = 6897.05675794
delta logL = 0.0147044323749

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6897.05630444
delta logL = 0.0151579384028

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.924       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0737       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1346       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2210       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=   6897.056     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      209 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.937        47.263        .30304E-02    .85913E-03
   2  alpha         2.0747        3.5249        .31004        .73677E-05
   3  Normalizat    1.1345        .27088        .64190E-01    .12040E-04
   4  Prefactor     1.2211        .25965        .67412E-01    .87378E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 10.9367
  alpha      = 2.07473
  Normalizat = 1.13446
  Prefactor  = 1.22107
 **********
 **   18 **HESSE 
 **********

 FCN=   6897.056     FROM HESSE     STATUS=OK            33 CALLS      242 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.937        5.5442        .60608E-03   -1.5046    
   2  alpha         2.0747        .42295        .12020E-01   -.17094    
   3  Normalizat    1.1345        .22560        .28395E-03   -.88653    
   4  Prefactor     1.2211        .24331        .29821E-03   -.85685    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.7637e-11
Minuit parameter uncertainties:
  1  5.54442
  2  0.425058
  3  0.225791
  4  0.243539
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/741899': 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) = 6897.05629872
delta logL = 0.01516365715

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  1.094e+01  5.544e+00  1.000e-04  1.000e+04 ( 1.000e-12)
326        alpha:  2.075e+00  4.251e-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.221e+00  2.435e-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.134e+00  2.258e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.59
Ra Dec: 187.560 25.298
Photon Index (Free Index): 2.07 +/- 0.43
Photon Flux (Free Index): 6.97e-08 +/- 4.73e-08
Energy Flux (Free Index): 3.61e-05 +/- 2.13e-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/741899/cmap_HighResolution_495936001_496195201_4FGL_J1230.2+2517_daily_bin990.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.41e-08', energy_flux2='3.61e-05', photon_flux_error='3.36e-08', dlogl='1.52e-02', energy_flux='3.81e-05', photon_flux2='6.97e-08', job_status='DONE', time_completed='2021-09-05 21:07:01.700071', photon_index_error2='0.43', photon_index2='2.07', ts='11.57', fit_tolerance='1e-08', GAL='1.22', photon_index_error='0.00', energy_flux_error2='2.13e-05', EG='1.14', time_epoch_completed='1630901221.7', return_code='0', job_id='741899', GAL2='1.22', EG2='1.13', return_code2='0', energy_flux_error='2.00e-05', photon_flux_error2='4.73e-08', ts2='11.59', photon_index='2.00' WHERE bin_id='990' AND source_name='4FGL J1230.2+2517' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 21:07:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 741899: <4FGL_J1230.2+2517_daily_bin990> in cluster <slac> Done

Job <4FGL_J1230.2+2517_daily_bin990> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 20:50:36 2021
Job was executed on host(s) <bullet0252>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 20:50:46 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 20:50:46 2021
Terminated at Sun Sep  5 21:07:02 2021
Results reported at Sun Sep  5 21:07:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.2+2517_daily_bin990 187.56 25.2983 495936001 496195201 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 :                                   780.20 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             313.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   976 sec.
    Turnaround time :                            986 sec.

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

