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


Performing analysis on: 4FGL_J1230.2+2517_daily_bin346
RA = 187.56, Dec = 25.2983
tmin = 329011201, tmax = 329270401
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='735799', job_status='RUN', time_executed='2021-09-05 20:31:08.211004', time_epoch_executed='1630899068.21' WHERE source_name='4FGL J1230.2+2517' and cadence='daily' and bin_id='346'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/735799

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/735799/ft1_4FGL_J1230.2+2517_daily_bin346.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/735799/ft2_4FGL_J1230.2+2517_daily_bin346.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/735799/ft1_4FGL_J1230.2+2517_daily_bin346.fits outfile=/scratch/kocevski/735799/ft1_filteredMKT_4FGL_J1230.2+2517_daily_bin346.fits ra=187.56 dec=25.2983 rad=12.0 tmin=329011201.0 tmax=329270401.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.96
user 3.40
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/735799/ft1_filtered_4FGL_J1230.2+2517_daily_bin346.fits evtable="EVENTS" scfile=/scratch/kocevski/735799/ft2_4FGL_J1230.2+2517_daily_bin346.fits sctable="SC_DATA" expcube=/scratch/kocevski/735799/ltcube_329011201_329270401_4FGL_J1230.2+2517_daily_bin346.fits outfile=/scratch/kocevski/735799/expmap_329011201_329270401_4FGL_J1230.2+2517_daily_bin346.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/735799/ltcube_329011201_329270401_4FGL_J1230.2+2517_daily_bin346.fits
.....................!
real 191.67
user 187.28
sys 3.94

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/735799/ft1_filtered_4FGL_J1230.2+2517_daily_bin346.fits scfile=/scratch/kocevski/735799/ft2_4FGL_J1230.2+2517_daily_bin346.fits outfile=/scratch/kocevski/735799/cmap_329011201_329270401_4FGL_J1230.2+2517_daily_bin346.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/735799/ft1_filtered_4FGL_J1230.2+2517_daily_bin346.fits scfile=/scratch/kocevski/735799/ft2_4FGL_J1230.2+2517_daily_bin346.fits outfile=/scratch/kocevski/735799/cmap_HighResolution_329011201_329270401_4FGL_J1230.2+2517_daily_bin346.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.56
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    36.344       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    22.083       1.0000         .10000E-03   10000.    
     5 'norm      '    .87946       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.9799       1.0000         .10000E-03   10000.    
     7 'Prefactor '    21.981       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.6987       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.1062       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10214E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.9166       1.0000         .10000E-03   10000.    
    16 'norm      '    5.1856       1.0000         .10000E-03   10000.    
    17 'Prefactor '    18.963       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .26455E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.1011       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    3.6886       1.0000         .10000E-03   10000.    
    24 'norm      '    3.3414       1.0000         .10000E-03   10000.    
    25 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    10.892       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.0380       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .89133       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=   5938.649     FROM MIGRAD    STATUS=CONVERGED    689 CALLS     3615 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     36.334        20.716       -.16795E-05   -.65847E-04
   2  Prefactor     .10000E-03    25.486        .33305E-05** at limit **
   3  Prefactor     .10000E-03    .41237        .17433E-08** at limit **
   4  Prefactor     22.069        33.423       -.87307E-05   -.12538E-03
   5  norm          .87843        .86329        .14646E-06    .58845E-03
   6  Prefactor     2.9794        3.3632        .33450E-07   -.95307E-04
   7  Prefactor     21.969        42.680       -.10366E-04   -.92738E-04
   8  Prefactor     .10000E-03    1.1788       -.30393E-08** at limit **
   9  Prefactor     .10000E-03    1.0437       -.72789E-08** at limit **
  10  norm          .10000E-03    2.0009        .13516E-07** at limit **
  11  Prefactor     5.6956        9.4864        .11348E-05   -.65290E-03
  12  Prefactor     3.1060        2.1717       -.60942E-08    .43158E-04
  13  Prefactor     .10000E-03    1.5103       -.99513E-09** at limit **
  14  Prefactor     .10000E-03    1.9332        .55106E-08** at limit **
  15  norm          2.9164        .46129       -.32480E-07    .43538E-03
  16  norm          5.1852        4.1173       -.57981E-06   -.93537E-04
  17  Prefactor     18.958        12.958       -.87604E-07    .30193E-04
  18  Prefactor     .10000E-03    21.583       -.76526E-05** at limit **
  19  Prefactor     .10000E-03    61.984        .47437E-06** at limit **
  20  Prefactor     .10000E-03    3.3123       -.85286E-07** at limit **
  21  norm          2.1008        2.2951        .67519E-06   -.33885E-02
  22  Prefactor     .10000E-03    20.042        .39982E-05** at limit **
  23  norm          3.6886        3.5810       -.48553E-06   -.99516E-04
  24  norm          3.3397        3.8602       -.47303E-06   -.12125E-03
  25  norm          .10000E-03    4.1173        .45805E-07** at limit **
  26  norm          10.892        14.825       -.26502E-06   -.36179E-05
  27  Normalizat    1.0386        .20225        .36039E-05   -.14489E-03
  28  Prefactor     .89079        .20336       -.14811E-05    .11988E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 36.3343
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.0688
  norm       = 0.87843
  Prefactor  = 2.9794
  Prefactor  = 21.9692
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.69564
  Prefactor  = 3.106
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.91644
  norm       = 5.18523
  Prefactor  = 18.9576
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.10076
  Prefactor  = 0.0001
  norm       = 3.68859
  norm       = 3.3397
  norm       = 0.0001
  norm       = 10.892
  Normalizat = 1.03865
  Prefactor  = 0.890788
 **********
 **   18 **HESSE 
 **********

 FCN=   5938.649     FROM HESSE     STATUS=OK           525 CALLS     4140 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     36.334        20.764        .66478E-04   -1.4502    
   2  Prefactor     .10000E-03    25.898        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    .41329        .48311E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     22.069        33.492        .85237E-04   -1.4768    
   5  norm          .87843        .82364        .68302E-03   -1.5521    
   6  Prefactor     2.9794        3.3545        .14447E-03   -1.5363    
   7  Prefactor     21.969        42.576        .85433E-04   -1.4770    
   8  Prefactor     .10000E-03    1.2022        .81663E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.0521        .76864E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    2.0719        .21141E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.6956        9.7802        .84132E-03   -1.5231    
  12  Prefactor     3.1060        2.1473        .90518E-04   -1.5355    
  13  Prefactor     .10000E-03    2.7249        .17873E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.9353        .10462E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.9164        .46332        .19622E-04   -1.5366    
  16  norm          5.1852        4.1123        .13447E-03   -1.5253    
  17  Prefactor     18.958        12.849        .91975E-04   -1.4837    
  18  Prefactor     .10000E-03    21.710        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    62.063        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.5464        .27241E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.1008        4.4968        .11240E-02   -1.5418    
  22  Prefactor     .10000E-03    20.102        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          3.6886        3.5745        .13827E-03   -1.5324    
  24  norm          3.3397        3.8702        .15460E-03   -1.5342    
  25  norm          .10000E-03    4.1257        .15222E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          10.892        14.824        .12140E-03   -1.5048    
  27  Normalizat    1.0386        .23797        .25727E-03   -.91747    
  28  Prefactor     .89079        .23781        .29623E-03   -.96464    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17763e-08
Minuit parameter uncertainties:
  1  20.7682
  2  4.24914e-05
  3  2.96468e-07
  4  33.5207
  5  0.82365
  6  3.35472
  7  42.6349
  8  3.43283e-06
  9  2.86839e-06
  10  3.25585e-06
  11  9.78298
  12  2.14735
  13  1.51397e-05
  14  2.86753e-07
  15  0.463323
  16  4.11252
  17  12.8513
  18  0.000201873
  19  6.26477e-05
  20  4.20797e-05
  21  4.49749
  22  6.35848e-05
  23  3.57469
  24  3.87054
  25  6.74624e-06
  26  14.8287
  27  0.238212
  28  0.238089
Done.

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

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  5.185e+00  4.113e+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.908e-01  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:  1.039e+00  2.382e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.14
Ra Dec: 187.560 25.298
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 3.05e-08 +/- 2.42e-08
Energy Flux (Fixed Index): 1.81e-05 +/- 1.44e-05

TS (Fixed Index): 3.14
Ra Dec: 187.560 25.298
Photon Flux Upper Limit: 8.92e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.31e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/735799/likelihoodResults_329011201_329270401_4FGL_J1230.2+2517_daily_bin346.txt

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) = 5938.06988607
delta logL = 0.579083962493

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5938.06521476
delta logL = 0.583755272301

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.1213       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6745       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0141       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90473       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5938.065     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      276 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.1213        3.8011        .50686E-03   -.10831E-03
   2  alpha         2.6745        .66841        .12930E-01    .66040E-05
   3  Normalizat    1.0142        .21896        .25971E-03    .17510E-06
   4  Prefactor     .90470        .23444        .29394E-03   -.11603E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 4.12134
  alpha      = 2.67452
  Normalizat = 1.01416
  Prefactor  = 0.904697
 **********
 **   18 **HESSE 
 **********

 FCN=   5938.065     FROM HESSE     STATUS=OK            25 CALLS      301 TOTAL
                     EDM=   .42E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.1213        3.6010        .20275E-04   -1.5302    
   2  alpha         2.6745        .63377        .51720E-03    .69864E-01
   3  Normalizat    1.0142        .21911        .10389E-04   -.92558    
   4  Prefactor     .90470        .23460        .11757E-04   -.95977    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.19066e-12
Minuit parameter uncertainties:
  1  3.60121
  2  0.640794
  3  0.219307
  4  0.234865
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/735799': 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) = 5938.06521474
delta logL = 0.58375529488

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  4.121e+00  3.601e+00  1.000e-04  1.000e+04 ( 1.000e-12)
326        alpha:  2.675e+00  6.408e-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:  9.047e-01  2.349e-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.014e+00  2.193e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.32
Ra Dec: 187.560 25.298
Photon Index (Free Index): 2.67 +/- 0.64
Photon Flux (Free Index): 5.79e-08 +/- 4.47e-08
Energy Flux (Free Index): 1.46e-05 +/- 9.96e-06

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/735799/cmap_HighResolution_329011201_329270401_4FGL_J1230.2+2517_daily_bin346.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.31e-05', comment='SUCCESS', photon_flux='3.05e-08', energy_flux2='1.46e-05', photon_flux_error='2.42e-08', dlogl='5.84e-01', energy_flux='1.81e-05', photon_flux2='5.79e-08', job_status='DONE', time_completed='2021-09-05 20:44:45.520326', photon_index_error2='0.64', photon_index2='2.67', ts='3.14', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='8.92e-08', energy_flux_error2='9.96e-06', EG='1.04', time_epoch_completed='1630899885.52', return_code='0', job_id='735799', GAL2='0.90', EG2='1.01', return_code2='0', energy_flux_error='1.44e-05', photon_flux_error2='4.47e-08', ts2='4.32', photon_index='2.00' WHERE bin_id='346' AND source_name='4FGL J1230.2+2517' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 20:44:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0169>
Subject: Job 735799: <4FGL_J1230.2+2517_daily_bin346> in cluster <slac> Done

Job <4FGL_J1230.2+2517_daily_bin346> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Sep  5 20:30:40 2021
Job was executed on host(s) <bullet0169>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 20:30:43 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 20:30:43 2021
Terminated at Sun Sep  5 20:44:46 2021
Results reported at Sun Sep  5 20:44:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.2+2517_daily_bin346 187.56 25.2983 329011201 329270401 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 :                                   810.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             322.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   842 sec.
    Turnaround time :                            846 sec.

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

