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


Performing analysis on: 4FGL_J1217.9+3007_daily_bin1363
RA = 184.476, Dec = 30.1177
tmin = 592617601, tmax = 592876801
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='461612', job_status='RUN', time_executed='2021-09-05 06:31:14.188151', time_epoch_executed='1630848674.19' WHERE source_name='4FGL J1217.9+3007' and cadence='daily' and bin_id='1363'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/461612

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/461612/ft1_4FGL_J1217.9+3007_daily_bin1363.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/461612/ft2_4FGL_J1217.9+3007_daily_bin1363.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/461612/ft1_4FGL_J1217.9+3007_daily_bin1363.fits outfile=/scratch/kocevski/461612/ft1_filteredMKT_4FGL_J1217.9+3007_daily_bin1363.fits ra=184.476 dec=30.1177 rad=12.0 tmin=592617601.0 tmax=592876801.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 5.17
user 3.29
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/461612/ft2_4FGL_J1217.9+3007_daily_bin1363.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/461612/ft2_4FGL_J1217.9+3007_daily_bin1363.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/461612/ft1_filteredMKT_4FGL_J1217.9+3007_daily_bin1363.fits evtable="EVENTS" outfile="/scratch/kocevski/461612/ft1_filtered_4FGL_J1217.9+3007_daily_bin1363.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 1.44
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/461612/ft1_filtered_4FGL_J1217.9+3007_daily_bin1363.fits" evtable="EVENTS" scfile=/scratch/kocevski/461612/ft2_4FGL_J1217.9+3007_daily_bin1363.fits sctable="SC_DATA" outfile=/scratch/kocevski/461612/ltcube_592617601_592876801_4FGL_J1217.9+3007_daily_bin1363.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/461612/ft2_4FGL_J1217.9+3007_daily_bin1363.fits
.....................!
real 11.88
user 11.49
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/461612/ft1_filtered_4FGL_J1217.9+3007_daily_bin1363.fits evtable="EVENTS" scfile=/scratch/kocevski/461612/ft2_4FGL_J1217.9+3007_daily_bin1363.fits sctable="SC_DATA" expcube=/scratch/kocevski/461612/ltcube_592617601_592876801_4FGL_J1217.9+3007_daily_bin1363.fits outfile=/scratch/kocevski/461612/expmap_592617601_592876801_4FGL_J1217.9+3007_daily_bin1363.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/461612/ltcube_592617601_592876801_4FGL_J1217.9+3007_daily_bin1363.fits
.....................!
real 191.30
user 186.25
sys 4.45

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 199 point sources and 0 extended sources

Setting source of interest to:
4FGL J1217.9+3007 @ 184.476 30.1177

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/461612/ft1_filtered_4FGL_J1217.9+3007_daily_bin1363.fits scfile=/scratch/kocevski/461612/ft2_4FGL_J1217.9+3007_daily_bin1363.fits outfile=/scratch/kocevski/461612/cmap_592617601_592876801_4FGL_J1217.9+3007_daily_bin1363.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=184.476 yref=30.1177 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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/461612/ft1_filtered_4FGL_J1217.9+3007_daily_bin1363.fits scfile=/scratch/kocevski/461612/ft2_4FGL_J1217.9+3007_daily_bin1363.fits outfile=/scratch/kocevski/461612/cmap_HighResolution_592617601_592876801_4FGL_J1217.9+3007_daily_bin1363.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=184.476 yref=30.1177 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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/461612/ft1_filtered_4FGL_J1217.9+3007_daily_bin1363.fits evtable="EVENTS" scfile=/scratch/kocevski/461612/ft2_4FGL_J1217.9+3007_daily_bin1363.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/461612/Model_4FGL_J1217.9+3007_daily_bin1363.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/461612/ft1_filtered_4FGL_J1217.9+3007_daily_bin1363.fits.....................!
real 54.69
user 52.84
sys 1.49

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/461612/ft1_filtered_4FGL_J1217.9+3007_daily_bin1363.fits', '/scratch/kocevski/461612/ft2_4FGL_J1217.9+3007_daily_bin1363.fits', expMap='/scratch/kocevski/461612/expmap_592617601_592876801_4FGL_J1217.9+3007_daily_bin1363.fits', expCube='/scratch/kocevski/461612/ltcube_592617601_592876801_4FGL_J1217.9+3007_daily_bin1363.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/461612/Model_4FGL_J1217.9+3007_daily_bin1363.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1217.9+3007'

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  7.980e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  1.854e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
319         beta:  4.615e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
320           Eb:  1.094e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/461612/ft1_filtered_4FGL_J1217.9+3007_daily_bin1363.fits
Spacecraft file(s): /scratch/kocevski/461612/ft2_4FGL_J1217.9+3007_daily_bin1363.fits
Exposure map: /scratch/kocevski/461612/expmap_592617601_592876801_4FGL_J1217.9+3007_daily_bin1363.fits
Exposure cube: /scratch/kocevski/461612/ltcube_592617601_592876801_4FGL_J1217.9+3007_daily_bin1363.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/461612/Model_4FGL_J1217.9+3007_daily_bin1363.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) = 6318.603865

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.1587       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.153       1.0000         .10000E-03   10000.    
     4 'norm      '    .99799       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10270E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    30.698       1.0000         .10000E-03   10000.    
    12 'norm      '    15.235       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.2216       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.9885       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10313E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .41548E-01   1.0000         .10000E-03   10000.    
    18 'norm      '    5.5146       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.7260       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .15024E-02   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    39.294       1.0000         .10000E-03   10000.    
    28 'norm      '    24.979       1.0000         .10000E-03   10000.    
    29 'norm      '    8.1508       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .95868       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.2816       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6290E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6318.589     FROM MIGRAD    STATUS=CONVERGED    813 CALLS     4211 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.1582        12.444        .33571E-06   -.76100E-05
   2  Prefactor     .10000E-03    3.6422       -.20617E-07** at limit **
   3  Prefactor     12.153        6.0526        .20898E-07   -.23822E-03
   4  norm          .99800        .85948        .53411E-07    .87202E-04
   5  Prefactor     .10000E-03    6.6747       -.27197E-06** at limit **
   6  Prefactor     .10000E-03    .61324        .87213E-09** at limit **
   7  Prefactor     .10000E-03    25.869        .70539E-06** at limit **
   8  Prefactor     .10000E-03    31.972       -.13859E-05** at limit **
   9  norm          .10000E-03    .68915        .17541E-06** at limit **
  10  Prefactor     .10000E-03    2.4275       -.64012E-08** at limit **
  11  Prefactor     30.697        28.064        .31941E-07   -.95251E-04
  12  norm          15.235        4.1660        .38019E-08   -.71690E-04
  13  Prefactor     .10000E-03    4.0614        .17124E-07** at limit **
  14  Prefactor     1.2215        1.0908       -.11662E-07    .35729E-04
  15  Prefactor     1.9885        1.6186       -.27174E-07   -.43865E-04
  16  Prefactor     .10000E-03    7.8254        .19290E-06** at limit **
  17  norm          .41513E-01    .22669        .11448E-05    .29686E-03
  18  norm          5.5136        3.9163       -.26236E-06   -.18528E-04
  19  Prefactor     3.7260        8.2682        .26494E-05    .49741E-04
  20  Prefactor     .10000E-03    5.4388        .18516E-06** at limit **
  21  Prefactor     .10000E-03    84.946        .59776E-06** at limit **
  22  Prefactor     .10001E-03    7.2208       -.22667E-05** at limit **
  23  Prefactor     .10000E-03    2.0828       -.28714E-07** at limit **
  24  norm          .10000E-03    4.3102       -.27066E-07** at limit **
  25  Prefactor     .10000E-03    13.898       -.18646E-06** at limit **
  26  norm          .10000E-03    2.7438       -.11902E-07** at limit **
  27  Prefactor     39.293        28.231        .34580E-06    .31832E-04
  28  norm          24.980        8.0164        .24325E-06    .40105E-03
  29  norm          8.1508        9.1176       -.78236E-07    .68669E-04
  30  Normalizat    .95851        .18199       -.97356E-06   -.50485E-04
  31  Prefactor     1.2818        .21045       -.51233E-06   -.54704E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.15822
  Prefactor  = 0.0001
  Prefactor  = 12.1529
  norm       = 0.997997
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.697
  norm       = 15.2349
  Prefactor  = 0.0001
  Prefactor  = 1.22151
  Prefactor  = 1.98849
  Prefactor  = 0.0001
  norm       = 0.041513
  norm       = 5.51358
  Prefactor  = 3.72595
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100014
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 39.293
  norm       = 24.98
  norm       = 8.15082
  Normalizat = 0.958507
  Prefactor  = 1.28177
 **********
 **   18 **HESSE 
 **********

 FCN=   6318.589     FROM HESSE     STATUS=OK           626 CALLS     4837 TOTAL
                     EDM=   .97E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.1582        12.431        .17700E-03   -1.5254    
   2  Prefactor     .10000E-03    3.6505        .14813E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     12.153        6.0540        .11491E-03   -1.5011    
   4  norm          .99800        .89092        .66237E-03   -1.5508    
   5  Prefactor     .10000E-03    6.7013        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    .62709        .60760E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    26.175        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    32.243        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    2.1817        .12730E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.5007        .24179E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     30.697        28.078        .72315E-04   -1.4599    
  12  norm          15.235        4.1571        .80901E-04   -1.4927    
  13  Prefactor     .10000E-03    4.1429        .15643E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.2215        1.2273        .75908E-03   -1.5487    
  15  Prefactor     1.9885        1.6104        .87795E-04   -1.5426    
  16  Prefactor     .10000E-03    8.1990        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .41513E-01    .23030        .18458E-03   -1.5667    
  18  norm          5.5136        3.9203        .12846E-03   -1.5238    
  19  Prefactor     3.7260        8.2690        .10460E-02   -1.5322    
  20  Prefactor     .10000E-03    5.4443        .18113E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    85.147        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10001E-03    33.673        .39080E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    2.0843        .11199E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    4.4359        .32193E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    13.921        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    2.7861        .12854E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     39.293        28.248        .63942E-04   -1.4453    
  28  norm          24.980        8.0340        .40075E-03   -1.4708    
  29  norm          8.1508        9.1257        .14043E-03   -1.5137    
  30  Normalizat    .95851        .21583        .26191E-03   -.94434    
  31  Prefactor     1.2818        .24978        .27436E-03   -.83851    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.6763e-10
Minuit parameter uncertainties:
  1  12.4369
  2  1.51209e-06
  3  6.05432
  4  0.890929
  5  5.8584e-05
  6  2.21194e-07
  7  0.000529182
  8  0.000593493
  9  6.89465e-06
  10  3.16651e-07
  11  28.0898
  12  4.15717
  13  3.11043e-05
  14  1.22737
  15  1.61042
  16  5.74626e-05
  17  0.195321
  18  3.92044
  19  8.27151
  20  3.43027e-05
  21  0.000382806
  22  0.00139299
  23  6.35806e-08
  24  5.20159e-05
  25  6.0486e-05
  26  1.3165e-06
  27  28.2576
  28  8.03436
  29  9.12725
  30  0.216021
  31  0.250014
Done.

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

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  1.523e+01  4.157e+00  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  1.854e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
319         beta:  4.615e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
320           Eb:  1.094e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
626    Prefactor:  1.282e+00  2.500e-01  0.000e+00  1.000e+01 ( 1.000e+00)
627        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
628        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
625   Normalization:  9.585e-01  2.160e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 50.28
Ra Dec: 184.476 30.118
Photon Index (Fixed Index): 1.85 +/- 0.00
Photon Flux (Fixed Index): 1.33e-07 +/- 3.62e-08
Energy Flux (Fixed Index): 1.18e-04 +/- 3.22e-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) = 6318.56713858
delta logL = 0.0215694303006

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6318.56238734
delta logL = 0.0263206753498

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.948       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9037       1.0000          .0000       5.0000    
     3 'Normalizat'    .95257       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2858       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6290E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6318.562     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      202 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.948        6.5798        .25898E-02   -.54350E-02
   2  alpha         1.9038        .32519        .14521        .17267E-03
   3  Normalizat    .95259        .17803        .45570E-01    .76572E-04
   4  Prefactor     1.2855        .21046        .61953E-01   -.79086E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 14.9484
  alpha      = 1.90377
  Normalizat = 0.952587
  Prefactor  = 1.2855
 **********
 **   18 **HESSE 
 **********

 FCN=   6318.562     FROM HESSE     STATUS=OK            31 CALLS      233 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.948        4.2692        .79520E-04   -1.4935    
   2  alpha         1.9038        .21845        .61955E-02   -.24081    
   3  Normalizat    .95259        .20998        .26259E-03   -.94636    
   4  Prefactor     1.2855        .24921        .27400E-03   -.83739    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.37107e-09
Minuit parameter uncertainties:
  1  4.26929
  2  0.21875
  3  0.210166
  4  0.249444
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/461612': 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) = 6318.56238517
delta logL = 0.0263228438653

Extracting fit parameters...

4FGL J1217.9+3007
   Spectrum: LogParabola
317         norm:  1.495e+01  4.269e+00  1.000e-04  1.000e+04 ( 1.000e-12)
318        alpha:  1.904e+00  2.188e-01  0.000e+00  5.000e+00 ( 1.000e+00)
319         beta:  4.615e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
320           Eb:  1.094e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
626    Prefactor:  1.286e+00  2.494e-01  0.000e+00  1.000e+01 ( 1.000e+00)
627        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
628        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
625   Normalization:  9.526e-01  2.102e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 50.37
Ra Dec: 184.476 30.118
Photon Index (Free Index): 1.90 +/- 0.22
Photon Flux (Free Index): 1.38e-07 +/- 4.43e-08
Energy Flux (Free Index): 1.10e-04 +/- 4.66e-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/461612/cmap_HighResolution_592617601_592876801_4FGL_J1217.9+3007_daily_bin1363.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.33e-07', energy_flux2='1.10e-04', photon_flux_error='3.62e-08', dlogl='2.63e-02', energy_flux='1.18e-04', photon_flux2='1.38e-07', job_status='DONE', time_completed='2021-09-05 06:45:29.387323', photon_index_error2='0.22', photon_index2='1.90', ts='50.28', fit_tolerance='1e-08', GAL='1.28', photon_index_error='0.00', energy_flux_error2='4.66e-05', EG='0.96', time_epoch_completed='1630849529.39', return_code='0', job_id='461612', GAL2='1.29', EG2='0.95', return_code2='0', energy_flux_error='3.22e-05', photon_flux_error2='4.43e-08', ts2='50.37', photon_index='1.85' WHERE bin_id='1363' AND source_name='4FGL J1217.9+3007' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 06:45:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0070>
Subject: Job 461612: <4FGL_J1217.9+3007_daily_bin1363> in cluster <slac> Done

Job <4FGL_J1217.9+3007_daily_bin1363> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Sun Sep  5 06:30:36 2021
Job was executed on host(s) <bullet0070>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 06:30:38 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 06:30:38 2021
Terminated at Sun Sep  5 06:45:30 2021
Results reported at Sun Sep  5 06:45:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1217.9+3007_daily_bin1363 184.476 30.1177 592617601 592876801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1217.9+3007 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   843.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             324.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   891 sec.
    Turnaround time :                            894 sec.

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

