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


Performing analysis on: 4FGL_J1230.2+2517_daily_bin975
RA = 187.56, Dec = 25.2983
tmin = 492048001, tmax = 492307201
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='741873', job_status='RUN', time_executed='2021-09-05 20:54:30.549418', time_epoch_executed='1630900470.55' WHERE source_name='4FGL J1230.2+2517' and cadence='daily' and bin_id='975'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/741873

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/741873/ft1_4FGL_J1230.2+2517_daily_bin975.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/741873/ft2_4FGL_J1230.2+2517_daily_bin975.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/741873/ft1_4FGL_J1230.2+2517_daily_bin975.fits outfile=/scratch/kocevski/741873/ft1_filteredMKT_4FGL_J1230.2+2517_daily_bin975.fits ra=187.56 dec=25.2983 rad=12.0 tmin=492048001.0 tmax=492307201.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.83
user 3.56
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/741873/ft1_filtered_4FGL_J1230.2+2517_daily_bin975.fits evtable="EVENTS" scfile=/scratch/kocevski/741873/ft2_4FGL_J1230.2+2517_daily_bin975.fits sctable="SC_DATA" expcube=/scratch/kocevski/741873/ltcube_492048001_492307201_4FGL_J1230.2+2517_daily_bin975.fits outfile=/scratch/kocevski/741873/expmap_492048001_492307201_4FGL_J1230.2+2517_daily_bin975.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/741873/ltcube_492048001_492307201_4FGL_J1230.2+2517_daily_bin975.fits
.....................!
real 193.42
user 186.98
sys 5.38

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/741873/ft1_filtered_4FGL_J1230.2+2517_daily_bin975.fits scfile=/scratch/kocevski/741873/ft2_4FGL_J1230.2+2517_daily_bin975.fits outfile=/scratch/kocevski/741873/cmap_492048001_492307201_4FGL_J1230.2+2517_daily_bin975.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=187.56 yref=25.2983 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.57
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/741873/ft1_filtered_4FGL_J1230.2+2517_daily_bin975.fits scfile=/scratch/kocevski/741873/ft2_4FGL_J1230.2+2517_daily_bin975.fits outfile=/scratch/kocevski/741873/cmap_HighResolution_492048001_492307201_4FGL_J1230.2+2517_daily_bin975.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.39
sys 0.18

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/741873/ft1_filtered_4FGL_J1230.2+2517_daily_bin975.fits', '/scratch/kocevski/741873/ft2_4FGL_J1230.2+2517_daily_bin975.fits', expMap='/scratch/kocevski/741873/expmap_492048001_492307201_4FGL_J1230.2+2517_daily_bin975.fits', expCube='/scratch/kocevski/741873/ltcube_492048001_492307201_4FGL_J1230.2+2517_daily_bin975.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/741873/Model_4FGL_J1230.2+2517_daily_bin975.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/741873/ft1_filtered_4FGL_J1230.2+2517_daily_bin975.fits
Spacecraft file(s): /scratch/kocevski/741873/ft2_4FGL_J1230.2+2517_daily_bin975.fits
Exposure map: /scratch/kocevski/741873/expmap_492048001_492307201_4FGL_J1230.2+2517_daily_bin975.fits
Exposure cube: /scratch/kocevski/741873/ltcube_492048001_492307201_4FGL_J1230.2+2517_daily_bin975.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/741873/Model_4FGL_J1230.2+2517_daily_bin975.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 57.2288694052

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 56.558887959

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17603       1.0000         .10000E-03   10000.    
     2 'Prefactor '    22.589       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.1288       1.0000         .10000E-03   10000.    
     5 'norm      '    .98562       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.1752       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .17136E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    7.9802       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.9412       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.8326       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.2056       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .57810E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10071E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.8770       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.3878       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .17145       1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.0566       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .52410E-01   1.0000         .10000E-03   10000.    
    21 'norm      '    2.9938       1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.8374       1.0000         .10000E-03   10000.    
    23 'norm      '    3.0127       1.0000         .10000E-03   10000.    
    24 'norm      '    5.5549       1.0000         .10000E-03   10000.    
    25 'norm      '    1.8539       1.0000         .10000E-03   10000.    
    26 'norm      '    9.2768       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    28 'Prefactor '    .71080       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   56.55208     FROM MIGRAD    STATUS=CONVERGED    123 CALLS      310 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10889E-03    294.83        .98677E-02** at limit **
   2  Prefactor     22.619        51.697        .21069E-02    .17191E-02
   3  Prefactor     .10000E-03    14.609        .90712E-02** at limit **
   4  Prefactor     5.1288        1.0048         .0000         .0000    
   5  norm          .10004E-03    .42999        .75356E-06** at limit **
   6  Prefactor     .10000E-03    .20571        .19571E-06** at limit **
   7  Prefactor     4.1752        1.0074         .0000         .0000    
   8  Prefactor     .10000E-03    .20571       -.81927E-06** at limit **
   9  Prefactor     .10000E-03    .20571       -.19877E-05** at limit **
  10  norm          7.9802        1.0020         .0000         .0000    
  11  Prefactor     1.9412        1.0378         .0000         .0000    
  12  Prefactor     1.8326        1.0431         .0000         .0000    
  13  Prefactor     3.2056        1.0127         .0000         .0000    
  14  Prefactor     .10133E-03    .27782        .76546E-07** at limit **
  15  norm          .10000E-03    .20571        .28082E-05** at limit **
  16  norm          .11938E-03    .89721E-01   -.61159E-05** at limit **
  17  Prefactor     7.3878        1.0023         .0000         .0000    
  18  Prefactor     .10001E-03    .24238        .18247E-05** at limit **
  19  Prefactor     8.0566        1.0019         .0000         .0000    
  20  Prefactor     .23970E-02    .21538       -.70816E-07** at limit **
  21  norm          2.9938        1.0147         .0000         .0000    
  22  Prefactor     4.8374        1.0054         .0000         .0000    
  23  norm          3.0127        1.0145         .0000         .0000    
  24  norm          5.5549        1.0041         .0000         .0000    
  25  norm          1.8539        1.0420         .0000         .0000    
  26  norm          9.2768        1.0015         .0000         .0000    
  27  Normalizat    .10000E-01    .25505       -.11502E-04** at limit **
  28  Prefactor     .71089        1.0606       -.41534E-05   -.43051E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000108894
  Prefactor  = 22.6189
  Prefactor  = 0.0001
  Prefactor  = 5.12883
  norm       = 0.00010004
  Prefactor  = 0.0001
  Prefactor  = 4.17517
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 7.98016
  Prefactor  = 1.9412
  Prefactor  = 1.83259
  Prefactor  = 3.20562
  Prefactor  = 0.000101327
  norm       = 0.000100002
  norm       = 0.000119379
  Prefactor  = 7.38783
  Prefactor  = 0.000100009
  Prefactor  = 8.05657
  Prefactor  = 0.00239698
  norm       = 2.99384
  Prefactor  = 4.83739
  norm       = 3.01271
  norm       = 5.55486
  norm       = 1.85393
  norm       = 9.27679
  Normalizat = 0.01
  Prefactor  = 0.710889
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   56.55208     FROM HESSE     STATUS=FAILED        17 CALLS      327 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10889E-03    294.83        .98677E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     22.619        51.697        .21069E-02   -1.4756    
   3  Prefactor     .10000E-03    14.609        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     530.23        525.05         .0000       -1.5255    
   5  norm          .10004E-03    .42999        .75356E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    .20571        .19571E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.1752        1.0074         .0000       -1.5299    
   8  Prefactor     .10000E-03    .20571       -.81927E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    .20571       -.19877E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          7.9802        1.0020         .0000       -1.5143    
  11  Prefactor     1.9412        1.0378         .0000       -1.5429    
  12  Prefactor     1.8326        1.0431         .0000       -1.5437    
  13  Prefactor     3.2056        1.0127         .0000       -1.5350    
  14  Prefactor     .10133E-03    .27782        .76546E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .20571        .28082E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .11938E-03    .89721E-01   -.61159E-05   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     7.3878        1.0023         .0000       -1.5164    
  18  Prefactor     .10001E-03    .24238        .18247E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     8.0566        1.0019         .0000       -1.5140    
  20  Prefactor     .23970E-02    .21538       -.70816E-07   -1.5718    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.9938        1.0147         .0000       -1.5362    
  22  Prefactor     4.8374        1.0054         .0000       -1.5268    
  23  norm          3.0127        1.0145         .0000       -1.5361    
  24  norm          5.5549        1.0041         .0000       -1.5237    
  25  norm          1.8539        1.0420         .0000       -1.5436    
  26  norm          9.2768        1.0015         .0000       -1.5099    
  27  Normalizat    .10000E-01    .25505       -.11502E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .71089        1.0606       -.41534E-05   -1.0310    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.25389e-09
Minuit parameter uncertainties:
  1  0.102926
  2  51.7997
  3  0.00016208
  4  1.00483
  5  0.000261887
  6  3.00512e-06
  7  1.00736
  8  1.26692e-05
  9  3.13471e-05
  10  1.00198
  11  1.03776
  12  1.04314
  13  1.01271
  14  0.00121447
  15  4.29512e-05
  16  0.00263723
  17  1.00231
  18  9.35167e-05
  19  1.00194
  20  0.0444848
  21  1.01467
  22  1.00544
  23  1.01448
  24  1.00411
  25  1.04199
  26  1.00146
  27  6.24793e-06
  28  1.09329
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 56.5520764884

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  1.194e-04  2.637e-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:  7.109e-01  1.093e+00  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.000e-02  6.248e-06  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/741873/likelihoodResults_492048001_492307201_4FGL_J1230.2+2517_daily_bin975.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) = 56.5520880549
delta logL = -1.15664666041e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 56.5520767279
delta logL = -2.39537826019e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10296E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.0750       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71109       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=   56.55208     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      267 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10018E-03    9970.3        .10020E-01** at limit **
   2  alpha         1.7091        3.6206        .17048        .80083E-08
   3  Normalizat    .10000E-01    .57503E-01    .16439E-02** at limit **
   4  Prefactor     .71088        .15482        .13163E-03   -.12281E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100178
  alpha      = 1.70912
  Normalizat = 0.01
  Prefactor  = 0.710883
 **********
 **   18 **HESSE 
 **********

 FCN=   56.55208     FROM HESSE     STATUS=OK            23 CALLS      290 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10018E-03    445.19        .15382E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.7091        3.2314        .68190E-02   -.32188    
   3  Normalizat    .10000E-01    .49640        .32879E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .71088        .45615        .26326E-04   -1.0310    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.46286e-09
Minuit parameter uncertainties:
  1  0.0179186
  2  2704.45
  3  2.36202e-05
  4  0.458576
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/741873': 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) = 56.5520764587
delta logL = 2.9679092961e-08

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  1.002e-04  1.792e-02  1.000e-04  1.000e+04 ( 1.000e-12)
326        alpha:  1.709e+00  2.704e+03  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:  7.109e-01  4.586e-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.000e-02  2.362e-05  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/741873/cmap_HighResolution_492048001_492307201_4FGL_J1230.2+2517_daily_bin975.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.60e-03', job_status='DONE', photon_flux_upper_limit='1.45e-05', time_completed='2021-09-05 21:00:10.125589', job_id='741873', GAL2='0.71', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630900810.13', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.71', dlogl='2.97e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='975' AND source_name='4FGL J1230.2+2517' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 21:00:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0146>
Subject: Job 741873: <4FGL_J1230.2+2517_daily_bin975> in cluster <slac> Done

Job <4FGL_J1230.2+2517_daily_bin975> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 20:50:34 2021
Job was executed on host(s) <bullet0146>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 20:50:41 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:41 2021
Terminated at Sun Sep  5 21:00:10 2021
Results reported at Sun Sep  5 21:00:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.2+2517_daily_bin975 187.56 25.2983 492048001 492307201 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 :                                   334.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             219.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   569 sec.
    Turnaround time :                            576 sec.

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

