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


Performing analysis on: 4FGL_J1230.2+2517_daily_bin462
RA = 187.56, Dec = 25.2983
tmin = 359078401, tmax = 359337601
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='738797', job_status='RUN', time_executed='2021-09-05 20:45:43.876982', time_epoch_executed='1630899943.88' WHERE source_name='4FGL J1230.2+2517' and cadence='daily' and bin_id='462'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/738797

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/738797/ft1_4FGL_J1230.2+2517_daily_bin462.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/738797/ft2_4FGL_J1230.2+2517_daily_bin462.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/738797/ft1_4FGL_J1230.2+2517_daily_bin462.fits outfile=/scratch/kocevski/738797/ft1_filteredMKT_4FGL_J1230.2+2517_daily_bin462.fits ra=187.56 dec=25.2983 rad=12.0 tmin=359078401.0 tmax=359337601.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.82
user 3.55
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/738797/ft1_filtered_4FGL_J1230.2+2517_daily_bin462.fits" evtable="EVENTS" scfile=/scratch/kocevski/738797/ft2_4FGL_J1230.2+2517_daily_bin462.fits sctable="SC_DATA" outfile=/scratch/kocevski/738797/ltcube_359078401_359337601_4FGL_J1230.2+2517_daily_bin462.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/738797/ft2_4FGL_J1230.2+2517_daily_bin462.fits
.....................!
real 14.58
user 14.12
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/738797/ft1_filtered_4FGL_J1230.2+2517_daily_bin462.fits evtable="EVENTS" scfile=/scratch/kocevski/738797/ft2_4FGL_J1230.2+2517_daily_bin462.fits sctable="SC_DATA" expcube=/scratch/kocevski/738797/ltcube_359078401_359337601_4FGL_J1230.2+2517_daily_bin462.fits outfile=/scratch/kocevski/738797/expmap_359078401_359337601_4FGL_J1230.2+2517_daily_bin462.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/738797/ltcube_359078401_359337601_4FGL_J1230.2+2517_daily_bin462.fits
.....................!
real 193.57
user 187.53
sys 4.62

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/738797/ft1_filtered_4FGL_J1230.2+2517_daily_bin462.fits scfile=/scratch/kocevski/738797/ft2_4FGL_J1230.2+2517_daily_bin462.fits outfile=/scratch/kocevski/738797/cmap_359078401_359337601_4FGL_J1230.2+2517_daily_bin462.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.54
user 0.38
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.7556       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.1447       1.0000         .10000E-03   10000.    
     5 'norm      '    3.6391       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .79649E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .14818       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .22920E-01   1.0000         .10000E-03   10000.    
    10 'norm      '    8.7344       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.4363       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.4493       1.0000         .10000E-03   10000.    
    16 'norm      '    7.2963       1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.847       1.0000         .10000E-03   10000.    
    18 'Prefactor '    63.225       1.0000         .10000E-03   10000.    
    19 'Prefactor '    38.773       1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.0792       1.0000         .10000E-03   10000.    
    21 'norm      '    .10243E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    18.829       1.0000         .10000E-03   10000.    
    23 'norm      '    5.1901       1.0000         .10000E-03   10000.    
    24 'norm      '    3.7822       1.0000         .10000E-03   10000.    
    25 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    37.629       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.2408       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .58056       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=   5998.402     FROM MIGRAD    STATUS=CONVERGED    714 CALLS     3550 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.7514        13.045       -.31276E-05   -.14096E-03
   2  Prefactor     .10000E-03    5.9113        .54001E-06** at limit **
   3  Prefactor     .10000E-03    .36175        .40651E-07** at limit **
   4  Prefactor     5.1304        19.706        .14482E-04   -.23753E-04
   5  norm          3.6388        1.3187       -.17635E-06    .13647E-03
   6  Prefactor     .10000E-03    2.0464       -.34959E-06** at limit **
   7  Prefactor     .10000E-03    16.347       -.33620E-06** at limit **
   8  Prefactor     .13758        1.4970       -.13205E-05    .86108E-03
   9  Prefactor     .10000E-03    1.5916       -.20082E-06** at limit **
  10  norm          8.7336        3.8645        .16346E-06    .37812E-05
  11  Prefactor     .10000E-03    3.7656       -.17049E-06** at limit **
  12  Prefactor     5.4356        3.1457       -.49738E-06   -.29894E-02
  13  Prefactor     .10000E-03    .71776        .17264E-07** at limit **
  14  Prefactor     .10000E-03    2.0695       -.16156E-07** at limit **
  15  norm          1.4493        .33674       -.41149E-07    .29788E-02
  16  norm          7.2955        4.1045       -.11887E-05    .13539E-03
  17  Prefactor     12.844        9.1691       -.19504E-05    .34946E-04
  18  Prefactor     63.230        41.864        .37472E-05    .72043E-04
  19  Prefactor     38.707        67.847       -.77277E-04    .83796E-05
  20  Prefactor     9.0771        6.4547        .17063E-05    .63720E-04
  21  norm          .10000E-03    2.0621        .61831E-06** at limit **
  22  Prefactor     18.814        28.046        .70343E-05    .26471E-04
  23  norm          5.1886        3.8551       -.12380E-05   -.61689E-04
  24  norm          3.7802        3.6364       -.32888E-06   -.12604E-03
  25  norm          .10000E-03    2.8630        .18588E-08** at limit **
  26  norm          37.625        19.607        .13083E-05    .16310E-04
  27  Normalizat    1.2410        .18414        .44432E-05    .12873E-03
  28  Prefactor     .58069        .19012       -.79195E-06    .36796E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.75136
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.13044
  norm       = 3.63875
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.137583
  Prefactor  = 0.000100002
  norm       = 8.7336
  Prefactor  = 0.0001
  Prefactor  = 5.43564
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.44934
  norm       = 7.29553
  Prefactor  = 12.8442
  Prefactor  = 63.2297
  Prefactor  = 38.7071
  Prefactor  = 9.07715
  norm       = 0.000100001
  Prefactor  = 18.814
  norm       = 5.18857
  norm       = 3.78024
  norm       = 0.0001
  norm       = 37.6255
  Normalizat = 1.24096
  Prefactor  = 0.580686
 **********
 **   18 **HESSE 
 **********

 FCN=   5998.402     FROM HESSE     STATUS=OK           537 CALLS     4087 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.7514        13.068        .24522E-03   -1.5376    
   2  Prefactor     .10000E-03    5.9349        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    .36321        .45460E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.1304        19.736        .17725E-03   -1.5255    
   5  norm          3.6388        1.3191        .51167E-04   -1.5326    
   6  Prefactor     .10000E-03    50.467        .20847E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    16.379        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .13758        7.4703        .17191E-02   -1.5634    
   9  Prefactor     .10000E-03    4.2271        .31366E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          8.7336        3.8918        .88275E-04   -1.5117    
  11  Prefactor     .10000E-03    3.7949        .14675E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.4356        3.1761        .45752E-03   -1.5242    
  13  Prefactor     .10000E-03    .72562        .64002E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.0811        .10879E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.4493        .33684        .20519E-04   -1.5467    
  16  norm          7.2955        4.1051        .11379E-03   -1.5168    
  17  Prefactor     12.844        9.1643        .11176E-03   -1.4991    
  18  Prefactor     63.230        41.869        .50467E-04   -1.4116    
  19  Prefactor     38.707        67.873        .64369E-04   -1.4463    
  20  Prefactor     9.0771        6.4538        .13301E-03   -1.5105    
  21  norm          .10000E-03    2.0707        .10850E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     18.814        28.010        .92302E-04   -1.4840    
  23  norm          5.1886        3.8553        .12576E-03   -1.5252    
  24  norm          3.7802        3.6229        .13456E-03   -1.5319    
  25  norm          .10000E-03    2.8659        .12778E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          37.625        19.604        .65337E-04   -1.4480    
  27  Normalizat    1.2410        .21524        .22434E-03   -.85346    
  28  Prefactor     .58069        .21989        .34311E-03   -1.0841    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.63333e-09
Minuit parameter uncertainties:
  1  11.9965
  2  9.92039e-06
  3  8.05731e-08
  4  19.761
  5  1.31913
  6  0.00067145
  7  0.000103578
  8  2.02712
  9  0.000167677
  10  3.89187
  11  1.39885e-05
  12  3.17617
  13  3.22524e-06
  14  2.55366e-06
  15  0.336839
  16  4.1053
  17  9.16525
  18  41.8882
  19  68.0091
  20  6.45432
  21  8.85046e-05
  22  28.0299
  23  3.85544
  24  3.62312
  25  2.84958e-06
  26  19.6076
  27  0.215397
  28  0.220219
Done.

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

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  7.296e+00  4.105e+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:  5.807e-01  2.202e-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.241e+00  2.154e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.07
Ra Dec: 187.560 25.298
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 4.29e-08 +/- 2.41e-08
Energy Flux (Fixed Index): 2.55e-05 +/- 1.43e-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) = 5998.26545246
delta logL = 0.136184027862

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5998.25953425
delta logL = 0.142102246459

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.8742       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7161       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2544       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .57295       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=   5998.260     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      205 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.8742        4.2195        .38256E-02   -.19602E-02
   2  alpha         1.7161        .44103        .34930       -.10491E-03
   3  Normalizat    1.2544        .17474        .50527E-01   -.16367E-05
   4  Prefactor     .57299        .18921        .77973E-01    .36223E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.87424
  alpha      = 1.71607
  Normalizat = 1.25435
  Prefactor  = 0.572988
 **********
 **   18 **HESSE 
 **********

 FCN=   5998.260     FROM HESSE     STATUS=OK            31 CALLS      236 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.8742        4.2721        .11500E-03   -1.5184    
   2  alpha         1.7161        .51681        .13258E-01   -.31895    
   3  Normalizat    1.2544        .20096        .22338E-03   -.84939    
   4  Prefactor     .57299        .21715        .34530E-03   -1.0874    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.69135e-09
Minuit parameter uncertainties:
  1  4.27234
  2  0.520985
  3  0.20108
  4  0.217471
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/738797': 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) = 5998.25953421
delta logL = 0.142102280967

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  6.874e+00  4.272e+00  1.000e-04  1.000e+04 ( 1.000e-12)
326        alpha:  1.716e+00  5.210e-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:  5.730e-01  2.175e-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.254e+00  2.011e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.36
Ra Dec: 187.560 25.298
Photon Index (Free Index): 1.72 +/- 0.52
Photon Flux (Free Index): 3.10e-08 +/- 2.62e-08
Energy Flux (Free Index): 3.52e-05 +/- 3.27e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/738797/cmap_HighResolution_359078401_359337601_4FGL_J1230.2+2517_daily_bin462.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.29e-08', energy_flux2='3.52e-05', photon_flux_error='2.41e-08', dlogl='1.42e-01', energy_flux='2.55e-05', photon_flux2='3.10e-08', job_status='DONE', time_completed='2021-09-05 20:57:41.152396', photon_index_error2='0.52', photon_index2='1.72', ts='12.07', fit_tolerance='1e-08', GAL='0.58', photon_index_error='0.00', energy_flux_error2='3.27e-05', EG='1.24', time_epoch_completed='1630900661.15', return_code='0', job_id='738797', GAL2='0.57', EG2='1.25', return_code2='0', energy_flux_error='1.43e-05', photon_flux_error2='2.62e-08', ts2='12.36', photon_index='2.00' WHERE bin_id='462' AND source_name='4FGL J1230.2+2517' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 20:57:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0090>
Subject: Job 738797: <4FGL_J1230.2+2517_daily_bin462> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.2+2517_daily_bin462 187.56 25.2983 359078401 359337601 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 :                                   711.19 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             309.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   875 sec.
    Turnaround time :                            999 sec.

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

