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


Performing analysis on: 4FGL_J1230.2+2517_daily_bin157
RA = 187.56, Dec = 25.2983
tmin = 280022401, tmax = 280281601
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='734813', job_status='RUN', time_executed='2021-09-05 20:26:08.322526', time_epoch_executed='1630898768.32' WHERE source_name='4FGL J1230.2+2517' and cadence='daily' and bin_id='157'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/734813

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/734813/ft1_4FGL_J1230.2+2517_daily_bin157.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/734813/ft2_4FGL_J1230.2+2517_daily_bin157.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/734813/ft1_4FGL_J1230.2+2517_daily_bin157.fits outfile=/scratch/kocevski/734813/ft1_filteredMKT_4FGL_J1230.2+2517_daily_bin157.fits ra=187.56 dec=25.2983 rad=12.0 tmin=280022401.0 tmax=280281601.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.57
user 3.31
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/734813/ft1_filtered_4FGL_J1230.2+2517_daily_bin157.fits" evtable="EVENTS" scfile=/scratch/kocevski/734813/ft2_4FGL_J1230.2+2517_daily_bin157.fits sctable="SC_DATA" outfile=/scratch/kocevski/734813/ltcube_280022401_280281601_4FGL_J1230.2+2517_daily_bin157.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/734813/ft2_4FGL_J1230.2+2517_daily_bin157.fits
.....................!
real 15.59
user 15.24
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/734813/ft1_filtered_4FGL_J1230.2+2517_daily_bin157.fits evtable="EVENTS" scfile=/scratch/kocevski/734813/ft2_4FGL_J1230.2+2517_daily_bin157.fits sctable="SC_DATA" expcube=/scratch/kocevski/734813/ltcube_280022401_280281601_4FGL_J1230.2+2517_daily_bin157.fits outfile=/scratch/kocevski/734813/expmap_280022401_280281601_4FGL_J1230.2+2517_daily_bin157.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/734813/ltcube_280022401_280281601_4FGL_J1230.2+2517_daily_bin157.fits
.....................!
real 192.93
user 187.82
sys 4.67

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/734813/ft1_filtered_4FGL_J1230.2+2517_daily_bin157.fits scfile=/scratch/kocevski/734813/ft2_4FGL_J1230.2+2517_daily_bin157.fits outfile=/scratch/kocevski/734813/cmap_280022401_280281601_4FGL_J1230.2+2517_daily_bin157.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.59
user 0.41
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    32.842       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10158E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    23.765       1.0000         .10000E-03   10000.    
     5 'norm      '    6.4756       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.3952       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12079E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.6305       1.0000         .10000E-03   10000.    
    10 'norm      '    4.0783       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.7430       1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.4903       1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.642       1.0000         .10000E-03   10000.    
    15 'norm      '    2.6548       1.0000         .10000E-03   10000.    
    16 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    52.641       1.0000         .10000E-03   10000.    
    18 'Prefactor '    20.099       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.905       1.0000         .10000E-03   10000.    
    21 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    19.668       1.0000         .10000E-03   10000.    
    23 'norm      '    12.427       1.0000         .10000E-03   10000.    
    24 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    28.626       1.0000         .10000E-03   10000.    
    26 'norm      '    11.279       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .83765       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.2469       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=   7301.827     FROM MIGRAD    STATUS=CONVERGED    669 CALLS     3481 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     32.841        22.018       -.93465E-06    .10472E-04
   2  Prefactor     .10000E-03    19.702        .64773E-05** at limit **
   3  Prefactor     .10000E-03    .87538       -.22969E-07** at limit **
   4  Prefactor     23.765        26.104        .37529E-06    .42597E-05
   5  norm          6.4756        1.7443       -.32828E-07    .36536E-04
   6  Prefactor     1.3964        4.3580       -.25403E-05   -.14245E-02
   7  Prefactor     .10000E-03    33.429       -.31232E-06** at limit **
   8  Prefactor     .10000E-03    2.1389        .55450E-06** at limit **
   9  Prefactor     4.6328        4.0732        .31250E-07   -.66183E-03
  10  norm          4.0784        3.5598       -.18808E-06   -.28491E-03
  11  Prefactor     .10000E-03    4.0332       -.37463E-06** at limit **
  12  Prefactor     3.7430        2.8689        .70585E-07   -.90841E-04
  13  Prefactor     9.4899        3.4342       -.16759E-06   -.60281E-04
  14  Prefactor     11.642        7.3417        .34097E-06   -.42121E-04
  15  norm          2.6547        .47426       -.53494E-07   -.10501E-03
  16  norm          .10000E-03    1.4794       -.44633E-07** at limit **
  17  Prefactor     52.640        16.171       -.45696E-06    .18525E-04
  18  Prefactor     20.098        37.056       -.25141E-05   -.84979E-05
  19  Prefactor     .10000E-03    19.493       -.56640E-05** at limit **
  20  Prefactor     11.905        8.6928       -.34186E-06   -.92745E-05
  21  norm          .10000E-03    1.2635        .23940E-06** at limit **
  22  Prefactor     19.656        26.424       -.14503E-04    .17836E-04
  23  norm          12.426        5.5022       -.89486E-06   -.83189E-05
  24  norm          .10000E-03    3.7324       -.61357E-06** at limit **
  25  norm          28.625        10.033        .59359E-06    .11705E-03
  26  norm          11.280        19.551       -.37435E-06   -.15970E-04
  27  Normalizat    .83792        .20858        .52212E-05   -.16630E-03
  28  Prefactor     1.2467        .21292       -.96530E-06    .86314E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 32.841
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.7655
  norm       = 6.47561
  Prefactor  = 1.39641
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 4.63279
  norm       = 4.07843
  Prefactor  = 0.0001
  Prefactor  = 3.74301
  Prefactor  = 9.48992
  Prefactor  = 11.6418
  norm       = 2.65472
  norm       = 0.0001
  Prefactor  = 52.6398
  Prefactor  = 20.0977
  Prefactor  = 0.0001
  Prefactor  = 11.9048
  norm       = 0.0001
  Prefactor  = 19.6563
  norm       = 12.4263
  norm       = 0.0001
  norm       = 28.6254
  norm       = 11.2796
  Normalizat = 0.837923
  Prefactor  = 1.24666
 **********
 **   18 **HESSE 
 **********

 FCN=   7301.827     FROM HESSE     STATUS=OK           531 CALLS     4012 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     32.841        21.911        .69922E-04   -1.4561    
   2  Prefactor     .10000E-03    19.889        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.3267        .15405E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     23.765        26.103        .82168E-04   -1.4733    
   5  norm          6.4756        1.7444        .55916E-04   -1.5199    
   6  Prefactor     1.3964        4.5220        .30764E-03   -1.5472    
   7  Prefactor     .10000E-03    33.531        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.8763        .22817E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.6328        3.9162        .14681E-03   -1.5277    
  10  norm          4.0784        3.5882        .12967E-03   -1.5304    
  11  Prefactor     .10000E-03    4.0512        .16759E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.7430        2.8944        .10972E-03   -1.5321    
  13  Prefactor     9.4899        3.4315        .88320E-04   -1.5092    
  14  Prefactor     11.642        7.3365        .11741E-03   -1.5025    
  15  norm          2.6547        .47476        .23067E-04   -1.5382    
  16  norm          .10000E-03    1.4821        .10145E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     52.640        16.171        .55279E-04   -1.4256    
  18  Prefactor     20.098        37.086        .89340E-04   -1.4811    
  19  Prefactor     .10000E-03    19.422        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     11.905        8.6933        .11610E-03   -1.5018    
  21  norm          .10000E-03    1.2674        .93850E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     19.656        25.945        .90313E-04   -1.4821    
  23  norm          12.426        5.5033        .11363E-03   -1.5003    
  24  norm          .10000E-03    3.7657        .16003E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          28.625        9.9789        .74880E-04   -1.4637    
  26  norm          11.280        19.551        .11929E-03   -1.5036    
  27  Normalizat    .83792        .24250        .33598E-03   -.98677    
  28  Prefactor     1.2467        .25058        .30544E-03   -.84907    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.68983e-09
Minuit parameter uncertainties:
  1  21.9167
  2  4.07e-05
  3  1.12098e-05
  4  26.1152
  5  1.74439
  6  4.52307
  7  9.36486e-05
  8  0.0001142
  9  3.91639
  10  3.58843
  11  1.21759e-05
  12  2.89447
  13  3.43159
  14  7.33707
  15  0.47476
  16  2.81897e-06
  17  16.1724
  18  37.1282
  19  1.84037e-05
  20  8.69418
  21  1.72536e-05
  22  25.9598
  23  5.5035
  24  4.44848e-05
  25  9.97944
  26  19.5616
  27  0.242817
  28  0.250819
Done.

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

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  1.000e-04  2.819e-06  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.247e+00  2.508e-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:  8.379e-01  2.428e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/734813/likelihoodResults_280022401_280281601_4FGL_J1230.2+2517_daily_bin157.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) = 7301.83013983
delta logL = -0.00295643505524

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7301.82718337
delta logL = 2.80788299278e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0061       1.0000          .0000       5.0000    
     3 'Normalizat'    .83793       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2467       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=   7301.827     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      240 TOTAL
                     EDM=   .33E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.3957        .10156E-02** at limit **
   2  alpha         2.1947        3.4473        .16886       -.39722E-07
   3  Normalizat    .83793        .22591        .33598E-03   -.11911E-03
   4  Prefactor     1.2467        .24664        .30544E-03   -.13489E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.19469
  Normalizat = 0.837927
  Prefactor  = 1.24666
 **********
 **   18 **HESSE 
 **********

 FCN=   7301.827     FROM HESSE     STATUS=OK            23 CALLS      263 TOTAL
                     EDM=   .38E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.5149        .20313E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1947        3.4360        .67545E-02   -.12243    
   3  Normalizat    .83793        .22612        .13439E-04   -.98677    
   4  Prefactor     1.2467        .24687        .12218E-04   -.84907    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.77358e-11
Minuit parameter uncertainties:
  1  7.57036e-06
  2  165.076
  3  0.226377
  4  0.247098
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/734813': 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) = 7301.82718267
delta logL = 7.2913007898e-07

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  1.000e-04  7.570e-06  1.000e-04  1.000e+04 ( 1.000e-12)
326        alpha:  2.195e+00  1.651e+02  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.247e+00  2.471e-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:  8.379e-01  2.264e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 187.560 25.298

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/734813/cmap_HighResolution_280022401_280281601_4FGL_J1230.2+2517_daily_bin157.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.70e-05', job_status='DONE', photon_flux_upper_limit='4.54e-08', time_completed='2021-09-05 20:41:11.015745', job_id='734813', GAL2='1.25', fit_tolerance='1e-08', EG2='0.84', EG='0.84', time_epoch_completed='1630899671.02', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.25', dlogl='7.29e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='157' AND source_name='4FGL J1230.2+2517' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 20:41:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0214>
Subject: Job 734813: <4FGL_J1230.2+2517_daily_bin157> in cluster <slac> Done

Job <4FGL_J1230.2+2517_daily_bin157> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 20:25:33 2021
Job was executed on host(s) <bullet0214>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 20:25:56 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:25:56 2021
Terminated at Sun Sep  5 20:41:11 2021
Results reported at Sun Sep  5 20:41:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.2+2517_daily_bin157 187.56 25.2983 280022401 280281601 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 :                                   897.09 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             360.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   915 sec.
    Turnaround time :                            938 sec.

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

