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


Performing analysis on: 4FGL_J1230.2+2517_daily_bin451
RA = 187.56, Dec = 25.2983
tmin = 356227201, tmax = 356486401
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='738784', job_status='RUN', time_executed='2021-09-05 20:45:43.229991', time_epoch_executed='1630899943.23' WHERE source_name='4FGL J1230.2+2517' and cadence='daily' and bin_id='451'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/738784

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/738784/ft1_4FGL_J1230.2+2517_daily_bin451.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...
fmerge4.1 : Error, missing column list names, file /scratch/kocevski/738784/ft2_filtered_0009.fits
fmerge4.1 : Fatal error!
FCCMPL: not found in table: RA_SUN
FCCMPL: not found in table: DEC_SUN

Merged file saved to:
/scratch/kocevski/738784/ft2_4FGL_J1230.2+2517_daily_bin451.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/738784/ft1_4FGL_J1230.2+2517_daily_bin451.fits outfile=/scratch/kocevski/738784/ft1_filteredMKT_4FGL_J1230.2+2517_daily_bin451.fits ra=187.56 dec=25.2983 rad=12.0 tmin=356227201.0 tmax=356486401.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.13
user 2.91
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/738784/ft2_4FGL_J1230.2+2517_daily_bin451.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/738784/ft1_filteredMKT_4FGL_J1230.2+2517_daily_bin451.fits evtable="EVENTS" outfile="/scratch/kocevski/738784/ft1_filtered_4FGL_J1230.2+2517_daily_bin451.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/738784/ft1_filtered_4FGL_J1230.2+2517_daily_bin451.fits" evtable="EVENTS" scfile=/scratch/kocevski/738784/ft2_4FGL_J1230.2+2517_daily_bin451.fits sctable="SC_DATA" outfile=/scratch/kocevski/738784/ltcube_356227201_356486401_4FGL_J1230.2+2517_daily_bin451.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/738784/ft2_4FGL_J1230.2+2517_daily_bin451.fits
.....................!
real 4.13
user 3.71
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/738784/ft1_filtered_4FGL_J1230.2+2517_daily_bin451.fits evtable="EVENTS" scfile=/scratch/kocevski/738784/ft2_4FGL_J1230.2+2517_daily_bin451.fits sctable="SC_DATA" expcube=/scratch/kocevski/738784/ltcube_356227201_356486401_4FGL_J1230.2+2517_daily_bin451.fits outfile=/scratch/kocevski/738784/expmap_356227201_356486401_4FGL_J1230.2+2517_daily_bin451.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/738784/ltcube_356227201_356486401_4FGL_J1230.2+2517_daily_bin451.fits
.....................!
real 192.64
user 186.93
sys 4.77

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/738784/ft1_filtered_4FGL_J1230.2+2517_daily_bin451.fits scfile=/scratch/kocevski/738784/ft2_4FGL_J1230.2+2517_daily_bin451.fits outfile=/scratch/kocevski/738784/cmap_356227201_356486401_4FGL_J1230.2+2517_daily_bin451.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
gtbin: WARNING: Spacecraft data ceases before end of last GTI.
gtbin: WARNING: EXPOSURE keyword calculation may not be accurate.
real 0.55
user 0.40
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/738784/ft1_filtered_4FGL_J1230.2+2517_daily_bin451.fits scfile=/scratch/kocevski/738784/ft2_4FGL_J1230.2+2517_daily_bin451.fits outfile=/scratch/kocevski/738784/cmap_HighResolution_356227201_356486401_4FGL_J1230.2+2517_daily_bin451.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
gtbin: WARNING: Spacecraft data ceases before end of last GTI.
gtbin: WARNING: EXPOSURE keyword calculation may not be accurate.
real 0.56
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    84.604       1.0000         .10000E-03   10000.    
     5 'norm      '    8.6787       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10565E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.0833       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10044E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12020E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .24367E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.9825       1.0000         .10000E-03   10000.    
    16 'norm      '    17.487       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    77.745       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .12062E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.4338       1.0000         .10000E-03   10000.    
    21 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10219E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    18.748       1.0000         .10000E-03   10000.    
    24 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    54.438       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.2455       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .55777       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=   1277.798     FROM MIGRAD    STATUS=CONVERGED    674 CALLS     3419 TOTAL
                     EDM=   .83E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    31.160        .11749E-06** at limit **
   2  Prefactor     .10000E-03    11.539        .15104E-07** at limit **
   3  Prefactor     .10000E-03    4.8900        .17784E-06** at limit **
   4  Prefactor     84.623        75.629       -.49942E-06   -.34713E-04
   5  norm          8.6779        3.8819       -.47835E-07   -.34674E-04
   6  Prefactor     .10000E-03    8.9794        .11248E-06** at limit **
   7  Prefactor     .10000E-03    32.211       -.17891E-06** at limit **
   8  Prefactor     3.0800        7.7335       -.37842E-06    .31214E-05
   9  Prefactor     .10000E-03    5.6946       -.48777E-08** at limit **
  10  norm          .10000E-03    3.7996        .19658E-07** at limit **
  11  Prefactor     .10000E-03    11.452        .56573E-07** at limit **
  12  Prefactor     .10000E-03    5.6922        .85908E-07** at limit **
  13  Prefactor     .10000E-03    8.7071        .24240E-06** at limit **
  14  Prefactor     .10000E-03    107.20       -.29078E-05** at limit **
  15  norm          1.9825        .83850       -.14770E-07   -.13800E-04
  16  norm          17.499        18.671       -.17877E-05   -.64712E-04
  17  Prefactor     .10000E-03    29.524        .38383E-06** at limit **
  18  Prefactor     77.767        95.032       -.51896E-06   -.25919E-04
  19  Prefactor     .10000E-03    83.003       -.10356E-05** at limit **
  20  Prefactor     6.4413        21.872       -.43922E-05    .12869E-04
  21  norm          .10000E-03    3.7832        .23821E-07** at limit **
  22  Prefactor     .10000E-03    21.336       -.58895E-07** at limit **
  23  norm          18.748        11.756        .13371E-06    .14371E-04
  24  norm          .10000E-03    2.8955        .91730E-08** at limit **
  25  norm          .10000E-03    6.1011        .27433E-07** at limit **
  26  norm          54.460        56.828       -.32463E-06   -.52626E-04
  27  Normalizat    1.2451        .40931        .18576E-05   -.51706E-04
  28  Prefactor     .55812        .41770       -.17628E-05    .12155E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 84.6227
  norm       = 8.67794
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.08001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 1.9825
  norm       = 17.4993
  Prefactor  = 0.0001
  Prefactor  = 77.7674
  Prefactor  = 0.000100002
  Prefactor  = 6.44134
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 18.7481
  norm       = 0.0001
  norm       = 0.0001
  norm       = 54.4601
  Normalizat = 1.2451
  Prefactor  = 0.558119
 **********
 **   18 **HESSE 
 **********

 FCN=   1277.798     FROM HESSE     STATUS=OK           507 CALLS     3926 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    31.242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    11.539        .11862E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.0210        .15412E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     84.623        75.886        .43673E-04   -1.3866    
   5  norm          8.6779        3.8857        .45094E-04   -1.5119    
   6  Prefactor     .10000E-03    9.0455        .10452E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    32.227        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.0800        7.6944        .14698E-03   -1.5357    
   9  Prefactor     .10000E-03    5.7217        .83182E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    3.8101        .68049E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    11.488        .11816E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.7538        .83255E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    9.0525        .20603E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    107.35        .31754E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.9825        .83926        .20091E-04   -1.5426    
  16  norm          17.499        18.694        .95777E-04   -1.4871    
  17  Prefactor     .10000E-03    29.641        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     77.767        95.301        .22772E-03   -1.3942    
  19  Prefactor     .10000E-03    84.612        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     6.4413        22.022        .79115E-03   -1.5200    
  21  norm          .10000E-03    3.7855        .67913E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    21.353        .16138E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          18.748        11.756        .92501E-04   -1.4842    
  24  norm          .10000E-03    2.8961        .59414E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    6.1019        .86255E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          54.460        57.172        .27182E-03   -1.4231    
  27  Normalizat    1.2451        .46534        .23325E-03   -.85220    
  28  Prefactor     .55812        .47127        .35722E-03   -1.0938    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.60372e-10
Minuit parameter uncertainties:
  1  6.72997e-08
  2  1.02738e-06
  3  1.27597e-05
  4  75.9732
  5  3.88581
  6  2.84741e-06
  7  3.1563e-05
  8  7.69686
  9  2.96643e-06
  10  3.88133e-06
  11  4.22904e-06
  12  1.08221e-05
  13  1.99567e-05
  14  0.00060815
  15  0.839267
  16  18.7002
  17  5.78277e-05
  18  95.4885
  19  0.000910553
  20  22.0498
  21  1.13845e-06
  22  4.20344e-05
  23  11.7572
  24  8.88402e-07
  25  4.36256e-06
  26  57.2294
  27  0.466908
  28  0.474643
Done.

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

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  1.750e+01  1.870e+01  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.581e-01  4.746e-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.245e+00  4.669e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.22
Ra Dec: 187.560 25.298
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 1.03e-07 +/- 1.10e-07
Energy Flux (Fixed Index): 6.11e-05 +/- 6.53e-05

TS (Fixed Index): 1.22
Ra Dec: 187.560 25.298
Photon Flux Upper Limit: 3.38e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.01e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/738784/likelihoodResults_356227201_356486401_4FGL_J1230.2+2517_daily_bin451.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1275.08688303
delta logL = 2.71068403718

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1275.07107652
delta logL = 2.72649055144

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.2550       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.9021       1.0000          .0000       5.0000    
     3 'Normalizat'    .97659       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74445       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=   1275.071     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      254 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.2582        37.059        .56119E-02    .36254E-04
   2  alpha         3.9021        4.3974        .10884        .94372E-05
   3  Normalizat    .97638        .21141        .45873E-01    .27563E-05
   4  Prefactor     .74459        .23188        .70436E-01    .89909E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.25823
  alpha      = 3.90213
  Normalizat = 0.97638
  Prefactor  = 0.744591
 **********
 **   18 **HESSE 
 **********

 FCN=   1275.071     FROM HESSE     STATUS=OK            31 CALLS      285 TOTAL
                     EDM=   .78E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.2582        6.3121        .31280E-04   -1.5347    
   2  alpha         3.9021        1.0593        .48111E-03    .59541    
   3  Normalizat    .97638        .45825        .25449E-03   -.93826    
   4  Prefactor     .74459        .48670        .31169E-03   -1.0180    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.77681e-13
Minuit parameter uncertainties:
  1  6.31337
  2  1.11202
  3  0.460112
  4  0.489535
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/738784': 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) = 1275.07107453
delta logL = 2.72649253619

Extracting fit parameters...

4FGL J1230.2+2517
   Spectrum: LogParabola
325         norm:  3.258e+00  6.313e+00  1.000e-04  1.000e+04 ( 1.000e-12)
326        alpha:  3.902e+00  1.112e+00  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.446e-01  4.895e-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:  9.764e-01  4.601e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.10
Ra Dec: 187.560 25.298
Photon Index (Free Index): 3.90 +/- 1.11
Photon Flux (Free Index): 3.35e-07 +/- 1.75e-07
Energy Flux (Free Index): 5.23e-05 +/- 2.84e-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/738784/cmap_HighResolution_356227201_356486401_4FGL_J1230.2+2517_daily_bin451.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.01e-04', comment='SUCCESS', photon_flux='1.03e-07', energy_flux2='5.23e-05', photon_flux_error='1.10e-07', dlogl='2.73e+00', energy_flux='6.11e-05', photon_flux2='3.35e-07', job_status='DONE', time_completed='2021-09-05 20:52:42.641999', photon_index_error2='1.11', photon_index2='3.90', ts='1.22', fit_tolerance='1e-08', GAL='0.56', photon_index_error='0.00', photon_flux_upper_limit='3.38e-07', energy_flux_error2='2.84e-05', EG='1.25', time_epoch_completed='1630900362.64', return_code='0', job_id='738784', GAL2='0.74', EG2='0.98', return_code2='0', energy_flux_error='6.53e-05', photon_flux_error2='1.75e-07', ts2='7.10', photon_index='2.00' WHERE bin_id='451' AND source_name='4FGL J1230.2+2517' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 20:52:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 738784: <4FGL_J1230.2+2517_daily_bin451> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.2+2517_daily_bin451 187.56 25.2983 356227201 356486401 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 :                                   418.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             251.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   584 sec.
    Turnaround time :                            703 sec.

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

