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


Performing analysis on: 4FGL_J1230.2+2517_daily_bin1040
RA = 187.56, Dec = 25.2983
tmin = 508896001, tmax = 509155201
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='741979', job_status='RUN', time_executed='2021-09-05 20:51:11.589382', time_epoch_executed='1630900271.59' WHERE source_name='4FGL J1230.2+2517' and cadence='daily' and bin_id='1040'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/741979

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/741979/ft1_4FGL_J1230.2+2517_daily_bin1040.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/741979/ft2_4FGL_J1230.2+2517_daily_bin1040.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/741979/ft1_4FGL_J1230.2+2517_daily_bin1040.fits outfile=/scratch/kocevski/741979/ft1_filteredMKT_4FGL_J1230.2+2517_daily_bin1040.fits ra=187.56 dec=25.2983 rad=12.0 tmin=508896001.0 tmax=509155201.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.69
user 3.46
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/741979/ft2_4FGL_J1230.2+2517_daily_bin1040.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/741979/ft1_filteredMKT_4FGL_J1230.2+2517_daily_bin1040.fits evtable="EVENTS" outfile="/scratch/kocevski/741979/ft1_filtered_4FGL_J1230.2+2517_daily_bin1040.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.33
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/741979/ft1_filtered_4FGL_J1230.2+2517_daily_bin1040.fits evtable="EVENTS" scfile=/scratch/kocevski/741979/ft2_4FGL_J1230.2+2517_daily_bin1040.fits sctable="SC_DATA" expcube=/scratch/kocevski/741979/ltcube_508896001_509155201_4FGL_J1230.2+2517_daily_bin1040.fits outfile=/scratch/kocevski/741979/expmap_508896001_509155201_4FGL_J1230.2+2517_daily_bin1040.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/741979/ltcube_508896001_509155201_4FGL_J1230.2+2517_daily_bin1040.fits
.....................!
real 193.07
user 187.49
sys 5.14

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/741979/ft1_filtered_4FGL_J1230.2+2517_daily_bin1040.fits scfile=/scratch/kocevski/741979/ft2_4FGL_J1230.2+2517_daily_bin1040.fits outfile=/scratch/kocevski/741979/cmap_508896001_509155201_4FGL_J1230.2+2517_daily_bin1040.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.55
user 0.38
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.839       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .76594       1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.785       1.0000         .10000E-03   10000.    
     5 'norm      '    2.3443       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.4438       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.7807       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.3672       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.2308       1.0000         .10000E-03   10000.    
    10 'norm      '    4.0677       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.9094       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.7445       1.0000         .10000E-03   10000.    
    15 'norm      '    .38769       1.0000         .10000E-03   10000.    
    16 'norm      '    15.964       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.3899       1.0000         .10000E-03   10000.    
    18 'Prefactor '    16.460       1.0000         .10000E-03   10000.    
    19 'Prefactor '    57.610       1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.091       1.0000         .10000E-03   10000.    
    21 'norm      '    .10101E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    27.882       1.0000         .10000E-03   10000.    
    23 'norm      '    6.9094       1.0000         .10000E-03   10000.    
    24 'norm      '    2.0055       1.0000         .10000E-03   10000.    
    25 'norm      '    .13761E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.3863       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .50123       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=   6091.667     FROM MIGRAD    STATUS=CONVERGED    665 CALLS     3489 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.849        24.739       -.87814E-06   -.94238E-04
   2  Prefactor     .10000E-03    5.7371       -.27133E-07** at limit **
   3  Prefactor     .76618        1.4502        .11358E-05    .37101E-03
   4  Prefactor     12.782        26.595        .58230E-06   -.30753E-04
   5  norm          2.3446        1.6157        .13920E-06   -.46498E-03
   6  Prefactor     3.4437        4.1506        .98119E-07   -.16428E-03
   7  Prefactor     5.8043        35.317        .56826E-06    .26894E-04
   8  Prefactor     5.3681        3.5283        .59342E-07   -.16425E-03
   9  Prefactor     3.2313        2.8337        .23739E-07   -.89161E-04
  10  norm          4.0677        2.8466        .19448E-07   -.78494E-04
  11  Prefactor     .10000E-03    2.6799        .14873E-06** at limit **
  12  Prefactor     4.9096        2.7084        .18399E-07   -.82721E-04
  13  Prefactor     .10000E-03    1.2306       -.25251E-08** at limit **
  14  Prefactor     6.7441        7.1468        .69568E-07   -.67418E-04
  15  norm          .38773        .32521        .42578E-07   -.34795E-03
  16  norm          15.967        7.8700        .64467E-07   -.94481E-04
  17  Prefactor     4.3921        10.013        .38118E-06   -.31143E-04
  18  Prefactor     16.461        28.813        .21907E-06   -.76560E-05
  19  Prefactor     57.572        62.875        .14524E-06   -.53567E-04
  20  Prefactor     10.092        9.2084        .15098E-06   -.37894E-04
  21  norm          .10000E-03    3.3764       -.30919E-06** at limit **
  22  Prefactor     27.893        24.671        .19033E-06    .18864E-04
  23  norm          6.9102        4.3572        .88274E-07   -.57232E-04
  24  norm          2.0051        4.2058        .54733E-06   -.18525E-03
  25  norm          .10001E-03    5.5827        .10176E-06** at limit **
  26  norm          .10000E-03    6.6249       -.35675E-07** at limit **
  27  Normalizat    1.3858        .21022       -.17807E-05   -.29902E-05
  28  Prefactor     .50166        .20040        .15464E-05   -.12864E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.8492
  Prefactor  = 0.0001
  Prefactor  = 0.766181
  Prefactor  = 12.782
  norm       = 2.34463
  Prefactor  = 3.44371
  Prefactor  = 5.80433
  Prefactor  = 5.36814
  Prefactor  = 3.23126
  norm       = 4.06771
  Prefactor  = 0.0001
  Prefactor  = 4.90955
  Prefactor  = 0.0001
  Prefactor  = 6.7441
  norm       = 0.387729
  norm       = 15.9671
  Prefactor  = 4.39213
  Prefactor  = 16.4614
  Prefactor  = 57.5724
  Prefactor  = 10.0919
  norm       = 0.0001
  Prefactor  = 27.893
  norm       = 6.91024
  norm       = 2.00511
  norm       = 0.000100006
  norm       = 0.0001
  Normalizat = 1.38583
  Prefactor  = 0.501656
 **********
 **   18 **HESSE 
 **********

 FCN=   6091.667     FROM HESSE     STATUS=OK           537 CALLS     4026 TOTAL
                     EDM=   .97E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.849        25.090        .75929E-04   -1.4652    
   2  Prefactor     .10000E-03    5.7541        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .76618        1.4544        .13634E-02   -1.5533    
   4  Prefactor     12.782        26.520        .11203E-03   -1.4993    
   5  norm          2.3446        1.5987        .75244E-04   -1.5402    
   6  Prefactor     3.4437        4.1221        .16220E-03   -1.5337    
   7  Prefactor     5.8043        35.035        .16705E-03   -1.5226    
   8  Prefactor     5.3681        3.5094        .10720E-03   -1.5245    
   9  Prefactor     3.2313        2.8297        .11485E-03   -1.5348    
  10  norm          4.0677        2.8555        .10110E-03   -1.5305    
  11  Prefactor     .10000E-03    2.6898        .12474E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.9096        2.7161        .87510E-04   -1.5265    
  13  Prefactor     .10000E-03    1.2522        .84341E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.7441        7.1332        .15450E-03   -1.5189    
  15  norm          .38773        .31377        .36819E-04   -1.5583    
  16  norm          15.967        7.8749        .10024E-03   -1.4909    
  17  Prefactor     4.3921        9.9781        .19222E-03   -1.5289    
  18  Prefactor     16.461        28.805        .98718E-04   -1.4896    
  19  Prefactor     57.572        63.054        .26427E-03   -1.4189    
  20  Prefactor     10.092        9.1991        .12614E-03   -1.5073    
  21  norm          .10000E-03    3.4516        .27919E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     27.893        24.659        .75871E-04   -1.4651    
  23  norm          6.9102        4.3573        .12340E-03   -1.5182    
  24  norm          2.0051        3.6150        .18962E-03   -1.5425    
  25  norm          .10001E-03    11.046        .30806E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    6.6278        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.3858        .23581        .23065E-03   -.81039    
  28  Prefactor     .50166        .22117        .37059E-03   -1.1190    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.65185e-10
Minuit parameter uncertainties:
  1  25.0997
  2  4.66082e-06
  3  1.45449
  4  26.5446
  5  1.59873
  6  4.12248
  7  28.5454
  8  3.50948
  9  2.82977
  10  2.85555
  11  2.85292e-06
  12  2.71616
  13  1.42091e-07
  14  7.13413
  15  0.313768
  16  7.87536
  17  9.98186
  18  28.8293
  19  63.1276
  20  9.20038
  21  1.47503e-05
  22  24.6676
  23  4.3575
  24  3.61543
  25  0.000521198
  26  3.08089e-06
  27  0.235996
  28  0.221546
Done.

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

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  1.597e+01  7.875e+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.017e-01  2.215e-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.386e+00  2.360e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 16.54
Ra Dec: 187.560 25.298
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 9.38e-08 +/- 4.63e-08
Energy Flux (Fixed Index): 5.58e-05 +/- 2.75e-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) = 6091.42703621
delta logL = 0.239598429906

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6091.41222031
delta logL = 0.254414327988

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    16.472       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3026       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3360       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .52878       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=   6091.412     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      213 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          16.472        104.72        .24671E-02    .13100E-03
   2  alpha         2.3025        3.6250        .24920        .42324E-04
   3  Normalizat    1.3361        .18894        .52896E-01    .51721E-06
   4  Prefactor     .52876        .12619        .81535E-01    .33107E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 16.4717
  alpha      = 2.3025
  Normalizat = 1.33607
  Prefactor  = 0.528757
 **********
 **   18 **HESSE 
 **********

 FCN=   6091.412     FROM HESSE     STATUS=OK            33 CALLS      246 TOTAL
                     EDM=   .77E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          16.472        6.7697        .98685E-04   -1.4896    
   2  alpha         2.3025        .40575        .95496E-02   -.79084E-01
   3  Normalizat    1.3361        .22597        .23387E-03   -.82496    
   4  Prefactor     .52876        .21996        .36118E-03   -1.1067    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.65454e-10
Minuit parameter uncertainties:
  1  6.77004
  2  0.407566
  3  0.226135
  4  0.220314
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/741979': 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) = 6091.41222026
delta logL = 0.254414382391

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  1.647e+01  6.770e+00  1.000e-04  1.000e+04 ( 1.000e-12)
326        alpha:  2.302e+00  4.076e-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.288e-01  2.203e-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.336e+00  2.261e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 17.09
Ra Dec: 187.560 25.298
Photon Index (Free Index): 2.30 +/- 0.41
Photon Flux (Free Index): 1.38e-07 +/- 7.91e-08
Energy Flux (Free Index): 5.07e-05 +/- 2.09e-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/741979/cmap_HighResolution_508896001_509155201_4FGL_J1230.2+2517_daily_bin1040.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.38e-08', energy_flux2='5.07e-05', photon_flux_error='4.63e-08', dlogl='2.54e-01', energy_flux='5.58e-05', photon_flux2='1.38e-07', job_status='DONE', time_completed='2021-09-05 21:03:03.400061', photon_index_error2='0.41', photon_index2='2.30', ts='16.54', fit_tolerance='1e-08', GAL='0.50', photon_index_error='0.00', energy_flux_error2='2.09e-05', EG='1.39', time_epoch_completed='1630900983.4', return_code='0', job_id='741979', GAL2='0.53', EG2='1.34', return_code2='0', energy_flux_error='2.75e-05', photon_flux_error2='7.91e-08', ts2='17.09', photon_index='2.00' WHERE bin_id='1040' AND source_name='4FGL J1230.2+2517' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 21:03:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0297>
Subject: Job 741979: <4FGL_J1230.2+2517_daily_bin1040> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.2+2517_daily_bin1040 187.56 25.2983 508896001 509155201 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 :                                   697.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             323.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   730 sec.
    Turnaround time :                            742 sec.

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

