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


Performing analysis on: 4FGL_J1230.2+2517_daily_bin356
RA = 187.56, Dec = 25.2983
tmin = 331603201, tmax = 331862401
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='738655', job_status='RUN', time_executed='2021-09-05 20:44:44.513842', time_epoch_executed='1630899884.51' WHERE source_name='4FGL J1230.2+2517' and cadence='daily' and bin_id='356'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/738655

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/738655/ft1_4FGL_J1230.2+2517_daily_bin356.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/738655/ft2_4FGL_J1230.2+2517_daily_bin356.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/738655/ft1_4FGL_J1230.2+2517_daily_bin356.fits outfile=/scratch/kocevski/738655/ft1_filteredMKT_4FGL_J1230.2+2517_daily_bin356.fits ra=187.56 dec=25.2983 rad=12.0 tmin=331603201.0 tmax=331862401.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.31
user 3.08
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/738655/ft1_filtered_4FGL_J1230.2+2517_daily_bin356.fits" evtable="EVENTS" scfile=/scratch/kocevski/738655/ft2_4FGL_J1230.2+2517_daily_bin356.fits sctable="SC_DATA" outfile=/scratch/kocevski/738655/ltcube_331603201_331862401_4FGL_J1230.2+2517_daily_bin356.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/738655/ft2_4FGL_J1230.2+2517_daily_bin356.fits
.....................!
real 16.27
user 15.88
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/738655/ft1_filtered_4FGL_J1230.2+2517_daily_bin356.fits evtable="EVENTS" scfile=/scratch/kocevski/738655/ft2_4FGL_J1230.2+2517_daily_bin356.fits sctable="SC_DATA" expcube=/scratch/kocevski/738655/ltcube_331603201_331862401_4FGL_J1230.2+2517_daily_bin356.fits outfile=/scratch/kocevski/738655/expmap_331603201_331862401_4FGL_J1230.2+2517_daily_bin356.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/738655/ltcube_331603201_331862401_4FGL_J1230.2+2517_daily_bin356.fits
.....................!
real 191.07
user 186.51
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/738655/ft1_filtered_4FGL_J1230.2+2517_daily_bin356.fits scfile=/scratch/kocevski/738655/ft2_4FGL_J1230.2+2517_daily_bin356.fits outfile=/scratch/kocevski/738655/cmap_331603201_331862401_4FGL_J1230.2+2517_daily_bin356.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.56
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/738655/ft1_filtered_4FGL_J1230.2+2517_daily_bin356.fits scfile=/scratch/kocevski/738655/ft2_4FGL_J1230.2+2517_daily_bin356.fits outfile=/scratch/kocevski/738655/cmap_HighResolution_331603201_331862401_4FGL_J1230.2+2517_daily_bin356.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11296E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .39360E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.2957       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .32232E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .39366       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.5725       1.0000         .10000E-03   10000.    
     7 'Prefactor '    43.176       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.6925       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.9350       1.0000         .10000E-03   10000.    
    10 'norm      '    4.5923       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.0996       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10200E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.6801       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.7417       1.0000         .10000E-03   10000.    
    16 'norm      '    .21394E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.8334       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10286E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10525E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.1796       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .75528E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    3.3283       1.0000         .10000E-03   10000.    
    25 'norm      '    .11477E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .12073E-02   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.1578       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .84246       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=   6232.219     FROM MIGRAD    STATUS=CONVERGED    696 CALLS     2507 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.6507       -.10023E-06** at limit **
   2  Prefactor     .10000E-03    6.5226       -.38053E-05** at limit **
   3  Prefactor     1.2971        1.2071       -.53989E-07   -.12026E-03
   4  Prefactor     .10000E-03    17.562       -.99917E-05** at limit **
   5  norm          .39416        .71403       -.72376E-07   -.10654E-02
   6  Prefactor     5.5905        4.4858        .25380E-05   -.78980E-03
   7  Prefactor     43.008        28.182       -.15901E-05    .14079E-03
   8  Prefactor     1.6935        1.9090       -.45840E-06   -.19710E-03
   9  Prefactor     2.9278        2.7755        .16605E-06   -.45347E-03
  10  norm          4.5779        2.8442        .36245E-07    .14616E-03
  11  Prefactor     9.1035        8.1221       -.30917E-06    .44881E-04
  12  Prefactor     .10000E-03    .86000        .57409E-07** at limit **
  13  Prefactor     8.6853        2.9196        .40421E-06    .15108E-03
  14  Prefactor     .10000E-03    2.2936       -.76720E-07** at limit **
  15  norm          1.7416        .34345       -.17793E-07   -.59235E-03
  16  norm          .10004E-03    2.0349        .70223E-06** at limit **
  17  Prefactor     1.9279        10.681       -.11320E-04   -.16228E-03
  18  Prefactor     .10000E-03    34.065        .23196E-05** at limit **
  19  Prefactor     .10000E-03    17.569       -.10562E-04** at limit **
  20  Prefactor     .10000E-03    2.2120        .17136E-07** at limit **
  21  norm          1.1721        3.1511       -.14619E-05   -.95838E-03
  22  Prefactor     .10000E-03    20.173        .10355E-04** at limit **
  23  norm          .10000E-03    1.2723        .24096E-07** at limit **
  24  norm          3.3279        3.3302        .20189E-06   -.41005E-03
  25  norm          .10000E-03    3.2301        .35960E-07** at limit **
  26  norm          .10000E-03    5.7550        .34703E-05** at limit **
  27  Normalizat    1.1575        .17591        .11408E-06    .31266E-04
  28  Prefactor     .84249        .18825        .13047E-06    .10039E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.29705
  Prefactor  = 0.000100003
  norm       = 0.394159
  Prefactor  = 5.59051
  Prefactor  = 43.0085
  Prefactor  = 1.6935
  Prefactor  = 2.92784
  norm       = 4.57794
  Prefactor  = 9.10354
  Prefactor  = 0.0001
  Prefactor  = 8.68526
  Prefactor  = 0.0001
  norm       = 1.74156
  norm       = 0.000100039
  Prefactor  = 1.92786
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 1.17207
  Prefactor  = 0.000100002
  norm       = 0.0001
  norm       = 3.32794
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 1.15753
  Prefactor  = 0.842489
 **********
 **   18 **HESSE 
 **********

 FCN=   6232.219     FROM HESSE     STATUS=OK           521 CALLS     3028 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.6570        .16626E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.5497        .19692E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.2971        1.2101        .81109E-04   -1.5480    
   4  Prefactor     .10000E-03    17.569        .21359E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .39416        .58835        .86538E-03   -1.5582    
   6  Prefactor     5.5905        4.4256        .14001E-03   -1.5235    
   7  Prefactor     43.008        28.191        .61011E-04   -1.4395    
   8  Prefactor     1.6935        1.8956        .10946E-03   -1.5448    
   9  Prefactor     2.9278        2.7560        .12104E-03   -1.5366    
  10  norm          4.5779        2.8390        .99831E-04   -1.5280    
  11  Prefactor     9.1035        8.1269        .13286E-03   -1.5104    
  12  Prefactor     .10000E-03    .86307        .71398E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     8.6853        2.9141        .72562E-04   -1.5118    
  14  Prefactor     .10000E-03    2.3146        .11670E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.7416        .34382        .19585E-04   -1.5444    
  16  norm          .10004E-03    16.777        .21652E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.9279        11.320        .30818E-03   -1.5430    
  18  Prefactor     .10000E-03    34.310        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    17.402        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.2178        .11465E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.1721        3.1511        .22322E-03   -1.5491    
  22  Prefactor     .10000E-03    20.269        .20936E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    1.2845        .86940E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          3.3279        3.3074        .13751E-03   -1.5343    
  25  norm          .10000E-03    3.2352        .13820E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    5.7404        .18469E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.1575        .20849        .23557E-03   -.87925    
  28  Prefactor     .84249        .22236        .29968E-03   -.98181    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.03975e-09
Minuit parameter uncertainties:
  1  1.07964e-07
  2  4.12394e-05
  3  1.2101
  4  0.000427755
  5  0.588358
  6  4.42585
  7  28.1999
  8  1.8957
  9  2.75612
  10  2.83909
  11  8.12793
  12  3.81605e-06
  13  2.91419
  14  1.80105e-06
  15  0.343816
  16  0.00161567
  17  9.34545
  18  0.000135723
  19  0.000379454
  20  4.91109e-07
  21  3.15152
  22  0.000371249
  23  4.62598e-07
  24  3.30762
  25  4.73089e-06
  26  6.97209e-05
  27  0.20864
  28  0.222595
Done.

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

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  1.000e-04  1.616e-03  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.425e-01  2.226e-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.158e+00  2.086e-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: 5.46e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.25e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/738655/likelihoodResults_331603201_331862401_4FGL_J1230.2+2517_daily_bin356.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): 102
logL (Free Index) = 6232.21969233
delta logL = -0.000283280774966

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6232.21941073
delta logL = -1.68381575349e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .16873E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0739       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1573       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84277       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=   6232.219     FROM MIGRAD    STATUS=CONVERGED    116 CALLS      290 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10950E-03    1.6828        .30054E-01** at limit **
   2  alpha         2.6467        3.6852        .50000        .95890E-06
   3  Normalizat    1.1575        .35967E-02    .23557E-03    .26411E-03
   4  Prefactor     .84249        .39860E-02    .29968E-03    .17223E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000109505
  alpha      = 2.64669
  Normalizat = 1.15753
  Prefactor  = 0.842489
 **********
 **   18 **HESSE 
 **********

 FCN=   6232.219     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      329 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10950E-03    1.3710        .32520E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.6467        3.1923        .50000        .58711E-01
   3  Normalizat    1.1575        .34585E-02    .47114E-04   -.87925    
   4  Prefactor     .84249        .38328E-02    .11987E-04   -.98181    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.79825e-09
Minuit parameter uncertainties:
  1  0.00721991
  2  95.5248
  3  0.00345846
  4  0.00383282
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/738655': 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): 102
logL (Free Index) = 6232.21940475
delta logL = 4.29876126873e-06

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  1.095e-04  7.220e-03  1.000e-04  1.000e+04 ( 1.000e-12)
326        alpha:  2.647e+00  9.552e+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.425e-01  3.833e-03  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.158e+00  3.458e-03  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/738655/cmap_HighResolution_331603201_331862401_4FGL_J1230.2+2517_daily_bin356.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.25e-05', job_status='DONE', photon_flux_upper_limit='5.46e-08', time_completed='2021-09-05 20:57:15.393410', job_id='738655', GAL2='0.84', fit_tolerance='1e-08', EG2='1.16', EG='1.16', time_epoch_completed='1630900635.39', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='4.30e-06', ts2='0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='356' AND source_name='4FGL J1230.2+2517' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 20:57:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0249>
Subject: Job 738655: <4FGL_J1230.2+2517_daily_bin356> in cluster <slac> Done

Job <4FGL_J1230.2+2517_daily_bin356> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Sep  5 20:40:49 2021
Job was executed on host(s) <bullet0249>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 20:41:00 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:41:00 2021
Terminated at Sun Sep  5 20:57:16 2021
Results reported at Sun Sep  5 20:57:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.2+2517_daily_bin356 187.56 25.2983 331603201 331862401 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 :                                   748.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             274.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   975 sec.
    Turnaround time :                            987 sec.

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

